// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflate
int ZEXPORT deflate(z_streamp strm, int flush) {
    int old_flush; /* value of flush param for previous deflate call */
    deflate_state *s;

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

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

    old_flush = s->last_flush;
    s->last_flush = flush;

    /* 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 && RANK(flush) <= RANK(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);
    }

    /* Write the header */
    if (s->status == INIT_STATE && s->wrap == 0)
        s->status = BUSY_STATE;
    if (s->status == INIT_STATE) {
        /* zlib header */
        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);

        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);
        s->status = BUSY_STATE;

        /* Compression must start with an empty pending buffer */
        flush_pending(strm);
        if (s->pending != 0) {
            s->last_flush = -1;
            return Z_OK;
        }
    }
#ifdef GZIP
    if (s->status == GZIP_STATE) {
        /* gzip header */
        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;

            /* Compression must start with an empty pending buffer */
            flush_pending(strm);
            if (s->pending != 0) {
                s->last_flush = -1;
                return Z_OK;
            }
        }
        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;
        }
    }
    if (s->status == EXTRA_STATE) {
        if (s->gzhead->extra != Z_NULL) {
            ulg beg = s->pending;   /* start of bytes to update crc */
            uInt left = (s->gzhead->extra_len & 0xffff) - s->gzindex;
            while (s->pending + left > s->pending_buf_size) {
                uInt copy = s->pending_buf_size - s->pending;
                zmemcpy(s->pending_buf + s->pending,
                        s->gzhead->extra + s->gzindex, copy);
                s->pending = s->pending_buf_size;
                HCRC_UPDATE(beg);
                s->gzindex += copy;
                flush_pending(strm);
                if (s->pending != 0) {
                    s->last_flush = -1;
                    return Z_OK;
                }
                beg = 0;
                left -= copy;
            }
            zmemcpy(s->pending_buf + s->pending,
                    s->gzhead->extra + s->gzindex, left);
            s->pending += left;
            HCRC_UPDATE(beg);
            s->gzindex = 0;
        }
        s->status = NAME_STATE;
    }
    if (s->status == NAME_STATE) {
        if (s->gzhead->name != Z_NULL) {
            ulg beg = s->pending;   /* start of bytes to update crc */
            int val;
            do {
                if (s->pending == s->pending_buf_size) {
                    HCRC_UPDATE(beg);
                    flush_pending(strm);
                    if (s->pending != 0) {
                        s->last_flush = -1;
                        return Z_OK;
                    }
                    beg = 0;
                }
                val = s->gzhead->name[s->gzindex++];
                put_byte(s, val);
            } while (val != 0);
            HCRC_UPDATE(beg);
            s->gzindex = 0;
        }
        s->status = COMMENT_STATE;
    }
    if (s->status == COMMENT_STATE) {
        if (s->gzhead->comment != Z_NULL) {
            ulg beg = s->pending;   /* start of bytes to update crc */
            int val;
            do {
                if (s->pending == s->pending_buf_size) {
                    HCRC_UPDATE(beg);
                    flush_pending(strm);
                    if (s->pending != 0) {
                        s->last_flush = -1;
                        return Z_OK;
                    }
                    beg = 0;
                }
                val = s->gzhead->comment[s->gzindex++];
                put_byte(s, val);
            } while (val != 0);
            HCRC_UPDATE(beg);
        }
        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 != 0) {
                    s->last_flush = -1;
                    return Z_OK;
                }
            }
            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;

        /* Compression must start with an empty pending buffer */
        flush_pending(strm);
        if (s->pending != 0) {
            s->last_flush = -1;
            return Z_OK;
        }
    }
#endif

    /* 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->level == 0 ? deflate_stored(s, flush) :
                 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;
                        s->insert = 0;
                    }
                }
            }
            flush_pending(strm);
            if (strm->avail_out == 0) {
              s->last_flush = -1; /* avoid BUF_ERROR at next call, see above */
              return Z_OK;
            }
        }
    }

    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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %r15d
movq %rdi, %rbx
callq 0x7c0ae
pushq $-0x2
popq %r12
cmpl $0x5, %r15d
ja 0x7c6f1
testl %eax, %eax
jne 0x7c6f1
cmpq $0x0, 0x18(%rbx)
je 0x7c6e2
movq 0x38(%rbx), %r14
movl 0x8(%rbx), %edx
testl %edx, %edx
je 0x7c6c9
cmpq $0x0, (%rbx)
je 0x7c6e2
movl 0x8(%r14), %eax
cmpl $0x29a, %eax            # imm = 0x29A
setne %cl
cmpl $0x4, %r15d
sete %sil
orb %cl, %sil
jne 0x7c703
leaq 0xb08b7(%rip), %rax     # 0x12cfa0
movq 0x20(%rax), %rax
movq %rax, 0x30(%rbx)
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x20(%rbx)
je 0x7c7ca
movl 0x4c(%r14), %ecx
movl %r15d, 0x4c(%r14)
cmpq $0x0, 0x28(%r14)
je 0x7c734
movq %rbx, %rdi
callq 0x7d7cf
cmpl $0x0, 0x20(%rbx)
je 0x7d52f
movl 0x8(%r14), %eax
jmp 0x7c738
testl %edx, %edx
je 0x7c790
cmpl $0x2a, %eax
je 0x7c753
cmpl $0x29a, %eax            # imm = 0x29A
jne 0x7c876
cmpl $0x0, 0x8(%rbx)
jne 0x7c7ca
jmp 0x7ce4e
cmpl $0x0, 0x30(%r14)
je 0x7c7e2
movl 0x54(%r14), %eax
shll $0xc, %eax
addl $0xffff8800, %eax       # imm = 0xFFFF8800
xorl %ecx, %ecx
cmpl $0x1, 0xc8(%r14)
jg 0x7c7fb
movl 0xc4(%r14), %edx
cmpl $0x2, %edx
jl 0x7c7fb
cmpl $0x6, %edx
jae 0x7c7ef
pushq $0x40
popq %rcx
jmp 0x7c7fb
xorl %edi, %edi
cmpl $0x5, %r15d
setb %r8b
xorl %edx, %edx
cmpl $0x5, %ecx
setl %sil
cmpl $0x4, %r15d
je 0x7c738
movb %r8b, %dil
leal (%rdi,%rdi,8), %edi
leal (%rdi,%r15,2), %edi
addl $-0x9, %edi
movb %sil, %dl
leal (%rdx,%rdx,8), %edx
leal (%rdx,%rcx,2), %ecx
addl $-0x9, %ecx
cmpl %ecx, %edi
jg 0x7c738
leaq 0xb07cf(%rip), %rax     # 0x12cfa0
movq 0x38(%rax), %rax
movq %rax, 0x30(%rbx)
pushq $-0x5
popq %r12
jmp 0x7c6f1
movl $0x71, 0x8(%r14)
jmp 0x7ce48
setne %cl
movzbl %cl, %ecx
orl $0x2, %ecx
shll $0x6, %ecx
movl %ecx, %edx
orl %eax, %edx
cmpl $0x0, 0xac(%r14)
leal 0x20(%rcx,%rax), %esi
cmovel %edx, %esi
pushq $0x1f
popq %rcx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
orl %edx, %esi
xorl $0x1f, %esi
movq %r14, %rdi
callq 0x7d831
cmpl $0x0, 0xac(%r14)
je 0x7c845
movl 0x62(%rbx), %esi
movq %r14, %rdi
callq 0x7d831
movzwl 0x60(%rbx), %esi
movq %r14, %rdi
callq 0x7d831
xorl %r12d, %r12d
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9a764
movq %rax, 0x60(%rbx)
movl $0x71, 0x8(%r14)
movq %rbx, %rdi
callq 0x7d7cf
cmpq $0x0, 0x28(%r14)
jne 0x7d5c8
movl 0x8(%r14), %eax
cmpl $0x39, %eax
jne 0x7cb12
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb $0x1f, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb $-0x75, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb $0x8, (%rax,%rcx)
movq 0x38(%r14), %rax
testq %rax, %rax
je 0x7ca47
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(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0x8(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0x9(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0xa(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0xb(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movl 0xc4(%r14), %ecx
movb $0x2, %al
cmpl $0x9, %ecx
je 0x7c9ae
cmpl $0x2, 0xc8(%r14)
setge %dl
cmpl $0x2, %ecx
setl %al
orb %dl, %al
shlb $0x2, %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0x14(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
cmpq $0x0, 0x18(%rax)
je 0x7ca1a
movb 0x20(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
movb 0x21(%rax), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x38(%r14), %rax
cmpl $0x0, 0x44(%rax)
je 0x7ca35
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
movl 0x28(%r14), %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
andq $0x0, 0x40(%r14)
movl $0x45, 0x8(%r14)
jmp 0x7cb36
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%r14)
movb %dl, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%r14)
movb %dl, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%r14)
movb %dl, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%r14)
movb %dl, (%rax,%rcx)
movl 0xc4(%r14), %ecx
movb $0x2, %al
cmpl $0x9, %ecx
je 0x7cacc
cmpl $0x2, 0xc8(%r14)
setge %dl
cmpl $0x2, %ecx
setl %al
orb %dl, %al
shlb $0x2, %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb $0x3, (%rax,%rcx)
movl $0x71, 0x8(%r14)
movq %rbx, %rdi
callq 0x7d7cf
cmpq $0x0, 0x28(%r14)
jne 0x7d52f
movl 0x8(%r14), %eax
cmpl $0x67, %eax
je 0x7cdc5
cmpl $0x49, %eax
je 0x7cc40
cmpl $0x5b, %eax
je 0x7cd05
cmpl $0x45, %eax
jne 0x7ce48
movq 0x38(%r14), %rax
cmpq $0x0, 0x18(%rax)
je 0x7cc38
movq %r15, 0x8(%rsp)
movq 0x28(%r14), %rbp
movzwl 0x20(%rax), %r12d
subl 0x40(%r14), %r12d
movl %r12d, %r12d
leaq (%r12,%rbp), %rax
movq 0x18(%r14), %r15
cmpq %r15, %rax
jbe 0x7cbe2
subq %rbp, %r15
movq 0x10(%r14), %rdi
addq %rbp, %rdi
movq 0x38(%r14), %rax
movq 0x18(%rax), %rsi
addq 0x40(%r14), %rsi
movl %r15d, %r13d
movq %r13, %rdx
callq 0xb520
movq 0x18(%r14), %rdx
movq 0x38(%r14), %rax
movq %rdx, 0x28(%r14)
cmpl $0x0, 0x44(%rax)
setne %al
cmpq %rbp, %rdx
seta %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x7cbbe
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rbp, %rsi
subl %ebp, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
addq %r13, 0x40(%r14)
movq %rbx, %rdi
callq 0x7d7cf
subl %r15d, %r12d
cmpq $0x0, 0x28(%r14)
movl $0x0, %ebp
je 0x7cb57
jmp 0x7d52f
movq 0x10(%r14), %rdi
addq %rbp, %rdi
movq 0x38(%r14), %rax
movq 0x18(%rax), %rsi
addq 0x40(%r14), %rsi
movq %r12, %rdx
callq 0xb520
addq 0x28(%r14), %r12
movq %r12, 0x28(%r14)
movq 0x38(%r14), %rax
cmpl $0x0, 0x44(%rax)
movq 0x8(%rsp), %r15
je 0x7cc33
cmpq %rbp, %r12
jbe 0x7cc33
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rbp, %rsi
subl %ebp, %r12d
movl %r12d, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
andq $0x0, 0x40(%r14)
movl $0x49, 0x8(%r14)
movq 0x38(%r14), %rax
cmpq $0x0, 0x28(%rax)
je 0x7ccfd
movq 0x28(%r14), %rax
movq 0x28(%r14), %rdx
movq 0x38(%r14), %rcx
cmpq 0x18(%r14), %rdx
jne 0x7cca9
cmpl $0x0, 0x44(%rcx)
setne %cl
cmpq %rax, %rdx
seta %sil
andb %cl, %sil
cmpb $0x1, %sil
jne 0x7cc8e
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rax, %rsi
subl %eax, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
callq 0x7d7cf
cmpq $0x0, 0x28(%r14)
jne 0x7d52f
movq 0x38(%r14), %rcx
xorl %edx, %edx
xorl %eax, %eax
movq 0x28(%rcx), %rcx
movq 0x10(%r14), %rsi
movq 0x40(%r14), %rdi
leaq 0x1(%rdi), %r8
movq %r8, 0x40(%r14)
movb (%rcx,%rdi), %cl
leaq 0x1(%rdx), %rdi
movq %rdi, 0x28(%r14)
movb %cl, (%rsi,%rdx)
testb %cl, %cl
jne 0x7cc53
movq 0x38(%r14), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x7ccf8
movq 0x28(%r14), %rdx
cmpq %rax, %rdx
jbe 0x7ccf8
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rax, %rsi
subl %eax, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
andq $0x0, 0x40(%r14)
movl $0x5b, 0x8(%r14)
movq 0x38(%r14), %rax
cmpq $0x0, 0x38(%rax)
je 0x7cdbd
movq 0x28(%r14), %rax
movq 0x28(%r14), %rdx
movq 0x38(%r14), %rcx
cmpq 0x18(%r14), %rdx
jne 0x7cd6e
cmpl $0x0, 0x44(%rcx)
setne %cl
cmpq %rax, %rdx
seta %sil
andb %cl, %sil
cmpb $0x1, %sil
jne 0x7cd53
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rax, %rsi
subl %eax, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
callq 0x7d7cf
cmpq $0x0, 0x28(%r14)
jne 0x7d52f
movq 0x38(%r14), %rcx
xorl %edx, %edx
xorl %eax, %eax
movq 0x38(%rcx), %rcx
movq 0x10(%r14), %rsi
movq 0x40(%r14), %rdi
leaq 0x1(%rdi), %r8
movq %r8, 0x40(%r14)
movb (%rcx,%rdi), %cl
leaq 0x1(%rdx), %rdi
movq %rdi, 0x28(%r14)
movb %cl, (%rsi,%rdx)
testb %cl, %cl
jne 0x7cd18
movq 0x38(%r14), %rcx
cmpl $0x0, 0x44(%rcx)
je 0x7cdbd
movq 0x28(%r14), %rdx
cmpq %rax, %rdx
jbe 0x7cdbd
movq 0x60(%rbx), %rdi
movq 0x10(%r14), %rsi
addq %rax, %rsi
subl %eax, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
movl $0x67, 0x8(%r14)
movq 0x38(%r14), %rax
cmpl $0x0, 0x44(%rax)
je 0x7ce2d
movq 0x28(%r14), %r12
leaq 0x2(%r12), %rax
cmpq 0x18(%r14), %rax
jbe 0x7cdf4
movq %rbx, %rdi
callq 0x7d7cf
xorl %r12d, %r12d
cmpq $0x0, 0x28(%r14)
jne 0x7d5c8
movb 0x60(%rbx), %al
movq 0x10(%r14), %rcx
leaq 0x1(%r12), %rdx
movq %rdx, 0x28(%r14)
movb %al, (%rcx,%r12)
movb 0x61(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9ab51
movq %rax, 0x60(%rbx)
movl $0x71, 0x8(%r14)
movq %rbx, %rdi
callq 0x7d7cf
cmpq $0x0, 0x28(%r14)
jne 0x7d52f
cmpl $0x0, 0x8(%rbx)
jne 0x7ce5c
cmpl $0x0, 0xb4(%r14)
je 0x7cfa3
movslq 0xc4(%r14), %rax
testq %rax, %rax
je 0x7cf93
movl 0xc8(%r14), %ecx
cmpl $0x3, %ecx
je 0x7cfbf
cmpl $0x2, %ecx
jne 0x7d31f
xorl %r12d, %r12d
cmpl $0x0, 0xb4(%r14)
jne 0x7cea8
movq %r14, %rdi
callq 0x7c100
cmpl $0x0, 0xb4(%r14)
je 0x7d339
andl $0x0, 0xa0(%r14)
movq 0x60(%r14), %rax
movl 0xac(%r14), %ecx
movzbl (%rax,%rcx), %eax
movq 0x1700(%r14), %rcx
movl 0x170c(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%r14)
movb %r12b, (%rcx,%rdx)
movq 0x1700(%r14), %rcx
movl 0x170c(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%r14)
movb %r12b, (%rcx,%rdx)
movq 0x1700(%r14), %rcx
movl 0x170c(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%r14)
movb %al, (%rcx,%rdx)
incw 0xd4(%r14,%rax,4)
movl 0x170c(%r14), %ecx
decl 0xb4(%r14)
movl 0xac(%r14), %eax
incl %eax
cmpl 0x1710(%r14), %ecx
movl %eax, 0xac(%r14)
jne 0x7ce88
movq 0x98(%r14), %rcx
testq %rcx, %rcx
js 0x7cf5a
movl %ecx, %esi
addq 0x60(%r14), %rsi
jmp 0x7cf5c
xorl %esi, %esi
movl %eax, %edx
subq %rcx, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x7ede8
movl 0xac(%r14), %eax
movq %rax, 0x98(%r14)
movq (%r14), %rdi
callq 0x7d7cf
movq (%r14), %rax
cmpl $0x0, 0x20(%rax)
jne 0x7ce88
jmp 0x7d5bb
movq %r14, %rdi
movl %r15d, %esi
callq 0x7d85a
jmp 0x7d3c3
testl %r15d, %r15d
je 0x7d534
cmpl $0x29a, 0x8(%r14)       # imm = 0x29A
jne 0x7ce5c
jmp 0x7d45c
xorl %r12d, %r12d
movq %r15, 0x8(%rsp)
movl 0xb4(%r14), %ecx
cmpl $0x103, %ecx            # imm = 0x103
jae 0x7d023
testl %r15d, %r15d
sete %bpl
movq %r14, %rdi
callq 0x7c100
movl 0xb4(%r14), %ecx
cmpl $0x103, %ecx            # imm = 0x103
setb %al
testb %al, %bpl
jne 0x7d5bb
testl %ecx, %ecx
je 0x7d342
andl $0x0, 0xa0(%r14)
movl 0xac(%r14), %esi
cmpl $0x2, %ecx
ja 0x7d032
movq 0x60(%r14), %rax
jmp 0x7d137
andl $0x0, 0xa0(%r14)
movl 0xac(%r14), %esi
movq 0x60(%r14), %rax
testl %esi, %esi
je 0x7d135
movl %esi, %edx
movb -0x1(%rax,%rdx), %r8b
cmpb (%rax,%rdx), %r8b
jne 0x7d137
leaq (%rax,%rdx), %rdi
cmpb 0x1(%rdi), %r8b
jne 0x7d137
cmpb 0x2(%rdi), %r8b
jne 0x7d137
addq $0x102, %rdi            # imm = 0x102
movq %rdi, 0x18(%rsp)
leaq 0x2(%rdx), %rbp
leaq 0x3(%rdx), %r12
leaq 0x4(%rdx), %rsi
movq %rsi, 0x10(%rsp)
leaq 0x5(%rdx), %r10
leaq 0x6(%rdx), %r11
leaq 0x7(%rdx), %rsi
leaq 0x8(%rdx), %r9
leaq 0x9(%rdx), %r13
pushq $0x2
popq %rdi
cmpb (%rax,%r12), %r8b
jne 0x7d213
cmpb 0x1(%rax,%r12), %r8b
jne 0x7d21b
cmpb 0x2(%rax,%r12), %r8b
jne 0x7d225
cmpb 0x3(%rax,%r12), %r8b
jne 0x7d22d
cmpb 0x4(%rax,%r12), %r8b
jne 0x7d235
cmpb 0x5(%rax,%r12), %r8b
jne 0x7d23d
cmpb 0x6(%rax,%r12), %r8b
jne 0x7d245
addq $0x8, %rbp
cmpq $0xf9, %rdi
ja 0x7d220
addq $0x8, %rdi
leaq 0x8(%r12), %r15
movq %r15, 0x20(%rsp)
addq $0x8, 0x10(%rsp)
addq $0x8, %r10
addq $0x8, %r11
addq $0x8, %rsi
addq $0x8, %r9
addq $0x8, %r13
cmpb 0x7(%rax,%r12), %r8b
movq 0x20(%rsp), %r12
je 0x7d09b
jmp 0x7d220
xorl %esi, %esi
movl 0x170c(%r14), %ecx
movl %esi, %edx
movzbl (%rax,%rdx), %eax
movq 0x1700(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0x170c(%r14)
movl %ecx, %ecx
movb %r12b, (%rdx,%rcx)
movq 0x1700(%r14), %rcx
movl 0x170c(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%r14)
movb %r12b, (%rcx,%rdx)
movq 0x1700(%r14), %rcx
movl 0x170c(%r14), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%r14)
movb %al, (%rcx,%rdx)
incw 0xd4(%r14,%rax,4)
movl 0x170c(%r14), %ecx
decl 0xb4(%r14)
movl 0xac(%r14), %eax
incl %eax
cmpl 0x1710(%r14), %ecx
movl %eax, 0xac(%r14)
jne 0x7cfc7
movq 0x98(%r14), %rcx
testq %rcx, %rcx
js 0x7d1da
movl %ecx, %esi
addq 0x60(%r14), %rsi
jmp 0x7d1dc
xorl %esi, %esi
movl %eax, %edx
subq %rcx, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x7ede8
movl 0xac(%r14), %eax
movq %rax, 0x98(%r14)
movq (%r14), %rdi
callq 0x7d7cf
movq (%r14), %rax
cmpl $0x0, 0x20(%rax)
jne 0x7cfc7
jmp 0x7d5bb
addq %rax, %r12
movq %r12, %rbp
jmp 0x7d24b
movq 0x10(%rsp), %rbp
addq %rax, %rbp
jmp 0x7d24b
addq %rax, %r10
movq %r10, %rbp
jmp 0x7d24b
addq %rax, %r11
movq %r11, %rbp
jmp 0x7d24b
addq %rax, %rsi
movq %rsi, %rbp
jmp 0x7d24b
addq %rax, %r9
movq %r9, %rbp
jmp 0x7d24b
addq %rax, %r13
movq %r13, %rbp
subl 0x18(%rsp), %ebp
addl $0x102, %ebp            # imm = 0x102
cmpl %ecx, %ebp
cmovael %ecx, %ebp
movl %ebp, 0xa0(%r14)
movl 0x170c(%r14), %ecx
cmpl $0x3, %ebp
movq 0x8(%rsp), %r15
movl $0x0, %r12d
jb 0x7d140
addb $-0x3, %bpl
movq 0x1700(%r14), %rax
movl %ecx, %edx
incl %edx
movl %edx, 0x170c(%r14)
movb $0x1, (%rax,%rcx)
movq 0x1700(%r14), %rax
movl 0x170c(%r14), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x170c(%r14)
movb $0x0, (%rax,%rcx)
movq 0x1700(%r14), %rax
movl 0x170c(%r14), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x170c(%r14)
movb %bpl, (%rax,%rcx)
movzbl %bpl, %eax
leaq 0x641b7(%rip), %rcx     # 0xe1490
movzbl (%rax,%rcx), %eax
incw 0x4d8(%r14,%rax,4)
movzbl 0x63fa3(%rip), %eax     # 0xe1290
incw 0x9c8(%r14,%rax,4)
movl 0x170c(%r14), %ecx
movl 0xa0(%r14), %eax
subl %eax, 0xb4(%r14)
addl 0xac(%r14), %eax
andl $0x0, 0xa0(%r14)
jmp 0x7d1b2
shlq $0x4, %rax
leaq 0xafb76(%rip), %rcx     # 0x12cea0
movq %r14, %rdi
movl %r15d, %esi
callq *0x8(%rax,%rcx)
jmp 0x7d3c3
testl %r15d, %r15d
je 0x7d5bb
andl $0x0, 0x172c(%r14)
cmpl $0x4, %r15d
jne 0x7d364
movq 0x98(%r14), %rax
testq %rax, %rax
js 0x7d389
movl %eax, %esi
addq 0x60(%r14), %rsi
jmp 0x7d38b
cmpl $0x0, 0x170c(%r14)
je 0x7d3e5
movq 0x98(%r14), %rax
testq %rax, %rax
js 0x7d582
movl %eax, %esi
addq 0x60(%r14), %rsi
jmp 0x7d584
xorl %esi, %esi
movl 0xac(%r14), %edx
subq %rax, %rdx
pushq $0x1
popq %rcx
movq %r14, %rdi
callq 0x7ede8
movl 0xac(%r14), %eax
movq %rax, 0x98(%r14)
movq (%r14), %rdi
callq 0x7d7cf
movq (%r14), %rax
cmpl $0x1, 0x20(%rax)
pushq $0x3
popq %rax
sbbl $0x0, %eax
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0x7d3d5
movl $0x29a, 0x8(%r14)       # imm = 0x29A
testl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
je 0x7d5bb
cmpl $0x1, %eax
jne 0x7d45c
cmpl $0x5, %r15d
je 0x7d44a
movq %r14, %rdi
cmpl $0x1, %r15d
jne 0x7d3fb
callq 0x7ed25
jmp 0x7d44a
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x7eb24
cmpl $0x3, %r15d
jne 0x7d44a
movq 0x78(%r14), %rdi
movl 0x84(%r14), %edx
decl %edx
andw $0x0, (%rdi,%rdx,2)
addq %rdx, %rdx
xorl %esi, %esi
callq 0xb2f0
cmpl $0x0, 0xb4(%r14)
jne 0x7d44a
andl $0x0, 0xac(%r14)
andq $0x0, 0x98(%r14)
andl $0x0, 0x172c(%r14)
movq %rbx, %rdi
callq 0x7d7cf
cmpl $0x0, 0x20(%rbx)
je 0x7d52f
cmpl $0x4, %r15d
jne 0x7d534
movl 0x30(%r14), %eax
testl %eax, %eax
jle 0x7d53c
movq 0x60(%rbx), %rsi
cmpl $0x2, %eax
jne 0x7d543
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb %sil, (%rax,%rcx)
movb 0x61(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x62(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x63(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x10(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x11(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x12(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movb 0x13(%rbx), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
jmp 0x7d55b
orl $-0x1, 0x4c(%r14)
xorl %r12d, %r12d
jmp 0x7c6f1
pushq $0x1
jmp 0x7c7db
shrq $0x10, %rsi
movq %r14, %rdi
callq 0x7d831
movzwl 0x60(%rbx), %esi
movq %r14, %rdi
callq 0x7d831
movq %rbx, %rdi
callq 0x7d7cf
movl 0x30(%r14), %eax
testl %eax, %eax
jle 0x7d571
negl %eax
movl %eax, 0x30(%r14)
xorl %r12d, %r12d
cmpq $0x0, 0x28(%r14)
sete %r12b
jmp 0x7c6f1
xorl %esi, %esi
movl 0xac(%r14), %edx
subq %rax, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x7ede8
movl 0xac(%r14), %eax
movq %rax, 0x98(%r14)
movq (%r14), %rdi
callq 0x7d7cf
movq (%r14), %rax
cmpl $0x0, 0x20(%rax)
jne 0x7d3e5
xorl %r12d, %r12d
cmpl $0x0, 0x20(%rbx)
jne 0x7c6f1
orl $-0x1, 0x4c(%r14)
jmp 0x7c6f1