// File: /workspace/github_c_makefile_star2_O3/madler[P]pigz/pigz.c
// Function: compress_thread
local void compress_thread(void *dummy) {
    struct job *job;                // job pulled and working on
    struct job *here, **prior;      // pointers for inserting in write list
    unsigned long check;            // check value of input
    unsigned char *next;            // pointer for blocks, check value data
    size_t left;                    // input left to process
    size_t len;                     // remaining bytes to compress/check
#if ZLIB_VERNUM >= 0x1260
    int bits;                       // deflate pending bits
#endif
    int ret;                        // zlib return code
    ball_t err;                     // error information from throw()

    (void)dummy;

    try {
        z_stream strm;                  // deflate stream
#ifndef NOZOPFLI
        struct space *temp = NULL;
        // get temporary space for zopfli input
        if (g.level > 9)
            temp = get_space(&out_pool);
        else
#endif
        {
            // initialize the deflate stream for this thread
            strm.zfree = ZFREE;
            strm.zalloc = ZALLOC;
            strm.opaque = OPAQUE;
            ret = deflateInit2(&strm, 6, Z_DEFLATED, -15, 8, g.strategy);
            if (ret == Z_MEM_ERROR)
                throw(ENOMEM, "not enough memory");
            if (ret != Z_OK)
                throw(EINVAL, "internal error");
        }

        // keep looking for work
        for (;;) {
            // get a job (like I tell my son)
            possess(compress_have);
            wait_for(compress_have, NOT_TO_BE, 0);
            job = compress_head;
            assert(job != NULL);
            if (job->seq == -1)
                break;
            compress_head = job->next;
            if (job->next == NULL)
                compress_tail = &compress_head;
            twist(compress_have, BY, -1);

            // got a job -- initialize and set the compression level (note that
            // if deflateParams() is called immediately after deflateReset(),
            // there is no need to initialize input/output for the stream)
            Trace(("-- compressing #%ld", job->seq));
#ifndef NOZOPFLI
            if (g.level <= 9) {
#endif
                (void)deflateReset(&strm);
                (void)deflateParams(&strm, g.level, g.strategy);
#ifndef NOZOPFLI
            }
            else
                temp->len = 0;
#endif

            // set dictionary if provided, release that input or dictionary
            // buffer (not NULL if g.setdict is true and if this is not the
            // first work unit)
            if (job->out != NULL) {
                len = job->out->len;
                left = len < DICT ? len : DICT;
#ifndef NOZOPFLI
                if (g.level <= 9)
#endif
                    deflateSetDictionary(&strm, job->out->buf + (len - left),
                                         (unsigned)left);
#ifndef NOZOPFLI
                else {
                    memcpy(temp->buf, job->out->buf + (len - left), left);
                    temp->len = left;
                }
#endif
                drop_space(job->out);
            }

            // set up input and output
            job->out = get_space(&out_pool);
#ifndef NOZOPFLI
            if (g.level <= 9) {
#endif
                strm.next_in = job->in->buf;
                strm.next_out = job->out->buf;
#ifndef NOZOPFLI
            }
            else
                memcpy(temp->buf + temp->len, job->in->buf, job->in->len);
#endif

            // compress each block, either flushing or finishing
            next = job->lens == NULL ? NULL : job->lens->buf;
            left = job->in->len;
            job->out->len = 0;
            do {
                // decode next block length from blocks list
                len = next == NULL ? 128 : *next++;
                if (len < 128)                  // 64..32831
                    len = (len << 8) + (*next++) + 64;
                else if (len == 128)            // end of list
                    len = left;
                else if (len < 192)             // 1..63
                    len &= 0x3f;
                else if (len < 224){            // 32832..2129983
                    len = ((len & 0x1f) << 16) + ((size_t)*next++ << 8);
                    len += *next++ + 32832U;
                }
                else {                          // 2129984..539000895
                    len = ((len & 0x1f) << 24) + ((size_t)*next++ << 16);
                    len += (size_t)*next++ << 8;
                    len += (size_t)*next++ + 2129984UL;
                }
                left -= len;

#ifndef NOZOPFLI
                if (g.level <= 9) {
#endif
                    // run MAXP2-sized amounts of input through deflate -- this
                    // loop is needed for those cases where the unsigned type
                    // is smaller than the size_t type, or when len is close to
                    // the limit of the size_t type
                    while (len > MAXP2) {
                        strm.avail_in = MAXP2;
                        deflate_engine(&strm, job->out, Z_NO_FLUSH);
                        len -= MAXP2;
                    }

                    // run the last piece through deflate -- end on a byte
                    // boundary, using a sync marker if necessary, or finish
                    // the deflate stream if this is the last block
                    strm.avail_in = (unsigned)len;
                    if (left || job->more) {
#if ZLIB_VERNUM >= 0x1260
                        if (zlib_vernum() >= 0x1260) {
                            deflate_engine(&strm, job->out, Z_BLOCK);

                            // add enough empty blocks to get to a byte
                            // boundary
                            (void)deflatePending(&strm, Z_NULL, &bits);
                            if ((bits & 1) || !g.setdict)
                                deflate_engine(&strm, job->out, Z_SYNC_FLUSH);
                            else if (bits & 7) {
                                do {        // add static empty blocks
                                    bits = deflatePrime(&strm, 10, 2);
                                    assert(bits == Z_OK);
                                    (void)deflatePending(&strm, Z_NULL, &bits);
                                } while (bits & 7);
                                deflate_engine(&strm, job->out, Z_BLOCK);
                            }
                        }
                        else
#endif
                        {
                            deflate_engine(&strm, job->out, Z_SYNC_FLUSH);
                        }
                        if (!g.setdict)     // two markers when independent
                            deflate_engine(&strm, job->out, Z_FULL_FLUSH);
                    }
                    else
                        deflate_engine(&strm, job->out, Z_FINISH);
#ifndef NOZOPFLI
                }
                else {
                    // compress len bytes using zopfli, end at byte boundary
                    unsigned char bits, *out;
                    size_t outsize;

                    out = NULL;
                    outsize = 0;
                    bits = 0;
                    ZopfliDeflatePart(&g.zopts, 2, !(left || job->more),
                                      temp->buf, temp->len, temp->len + len,
                                      &bits, &out, &outsize);
                    assert(job->out->len + outsize + 5 <= job->out->size);
                    memcpy(job->out->buf + job->out->len, out, outsize);
                    free(out);
                    job->out->len += outsize;
                    if (left || job->more) {
                        bits &= 7;
                        if ((bits & 1) || !g.setdict) {
                            if (bits == 0 || bits > 5)
                                job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0xff;
                            job->out->buf[job->out->len++] = 0xff;
                        }
                        else if (bits) {
                            do {
                                job->out->buf[job->out->len - 1] += 2 << bits;
                                job->out->buf[job->out->len++] = 0;
                                bits += 2;
                            } while (bits < 8);
                        }
                        if (!g.setdict) {   // two markers when independent
                            job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0;
                            job->out->buf[job->out->len++] = 0xff;
                            job->out->buf[job->out->len++] = 0xff;
                        }
                    }
                    temp->len += len;
                }
#endif
            } while (left);
            drop_space(job->lens);
            job->lens = NULL;
            Trace(("-- compressed #%ld%s", job->seq,
                   job->more ? "" : " (last)"));

            // reserve input buffer until check value has been calculated
            use_space(job->in);

            // insert write job in list in sorted order, alert write thread
            possess(write_first);
            prior = &write_head;
            while ((here = *prior) != NULL) {
                if (here->seq > job->seq)
                    break;
                prior = &(here->next);
            }
            job->next = here;
            *prior = job;
            twist(write_first, TO, write_head->seq);

            // calculate the check value in parallel with writing, alert the
            // write thread that the calculation is complete, and drop this
            // usage of the input buffer
            len = job->in->len;
            next = job->in->buf;
            check = CHECK(0L, Z_NULL, 0);
            while (len > MAXP2) {
                check = CHECK(check, next, MAXP2);
                len -= MAXP2;
                next += MAXP2;
            }
            check = CHECK(check, next, (unsigned)len);
            drop_space(job->in);
            job->check = check;
            Trace(("-- checked #%ld%s", job->seq, job->more ? "" : " (last)"));
            possess(job->calc);
            twist(job->calc, TO, 1);

            // done with that one -- go find another job
        }

        // found job with seq == -1 -- return to join
        release(compress_have);
#ifndef NOZOPFLI
        if (g.level > 9)
            drop_space(temp);
        else
#endif
        {
            (void)deflateEnd(&strm);
        }
    }
    catch (err) {
        THREADABORT(err);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movl $0x1, 0x1c(%rsp)
xorl %eax, %eax
leaq 0xa0(%rsp), %rbx
movq %rax, 0xc8(%rbx)
movl $0x0, 0xd0(%rbx)
movq %rax, 0xd8(%rbx)
callq 0xe8a0
leaq 0x30ab1(%rip), %r14     # 0x3d684
movl (%r14), %edi
callq 0x3110
movq %rax, 0xe0(%rbx)
movl (%r14), %edi
movq %rbx, %rsi
callq 0x3610
testl %eax, %eax
jne 0xd552
leaq 0xa0(%rsp), %rdi
callq 0x32f0
testl %eax, %eax
jne 0xd494
cmpl $0xa, 0x107cb(%rip)     # 0x1d3dc
jl 0xcc21
leaq 0x3098e(%rip), %rdi     # 0x3d5a8
callq 0xc8a6
jmp 0xcc6b
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdi
movups %xmm0, 0x40(%rdi)
movq $0x0, 0x50(%rdi)
movl 0x107a4(%rip), %r9d     # 0x1d3e0
leaq 0x98bb(%rip), %rax      # 0x164fe
movl $0x8, %edx
movl $0x6, %esi
movl $0xfffffff1, %ecx       # imm = 0xFFFFFFF1
movl %edx, %r8d
pushq $0x70
pushq %rax
callq 0x32a0
addq $0x10, %rsp
testl %eax, %eax
jne 0xd590
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq 0x30909(%rip), %rdi     # 0x3d580
leaq 0x8682(%rip), %r14      # 0x15300
movl $0x6c0, %edx            # imm = 0x6C0
movq %r14, %rsi
callq 0xe2b3
movq 0x308ee(%rip), %rdi     # 0x3d580
xorl %eax, %eax
movl %eax, %edx
movl $0x6c1, %r8d            # imm = 0x6C1
movl $0x1, %esi
movq %r14, %rcx
callq 0xe36e
movq 0x308e0(%rip), %r15     # 0x3d590
testq %r15, %r15
je 0xd437
leaq 0x30(%rsp), %r13
xorl %r12d, %r12d
cmpq $-0x1, (%r15)
je 0xd456
movq 0x38(%r15), %rax
movq %rax, 0x308ba(%rip)     # 0x3d590
testq %rax, %rax
jne 0xcce9
leaq 0x308ae(%rip), %rax     # 0x3d590
movq %rax, 0x3089f(%rip)     # 0x3d588
movq 0x30890(%rip), %rdi     # 0x3d580
movl $0x1, %esi
movq $-0x1, %rdx
leaq 0x85fd(%rip), %rcx      # 0x15300
movl $0x6c9, %r8d            # imm = 0x6C9
callq 0xe311
cmpl $0x9, 0x106c7(%rip)     # 0x1d3dc
jg 0xcd35
movq %r13, %rdi
callq 0x3200
movl 0x106b7(%rip), %esi     # 0x1d3dc
movl 0x106b5(%rip), %edx     # 0x1d3e0
movq %r13, %rdi
callq 0x32e0
jmp 0xcd42
movq 0x10(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x18(%r15), %rax
testq %rax, %rax
je 0xcda4
movq 0x18(%rax), %rcx
movl $0x8000, %r14d          # imm = 0x8000
cmpq %r14, %rcx
cmovbq %rcx, %r14
cmpl $0x9, 0x10679(%rip)     # 0x1d3dc
jg 0xcd7c
subq %r14, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movl %r14d, %edx
movq %r13, %rdi
callq 0x35c0
jmp 0xcd9b
movq 0x10(%rsp), %rbx
movq 0x8(%rbx), %rdi
subq %r14, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movq %r14, %rdx
callq 0x3370
movq %r14, 0x18(%rbx)
movq 0x18(%r15), %rdi
callq 0xd5bf
leaq 0x307fd(%rip), %rdi     # 0x3d5a8
callq 0xc8a6
movq %rax, 0x18(%r15)
cmpl $0x9, 0x10621(%rip)     # 0x1d3dc
jg 0xcdd5
movq 0x10(%r15), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
jmp 0xcdf3
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
addq 0x18(%rax), %rdi
movq 0x10(%r15), %rax
movq 0x8(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x3370
movq 0x20(%r15), %rax
testq %rax, %rax
je 0xce02
movq 0x8(%rax), %rax
jmp 0xce05
movl %r12d, %eax
movq 0x10(%r15), %rcx
movq 0x18(%r15), %rdx
movq 0x18(%rcx), %rcx
movq $0x0, 0x18(%rdx)
movq %rax, %r14
movq %rcx, %rbx
testq %r14, %r14
je 0xce47
movq %r14, %rax
movzbl (%r14), %ecx
testb %cl, %cl
js 0xce4f
shll $0x8, %ecx
movzbl 0x1(%rax), %edx
addq $0x2, %rax
leaq (%rcx,%rdx), %rbp
addq $0x40, %rbp
movq %rax, %r14
jmp 0xce73
movl %r12d, %r14d
movq %rbx, %rbp
jmp 0xce73
leaq 0x1(%rax), %rdx
cmpl $0x80, %ecx
jne 0xce60
movq %rbx, %rbp
jmp 0xce70
cmpb $-0x41, %cl
ja 0xd1de
movl %ecx, %eax
andl $0x3f, %eax
movl %eax, %ebp
movq %rdx, %r14
subq %rbp, %rbx
cmpl $0x9, 0x1055f(%rip)     # 0x1d3dc
jg 0xcf79
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %rbp
jbe 0xcecb
movq %rbp, %rax
movq %rax, %rbp
movl $0x80000000, 0x38(%rsp) # imm = 0x80000000
movq 0x18(%r15), %rsi
movq %r13, %rdi
movl %r12d, %edx
movl $0x80000000, %r12d      # imm = 0x80000000
callq 0xdfdd
movq %rbp, %rcx
addq $-0x80000000, %rcx      # imm = 0x80000000
movq %rcx, %rbp
movq %rcx, %rax
cmpq %r12, %rcx
movl $0x0, %r12d
ja 0xce90
movl %ebp, 0x38(%rsp)
testq %rbx, %rbx
jne 0xcedf
cmpl $0x0, 0x8(%r15)
je 0xd238
callq 0x419c
movq 0x18(%r15), %rsi
cmpq $0x1260, %rax           # imm = 0x1260
leaq 0xc(%rsp), %rbp
jl 0xd1a9
movq %r13, %rdi
movl $0x5, %edx
callq 0xdfdd
movl %r12d, %esi
movq %r13, %rdi
movq %rbp, %rdx
callq 0x3540
movl 0xc(%rsp), %eax
testb $0x1, %al
jne 0xd1a5
cmpl $0x0, 0x104dd(%rip)     # 0x1d404
je 0xd1a5
testb $0x6, %al
je 0xd1b6
movq %r13, %rdi
movl $0xa, %esi
movl $0x2, %edx
callq 0x3400
movl %eax, 0xc(%rsp)
testl %eax, %eax
jne 0xd4d8
movl %r12d, %esi
movq %r13, %rdi
movq %rbp, %rdx
callq 0x3540
testb $0x7, 0xc(%rsp)
jne 0xcf35
movq 0x18(%r15), %rsi
movq %r13, %rdi
movl $0x5, %edx
jmp 0xd1b1
xorl %edx, %edx
movl %edx, %eax
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rsp)
movb $0x0, 0xb(%rsp)
testq %rbx, %rbx
jne 0xcf9f
xorl %eax, %eax
cmpl $0x0, 0x8(%r15)
sete %cl
movb %cl, %al
movl %eax, %edx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %r8
leaq (%r8,%rbp), %r9
subq $0x8, %rsp
leaq 0x10429(%rip), %rdi     # 0x1d3e4
movl $0x2, %esi
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x38(%rsp), %rax
pushq %rax
leaq 0x23(%rsp), %rax
pushq %rax
callq 0xf2fe
addq $0x20, %rsp
movq 0x18(%r15), %rax
movq 0x18(%rax), %rdi
movq 0x20(%rsp), %rdx
leaq (%rdi,%rdx), %rcx
addq $0x5, %rcx
cmpq 0x10(%rax), %rcx
ja 0xd4f7
addq 0x8(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x3370
movq 0x28(%rsp), %rdi
callq 0x3050
movq 0x18(%r15), %rax
movq 0x18(%rax), %rcx
addq 0x20(%rsp), %rcx
movq %rcx, 0x18(%rax)
testq %rbx, %rbx
movb $0x2, %dil
jne 0xd036
cmpl $0x0, 0x8(%r15)
je 0xd19a
movb 0xb(%rsp), %sil
movl %esi, %edx
andb $0x7, %dl
movb %dl, 0xb(%rsp)
testb $0x1, %sil
jne 0xd09b
cmpl $0x0, 0x103b3(%rip)     # 0x1d404
je 0xd09b
testb %dl, %dl
je 0xd19a
movl %edx, %ecx
movl %edi, %eax
shlb %cl, %al
movq 0x18(%r15), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rcx
addb %al, -0x1(%rdx,%rcx)
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb $0x0, (%rcx,%rdx)
movb 0xb(%rsp), %al
addb $0x2, %al
movb %al, 0xb(%rsp)
movl %eax, %ecx
cmpb $0x8, %al
jb 0xd05d
jmp 0xd116
addb $-0x6, %dl
cmpb $-0x6, %dl
ja 0xd0bb
movq 0x8(%rax), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%rax)
movb $0x0, (%rdx,%rcx)
movq 0x18(%r15), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rax), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%rax)
movb %r12b, (%rdx,%rcx)
movq 0x18(%r15), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb $-0x1, %dil
movb %dil, (%rcx,%rdx)
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %dil, (%rcx,%rdx)
cmpl $0x0, 0x102e7(%rip)     # 0x1d404
jne 0xd19a
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %r12b, (%rcx,%rdx)
movq 0x18(%r15), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%r15), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb $-0x1, %dil
movb %dil, (%rcx,%rdx)
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %dil, (%rcx,%rdx)
movq 0x10(%rsp), %rax
addq %rbp, 0x18(%rax)
jmp 0xd1d0
movq 0x18(%r15), %rsi
movq %r13, %rdi
movl $0x2, %edx
callq 0xdfdd
cmpl $0x0, 0x10247(%rip)     # 0x1d404
jne 0xd1d0
movq 0x18(%r15), %rsi
movq %r13, %rdi
movl $0x3, %edx
callq 0xdfdd
movq %rbx, %rcx
testq %rbx, %rbx
jne 0xce1c
jmp 0xd249
movzbl 0x1(%rax), %edx
movl %edx, %esi
movzbl 0x2(%rax), %edx
cmpb $-0x21, %cl
ja 0xd20e
addq $0x3, %rax
andl $0x1f, %ecx
shll $0x10, %ecx
shll $0x8, %esi
orl %ecx, %esi
movl %esi, %ecx
leaq (%rcx,%rdx), %rbp
addq $0x8040, %rbp           # imm = 0x8040
jmp 0xce42
andl $0x1f, %ecx
shll $0x18, %ecx
shll $0x10, %esi
orl %ecx, %esi
movl %edx, %ecx
shll $0x8, %ecx
orl %esi, %ecx
movzbl 0x3(%rax), %edx
addq $0x4, %rax
leaq (%rcx,%rdx), %rbp
addq $0x208040, %rbp         # imm = 0x208040
jmp 0xce42
movq 0x18(%r15), %rsi
movq %r13, %rdi
movl $0x4, %edx
callq 0xdfdd
movq 0x20(%r15), %rdi
callq 0xd5bf
movq $0x0, 0x20(%r15)
movq 0x10(%r15), %rdi
callq 0xcb28
movq 0x3032e(%rip), %rdi     # 0x3d598
leaq 0x808f(%rip), %rsi      # 0x15300
movl $0x778, %edx            # imm = 0x778
callq 0xe2b3
movq 0x3031e(%rip), %rsi     # 0x3d5a0
testq %rsi, %rsi
je 0xd2b5
movq (%r15), %rax
movq %rsi, %rdx
leaq 0x3030c(%rip), %rcx     # 0x3d5a0
movq %rsi, %rdi
cmpq %rax, (%rsi)
jg 0xd2c8
movq %rdx, %rcx
movq 0x38(%rdx), %rsi
testq %rsi, %rsi
je 0xd2c1
movq %rsi, %rdx
movq %rsi, %rdi
cmpq %rax, (%rsi)
jle 0xd29c
jmp 0xd2c4
movl %r12d, %edi
leaq 0x302e1(%rip), %rcx     # 0x3d5a0
jmp 0xd2c8
movl %r12d, %edi
addq $0x38, %rcx
movq %rdi, 0x38(%r15)
movq %r15, (%rcx)
movq 0x302c2(%rip), %rdi     # 0x3d598
movq 0x302c3(%rip), %rax     # 0x3d5a0
movq (%rax), %rdx
movl %r12d, %esi
leaq 0x8016(%rip), %rcx      # 0x15300
movl $0x781, %r8d            # imm = 0x781
callq 0xe311
movq 0x10(%r15), %rax
movq 0x8(%rax), %rbx
movq 0x18(%rax), %r14
cmpl $0x1, 0x10090(%rip)     # 0x1d398
jne 0xd31a
movl %r12d, %edi
movq %rdi, %rsi
movl %r12d, %edx
callq 0x33a0
jmp 0xd328
movl %r12d, %edi
movq %rdi, %rsi
movl %r12d, %edx
callq 0x3120
movq %rax, %rdi
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %r14
jbe 0xd390
movq %rbx, %rcx
movq %r14, %rbx
movq %rcx, %r14
cmpl $0x1, 0x10053(%rip)     # 0x1d398
jne 0xd356
movq %r14, %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0x33a0
jmp 0xd363
movq %r14, %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0x3120
movq %rax, %rdi
movq %rbx, %r8
addq $-0x80000000, %r8       # imm = 0x80000000
subq $-0x80000000, %r14      # imm = 0x80000000
movq %r14, %rsi
movq %r14, %rcx
movq %r8, %rdx
movq %r8, %rbx
movl $0x80000000, %r9d       # imm = 0x80000000
cmpq %r9, %r8
ja 0xd33b
jmp 0xd399
movq %r14, %rdx
movq %rbx, %rsi
movq %rdi, %rax
movq %rax, %rdi
cmpl $0x1, 0xfff5(%rip)      # 0x1d398
jne 0xd3ac
callq 0x33a0
jmp 0xd3b1
callq 0xbee2
movq %rax, %rbx
movq 0x10(%r15), %rdi
callq 0xd5bf
movq %rbx, 0x28(%r15)
movq 0x30(%r15), %rdi
leaq 0x7f34(%rip), %rbx      # 0x15300
movq %rbx, %rsi
movl $0x792, %edx            # imm = 0x792
callq 0xe2b3
movq 0x30(%r15), %rdi
movl %r12d, %esi
movl $0x1, %edx
movq %rbx, %rcx
movl $0x793, %r8d            # imm = 0x793
callq 0xe311
movq 0x30186(%rip), %rdi     # 0x3d580
movq %rbx, %rsi
movl $0x6c0, %edx            # imm = 0x6C0
callq 0xe2b3
movq 0x30172(%rip), %rdi     # 0x3d580
movl %r12d, %edx
movl $0x1, %esi
movq %rbx, %rcx
movl $0x6c1, %r8d            # imm = 0x6C1
callq 0xe36e
movq 0x30165(%rip), %rax     # 0x3d590
movq %rax, %r15
testq %rax, %rax
jne 0xccc1
leaq 0x9596(%rip), %rdi      # 0x169d4
leaq 0x7ebb(%rip), %rsi      # 0x15300
leaq 0x956b(%rip), %rcx      # 0x169b7
movl $0x6c3, %edx            # imm = 0x6C3
callq 0x3220
movq 0x30123(%rip), %rdi     # 0x3d580
leaq 0x7e9c(%rip), %rsi      # 0x15300
movl $0x799, %edx            # imm = 0x799
callq 0xe2e2
cmpl $0xa, 0xff67(%rip)      # 0x1d3dc
jl 0xd483
movq 0x10(%rsp), %rdi
callq 0xd5bf
jmp 0xd48d
leaq 0x30(%rsp), %rdi
callq 0x3420
leaq 0x301f0(%rip), %r14     # 0x3d684
cmpl $0x0, 0x1c(%rsp)
je 0xd4bb
movl (%r14), %edi
movq 0x180(%rsp), %rsi
callq 0x3610
testl %eax, %eax
jne 0xd571
movl $0x0, 0x1c(%rsp)
movl 0x16c(%rsp), %ebp
testl %ebp, %ebp
jne 0xd516
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9501(%rip), %rdi      # 0x169e0
leaq 0x7e1a(%rip), %rsi      # 0x15300
leaq 0x94ca(%rip), %rcx      # 0x169b7
movl $0x731, %edx            # imm = 0x731
callq 0x3220
leaq 0x94ef(%rip), %rdi      # 0x169ed
leaq 0x7dfb(%rip), %rsi      # 0x15300
leaq 0x94ab(%rip), %rcx      # 0x169b7
movl $0x74e, %edx            # imm = 0x74E
callq 0x3220
movl 0x170(%rsp), %r14d
movq 0x178(%rsp), %rbx
cmpl $0x20, %ebp
je 0xd53c
leaq 0x7eda(%rip), %rdi      # 0x1540c
xorl %eax, %eax
movq %rbx, %rsi
callq 0x479d
testl %r14d, %r14d
je 0xd549
movq %rbx, %rdi
callq 0x3050
movl %ebp, %edi
negl %edi
callq 0x4133
leaq 0x7d77(%rip), %rdi      # 0x152d0
leaq 0x7da0(%rip), %rsi      # 0x15300
leaq 0x9450(%rip), %rcx      # 0x169b7
movl $0x6a8, %edx            # imm = 0x6A8
callq 0x3220
leaq 0x7d58(%rip), %rdi      # 0x152d0
leaq 0x7d81(%rip), %rsi      # 0x15300
leaq 0x9431(%rip), %rcx      # 0x169b7
movl $0x7a3, %edx            # imm = 0x7A3
callq 0x3220
cmpl $-0x4, %eax
jne 0xd5aa
leaq 0x8f69(%rip), %rsi      # 0x16505
xorl %eax, %eax
movl %eax, %edx
movl $0xc, %edi
callq 0xe90d
leaq 0x8f66(%rip), %rsi      # 0x16517
xorl %eax, %eax
movl %eax, %edx
movl $0x16, %edi
callq 0xe90d