// File: /workspace/github_cpp_makefile_star2_O1/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 0x93e82
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 0x93e7a
cmpq $0x0, 0x18(%r14)
je 0x93e6b
cmpq $0x0, (%r14)
je 0x93e60
movl 0x8(%rbx), %ecx
cmpl $0x29a, %ecx            # imm = 0x29A
setne %dl
cmpl $0x4, %ebp
sete %sil
orb %dl, %sil
je 0x93e6b
cmpl $0x0, 0x20(%r14)
je 0x94329
movq %r14, (%rbx)
movl 0x40(%rbx), %r15d
movl %ebp, 0x40(%rbx)
cmpl $0x2a, %ecx
jne 0x9401b
cmpl $0x2, 0x2c(%rbx)
jne 0x93e83
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x93034
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 0x93f7f
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 0x93dd3
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 0x93e2f
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 0x93e4d
movq 0x60(%r14), %rdi
movq 0x10(%rbx), %rsi
movl 0x28(%rbx), %edx
callq 0x93034
movq %rax, 0x60(%r14)
movl $0x0, 0x38(%rbx)
movl $0x45, 0x8(%rbx)
jmp 0x9401b
cmpl $0x0, 0x8(%r14)
je 0x93c7a
leaq 0x50e5e(%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 0x93eba
movl 0xb4(%rbx), %edx
cmpl $0x2, %edx
jl 0x93eba
movl $0x40, %ecx
cmpl $0x6, %edx
jl 0x93eba
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 0x93f6b
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 0xa1570
movq %rax, 0x60(%r14)
jmp 0x9401b
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 0x93ff3
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)
movl $0x71, 0x8(%rbx)
cmpl $0x45, 0x8(%rbx)
jne 0x940eb
movq 0x30(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0x940e4
movl 0x28(%rbx), %eax
movq 0x30(%rbx), %rcx
movzwl 0x20(%rcx), %edx
cmpl %edx, 0x38(%rbx)
jae 0x940ad
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
jne 0x9407b
cmpl $0x0, 0x44(%rcx)
je 0x9406a
subl %eax, %edx
jbe 0x9406a
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9469d
movl 0x28(%rbx), %eax
cmpq %rax, 0x18(%rbx)
je 0x940ad
movq 0x30(%rbx), %rcx
movq 0x18(%rcx), %rcx
movl 0x38(%rbx), %edx
movb (%rcx,%rdx), %cl
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rdx,%rsi)
movl 0x38(%rbx), %edx
incl %edx
movl %edx, 0x38(%rbx)
movq 0x30(%rbx), %rcx
movzwl 0x20(%rcx), %esi
cmpl %esi, %edx
jb 0x94044
movq 0x30(%rbx), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x940d1
movl 0x28(%rbx), %edx
subl %eax, %edx
jbe 0x940d1
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
movl 0x38(%rbx), %eax
movq 0x30(%rbx), %rcx
cmpl 0x20(%rcx), %eax
jne 0x940eb
movl $0x0, 0x38(%rbx)
movl $0x49, 0x8(%rbx)
cmpl $0x49, 0x8(%rbx)
jne 0x941a9
movq 0x30(%rbx), %rax
cmpq $0x0, 0x28(%rax)
je 0x941a2
movl 0x28(%rbx), %eax
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
jne 0x94142
movq 0x30(%rbx), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x94131
subl %eax, %edx
jbe 0x94131
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9469d
movl 0x28(%rbx), %eax
cmpq %rax, 0x18(%rbx)
je 0x9416f
movq 0x30(%rbx), %rcx
movq 0x28(%rcx), %rcx
movl 0x38(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x38(%rbx)
movb (%rcx,%rdx), %cl
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rdx,%rsi)
testb %cl, %cl
jne 0x94107
movb $0x1, %r12b
jmp 0x94172
xorl %r12d, %r12d
movq 0x30(%rbx), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x94196
movl 0x28(%rbx), %edx
subl %eax, %edx
jbe 0x94196
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
testb %r12b, %r12b
je 0x941a9
movl $0x0, 0x38(%rbx)
movl $0x5b, 0x8(%rbx)
cmpl $0x5b, 0x8(%rbx)
jne 0x94260
movq 0x30(%rbx), %rax
cmpq $0x0, 0x38(%rax)
je 0x94259
movl 0x28(%rbx), %eax
movl 0x28(%rbx), %edx
cmpq %rdx, 0x18(%rbx)
jne 0x94200
movq 0x30(%rbx), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x941ef
subl %eax, %edx
jbe 0x941ef
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
movq %r14, %rdi
callq 0x9469d
movl 0x28(%rbx), %eax
cmpq %rax, 0x18(%rbx)
je 0x9422d
movq 0x30(%rbx), %rcx
movq 0x38(%rcx), %rcx
movl 0x38(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x38(%rbx)
movb (%rcx,%rdx), %cl
movq 0x10(%rbx), %rdx
movl 0x28(%rbx), %esi
leal 0x1(%rsi), %edi
movl %edi, 0x28(%rbx)
movb %cl, (%rdx,%rsi)
testb %cl, %cl
jne 0x941c5
movb $0x1, %r12b
jmp 0x94230
xorl %r12d, %r12d
movq 0x30(%rbx), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x94254
movl 0x28(%rbx), %edx
subl %eax, %edx
jbe 0x94254
movq 0x60(%r14), %rdi
movl %eax, %esi
addq 0x10(%rbx), %rsi
callq 0x93034
movq %rax, 0x60(%r14)
testb %r12b, %r12b
je 0x94260
movl $0x67, 0x8(%rbx)
cmpl $0x67, 0x8(%rbx)
jne 0x942cb
movq 0x30(%rbx), %rax
cmpl $0x0, 0x44(%rax)
je 0x942c4
movl 0x28(%rbx), %eax
addl $0x2, %eax
cmpq %rax, 0x18(%rbx)
jae 0x94284
movq %r14, %rdi
callq 0x9469d
movl 0x28(%rbx), %eax
leal 0x2(%rax), %ecx
cmpq %rcx, 0x18(%rbx)
jb 0x942cb
movb 0x60(%r14), %cl
movq 0x10(%rbx), %rdx
leal 0x1(%rax), %esi
movl %esi, 0x28(%rbx)
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 0x93034
movq %rax, 0x60(%r14)
movl $0x71, 0x8(%rbx)
cmpl $0x0, 0x28(%rbx)
je 0x94318
movq %r14, %rdi
callq 0x9469d
cmpl $0x0, 0x20(%r14)
je 0x944e6
movl 0x8(%rbx), %eax
cmpl $0x29a, %eax            # imm = 0x29A
jne 0x942f5
cmpl $0x0, 0x8(%r14)
jne 0x94329
cmpl $0x0, 0x8(%r14)
je 0x94342
movl 0xb8(%rbx), %eax
cmpl $0x3, %eax
je 0x94362
cmpl $0x2, %eax
jne 0x9436e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x946ef
jmp 0x94389
cmpl $0x0, 0x8(%r14)
jne 0x942e4
cmpl $0x4, %ebp
je 0x942e4
cmpl %ebp, %r15d
jl 0x942e4
leaq 0x509a0(%rip), %rax     # 0xe4cd0
movq 0x38(%rax), %rax
movq %rax, 0x30(%r14)
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x93e7a
cmpl $0x29a, %eax            # imm = 0x29A
setne %al
testl %ebp, %ebp
setne %cl
testb %al, %cl
jne 0x942fc
cmpl $0x0, 0xa4(%rbx)
je 0x94431
jmp 0x942fc
movq %rbx, %rdi
movl %ebp, %esi
callq 0x94858
jmp 0x94389
movslq 0xb4(%rbx), %rax
shlq $0x4, %rax
leaq 0x508b0(%rip), %rcx     # 0xe4c30
movq %rbx, %rdi
movl %ebp, %esi
callq *0x8(%rax,%rcx)
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0x9439a
movl $0x29a, 0x8(%rbx)       # imm = 0x29A
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
je 0x943be
cmpl $0x1, %eax
jne 0x94431
cmpl $0x5, %ebp
je 0x9441e
movq %rbx, %rdi
cmpl $0x1, %ebp
jne 0x943d7
callq 0x986a3
jmp 0x9441e
xorl %eax, %eax
cmpl $0x0, 0x20(%r14)
jne 0x93e7a
movl $0xffffffff, 0x40(%rbx) # imm = 0xFFFFFFFF
jmp 0x93e7a
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x98586
cmpl $0x3, %ebp
jne 0x9441e
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 0x9441e
movl $0x0, 0x9c(%rbx)
movq $0x0, 0x88(%rbx)
movq %r14, %rdi
callq 0x9469d
cmpl $0x0, 0x20(%r14)
je 0x944e6
xorl %eax, %eax
cmpl $0x4, %ebp
jne 0x93e7a
movl 0x2c(%rbx), %ecx
testl %ecx, %ecx
jle 0x944f4
movq 0x60(%r14), %rax
cmpl $0x2, %ecx
jne 0x944fe
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 0x9453a
movl $0xffffffff, 0x40(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x93e7a
movl $0x1, %eax
jmp 0x93e7a
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 0x9469d
movl 0x2c(%rbx), %eax
testl %eax, %eax
jle 0x9455e
negl %eax
movl %eax, 0x2c(%rbx)
xorl %eax, %eax
cmpl $0x0, 0x28(%rbx)
sete %al
jmp 0x93e7a