// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/png/deflate.c
// Function: deflate
int ZEXPORT deflate (strm, flush)
    z_streamp strm;
    int flush;
{
    int old_flush; /* value of flush param for previous deflate call */
    deflate_state *s;

    if (strm == Z_NULL || strm->state == Z_NULL ||
        flush > Z_BLOCK || flush < 0) {
        return Z_STREAM_ERROR;
    }
    s = strm->state;

    if (strm->next_out == Z_NULL ||
        (strm->next_in == Z_NULL && strm->avail_in != 0) ||
        (s->status == FINISH_STATE && flush != Z_FINISH)) {
        ERR_RETURN(strm, Z_STREAM_ERROR);
    }
    if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR);

    s->strm = strm; /* just in case */
    old_flush = s->last_flush;
    s->last_flush = flush;

    /* Write the header */
    if (s->status == INIT_STATE) {
#ifdef GZIP
        if (s->wrap == 2) {
            strm->adler = crc32(0L, Z_NULL, 0);
            put_byte(s, 31);
            put_byte(s, 139);
            put_byte(s, 8);
            if (s->gzhead == Z_NULL) {
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, 0);
                put_byte(s, s->level == 9 ? 2 :
                            (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
                             4 : 0));
                put_byte(s, OS_CODE);
                s->status = BUSY_STATE;
            }
            else {
                put_byte(s, (s->gzhead->text ? 1 : 0) +
                            (s->gzhead->hcrc ? 2 : 0) +
                            (s->gzhead->extra == Z_NULL ? 0 : 4) +
                            (s->gzhead->name == Z_NULL ? 0 : 8) +
                            (s->gzhead->comment == Z_NULL ? 0 : 16)
                        );
                put_byte(s, (Byte)(s->gzhead->time & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 8) & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 16) & 0xff));
                put_byte(s, (Byte)((s->gzhead->time >> 24) & 0xff));
                put_byte(s, s->level == 9 ? 2 :
                            (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ?
                             4 : 0));
                put_byte(s, s->gzhead->os & 0xff);
                if (s->gzhead->extra != Z_NULL) {
                    put_byte(s, s->gzhead->extra_len & 0xff);
                    put_byte(s, (s->gzhead->extra_len >> 8) & 0xff);
                }
                if (s->gzhead->hcrc)
                    strm->adler = crc32(strm->adler, s->pending_buf,
                                        s->pending);
                s->gzindex = 0;
                s->status = EXTRA_STATE;
            }
        }
        else
#endif
        {
            uInt header = (Z_DEFLATED + ((s->w_bits-8)<<4)) << 8;
            uInt level_flags;

            if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
                level_flags = 0;
            else if (s->level < 6)
                level_flags = 1;
            else if (s->level == 6)
                level_flags = 2;
            else
                level_flags = 3;
            header |= (level_flags << 6);
            if (s->strstart != 0) header |= PRESET_DICT;
            header += 31 - (header % 31);

            s->status = BUSY_STATE;
            putShortMSB(s, header);

            /* Save the adler32 of the preset dictionary: */
            if (s->strstart != 0) {
                putShortMSB(s, (uInt)(strm->adler >> 16));
                putShortMSB(s, (uInt)(strm->adler & 0xffff));
            }
            strm->adler = adler32(0L, Z_NULL, 0);
        }
    }
#ifdef GZIP
    if (s->status == EXTRA_STATE) {
        if (s->gzhead->extra != Z_NULL) {
            uInt beg = s->pending;  /* start of bytes to update crc */

            while (s->gzindex < (s->gzhead->extra_len & 0xffff)) {
                if (s->pending == s->pending_buf_size) {
                    if (s->gzhead->hcrc && s->pending > beg)
                        strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                            s->pending - beg);
                    flush_pending(strm);
                    beg = s->pending;
                    if (s->pending == s->pending_buf_size)
                        break;
                }
                put_byte(s, s->gzhead->extra[s->gzindex]);
                s->gzindex++;
            }
            if (s->gzhead->hcrc && s->pending > beg)
                strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                    s->pending - beg);
            if (s->gzindex == s->gzhead->extra_len) {
                s->gzindex = 0;
                s->status = NAME_STATE;
            }
        }
        else
            s->status = NAME_STATE;
    }
    if (s->status == NAME_STATE) {
        if (s->gzhead->name != Z_NULL) {
            uInt beg = s->pending;  /* start of bytes to update crc */
            int val;

            do {
                if (s->pending == s->pending_buf_size) {
                    if (s->gzhead->hcrc && s->pending > beg)
                        strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                            s->pending - beg);
                    flush_pending(strm);
                    beg = s->pending;
                    if (s->pending == s->pending_buf_size) {
                        val = 1;
                        break;
                    }
                }
                val = s->gzhead->name[s->gzindex++];
                put_byte(s, val);
            } while (val != 0);
            if (s->gzhead->hcrc && s->pending > beg)
                strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                    s->pending - beg);
            if (val == 0) {
                s->gzindex = 0;
                s->status = COMMENT_STATE;
            }
        }
        else
            s->status = COMMENT_STATE;
    }
    if (s->status == COMMENT_STATE) {
        if (s->gzhead->comment != Z_NULL) {
            uInt beg = s->pending;  /* start of bytes to update crc */
            int val;

            do {
                if (s->pending == s->pending_buf_size) {
                    if (s->gzhead->hcrc && s->pending > beg)
                        strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                            s->pending - beg);
                    flush_pending(strm);
                    beg = s->pending;
                    if (s->pending == s->pending_buf_size) {
                        val = 1;
                        break;
                    }
                }
                val = s->gzhead->comment[s->gzindex++];
                put_byte(s, val);
            } while (val != 0);
            if (s->gzhead->hcrc && s->pending > beg)
                strm->adler = crc32(strm->adler, s->pending_buf + beg,
                                    s->pending - beg);
            if (val == 0)
                s->status = HCRC_STATE;
        }
        else
            s->status = HCRC_STATE;
    }
    if (s->status == HCRC_STATE) {
        if (s->gzhead->hcrc) {
            if (s->pending + 2 > s->pending_buf_size)
                flush_pending(strm);
            if (s->pending + 2 <= s->pending_buf_size) {
                put_byte(s, (Byte)(strm->adler & 0xff));
                put_byte(s, (Byte)((strm->adler >> 8) & 0xff));
                strm->adler = crc32(0L, Z_NULL, 0);
                s->status = BUSY_STATE;
            }
        }
        else
            s->status = BUSY_STATE;
    }
#endif

    /* Flush as much pending output as possible */
    if (s->pending != 0) {
        flush_pending(strm);
        if (strm->avail_out == 0) {
            /* Since avail_out is 0, deflate will be called again with
             * more output space, but possibly with both pending and
             * avail_in equal to zero. There won't be anything to do,
             * but this is not an error situation so make sure we
             * return OK instead of BUF_ERROR at next call of deflate:
             */
            s->last_flush = -1;
            return Z_OK;
        }

    /* Make sure there is something to do and avoid duplicate consecutive
     * flushes. For repeated and useless calls with Z_FINISH, we keep
     * returning Z_STREAM_END instead of Z_BUF_ERROR.
     */
    } else if (strm->avail_in == 0 && flush <= old_flush &&
               flush != Z_FINISH) {
        ERR_RETURN(strm, Z_BUF_ERROR);
    }

    /* User must not provide more input after the first FINISH: */
    if (s->status == FINISH_STATE && strm->avail_in != 0) {
        ERR_RETURN(strm, Z_BUF_ERROR);
    }

    /* Start a new block or continue the current one.
     */
    if (strm->avail_in != 0 || s->lookahead != 0 ||
        (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
        block_state bstate;

        bstate = s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
                    (s->strategy == Z_RLE ? deflate_rle(s, flush) :
                        (*(configuration_table[s->level].func))(s, flush));

        if (bstate == finish_started || bstate == finish_done) {
            s->status = FINISH_STATE;
        }
        if (bstate == need_more || bstate == finish_started) {
            if (strm->avail_out == 0) {
                s->last_flush = -1; /* avoid BUF_ERROR next call, see above */
            }
            return Z_OK;
            /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
             * of deflate should use the same flush parameter to make sure
             * that the flush is complete. So we don't have to output an
             * empty block here, this will be done at next call. This also
             * ensures that for a very small output buffer, we emit at most
             * one empty block.
             */
        }
        if (bstate == block_done) {
            if (flush == Z_PARTIAL_FLUSH) {
                _tr_align(s);
            } else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
                _tr_stored_block(s, (char*)0, 0L, 0);
                /* For a full flush, this empty block will be recognized
                 * as a special marker by inflate_sync().
                 */
                if (flush == Z_FULL_FLUSH) {
                    CLEAR_HASH(s);             /* forget history */
                    if (s->lookahead == 0) {
                        s->strstart = 0;
                        s->block_start = 0L;
                    }
                }
            }
            flush_pending(strm);
            if (strm->avail_out == 0) {
              s->last_flush = -1; /* avoid BUF_ERROR at next call, see above */
              return Z_OK;
            }
        }
    }
    Assert(strm->avail_out > 0, "bug2");

    if (flush != Z_FINISH) return Z_OK;
    if (s->wrap <= 0) return Z_STREAM_END;

    /* Write the trailer */
#ifdef GZIP
    if (s->wrap == 2) {
        put_byte(s, (Byte)(strm->adler & 0xff));
        put_byte(s, (Byte)((strm->adler >> 8) & 0xff));
        put_byte(s, (Byte)((strm->adler >> 16) & 0xff));
        put_byte(s, (Byte)((strm->adler >> 24) & 0xff));
        put_byte(s, (Byte)(strm->total_in & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 8) & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 16) & 0xff));
        put_byte(s, (Byte)((strm->total_in >> 24) & 0xff));
    }
    else
#endif
    {
        putShortMSB(s, (uInt)(strm->adler >> 16));
        putShortMSB(s, (uInt)(strm->adler & 0xffff));
    }
    flush_pending(strm);
    /* If avail_out is zero, the application will call deflate again
     * to flush the rest.
     */
    if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */
    return s->pending != 0 ? Z_OK : Z_STREAM_END;
}

// Assembly:
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testq %rdi, %rdi
je 0x93168
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
movq 0x38(%rdi), %rbx
testq %rbx, %rbx
sete %cl
cmpl $0x6, %esi
setae %dl
orb %cl, %dl
jne 0x93160
cmpq $0x0, 0x18(%r14)
je 0x93151
cmpq $0x0, (%r14)
je 0x93146
movl 0x8(%rbx), %ecx
cmpl $0x29a, %ecx            # imm = 0x29A
setne %dl
cmpl $0x4, %ebp
sete %sil
orb %dl, %sil
je 0x93151
cmpl $0x0, 0x20(%r14)
je 0x93606
movq %r14, (%rbx)
movl 0x40(%rbx), %r15d
movl %ebp, 0x40(%rbx)
cmpl $0x2a, %ecx
jne 0x93263
cmpl $0x2, 0x2c(%rbx)
jne 0x93169
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x92310
movq %rax, 0x60(%r14)
movq 0x10(%rbx), %rax
movl 0x28(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x28(%rbx)
movb $0x1f, (%rax,%rcx)
movq 0x10(%rbx), %rax
movl 0x28(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x28(%rbx)
movb $-0x75, (%rax,%rcx)
movq 0x10(%rbx), %rax
movl 0x28(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x28(%rbx)
movb $0x8, (%rax,%rcx)
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x932f6
cmpl $0x0, (%rax)
setne %cl
cmpl $0x0, 0x44(%rax)
setne %dl
addb %dl, %dl
orb %cl, %dl
cmpq $0x0, 0x18(%rax)
setne %cl
shlb $0x2, %cl
orb %dl, %cl
cmpq $0x0, 0x28(%rax)
setne %dl
shlb $0x3, %dl
orb %cl, %dl
cmpq $0x0, 0x38(%rax)
setne %al
shlb $0x4, %al
orb %dl, %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0x8(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0x9(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0xa(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0xb(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movl 0xb4(%rbx), %ecx
movb $0x2, %al
cmpl $0x9, %ecx
je 0x930b9
cmpl $0x2, 0xb8(%rbx)
setge %dl
cmpl $0x2, %ecx
setl %al
orb %dl, %al
shlb $0x2, %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0x14(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x93119
movb 0x20(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
movb 0x21(%rax), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x30(%rbx), %rax
cmpl $0x0, 0x44(%rax)
je 0x93133
movq 0x60(%r14), %rdi
movq 0x10(%rbx), %rsi
movl 0x28(%rbx), %edx
callq 0x92310
movq %rax, 0x60(%r14)
movl $0x0, 0x38(%rbx)
movl $0x45, 0x8(%rbx)
jmp 0x9326c
cmpl $0x0, 0x8(%r14)
je 0x92f60
leaq 0x51b78(%rip), %rcx     # 0xe4cd0
movq 0x20(%rcx), %rcx
movq %rcx, 0x30(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x48(%rbx), %eax
shll $0xc, %eax
addl $0xffff8800, %eax       # imm = 0xFFFF8800
xorl %ecx, %ecx
cmpl $0x1, 0xb8(%rbx)
jg 0x931a0
movl 0xb4(%rbx), %edx
cmpl $0x2, %edx
jl 0x931a0
movl $0x40, %ecx
cmpl $0x6, %edx
jb 0x931a0
setne %cl
movzbl %cl, %ecx
orl $0x2, %ecx
shll $0x6, %ecx
movl %ecx, %edx
orl %eax, %edx
cmpl $0x0, 0x9c(%rbx)
leal 0x20(%rcx,%rax), %ecx
cmovel %edx, %ecx
imulq $0x8421085, %rcx, %rdx  # imm = 0x8421085
shrq $0x20, %rdx
movl %ecx, %eax
subl %edx, %eax
shrl %eax
addl %edx, %eax
shrl $0x4, %eax
movl %eax, %edx
shll $0x5, %edx
subl %edx, %eax
addl %ecx, %eax
orl %ecx, %eax
movl $0x71, 0x8(%rbx)
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %ch, (%rdx,%rsi)
xorb $0x1f, %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
cmpl $0x0, 0x9c(%rbx)
je 0x93251
movb 0x62(%r14), %al
movb 0x63(%r14), %cl
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rdx,%rsi)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x60(%r14), %rax
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %ah, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xa0be4
movq %rax, 0x60(%r14)
movl 0x8(%rbx), %ecx
cmpl $0x45, %ecx
jne 0x933d1
movq 0x30(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x933c5
movl 0x28(%rbx), %ecx
movl 0x38(%rbx), %esi
movzwl 0x20(%rax), %edx
cmpl %edx, %esi
jae 0x93392
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
jne 0x932d1
cmpl $0x0, 0x44(%rax)
je 0x932b3
subl %ecx, %edx
jbe 0x932b3
movq 0x60(%r14), %rdi
movl %ecx, %esi
addq 0x10(%rbx), %rsi
callq 0x92310
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9399f
movl 0x28(%rbx), %edx
movq 0x30(%rbx), %rax
cmpq %rdx, 0x18(%rbx)
je 0x93390
movl 0x38(%rbx), %esi
movl %edx, %ecx
movq 0x18(%rax), %rax
movl %esi, %esi
movb (%rax,%rsi), %al
movq 0x10(%rbx), %rsi
movl %edx, %edi
incl %edi
movl %edi, 0x28(%rbx)
movb %al, (%rsi,%rdx)
movl 0x38(%rbx), %esi
incl %esi
movl %esi, 0x38(%rbx)
movq 0x30(%rbx), %rax
jmp 0x93281
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x28(%rbx)
xorl %eax, %eax
movb %al, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movl 0xb4(%rbx), %ecx
movb $0x2, %al
cmpl $0x9, %ecx
je 0x9336a
cmpl $0x2, 0xb8(%rbx)
setge %dl
cmpl $0x2, %ecx
setl %al
orb %dl, %al
shlb $0x2, %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x10(%rbx), %rax
movl 0x28(%rbx), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x28(%rbx)
movb $0x3, (%rax,%rcx)
jmp 0x935c1
movl %edx, %ecx
cmpl $0x0, 0x44(%rax)
je 0x933b6
movl 0x28(%rbx), %edx
subl %ecx, %edx
jbe 0x933b6
movq 0x60(%r14), %rdi
movl %ecx, %esi
addq 0x10(%rbx), %rsi
callq 0x92310
movq %rax, 0x60(%r14)
movq 0x30(%rbx), %rax
movl 0x38(%rbx), %ecx
cmpl 0x20(%rax), %ecx
jne 0x933ce
movl $0x0, 0x38(%rbx)
movl $0x49, 0x8(%rbx)
jmp 0x933de
movl 0x8(%rbx), %ecx
cmpl $0x49, %ecx
jne 0x93497
movq 0x30(%rbx), %rax
cmpq $0x0, 0x28(%rax)
je 0x9348b
movl 0x28(%rbx), %eax
movl 0x28(%rbx), %edx
movq 0x30(%rbx), %rcx
cmpq %rdx, 0x18(%rbx)
jne 0x9342d
cmpl $0x0, 0x44(%rcx)
je 0x93416
subl %eax, %edx
jbe 0x93416
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x92310
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9399f
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
je 0x93456
movq 0x30(%rbx), %rcx
movl %edx, %eax
movq 0x28(%rcx), %rcx
movl 0x38(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x38(%rbx)
movb (%rcx,%rsi), %cl
movq 0x10(%rbx), %rsi
movl %edx, %edi
incl %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rsi,%rdx)
testb %cl, %cl
jne 0x933ec
movb $0x1, %r12b
movl %eax, %edx
jmp 0x93459
xorl %r12d, %r12d
movq 0x30(%rbx), %rax
cmpl $0x0, 0x44(%rax)
je 0x9347f
movl 0x28(%rbx), %eax
subl %edx, %eax
jbe 0x9347f
movq 0x60(%r14), %rdi
movl %edx, %esi
addq 0x10(%rbx), %rsi
movl %eax, %edx
callq 0x92310
movq %rax, 0x60(%r14)
testb %r12b, %r12b
je 0x93494
movl $0x0, 0x38(%rbx)
movl $0x5b, 0x8(%rbx)
jmp 0x934a0
movl 0x8(%rbx), %ecx
cmpl $0x5b, %ecx
jne 0x93556
movq 0x30(%rbx), %rax
cmpq $0x0, 0x38(%rax)
je 0x9354a
movl 0x28(%rbx), %eax
movl 0x28(%rbx), %edx
movq 0x30(%rbx), %rcx
cmpq %rdx, 0x18(%rbx)
jne 0x934f3
cmpl $0x0, 0x44(%rcx)
je 0x934dc
subl %eax, %edx
jbe 0x934dc
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x92310
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9399f
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
je 0x9351c
movq 0x30(%rbx), %rcx
movl %edx, %eax
movq 0x38(%rcx), %rcx
movl 0x38(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x38(%rbx)
movb (%rcx,%rsi), %cl
movq 0x10(%rbx), %rsi
movl %edx, %edi
incl %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rsi,%rdx)
testb %cl, %cl
jne 0x934b2
movb $0x1, %r12b
movl %eax, %edx
jmp 0x9351f
xorl %r12d, %r12d
movq 0x30(%rbx), %rax
cmpl $0x0, 0x44(%rax)
je 0x93545
movl 0x28(%rbx), %eax
subl %edx, %eax
jbe 0x93545
movq 0x60(%r14), %rdi
movl %edx, %esi
addq 0x10(%rbx), %rsi
movl %eax, %edx
callq 0x92310
movq %rax, 0x60(%r14)
testb %r12b, %r12b
je 0x93553
movl $0x67, 0x8(%rbx)
jmp 0x9355b
movl 0x8(%rbx), %ecx
cmpl $0x67, %ecx
jne 0x935c8
movq 0x30(%rbx), %rax
cmpl $0x0, 0x44(%rax)
je 0x935c1
movl 0x28(%rbx), %eax
leal 0x2(%rax), %ecx
movq 0x18(%rbx), %rdx
cmpq %rcx, %rdx
jae 0x93586
movq %r14, %rdi
callq 0x9399f
movl 0x28(%rbx), %eax
movq 0x18(%rbx), %rdx
leal 0x2(%rax), %ecx
cmpq %rcx, %rdx
jb 0x935c8
movb 0x60(%r14), %cl
movq 0x10(%rbx), %rdx
leal 0x1(%rax), %esi
movl %esi, 0x28(%rbx)
movl %eax, %eax
movb %cl, (%rdx,%rax)
movb 0x61(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x92310
movq %rax, 0x60(%r14)
movl $0x71, 0x8(%rbx)
cmpl $0x0, 0x28(%rbx)
je 0x935f5
movq %r14, %rdi
callq 0x9399f
cmpl $0x0, 0x20(%r14)
je 0x937e7
movl 0x8(%rbx), %eax
movl 0x8(%r14), %ecx
cmpl $0x29a, %eax            # imm = 0x29A
jne 0x9361f
testl %ecx, %ecx
jne 0x93606
jmp 0x93623
cmpl $0x0, 0x8(%r14)
jne 0x935e1
cmpl $0x4, %ebp
je 0x935e1
cmpl %ebp, %r15d
jl 0x935e1
leaq 0x516c3(%rip), %rax     # 0xe4cd0
movq 0x38(%rax), %rax
movq %rax, 0x30(%r14)
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x93160
testl %ecx, %ecx
jne 0x93630
cmpl $0x0, 0xa4(%rbx)
je 0x936c5
movl 0xb8(%rbx), %eax
cmpl $0x3, %eax
je 0x9364c
cmpl $0x2, %eax
jne 0x93658
movq %rbx, %rdi
movl %ebp, %esi
callq 0x939f1
jmp 0x93673
movq %rbx, %rdi
movl %ebp, %esi
callq 0x93b5a
jmp 0x93673
movslq 0xb4(%rbx), %rax
shlq $0x4, %rax
leaq 0x515c6(%rip), %rcx     # 0xe4c30
movq %rbx, %rdi
movl %ebp, %esi
callq *0x8(%rax,%rcx)
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0x93684
movl $0x29a, 0x8(%rbx)       # imm = 0x29A
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
je 0x936ac
cmpl $0x1, %eax
jne 0x93734
cmpl $0x5, %ebp
je 0x93721
movq %rbx, %rdi
cmpl $0x1, %ebp
jne 0x936da
callq 0x97d9b
jmp 0x93721
xorl %eax, %eax
cmpl $0x0, 0x20(%r14)
jne 0x93160
movl $0xffffffff, 0x40(%rbx) # imm = 0xFFFFFFFF
jmp 0x93160
testl %ebp, %ebp
je 0x937ee
cmpl $0x29a, %eax            # imm = 0x29A
jne 0x93630
jmp 0x93734
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x97c7e
cmpl $0x3, %ebp
jne 0x93721
movq 0x68(%rbx), %rdi
movl 0x74(%rbx), %edx
decl %edx
movw $0x0, (%rdi,%rdx,2)
addq %rdx, %rdx
xorl %esi, %esi
callq 0xe260
cmpl $0x0, 0xa4(%rbx)
jne 0x93721
movl $0x0, 0x9c(%rbx)
movq $0x0, 0x88(%rbx)
movq %r14, %rdi
callq 0x9399f
cmpl $0x0, 0x20(%r14)
je 0x937e7
cmpl $0x4, %ebp
jne 0x937ee
movl 0x2c(%rbx), %ecx
testl %ecx, %ecx
jle 0x937f5
movq 0x60(%r14), %rax
cmpl $0x2, %ecx
jne 0x937ff
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x61(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x62(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x63(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x10(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x11(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movb 0x12(%r14), %al
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq 0x10(%r14), %rax
shrq $0x18, %rax
jmp 0x9383b
movl $0xffffffff, 0x40(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x93160
movl $0x1, %eax
jmp 0x93160
movl %eax, %ecx
shrl $0x10, %ecx
shrl $0x18, %eax
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %al, (%rdx,%rsi)
movq 0x10(%rbx), %rax
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %cl, (%rax,%rdx)
movq 0x60(%r14), %rax
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %ah, (%rcx,%rdx)
movq 0x10(%rbx), %rcx
movl 0x28(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x28(%rbx)
movb %al, (%rcx,%rdx)
movq %r14, %rdi
callq 0x9399f
movl 0x2c(%rbx), %eax
testl %eax, %eax
jle 0x9385f
negl %eax
movl %eax, 0x2c(%rbx)
xorl %eax, %eax
cmpl $0x0, 0x28(%rbx)
sete %al
jmp 0x93160