// File: /workspace/github_c_makefile_star2_O2/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)
leaq 0xb0(%rsp), %rbx
andq $0x0, 0xc8(%rbx)
andl $0x0, 0xd0(%rbx)
andq $0x0, 0xd8(%rbx)
callq 0xdcdc
leaq 0x30600(%rip), %r14     # 0x3c674
movl (%r14), %edi
callq 0x3110
movq %rax, 0xe0(%rbx)
movl (%r14), %edi
movq %rbx, %rsi
callq 0x3600
testl %eax, %eax
jne 0xc91a
leaq 0xb0(%rsp), %rdi
callq 0x32f0
testl %eax, %eax
jne 0xc83d
cmpl $0xa, 0x1031a(%rip)     # 0x1c3cc
jl 0xc0c2
leaq 0x304dd(%rip), %rdi     # 0x3c598
callq 0xbd62
jmp 0xc103
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movups %xmm0, 0x40(%rdi)
andq $0x0, 0x50(%rdi)
movl 0x102f6(%rip), %r9d     # 0x1c3d0
leaq 0x9425(%rip), %rax      # 0x15506
pushq $0x6
popq %rsi
pushq $-0xf
popq %rcx
pushq $0x8
popq %rdx
movl %edx, %r8d
pushq $0x70
pushq %rax
callq 0x32a0
addq $0x10, %rsp
testl %eax, %eax
jne 0xc958
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl $0x80000000, %r14d      # imm = 0x80000000
leaq 0x81eb(%rip), %rbx      # 0x14300
xorl %ebp, %ebp
movl %ebp, %eax
movq %rax, 0x38(%rsp)
leaq 0x40(%rsp), %r12
movq 0x30446(%rip), %rdi     # 0x3c570
movq %rbx, %rsi
movl $0x6c0, %edx            # imm = 0x6C0
callq 0xd763
movq 0x30432(%rip), %rdi     # 0x3c570
pushq $0x1
popq %rsi
movq 0x38(%rsp), %rdx
movq %rbx, %rcx
movl $0x6c1, %r8d            # imm = 0x6C1
callq 0xd81e
movq 0x30425(%rip), %r13     # 0x3c580
testq %r13, %r13
je 0xc8bf
cmpq $-0x1, (%r13)
je 0xc7ff
movq 0x38(%r13), %rax
movq %rax, 0x30406(%rip)     # 0x3c580
testq %rax, %rax
jne 0xc18d
leaq 0x303fa(%rip), %rax     # 0x3c580
movq %rax, 0x303eb(%rip)     # 0x3c578
movq 0x303dc(%rip), %rdi     # 0x3c570
pushq $0x1
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rcx
movl $0x6c9, %r8d            # imm = 0x6C9
callq 0xd7c1
cmpl $0x9, 0x1021d(%rip)     # 0x1c3cc
jg 0xc1cf
movq %r12, %rdi
callq 0x3200
movl 0x1020d(%rip), %esi     # 0x1c3cc
movl 0x1020b(%rip), %edx     # 0x1c3d0
movq %r12, %rdi
callq 0x32e0
jmp 0xc1d9
movq 0x10(%rsp), %rax
andq $0x0, 0x18(%rax)
movq 0x18(%r13), %rax
testq %rax, %rax
je 0xc239
movq 0x18(%rax), %rcx
movl $0x8000, %ebx           # imm = 0x8000
cmpq %rbx, %rcx
cmovbq %rcx, %rbx
cmpl $0x9, 0x101d3(%rip)     # 0x1c3cc
jg 0xc211
subq %rbx, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movl %ebx, %edx
movq %r12, %rdi
callq 0x35b0
jmp 0xc230
movq 0x10(%rsp), %r15
movq 0x8(%r15), %rdi
subq %rbx, %rcx
movq %rcx, %rsi
addq 0x8(%rax), %rsi
movq %rbx, %rdx
callq 0x3360
movq %rbx, 0x18(%r15)
movq 0x18(%r13), %rdi
callq 0xc97f
leaq 0x30358(%rip), %rdi     # 0x3c598
callq 0xbd62
movq %rax, 0x18(%r13)
cmpl $0x9, 0x1017c(%rip)     # 0x1c3cc
jg 0xc26a
movq 0x10(%r13), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x40(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0xc288
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
addq 0x18(%rax), %rdi
movq 0x10(%r13), %rax
movq 0x8(%rax), %rsi
movq 0x18(%rax), %rdx
callq 0x3360
movq 0x20(%r13), %rax
testq %rax, %rax
je 0xc297
movq 0x8(%rax), %rax
jmp 0xc299
movl %ebp, %eax
movq 0x10(%r13), %rcx
movq 0x18(%r13), %rdx
movq 0x18(%rcx), %rcx
andq $0x0, 0x18(%rdx)
movq %rcx, %r15
testq %rax, %rax
je 0xc2d1
movzbl (%rax), %ecx
testb %cl, %cl
js 0xc2d5
shll $0x8, %ecx
movzbl 0x1(%rax), %edx
addq $0x2, %rax
leaq (%rcx,%rdx), %rbx
addq $0x40, %rbx
movq %rax, %rdx
jmp 0xc2e8
movl %ebp, %edx
jmp 0xc2e5
leaq 0x1(%rax), %rdx
cmpl $0x80, %ecx
jne 0xc631
movq %r15, %rbx
movq %rdx, 0x30(%rsp)
subq %rbx, %r15
cmpl $0x9, 0x100d5(%rip)     # 0x1c3cc
jle 0xc445
andq $0x0, 0x28(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0xb(%rsp)
xorl %edx, %edx
testq %r15, %r15
jne 0xc323
xorl %eax, %eax
cmpl $0x0, 0x8(%r13)
sete %cl
movb %cl, %al
movl %eax, %edx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %r8
leaq (%r8,%rbx), %r9
subq $0x8, %rsp
leaq 0x10095(%rip), %rdi     # 0x1c3d4
pushq $0x2
popq %rsi
leaq 0x28(%rsp), %rax
pushq %rax
leaq 0x38(%rsp), %rax
pushq %rax
leaq 0x23(%rsp), %rax
pushq %rax
callq 0xe57e
addq $0x20, %rsp
movq 0x18(%r13), %rax
movq 0x18(%rax), %rdi
movq 0x20(%rsp), %rdx
leaq (%rdi,%rdx), %rcx
addq $0x5, %rcx
cmpq 0x10(%rax), %rcx
ja 0xc8a0
addq 0x8(%rax), %rdi
movq 0x28(%rsp), %rsi
callq 0x3360
movq 0x28(%rsp), %rdi
callq 0x3050
movq 0x18(%r13), %rax
movq 0x18(%rax), %rcx
addq 0x20(%rsp), %rcx
movq %rcx, 0x18(%rax)
testq %r15, %r15
movb $0x2, %dil
jne 0xc3b8
cmpl $0x0, 0x8(%r13)
je 0xc5ec
movb 0xb(%rsp), %sil
movl %esi, %edx
andb $0x7, %dl
movb %dl, 0xb(%rsp)
testb $0x1, %sil
jne 0xc4ed
cmpl $0x0, 0x1001d(%rip)     # 0x1c3f4
je 0xc4ed
testb %dl, %dl
je 0xc5ec
movl %edx, %ecx
movl %edi, %eax
shlb %cl, %al
movq 0x18(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rcx
addb %al, -0x1(%rdx,%rcx)
movq 0x18(%r13), %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 0xc3e7
jmp 0xc568
movl $0x80000000, 0x48(%rsp) # imm = 0x80000000
movq 0x18(%r13), %rsi
movq %r12, %rdi
movl %ebp, %edx
callq 0xd488
addq $-0x80000000, %rbx      # imm = 0x80000000
cmpq %r14, %rbx
ja 0xc428
movl %ebx, 0x48(%rsp)
testq %r15, %r15
jne 0xc45e
cmpl $0x0, 0x8(%r13)
je 0xc69c
callq 0x3e21
movq 0x18(%r13), %rsi
cmpq $0x1260, %rax           # imm = 0x1260
leaq 0xc(%rsp), %rbx
jl 0xc5fb
movq %r12, %rdi
pushq $0x5
popq %rdx
callq 0xd488
movl %ebp, %esi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x3530
movl 0xc(%rsp), %eax
testb $0x1, %al
jne 0xc5f7
cmpl $0x0, 0xff51(%rip)      # 0x1c3f4
je 0xc5f7
testb $0x6, %al
je 0xc606
movq %r12, %rdi
pushq $0xa
popq %rsi
pushq $0x2
popq %rdx
callq 0x33f0
movl %eax, 0xc(%rsp)
testl %eax, %eax
jne 0xc881
movl %ebp, %esi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x3530
testb $0x7, 0xc(%rsp)
jne 0xc4b1
movq 0x18(%r13), %rsi
movq %r12, %rdi
pushq $0x5
jmp 0xc600
addb $-0x6, %dl
cmpb $-0x6, %dl
ja 0xc50d
movq 0x8(%rax), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%rax)
movb $0x0, (%rdx,%rcx)
movq 0x18(%r13), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rax), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%rax)
movb %bpl, (%rdx,%rcx)
movq 0x18(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %bpl, (%rdx,%rsi)
movq 0x18(%r13), %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(%r13), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %dil, (%rcx,%rdx)
cmpl $0x0, 0xfe85(%rip)      # 0x1c3f4
jne 0xc5ec
movq 0x18(%r13), %rax
movq 0x8(%rax), %rcx
movq 0x18(%rax), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x18(%rax)
movb %bpl, (%rcx,%rdx)
movq 0x18(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %bpl, (%rdx,%rsi)
movq 0x18(%r13), %rcx
movq 0x8(%rcx), %rdx
movq 0x18(%rcx), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x18(%rcx)
movb %bpl, (%rdx,%rsi)
movq 0x18(%r13), %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(%r13), %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 %rbx, 0x18(%rax)
jmp 0xc61e
movq 0x18(%r13), %rsi
movq %r12, %rdi
pushq $0x2
popq %rdx
callq 0xd488
cmpl $0x0, 0xfde7(%rip)      # 0x1c3f4
jne 0xc61e
movq 0x18(%r13), %rsi
movq %r12, %rdi
pushq $0x3
popq %rdx
callq 0xd488
movq %r15, %rcx
movq 0x30(%rsp), %rax
testq %r15, %r15
jne 0xc2aa
jmp 0xc6ab
cmpb $-0x41, %cl
ja 0xc642
movl %ecx, %eax
andl $0x3f, %eax
movl %eax, %ebx
jmp 0xc2e8
movzbl 0x1(%rax), %edx
movl %edx, %esi
movzbl 0x2(%rax), %edx
cmpb $-0x21, %cl
ja 0xc672
addq $0x3, %rax
andl $0x1f, %ecx
shll $0x10, %ecx
shll $0x8, %esi
orl %ecx, %esi
movl %esi, %ecx
leaq (%rcx,%rdx), %rbx
addq $0x8040, %rbx           # imm = 0x8040
jmp 0xc2cc
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), %rbx
addq $0x208040, %rbx         # imm = 0x208040
jmp 0xc2cc
movq 0x18(%r13), %rsi
movq %r12, %rdi
pushq $0x4
popq %rdx
callq 0xd488
movq 0x20(%r13), %rdi
callq 0xc97f
andq $0x0, 0x20(%r13)
movq 0x10(%r13), %rdi
callq 0xbfd0
movq 0x2febf(%rip), %rdi     # 0x3c588
leaq 0x7c30(%rip), %rbx      # 0x14300
movq %rbx, %rsi
movl $0x778, %edx            # imm = 0x778
callq 0xd763
leaq 0x2feac(%rip), %rax     # 0x3c590
movq (%rax), %rcx
testq %rcx, %rcx
je 0xc6fe
movq (%rcx), %rdx
cmpq (%r13), %rdx
jg 0xc6fe
addq $0x38, %rcx
movq %rcx, %rax
jmp 0xc6e4
movq %rcx, 0x38(%r13)
movq %r13, (%rax)
movq 0x2fe7c(%rip), %rdi     # 0x3c588
movq 0x2fe7d(%rip), %rax     # 0x3c590
movq (%rax), %rdx
movl %ebp, %esi
movq %rbx, %rcx
movl $0x781, %r8d            # imm = 0x781
callq 0xd7c1
movq 0x10(%r13), %rax
movq 0x8(%rax), %rbx
movq 0x18(%rax), %r15
cmpl $0x1, 0xfc4f(%rip)      # 0x1c388
jne 0xc749
movl %ebp, %edi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x3390
jmp 0xc756
movl %ebp, %edi
movq %rdi, %rsi
movq %rdi, %rdx
callq 0xb419
movq %rax, %rdi
movq %r15, %rax
movq %rbx, %r15
movq %rax, %rbx
movl 0xfc20(%rip), %eax      # 0x1c388
cmpq %r14, %rbx
jbe 0xc79f
movq %r15, %rsi
cmpl $0x1, %eax
jne 0xc781
movl $0x80000000, %edx       # imm = 0x80000000
callq 0x3390
jmp 0xc789
movq %r14, %rdx
callq 0xb419
movq %rax, %rdi
addq $-0x80000000, %rbx      # imm = 0x80000000
subq $-0x80000000, %r15      # imm = 0x80000000
movq %rbx, %rax
jmp 0xc75f
cmpl $0x1, %eax
jne 0xc7b0
movl %ebx, %edx
movq %r15, %rsi
callq 0x3390
jmp 0xc7bb
movq %r15, %rsi
movq %rbx, %rdx
callq 0xb419
movq %rax, %rbx
movq 0x10(%r13), %rdi
callq 0xc97f
movq %rbx, 0x28(%r13)
movq 0x30(%r13), %rdi
leaq 0x7b2a(%rip), %rbx      # 0x14300
movq %rbx, %rsi
movl $0x792, %edx            # imm = 0x792
callq 0xd763
movq 0x30(%r13), %rdi
movl %ebp, %esi
pushq $0x1
popq %rdx
movq %rbx, %rcx
movl $0x793, %r8d            # imm = 0x793
callq 0xd7c1
jmp 0xc123
movq 0x2fd6a(%rip), %rdi     # 0x3c570
leaq 0x7af3(%rip), %rsi      # 0x14300
movl $0x799, %edx            # imm = 0x799
callq 0xd792
cmpl $0xa, 0xfbae(%rip)      # 0x1c3cc
jl 0xc82c
movq 0x10(%rsp), %rdi
callq 0xc97f
jmp 0xc836
leaq 0x40(%rsp), %rdi
callq 0x3410
leaq 0x2fe37(%rip), %r14     # 0x3c674
cmpl $0x0, 0x1c(%rsp)
je 0xc864
movl (%r14), %edi
movq 0x190(%rsp), %rsi
callq 0x3600
testl %eax, %eax
jne 0xc939
movl $0x0, 0x1c(%rsp)
movl 0x17c(%rsp), %ebp
testl %ebp, %ebp
jne 0xc8de
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9160(%rip), %rdi      # 0x159e8
leaq 0x7a71(%rip), %rsi      # 0x14300
leaq 0x9129(%rip), %rcx      # 0x159bf
movl $0x731, %edx            # imm = 0x731
callq 0x3220
leaq 0x914e(%rip), %rdi      # 0x159f5
leaq 0x7a52(%rip), %rsi      # 0x14300
leaq 0x910a(%rip), %rcx      # 0x159bf
movl $0x74e, %edx            # imm = 0x74E
callq 0x3220
leaq 0x9116(%rip), %rdi      # 0x159dc
leaq 0x7a33(%rip), %rsi      # 0x14300
leaq 0x90eb(%rip), %rcx      # 0x159bf
movl $0x6c3, %edx            # imm = 0x6C3
callq 0x3220
movl 0x180(%rsp), %r14d
movq 0x188(%rsp), %rbx
cmpl $0x20, %ebp
je 0xc904
leaq 0x7b12(%rip), %rdi      # 0x1440c
xorl %eax, %eax
movq %rbx, %rsi
callq 0x4419
testl %r14d, %r14d
je 0xc911
movq %rbx, %rdi
callq 0x3050
movl %ebp, %edi
negl %edi
callq 0x3dc0
leaq 0x79af(%rip), %rdi      # 0x142d0
leaq 0x79d8(%rip), %rsi      # 0x14300
leaq 0x9090(%rip), %rcx      # 0x159bf
movl $0x6a8, %edx            # imm = 0x6A8
callq 0x3220
leaq 0x7990(%rip), %rdi      # 0x142d0
leaq 0x79b9(%rip), %rsi      # 0x14300
leaq 0x9071(%rip), %rcx      # 0x159bf
movl $0x7a3, %edx            # imm = 0x7A3
callq 0x3220
cmpl $-0x4, %eax
jne 0xc96c
leaq 0x8ba9(%rip), %rsi      # 0x1550d
xorl %eax, %eax
movl %eax, %edx
pushq $0xc
jmp 0xc979
leaq 0x8bac(%rip), %rsi      # 0x1551f
xorl %eax, %eax
movl %eax, %edx
pushq $0x16
popq %rdi
callq 0xdd45