// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x8(%rbp)
movl $0x1, -0x14c(%rbp)
movl $0x0, -0x80(%rbp)
movl $0x0, -0x7c(%rbp)
movl $0x0, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
callq 0x12220
leaq 0x34782(%rip), %rax     # 0x43ab4
movl (%rax), %edi
callq 0x3110
movq %rax, -0x68(%rbp)
leaq 0x34770(%rip), %rax     # 0x43ab4
movl (%rax), %edi
leaq -0x148(%rbp), %rsi
callq 0x35f0
movl %eax, -0x150(%rbp)
cmpl $0x0, -0x150(%rbp)
jne 0xf36b
movb $0x1, %al
testb $0x1, %al
jne 0xf369
jmp 0xf36b
jmp 0xf38a
leaq 0xcea8(%rip), %rdi      # 0x1c21a
leaq 0xced1(%rip), %rsi      # 0x1c24a
movl $0x6a8, %edx            # imm = 0x6A8
leaq 0xe598(%rip), %rcx      # 0x1d91d
callq 0x3220
jmp 0xf38c
leaq -0x148(%rbp), %rdi
callq 0x32f0
cmpl $0x0, %eax
jne 0x1008d
jmp 0xf3a3
movq $0x0, -0x1c8(%rbp)
cmpl $0x9, 0x14457(%rip)     # 0x2380c
jle 0xf3cf
leaq 0x3461a(%rip), %rdi     # 0x439d8
callq 0xee00
movq %rax, -0x1c8(%rbp)
jmp 0xf468
movq $0x0, -0x178(%rbp)
movq $0x0, -0x180(%rbp)
movq $0x0, -0x170(%rbp)
movl 0x14419(%rip), %r9d     # 0x23810
leaq -0x1c0(%rbp), %rdi
movl $0x6, %esi
movl $0x8, %r8d
movl $0xfffffff1, %ecx       # imm = 0xFFFFFFF1
leaq 0xe04b(%rip), %rax      # 0x1d460
movl %r8d, %edx
movq %rax, (%rsp)
movl $0x70, 0x8(%rsp)
callq 0x32a0
movl %eax, -0x48(%rbp)
cmpl $-0x4, -0x48(%rbp)
jne 0xf449
movl $0xc, %edi
leaq 0xe029(%rip), %rsi      # 0x1d467
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0x122d0
cmpl $0x0, -0x48(%rbp)
je 0xf466
movl $0x16, %edi
leaq 0xe01e(%rip), %rsi      # 0x1d479
xorl %eax, %eax
movl %eax, %edx
movb $0x0, %al
callq 0x122d0
jmp 0xf468
jmp 0xf46a
movq 0x3453f(%rip), %rdi     # 0x439b0
leaq 0xcdd2(%rip), %rsi      # 0x1c24a
movl $0x6c0, %edx            # imm = 0x6C0
callq 0x11900
movq 0x34527(%rip), %rdi     # 0x439b0
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
leaq 0xcdb1(%rip), %rcx      # 0x1c24a
movl $0x6c1, %r8d            # imm = 0x6C1
callq 0x11a50
movq 0x34515(%rip), %rax     # 0x439c0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xf4b8
jmp 0xf4d7
leaq 0xe47b(%rip), %rdi      # 0x1d93a
leaq 0xcd84(%rip), %rsi      # 0x1c24a
movl $0x6c3, %edx            # imm = 0x6C3
leaq 0xe44b(%rip), %rcx      # 0x1d91d
callq 0x3220
movq -0x10(%rbp), %rax
cmpq $-0x1, (%rax)
jne 0xf4e6
jmp 0x1004e
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x344cb(%rip)     # 0x439c0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jne 0xf50e
leaq 0x344b9(%rip), %rax     # 0x439c0
movq %rax, 0x344aa(%rip)     # 0x439b8
movq 0x3449b(%rip), %rdi     # 0x439b0
movl $0x1, %esi
movq $-0x1, %rdx
leaq 0xcd22(%rip), %rcx      # 0x1c24a
movl $0x6c9, %r8d            # imm = 0x6C9
callq 0x119a0
cmpl $0x9, 0x142d2(%rip)     # 0x2380c
jg 0xf562
leaq -0x1c0(%rbp), %rdi
callq 0x3200
movl 0x142be(%rip), %esi     # 0x2380c
movl 0x142bc(%rip), %edx     # 0x23810
leaq -0x1c0(%rbp), %rdi
callq 0x32e0
jmp 0xf571
movq -0x1c8(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0xf63b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x8000, -0x40(%rbp)    # imm = 0x8000
jae 0xf5a7
movq -0x40(%rbp), %rax
movq %rax, -0x1f0(%rbp)
jmp 0xf5b5
movl $0x8000, %eax           # imm = 0x8000
movq %rax, -0x1f0(%rbp)
jmp 0xf5b5
movq -0x1f0(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpl $0x9, 0x14245(%rip)     # 0x2380c
jg 0xf5f4
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x40(%rbp), %rax
subq -0x38(%rbp), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movl %eax, %edx
leaq -0x1c0(%rbp), %rdi
callq 0x35a0
jmp 0xf62e
movq -0x1c8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x40(%rbp), %rax
subq -0x38(%rbp), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rdx
callq 0x3360
movq -0x38(%rbp), %rcx
movq -0x1c8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x10160
leaq 0x34396(%rip), %rdi     # 0x439d8
callq 0xee00
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
cmpl $0x9, 0x141b3(%rip)     # 0x2380c
jg 0xf683
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1c0(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1a8(%rbp)
jmp 0xf6b6
movq -0x1c8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x1c8(%rbp), %rax
addq 0x18(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rdx
callq 0x3360
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0xf6cc
xorl %eax, %eax
movq %rax, -0x1f8(%rbp)
jmp 0xf6df
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq $0x0, 0x18(%rax)
cmpq $0x0, -0x30(%rbp)
jne 0xf71e
movl $0x80, %eax
movl %eax, -0x1fc(%rbp)
jmp 0xf736
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %eax
movl %eax, -0x1fc(%rbp)
movl -0x1fc(%rbp), %eax
cltq
movq %rax, -0x40(%rbp)
cmpq $0x80, -0x40(%rbp)
jae 0xf776
movq -0x40(%rbp), %rax
shlq $0x8, %rax
movq -0x30(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movzbl (%rcx), %ecx
addq %rcx, %rax
addq $0x40, %rax
movq %rax, -0x40(%rbp)
jmp 0xf86b
cmpq $0x80, -0x40(%rbp)
jne 0xf78d
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xf869
cmpq $0xc0, -0x40(%rbp)
jae 0xf7a8
movq -0x40(%rbp), %rax
andq $0x3f, %rax
movq %rax, -0x40(%rbp)
jmp 0xf867
cmpq $0xe0, -0x40(%rbp)
jae 0xf7fe
movq -0x40(%rbp), %rax
andq $0x1f, %rax
shlq $0x10, %rax
movq -0x30(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movzbl (%rcx), %ecx
shlq $0x8, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %eax
addl $0x8040, %eax           # imm = 0x8040
movl %eax, %eax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xf865
movq -0x40(%rbp), %rax
andq $0x1f, %rax
shlq $0x18, %rax
movq -0x30(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x30(%rbp)
movzbl (%rcx), %ecx
shlq $0x10, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %eax
shlq $0x8, %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x30(%rbp)
movzbl (%rax), %eax
addq $0x208040, %rax         # imm = 0x208040
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0xf867
jmp 0xf869
jmp 0xf86b
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpl $0x9, 0x13f8b(%rip)     # 0x2380c
jg 0xfa3e
jmp 0xf889
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, -0x40(%rbp)
jbe 0xf8cb
movl $0x80000000, -0x1b8(%rbp) # imm = 0x80000000
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
xorl %edx, %edx
callq 0x11330
movq -0x40(%rbp), %rax
movabsq $0x80000000, %rcx       # imm = 0x80000000
subq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0xf889
movq -0x40(%rbp), %rax
movl %eax, -0x1b8(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0xf8ea
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0xfa20
callq 0x40b0
cmpq $0x1260, %rax           # imm = 0x1260
jl 0xf9e3
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x5, %edx
callq 0x11330
leaq -0x1c0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq -0x44(%rbp), %rdx
callq 0x3530
movl -0x44(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xf93c
cmpl $0x0, 0x13efa(%rip)     # 0x23834
jne 0xf95a
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x2, %edx
callq 0x11330
jmp 0xf9e1
movl -0x44(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
je 0xf9df
jmp 0xf967
leaq -0x1c0(%rbp), %rdi
movl $0xa, %esi
movl $0x2, %edx
callq 0x33f0
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x44(%rbp)
jne 0xf988
jmp 0xf9a7
leaq 0xdfb7(%rip), %rdi      # 0x1d946
leaq 0xc8b4(%rip), %rsi      # 0x1c24a
movl $0x731, %edx            # imm = 0x731
leaq 0xdf7b(%rip), %rcx      # 0x1d91d
callq 0x3220
leaq -0x1c0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq -0x44(%rbp), %rdx
callq 0x3530
movl -0x44(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
jne 0xf967
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x5, %edx
callq 0x11330
jmp 0xf9e1
jmp 0xf9fc
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x2, %edx
callq 0x11330
cmpl $0x0, 0x13e31(%rip)     # 0x23834
jne 0xfa1e
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x3, %edx
callq 0x11330
jmp 0xfa39
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
leaq -0x1c0(%rbp), %rdi
movl $0x4, %edx
callq 0x11330
jmp 0xfe07
movq $0x0, -0x1d8(%rbp)
movq $0x0, -0x1e0(%rbp)
movb $0x0, -0x1c9(%rbp)
movb $0x1, %al
cmpq $0x0, -0x38(%rbp)
movb %al, -0x1fd(%rbp)
jne 0xfa7b
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
setne %al
movb %al, -0x1fd(%rbp)
movb -0x1fd(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %edx
movq -0x1c8(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x1c8(%rbp), %rax
movq 0x18(%rax), %r8
movq -0x1c8(%rbp), %rax
movq 0x18(%rax), %r9
addq -0x40(%rbp), %r9
leaq 0x13ccc(%rip), %rdi     # 0x23780
addq $0x94, %rdi
movl $0x2, %esi
leaq -0x1c9(%rbp), %r11
leaq -0x1d8(%rbp), %r10
leaq -0x1e0(%rbp), %rax
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x12d90
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rax), %rax
addq -0x1e0(%rbp), %rax
addq $0x5, %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
cmpq 0x10(%rcx), %rax
ja 0xfb0f
jmp 0xfb2e
leaq 0xde3d(%rip), %rdi      # 0x1d953
leaq 0xc72d(%rip), %rsi      # 0x1c24a
movl $0x74e, %edx            # imm = 0x74E
leaq 0xddf4(%rip), %rcx      # 0x1d91d
callq 0x3220
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
addq 0x18(%rax), %rdi
movq -0x1d8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
callq 0x3360
movq -0x1d8(%rbp), %rdi
callq 0x3050
movq -0x1e0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
cmpq $0x0, -0x38(%rbp)
jne 0xfb91
movq -0x10(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0xfdf4
movzbl -0x1c9(%rbp), %eax
andl $0x7, %eax
movb %al, -0x1c9(%rbp)
movzbl -0x1c9(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xfbbd
cmpl $0x0, 0x13c7d(%rip)     # 0x23834
jne 0xfc9d
movzbl -0x1c9(%rbp), %eax
cmpl $0x0, %eax
je 0xfbd5
movzbl -0x1c9(%rbp), %eax
cmpl $0x5, %eax
jle 0xfbfc
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $-0x1, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $-0x1, (%rax,%rcx)
jmp 0xfd22
cmpb $0x0, -0x1c9(%rbp)
je 0xfd20
jmp 0xfca8
movzbl -0x1c9(%rbp), %ecx
movl $0x2, %esi
shll %cl, %esi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x18(%rcx), %rcx
subq $0x1, %rcx
movzbl (%rax,%rcx), %edx
addl %esi, %edx
movb %dl, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movzbl -0x1c9(%rbp), %eax
addl $0x2, %eax
movb %al, -0x1c9(%rbp)
movzbl -0x1c9(%rbp), %eax
cmpl $0x8, %eax
jl 0xfca8
jmp 0xfd20
jmp 0xfd22
cmpl $0x0, 0x13b0b(%rip)     # 0x23834
jne 0xfdf2
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $-0x1, (%rax,%rcx)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rdx
movq 0x18(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x18(%rdx)
movb $-0x1, (%rax,%rcx)
jmp 0xfdf4
movq -0x40(%rbp), %rcx
movq -0x1c8(%rbp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
jmp 0xfe09
cmpq $0x0, -0x38(%rbp)
jne 0xf70a
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x10160
movq -0x10(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xf260
movq 0x33b87(%rip), %rdi     # 0x439c8
leaq 0xc402(%rip), %rsi      # 0x1c24a
movl $0x778, %edx            # imm = 0x778
callq 0x11900
leaq 0x33b77(%rip), %rax     # 0x439d0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0xfe8e
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jle 0xfe80
jmp 0xfe8e
movq -0x18(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x20(%rbp)
jmp 0xfe5d
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq 0x33b1c(%rip), %rdi     # 0x439c8
movq 0x33b1d(%rip), %rax     # 0x439d0
movq (%rax), %rdx
xorl %esi, %esi
leaq 0xc38b(%rip), %rcx      # 0x1c24a
movl $0x781, %r8d            # imm = 0x781
callq 0x119a0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
cmpl $0x1, 0x138d7(%rip)     # 0x237c8
jne 0xff0b
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rdi
movq %rdx, %rsi
callq 0xe030
movq %rax, -0x208(%rbp)
jmp 0xff21
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rdi
movq %rdx, %rsi
callq 0xdf70
movq %rax, -0x208(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x28(%rbp)
movl $0x80000000, %eax       # imm = 0x80000000
cmpq %rax, -0x40(%rbp)
jbe 0xffa8
cmpl $0x1, 0x1388a(%rip)     # 0x237c8
jne 0xff5b
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0xe030
movq %rax, -0x210(%rbp)
jmp 0xff74
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl $0x80000000, %edx       # imm = 0x80000000
callq 0xdf70
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x40(%rbp), %rax
movabsq $0x80000000, %rcx       # imm = 0x80000000
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movabsq $0x80000000, %rax       # imm = 0x80000000
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0xff2c
cmpl $0x1, 0x13819(%rip)     # 0x237c8
jne 0xffcf
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rax
movl %eax, %eax
movl %eax, %edx
callq 0xe030
movq %rax, -0x218(%rbp)
jmp 0xffeb
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x40(%rbp), %rax
movl %eax, %eax
movl %eax, %edx
callq 0xdf70
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x10160
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
leaq 0xc22c(%rip), %rsi      # 0x1c24a
movl $0x792, %edx            # imm = 0x792
callq 0x11900
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
xorl %esi, %esi
movl $0x1, %edx
leaq 0xc20c(%rip), %rcx      # 0x1c24a
movl $0x793, %r8d            # imm = 0x793
callq 0x119a0
jmp 0xf46a
movq 0x3395b(%rip), %rdi     # 0x439b0
leaq 0xc1ee(%rip), %rsi      # 0x1c24a
movl $0x799, %edx            # imm = 0x799
callq 0x11950
cmpl $0x9, 0x1379f(%rip)     # 0x2380c
jle 0x1007d
movq -0x1c8(%rbp), %rdi
callq 0x10160
jmp 0x10089
leaq -0x1c0(%rbp), %rdi
callq 0x3410
jmp 0x1008b
jmp 0x1008d
movl -0x14c(%rbp), %eax
cmpl $0x0, %eax
je 0x100f0
jmp 0x1009a
leaq 0x33a13(%rip), %rax     # 0x43ab4
movl (%rax), %edi
movq -0x68(%rbp), %rsi
callq 0x35f0
movl %eax, -0x1e4(%rbp)
cmpl $0x0, -0x1e4(%rbp)
jne 0x100c5
movb $0x1, %al
testb $0x1, %al
jne 0x100c3
jmp 0x100c5
jmp 0x100e4
leaq 0xc14e(%rip), %rdi      # 0x1c21a
leaq 0xc177(%rip), %rsi      # 0x1c24a
movl $0x7a3, %edx            # imm = 0x7A3
leaq 0xd83e(%rip), %rcx      # 0x1d91d
callq 0x3220
jmp 0x100e6
movl $0x0, -0x14c(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpl $0x0, -0x5c(%rbp)
je 0x10156
jmp 0x10110
cmpl $0x20, -0x5c(%rbp)
je 0x10128
movq -0x50(%rbp), %rsi
leaq 0xc235(%rip), %rdi      # 0x1c356
movb $0x0, %al
callq 0x49e0
jmp 0x1012a
cmpl $0x0, -0x58(%rbp)
je 0x10148
movq -0x50(%rbp), %rdi
callq 0x3050
movl $0x0, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
jmp 0x1014a
xorl %edi, %edi
subl -0x5c(%rbp), %edi
callq 0x3f20
jmp 0x10156
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
nop