// File: /workspace/github_c_makefile_star2_O1/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 $0x198, %rsp            # imm = 0x198
movl $0x1, 0x1c(%rsp)
xorl %eax, %eax
leaq 0xb0(%rsp), %rbx
movq %rax, 0xc8(%rbx)
movl $0x0, 0xd0(%rbx)
movq %rax, 0xd8(%rbx)
callq 0xe508
leaq 0x30e83(%rip), %r14     # 0x3d674
movl (%r14), %edi
callq 0x3110
movq %rax, 0xe0(%rbx)
movl (%r14), %edi
movq %rbx, %rsi
callq 0x3600
testl %eax, %eax
jne 0xd1b7
leaq 0xb0(%rsp), %rdi
callq 0x32f0
testl %eax, %eax
jne 0xd0f9
cmpl $0xa, 0x10b9d(%rip)     # 0x1d3cc
jl 0xc83f
leaq 0x30d60(%rip), %rdi     # 0x3d598
callq 0xc4c5
jmp 0xc889
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movups %xmm0, 0x40(%rdi)
movq $0x0, 0x50(%rdi)
movl 0x10b76(%rip), %r9d     # 0x1d3d0
leaq 0x9c9d(%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 0xd1f5
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq 0x30cdb(%rip), %rdi     # 0x3d570
leaq 0x8a64(%rip), %r14      # 0x15300
movl $0x6c0, %edx            # imm = 0x6C0
movq %r14, %rsi
callq 0xdf23
movq 0x30cc0(%rip), %rdi     # 0x3d570
xorl %eax, %eax
movl %eax, %edx
movl $0x6c1, %r8d            # imm = 0x6C1
movl $0x1, %esi
movq %r14, %rcx
callq 0xdfde
movq 0x30cb2(%rip), %rbx     # 0x3d580
testq %rbx, %rbx
je 0xd09c
movl $0x1, %ebp
leaq 0x40(%rsp), %r13
xorl %r12d, %r12d
cmpq $-0x1, (%rbx)
je 0xd0bb
movq 0x38(%rbx), %rax
movq %rax, 0x30c87(%rip)     # 0x3d580
testq %rax, %rax
jne 0xc90c
leaq 0x30c7b(%rip), %rax     # 0x3d580
movq %rax, 0x30c6c(%rip)     # 0x3d578
movq 0x30c5d(%rip), %rdi     # 0x3d570
movl %ebp, %esi
movq $-0x1, %rdx
leaq 0x89dd(%rip), %rcx      # 0x15300
movl $0x6c9, %r8d            # imm = 0x6C9
callq 0xdf81
cmpl $0x9, 0x10a97(%rip)     # 0x1d3cc
jg 0xc955
movq %r13, %rdi
callq 0x3200
movl 0x10a87(%rip), %esi     # 0x1d3cc
movl 0x10a85(%rip), %edx     # 0x1d3d0
movq %r13, %rdi
callq 0x32e0
jmp 0xc962
movq 0x10(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0xc9c4
movq 0x18(%rax), %rcx
movl $0x8000, %r14d          # imm = 0x8000
cmpq %r14, %rcx
cmovbq %rcx, %r14
cmpl $0x9, 0x10a49(%rip)     # 0x1d3cc
jg 0xc99c
subq %r14, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movl %r14d, %edx
movq %r13, %rdi
callq 0x35b0
jmp 0xc9bb
movq 0x10(%rsp), %r15
movq 0x8(%r15), %rdi
subq %r14, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movq %r14, %rdx
callq 0x3360
movq %r14, 0x18(%r15)
movq 0x18(%rbx), %rdi
callq 0xd224
leaq 0x30bcd(%rip), %rdi     # 0x3d598
callq 0xc4c5
movq %rax, 0x18(%rbx)
cmpl $0x9, 0x109f1(%rip)     # 0x1d3cc
jg 0xc9f5
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x40(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0xca13
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
addq 0x18(%rax), %rdi
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x3360
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0xca22
movq 0x8(%rax), %rax
jmp 0xca25
movl %r12d, %eax
movq %rax, %r14
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq 0x18(%rax), %rax
movq $0x0, 0x18(%rcx)
movq %rax, %rbp
testq %r14, %r14
je 0xca58
movq %r14, %rcx
movzbl (%r14), %eax
incq %rcx
movl %eax, %edx
movq %rcx, %rax
movq %rdx, %rcx
jmp 0xca60
movl $0x80, %ecx
movl %r12d, %eax
cmpl $0x7f, %ecx
ja 0xca78
shll $0x8, %ecx
movzbl (%rax), %edx
incq %rax
leaq (%rdx,%rcx), %r15
addq $0x40, %r15
jmp 0xcae9
cmpl $0x80, %ecx
jne 0xca85
movq %rbp, %r15
jmp 0xcae9
cmpl $0xbf, %ecx
ja 0xca95
andl $0x3f, %ecx
movl %ecx, %r15d
jmp 0xcae9
movzbl (%rax), %edx
movl %edx, %esi
movzbl 0x1(%rax), %edx
cmpl $0xdf, %ecx
ja 0xcac4
addq $0x2, %rax
andl $0x1f, %ecx
shll $0x10, %ecx
shll $0x8, %esi
orl %ecx, %esi
movl %esi, %ecx
leaq (%rcx,%rdx), %r15
addq $0x8040, %r15           # imm = 0x8040
jmp 0xcae9
andl $0x1f, %ecx
shll $0x18, %ecx
shll $0x10, %esi
orl %ecx, %esi
movl %edx, %ecx
shll $0x8, %ecx
orl %esi, %ecx
movzbl 0x2(%rax), %edx
addq $0x3, %rax
leaq (%rcx,%rdx), %r15
addq $0x208040, %r15         # imm = 0x208040
movq %rax, %r14
subq %r15, %rbp
cmpl $0x9, 0x108d6(%rip)     # 0x1d3cc
jg 0xcc13
movq %rbp, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %r13, %r14
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, %r15
jbe 0xcb50
movq %r15, %rax
movl $0x80000000, %ebp       # imm = 0x80000000
xorl %r13d, %r13d
movq %r14, %r12
movq %rax, %r15
movl $0x80000000, 0x48(%rsp) # imm = 0x80000000
movq 0x18(%rbx), %rsi
movq %r12, %rdi
movl %r13d, %edx
callq 0xdc4f
movq %r15, %rcx
addq $-0x80000000, %rcx      # imm = 0x80000000
movq %rcx, %r15
movq %rcx, %rax
cmpq %rbp, %rcx
ja 0xcb21
movl %r15d, 0x48(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0xcb67
cmpl $0x0, 0x8(%rbx)
je 0xce91
callq 0x416f
movq 0x18(%rbx), %rsi
cmpq $0x1260, %rax           # imm = 0x1260
movl $0x0, %r12d
movq %r14, %r13
movl $0xa, %ebp
movq %r14, %rdi
jl 0xcd41
movl $0x5, %edx
callq 0xdc4f
movl %r12d, %esi
movq %r13, %rdi
leaq 0xc(%rsp), %rdx
callq 0x3530
movl 0xc(%rsp), %eax
testb $0x1, %al
movq 0x28(%rsp), %r14
jne 0xce5f
cmpl $0x0, 0x10835(%rip)     # 0x1d3f4
je 0xce5f
testb $0x6, %al
je 0xce70
leaq 0xc(%rsp), %r14
movq %r13, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0x33f0
movl %eax, 0xc(%rsp)
testl %eax, %eax
jne 0xd13d
movl %r12d, %esi
movq %r13, %rdi
movq %r14, %rdx
callq 0x3530
testb $0x7, 0xc(%rsp)
jne 0xcbd2
movq 0x18(%rbx), %rsi
movq %r13, %rdi
movl $0x5, %edx
jmp 0xcd46
xorl %edx, %edx
movl %edx, %eax
movq %rax, 0x38(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, 0xb(%rsp)
movq %rbp, %r12
testq %rbp, %rbp
movl $0x2, %ebp
jne 0xcc40
xorl %eax, %eax
cmpl $0x0, 0x8(%rbx)
sete %cl
movb %cl, %al
movl %eax, %edx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %r8
leaq (%r8,%r15), %r9
subq $0x8, %rsp
leaq 0x10778(%rip), %rdi     # 0x1d3d4
movl %ebp, %esi
leaq 0x38(%rsp), %rax
pushq %rax
leaq 0x48(%rsp), %rax
pushq %rax
leaq 0x23(%rsp), %rax
pushq %rax
callq 0xeebb
addq $0x20, %rsp
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdi
movq 0x30(%rsp), %rdx
leaq (%rdi,%rdx), %rcx
addq $0x5, %rcx
cmpq 0x10(%rax), %rcx
ja 0xd15c
addq 0x8(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x3360
movq 0x38(%rsp), %rdi
callq 0x3050
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rcx
addq 0x30(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq %r12, %r8
testq %r12, %r12
movl $0x0, %r12d
jne 0xccd9
cmpl $0x0, 0x8(%rbx)
je 0xce54
movb 0xb(%rsp), %sil
movl %esi, %edx
andb $0x7, %dl
movb %dl, 0xb(%rsp)
testb $0x1, %sil
jne 0xcd55
cmpl $0x0, 0x10700(%rip)     # 0x1d3f4
je 0xcd55
testb %dl, %dl
je 0xcdd0
movb 0xb(%rsp), %cl
movl %ebp, %eax
shll %cl, %eax
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rcx
addb %al, -0x1(%rdx,%rcx)
movq 0x18(%rbx), %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)
cmpb $0x8, %al
jb 0xccfe
jmp 0xcdd0
movl $0x2, %edx
callq 0xdc4f
movq 0x28(%rsp), %r14
jmp 0xce70
addb $-0x6, %dl
cmpb $-0x6, %dl
ja 0xcd6d
movq 0x8(%rax), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%rax)
movb $0x0, (%rdx,%rcx)
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %r12b, (%rcx,%rdx)
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%rbx), %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(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %dil, (%rcx,%rdx)
cmpl $0x0, 0x1061d(%rip)     # 0x1d3f4
jne 0xce54
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %r12b, (%rcx,%rdx)
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%rbx), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %r12b, (%rdx,%rsi)
movq 0x18(%rbx), %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(%rbx), %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 %r15, 0x18(%rax)
jmp 0xceb2
movq 0x18(%rbx), %rsi
movq %r13, %rdi
movl $0x2, %edx
callq 0xdc4f
cmpl $0x0, 0x1057d(%rip)     # 0x1d3f4
movq 0x20(%rsp), %r8
jne 0xceb2
movq 0x18(%rbx), %rsi
movq %r13, %rdi
movl $0x3, %edx
callq 0xdc4f
jmp 0xcead
movq 0x18(%rbx), %rsi
movq %r14, %r13
movq %r14, %rdi
movl $0x4, %edx
callq 0xdc4f
xorl %r12d, %r12d
movq 0x28(%rsp), %r14
movq 0x20(%rsp), %r8
movq %r8, %rax
testq %r8, %r8
jne 0xca3c
movq 0x20(%rbx), %rdi
callq 0xd224
movq $0x0, 0x20(%rbx)
movq 0x10(%rbx), %rdi
callq 0xc746
movq 0x306a9(%rip), %rdi     # 0x3d588
leaq 0x841a(%rip), %rsi      # 0x15300
movl $0x778, %edx            # imm = 0x778
callq 0xdf23
movq 0x30699(%rip), %rcx     # 0x3d590
testq %rcx, %rcx
je 0xcf33
movq (%rbx), %rax
movq %rcx, %rsi
leaq 0x30687(%rip), %rdx     # 0x3d590
movq %rcx, %rdi
cmpq %rax, (%rcx)
movl $0x80000000, %ebp       # imm = 0x80000000
jg 0xcf42
movq %rsi, %rdx
movq 0x38(%rsi), %rcx
testq %rcx, %rcx
je 0xcf2a
movq %rcx, %rsi
cmpq %rax, (%rcx)
jle 0xcf16
addq $0x38, %rdx
movq %rcx, %rdi
jmp 0xcf42
leaq 0x30656(%rip), %rdx     # 0x3d590
movq %rcx, %rdi
movl $0x80000000, %ebp       # imm = 0x80000000
movq %rdi, 0x38(%rbx)
movq %rbx, (%rdx)
movq 0x30638(%rip), %rdi     # 0x3d588
movq 0x30639(%rip), %rax     # 0x3d590
movq (%rax), %rdx
movl %r12d, %esi
leaq 0x839c(%rip), %rcx      # 0x15300
movl $0x781, %r8d            # imm = 0x781
callq 0xdf81
movq 0x10(%rbx), %rax
movq 0x8(%rax), %r14
movq 0x18(%rax), %r15
cmpl $0x1, 0x10406(%rip)     # 0x1d388
jne 0xcf94
movl %r12d, %edi
movq %rdi, %rsi
movl %r12d, %edx
callq 0x3390
jmp 0xcfa2
movl %r12d, %edi
movq %rdi, %rsi
movl %r12d, %edx
callq 0x3120
movq %rax, %rdi
cmpq %rbp, %r15
jbe 0xcff3
cmpl $0x1, 0x103d7(%rip)     # 0x1d388
jne 0xcfc2
movq %r14, %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0x3390
jmp 0xcfcf
movq %r14, %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0x3120
movq %rax, %rdi
movq %r15, %rcx
addq $-0x80000000, %rcx      # imm = 0x80000000
subq $-0x80000000, %r14      # imm = 0x80000000
movq %r14, %rsi
movq %rcx, %rdx
movq %rcx, %r15
cmpq %rbp, %rcx
ja 0xcfaa
jmp 0xcffc
movq %r15, %rdx
movq %r14, %rsi
movq %rdi, %rax
movq %rax, %rdi
cmpl $0x1, 0x10382(%rip)     # 0x1d388
jne 0xd00f
callq 0x3390
jmp 0xd014
callq 0xbaff
movl $0x1, %ebp
movq %rax, %r14
movq 0x10(%rbx), %rdi
callq 0xd224
movq %r14, 0x28(%rbx)
movq 0x30(%rbx), %rdi
leaq 0x82cc(%rip), %r14      # 0x15300
movq %r14, %rsi
movl $0x792, %edx            # imm = 0x792
callq 0xdf23
movq 0x30(%rbx), %rdi
movl %r12d, %esi
movl $0x1, %edx
movq %r14, %rcx
movl $0x793, %r8d            # imm = 0x793
callq 0xdf81
movq 0x3050e(%rip), %rdi     # 0x3d570
movq %r14, %rsi
movl $0x6c0, %edx            # imm = 0x6C0
callq 0xdf23
movq 0x304fa(%rip), %rdi     # 0x3d570
movl %r12d, %edx
movl %ebp, %esi
movq %r14, %rcx
movl $0x6c1, %r8d            # imm = 0x6C1
callq 0xdfde
movq 0x304f0(%rip), %rax     # 0x3d580
movq %rax, %rbx
testq %rax, %rax
jne 0xc8e4
leaq 0x9931(%rip), %rdi      # 0x169d4
leaq 0x8256(%rip), %rsi      # 0x15300
leaq 0x9906(%rip), %rcx      # 0x169b7
movl $0x6c3, %edx            # imm = 0x6C3
callq 0x3220
movq 0x304ae(%rip), %rdi     # 0x3d570
leaq 0x8237(%rip), %rsi      # 0x15300
movl $0x799, %edx            # imm = 0x799
callq 0xdf52
cmpl $0xa, 0x102f2(%rip)     # 0x1d3cc
jl 0xd0e8
movq 0x10(%rsp), %rdi
callq 0xd224
jmp 0xd0f2
leaq 0x40(%rsp), %rdi
callq 0x3410
leaq 0x3057b(%rip), %r14     # 0x3d674
cmpl $0x0, 0x1c(%rsp)
je 0xd120
movl (%r14), %edi
movq 0x190(%rsp), %rsi
callq 0x3600
testl %eax, %eax
jne 0xd1d6
movl $0x0, 0x1c(%rsp)
movl 0x17c(%rsp), %ebp
testl %ebp, %ebp
jne 0xd17b
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x989c(%rip), %rdi      # 0x169e0
leaq 0x81b5(%rip), %rsi      # 0x15300
leaq 0x9865(%rip), %rcx      # 0x169b7
movl $0x731, %edx            # imm = 0x731
callq 0x3220
leaq 0x988a(%rip), %rdi      # 0x169ed
leaq 0x8196(%rip), %rsi      # 0x15300
leaq 0x9846(%rip), %rcx      # 0x169b7
movl $0x74e, %edx            # imm = 0x74E
callq 0x3220
movl 0x180(%rsp), %r14d
movq 0x188(%rsp), %rbx
cmpl $0x20, %ebp
je 0xd1a1
leaq 0x8275(%rip), %rdi      # 0x1540c
xorl %eax, %eax
movq %rbx, %rsi
callq 0x476b
testl %r14d, %r14d
je 0xd1ae
movq %rbx, %rdi
callq 0x3050
movl %ebp, %edi
negl %edi
callq 0x4106
leaq 0x8112(%rip), %rdi      # 0x152d0
leaq 0x813b(%rip), %rsi      # 0x15300
leaq 0x97eb(%rip), %rcx      # 0x169b7
movl $0x6a8, %edx            # imm = 0x6A8
callq 0x3220
leaq 0x80f3(%rip), %rdi      # 0x152d0
leaq 0x811c(%rip), %rsi      # 0x15300
leaq 0x97cc(%rip), %rcx      # 0x169b7
movl $0x7a3, %edx            # imm = 0x7A3
callq 0x3220
cmpl $-0x4, %eax
jne 0xd20f
leaq 0x9304(%rip), %rsi      # 0x16505
xorl %eax, %eax
movl %eax, %edx
movl $0xc, %edi
callq 0xe575
leaq 0x9301(%rip), %rsi      # 0x16517
xorl %eax, %eax
movl %eax, %edx
movl $0x16, %edi
callq 0xe575