LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateEnd
int ZEXPORT deflateEnd(z_streamp strm) {
    int status;

    if (deflateStateCheck(strm)) return Z_STREAM_ERROR;

    status = strm->state->status;

    /* Deallocate in reverse order of allocations: */
    TRY_FREE(strm, strm->state->pending_buf);
    TRY_FREE(strm, strm->state->head);
    TRY_FREE(strm, strm->state->prev);
    TRY_FREE(strm, strm->state->window);

    ZFREE(strm, strm->state);
    strm->state = Z_NULL;

    return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x9c4be
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9c203
movq 0x38(%rbx), %rax
movl 0x8(%rax), %ebp
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x9c1a6
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq 0x38(%rbx), %rax
movq 0x78(%rax), %rsi
testq %rsi, %rsi
je 0x9c1ba
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq 0x38(%rbx), %rax
movq 0x70(%rax), %rsi
testq %rsi, %rsi
je 0x9c1ce
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq 0x38(%rbx), %rax
movq 0x60(%rax), %rsi
testq %rsi, %rsi
je 0x9c1e2
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq $0x0, 0x38(%rbx)
xorl %eax, %eax
cmpl $0x71, %ebp
setne %al
leal (%rax,%rax,2), %eax
addl $-0x3, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateReset
int ZEXPORT deflateReset(z_streamp strm) {
    int ret;

    ret = deflateResetKeep(strm);
    if (ret == Z_OK)
        lm_init(strm->state);
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x9c7da
movl %eax, %ebx
testl %eax, %eax
jne 0x9c2c9
movq 0x38(%r14), %r14
movl 0x50(%r14), %eax
addq %rax, %rax
movq %rax, 0x68(%r14)
movq 0x78(%r14), %rdi
movl 0x84(%r14), %edx
decl %edx
movw $0x0, (%rdi,%rdx,2)
addq %rdx, %rdx
xorl %r15d, %r15d
xorl %esi, %esi
callq 0xb2f0
movslq 0xc4(%r14), %rax
shlq $0x4, %rax
leaq 0xb3c5e(%rip), %rcx     # 0x14fec0
movzwl 0x2(%rax,%rcx), %edx
movl %edx, 0xc0(%r14)
movzwl (%rax,%rcx), %edx
movl %edx, 0xcc(%r14)
movzwl 0x4(%rax,%rcx), %edx
movl %edx, 0xd0(%r14)
movzwl 0x6(%rax,%rcx), %eax
movl %eax, 0xbc(%r14)
movq %r15, 0x98(%r14)
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0xb4(%r14)
movl %r15d, 0x172c(%r14)
movl $0x2, 0xa0(%r14)
movq %r15, 0xa8(%r14)
movl %r15d, 0x80(%r14)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateStateCheck
local int deflateStateCheck(z_streamp strm) {
    deflate_state *s;
    if (strm == Z_NULL ||
        strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
        return 1;
    s = strm->state;
    if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE &&
#ifdef GZIP
                                           s->status != GZIP_STATE &&
#endif
                                           s->status != EXTRA_STATE &&
                                           s->status != NAME_STATE &&
                                           s->status != COMMENT_STATE &&
                                           s->status != HCRC_STATE &&
                                           s->status != BUSY_STATE &&
                                           s->status != FINISH_STATE))
        return 1;
    return 0;
}

// Assembly:
movl $0x1, %eax
testq %rdi, %rdi
je 0x9c4e4
cmpq $0x0, 0x40(%rdi)
je 0x9c4e4
cmpq $0x0, 0x48(%rdi)
je 0x9c4e4
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0x9c4e4
cmpq %rdi, (%rcx)
je 0x9c4e5
retq
movl 0x8(%rcx), %ecx
leal -0x39(%rcx), %edx
cmpl $0x38, %edx
ja 0x9c503
movabsq $0x100400400011001, %rsi # imm = 0x100400400011001
btq %rdx, %rsi
jae 0x9c503
xorl %eax, %eax
retq
cmpl $0x29a, %ecx            # imm = 0x29A
je 0x9c500
cmpl $0x2a, %ecx
jne 0x9c4e4
jmp 0x9c500
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateGetDictionary
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary,
                                 uInt *dictLength) {
    deflate_state *s;
    uInt len;

    if (deflateStateCheck(strm))
        return Z_STREAM_ERROR;
    s = strm->state;
    len = s->strstart + s->lookahead;
    if (len > s->w_size)
        len = s->w_size;
    if (dictionary != Z_NULL && len)
        zmemcpy(dictionary, s->window + s->strstart + s->lookahead - len, len);
    if (dictLength != Z_NULL)
        *dictLength = len;
    return Z_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x9c4be
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9c7cf
movq 0x38(%r15), %rax
movl 0x50(%rax), %ebp
movl 0xac(%rax), %esi
movl 0xb4(%rax), %ecx
leal (%rcx,%rsi), %edx
cmpl %ebp, %edx
cmovbl %edx, %ebp
testq %r14, %r14
je 0x9c7c6
testl %ebp, %ebp
je 0x9c7c6
addq 0x60(%rax), %rsi
addq %rcx, %rsi
movl %ebp, %edx
subq %rdx, %rsi
movq %r14, %rdi
callq 0xb520
xorl %eax, %eax
testq %rbx, %rbx
je 0x9c7cf
movl %ebp, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflatePending
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits) {
    if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
    if (pending != Z_NULL)
        *pending = strm->state->pending;
    if (bits != Z_NULL)
        *bits = strm->state->bi_valid;
    return Z_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x9c4be
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9c8e3
testq %r15, %r15
je 0x9c8d0
movq 0x38(%r14), %rax
movl 0x28(%rax), %eax
movl %eax, (%r15)
xorl %eax, %eax
testq %rbx, %rbx
je 0x9c8e3
movq 0x38(%r14), %rcx
movl 0x1734(%rcx), %ecx
movl %ecx, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflatePrime
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value) {
    deflate_state *s;
    int put;

    if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
    s = strm->state;
#ifdef LIT_MEM
    if (bits < 0 || bits > 16 ||
        (uchf *)s->d_buf < s->pending_out + ((Buf_size + 7) >> 3))
        return Z_BUF_ERROR;
#else
    if (bits < 0 || bits > 16 ||
        s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3))
        return Z_BUF_ERROR;
#endif
    do {
        put = Buf_size - s->bi_valid;
        if (put > bits)
            put = bits;
        s->bi_buf |= (ush)((value & ((1 << put) - 1)) << s->bi_valid);
        s->bi_valid += put;
        _tr_flush_bits(s);
        value >>= put;
        bits -= put;
    } while (bits);
    return Z_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x9c4be
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9c975
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmpl $0x10, %ebp
ja 0x9c975
movq 0x38(%r14), %r14
movq 0x20(%r14), %rcx
addq $0x2, %rcx
cmpq %rcx, 0x1700(%r14)
jb 0x9c975
movl 0x1734(%r14), %eax
movl $0x10, %r15d
subl %eax, %r15d
cmpl %ebp, %r15d
cmovgel %ebp, %r15d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %r15d, %ecx
shll %cl, %edx
notl %edx
andl %ebx, %edx
movl %eax, %ecx
shll %cl, %edx
orw %dx, 0x1730(%r14)
addl %r15d, %eax
movl %eax, 0x1734(%r14)
movq %r14, %rdi
callq 0x9f6e2
movl %r15d, %ecx
sarl %cl, %ebx
subl %r15d, %ebp
jne 0x9c926
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: slide_hash
local void slide_hash(deflate_state *s) {
    unsigned n, m;
    Posf *p;
    uInt wsize = s->w_size;

    n = s->hash_size;
    p = &s->head[n];
    do {
        m = *--p;
        *p = (Pos)(m >= wsize ? m - wsize : NIL);
    } while (--n);
    n = wsize;
#ifndef FASTEST
    p = &s->prev[n];
    do {
        m = *--p;
        *p = (Pos)(m >= wsize ? m - wsize : NIL);
        /* If n is not on any hash chain, prev[n] is garbage but
         * its value will never be used.
         */
    } while (--n);
#endif
}

// Assembly:
movl 0x50(%rdi), %eax
movl 0x84(%rdi), %ecx
movq 0x78(%rdi), %rdx
leaq (%rdx,%rcx,2), %rdx
addq $-0x2, %rdx
xorl %esi, %esi
movzwl (%rdx), %r8d
subl %eax, %r8d
cmovbl %esi, %r8d
movw %r8w, (%rdx)
addq $-0x2, %rdx
decl %ecx
jne 0x9d614
movq 0x70(%rdi), %rcx
leaq (%rcx,%rax,2), %rcx
addq $-0x2, %rcx
xorl %edx, %edx
movl %eax, %esi
movzwl (%rcx), %edi
subl %eax, %edi
cmovbl %edx, %edi
movw %di, (%rcx)
addq $-0x2, %rcx
decl %esi
jne 0x9d63b
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateTune
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy,
                        int nice_length, int max_chain) {
    deflate_state *s;

    if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
    s = strm->state;
    s->good_match = (uInt)good_length;
    s->max_lazy_match = (uInt)max_lazy;
    s->nice_match = nice_length;
    s->max_chain_length = (uInt)max_chain;
    return Z_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %r12
callq 0x9c4be
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9d696
movq 0x38(%r12), %rax
movl %r15d, 0xcc(%rax)
movl %r14d, 0xc0(%rax)
movl %ebp, 0xd0(%rax)
movl %ebx, 0xbc(%rax)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: flush_pending
local void flush_pending(z_streamp strm) {
    unsigned len;
    deflate_state *s = strm->state;

    _tr_flush_bits(s);
    len = s->pending;
    if (len > strm->avail_out) len = strm->avail_out;
    if (len == 0) return;

    zmemcpy(strm->next_out, s->pending_out, len);
    strm->next_out  += len;
    s->pending_out  += len;
    strm->total_out += len;
    strm->avail_out -= len;
    s->pending      -= len;
    if (s->pending == 0) {
        s->pending_out = s->pending_buf;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x38(%rdi), %rbx
movq %rbx, %rdi
callq 0x9f6e2
movl 0x28(%rbx), %ebp
movl 0x20(%r14), %eax
cmpl %ebp, %eax
cmovbl %eax, %ebp
testl %ebp, %ebp
je 0x9d85a
movq 0x18(%r14), %rdi
movq 0x20(%rbx), %rsi
movl %ebp, %r15d
movq %r15, %rdx
callq 0xb520
addq %r15, 0x18(%r14)
addq %r15, 0x20(%rbx)
addq %r15, 0x28(%r14)
subl %ebp, 0x20(%r14)
subq %r15, 0x28(%rbx)
jne 0x9d85a
movq 0x10(%rbx), %rax
movq %rax, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflate_huff
local block_state deflate_huff(deflate_state *s, int flush) {
    int bflush;             /* set if current block must be flushed */

    for (;;) {
        /* Make sure that we have a literal to write. */
        if (s->lookahead == 0) {
            fill_window(s);
            if (s->lookahead == 0) {
                if (flush == Z_NO_FLUSH)
                    return need_more;
                break;      /* flush the current block */
            }
        }

        /* Output a literal byte */
        s->match_length = 0;
        Tracevv((stderr,"%c", s->window[s->strstart]));
        _tr_tally_lit(s, s->window[s->strstart], bflush);
        s->lookahead--;
        s->strstart++;
        if (bflush) FLUSH_BLOCK(s, 0);
    }
    s->insert = 0;
    if (flush == Z_FINISH) {
        FLUSH_BLOCK(s, 1);
        return finish_done;
    }
    if (s->sym_next)
        FLUSH_BLOCK(s, 0);
    return block_done;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
xorl %r15d, %r15d
cmpl $0x0, 0xb4(%rbx)
jne 0x9dcda
movq %rbx, %rdi
callq 0x9c512
cmpl $0x0, 0xb4(%rbx)
je 0x9ddbc
movl $0x0, 0xa0(%rbx)
movq 0x60(%rbx), %rax
movl 0xac(%rbx), %ecx
movzbl (%rax,%rcx), %eax
movq 0x1700(%rbx), %rcx
movl 0x170c(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%rbx)
movb %r15b, (%rcx,%rdx)
movq 0x1700(%rbx), %rcx
movl 0x170c(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%rbx)
movb %r15b, (%rcx,%rdx)
movq 0x1700(%rbx), %rcx
movl 0x170c(%rbx), %edx
leal 0x1(%rdx), %esi
movl %esi, 0x170c(%rbx)
movb %al, (%rcx,%rdx)
incw 0xd4(%rbx,%rax,4)
movl 0x170c(%rbx), %ecx
decl 0xb4(%rbx)
movl 0xac(%rbx), %eax
incl %eax
cmpl 0x1710(%rbx), %ecx
movl %eax, 0xac(%rbx)
jne 0x9dcbc
movq 0x98(%rbx), %rcx
testq %rcx, %rcx
js 0x9dd81
movl %ecx, %esi
addq 0x60(%rbx), %rsi
jmp 0x9dd83
xorl %esi, %esi
movl %eax, %edx
subq %rcx, %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9f838
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9d803
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
jne 0x9dcbc
jmp 0x9de88
testl %ebp, %ebp
je 0x9dde3
movl $0x0, 0x172c(%rbx)
cmpl $0x4, %ebp
jne 0x9ddeb
movq 0x98(%rbx), %rax
testq %rax, %rax
js 0x9de0f
movl %eax, %esi
addq 0x60(%rbx), %rsi
jmp 0x9de11
xorl %r14d, %r14d
jmp 0x9de88
cmpl $0x0, 0x170c(%rbx)
je 0x9de82
movq 0x98(%rbx), %rax
xorl %r14d, %r14d
testq %rax, %rax
js 0x9de4f
movl %eax, %esi
addq 0x60(%rbx), %rsi
jmp 0x9de51
xorl %esi, %esi
movl 0xac(%rbx), %edx
subq %rax, %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x9f838
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9d803
movq (%rbx), %rax
cmpl $0x1, 0x20(%rax)
movl $0x3, %r14d
sbbl $0x0, %r14d
jmp 0x9de88
xorl %esi, %esi
movl 0xac(%rbx), %edx
subq %rax, %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9f838
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9d803
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
je 0x9de88
movl $0x1, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: read_buf
local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) {
    unsigned len = strm->avail_in;

    if (len > size) len = size;
    if (len == 0) return 0;

    strm->avail_in  -= len;

    zmemcpy(buf, strm->next_in, len);
    if (strm->state->wrap == 1) {
        strm->adler = adler32(strm->adler, buf, len);
    }
#ifdef GZIP
    else if (strm->state->wrap == 2) {
        strm->adler = crc32(strm->adler, buf, len);
    }
#endif
    strm->next_in  += len;
    strm->total_in += len;

    return len;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movl 0x8(%rdi), %eax
cmpl %edx, %eax
cmovbl %eax, %ebx
testl %ebx, %ebx
je 0x9e43e
movq %rsi, %r12
movq %rdi, %r14
subl %ebx, %eax
movl %eax, 0x8(%rdi)
movq (%rdi), %rsi
movl %ebx, %r15d
movq %r12, %rdi
movq %r15, %rdx
callq 0xb520
movq 0x38(%r14), %rax
movl 0x30(%rax), %eax
cmpl $0x2, %eax
je 0x9e442
cmpl $0x1, %eax
jne 0x9e454
movq 0x60(%r14), %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xb88a4
jmp 0x9e450
xorl %ebx, %ebx
jmp 0x9e45b
movq 0x60(%r14), %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xb8d6b
movq %rax, 0x60(%r14)
addq %r15, (%r14)
addq %r15, 0x10(%r14)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: tr_stored_block
void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf,
                                    ulg stored_len, int last) {
    send_bits(s, (STORED_BLOCK<<1) + last, 3);  /* send block type */
    bi_windup(s);        /* align on byte boundary */
    put_short(s, (ush)stored_len);
    put_short(s, (ush)~stored_len);
    if (stored_len)
        zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len);
    s->pending += stored_len;
#ifdef ZLIB_DEBUG
    s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L;
    s->compressed_len += (stored_len + 4) << 3;
    s->bits_sent += 2*16;
    s->bits_sent += stored_len << 3;
#endif
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %ecx, %r8d
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl 0x1734(%rdi), %eax
cmpl $0xe, %eax
jl 0x9f5e1
movzwl %r8w, %edx
movl %eax, %ecx
shll %cl, %r8d
orw 0x1730(%r14), %r8w
movw %r8w, 0x1730(%r14)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x28(%r14)
movb %r8b, (%rax,%rcx)
movb 0x1731(%r14), %al
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rsi
leaq 0x1(%rsi), %rdi
movq %rdi, 0x28(%r14)
movb %al, (%rcx,%rsi)
movl 0x1734(%r14), %eax
movb $0x10, %cl
subb %al, %cl
shrl %cl, %edx
movw %dx, 0x1730(%r14)
addl $-0xd, %eax
jmp 0x9f5f1
movl %eax, %ecx
shll %cl, %r8d
orw %r8w, 0x1730(%r14)
addl $0x3, %eax
movl %eax, 0x1734(%r14)
movq %r14, %rdi
callq 0x9f675
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb %bl, (%rax,%rcx)
movq 0x10(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x28(%r14)
movb %bh, (%rax,%rcx)
movl %ebx, %eax
xorl $0xffff, %eax           # imm = 0xFFFF
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %al, (%rcx,%rdx)
movq 0x10(%r14), %rcx
movq 0x28(%r14), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%r14)
movb %ah, (%rcx,%rdx)
testq %rbx, %rbx
je 0x9f66b
movq 0x10(%r14), %rdi
addq 0x28(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xb520
addq %rbx, 0x28(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: bi_windup
local void bi_windup(deflate_state *s) {
    if (s->bi_valid > 8) {
        put_short(s, s->bi_buf);
    } else if (s->bi_valid > 0) {
        put_byte(s, (Byte)s->bi_buf);
    }
    s->bi_buf = 0;
    s->bi_valid = 0;
#ifdef ZLIB_DEBUG
    s->bits_sent = (s->bits_sent + 7) & ~7;
#endif
}

// Assembly:
movl 0x1734(%rdi), %eax
cmpl $0x9, %eax
jl 0x9f6ab
movb 0x1730(%rdi), %dl
leaq 0x10(%rdi), %rcx
leaq 0x28(%rdi), %rax
movq 0x10(%rdi), %rsi
movq 0x28(%rdi), %r8
leaq 0x1(%r8), %r9
movq %r9, 0x28(%rdi)
movb %dl, (%rsi,%r8)
movzbl 0x1731(%rdi), %edx
jmp 0x9f6be
testl %eax, %eax
jle 0x9f6ce
movzwl 0x1730(%rdi), %edx
leaq 0x10(%rdi), %rcx
leaq 0x28(%rdi), %rax
movq (%rcx), %rcx
movq (%rax), %rsi
leaq 0x1(%rsi), %r8
movq %r8, (%rax)
movb %dl, (%rcx,%rsi)
movw $0x0, 0x1730(%rdi)
movl $0x0, 0x1734(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: bi_flush
local void bi_flush(deflate_state *s) {
    if (s->bi_valid == 16) {
        put_short(s, s->bi_buf);
        s->bi_buf = 0;
        s->bi_valid = 0;
    } else if (s->bi_valid >= 8) {
        put_byte(s, (Byte)s->bi_buf);
        s->bi_buf >>= 8;
        s->bi_valid -= 8;
    }
}

// Assembly:
movl 0x1734(%rdi), %eax
cmpl $0x10, %eax
jne 0x9f72e
movb 0x1730(%rdi), %al
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%rdi)
movb %al, (%rcx,%rdx)
movb 0x1731(%rdi), %al
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%rdi)
movb %al, (%rcx,%rdx)
movw $0x0, 0x1730(%rdi)
xorl %eax, %eax
jmp 0x9f763
cmpl $0x8, %eax
jl 0x9f769
movb 0x1730(%rdi), %al
movq 0x10(%rdi), %rcx
movq 0x28(%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x28(%rdi)
movb %al, (%rcx,%rdx)
movzbl 0x1731(%rdi), %eax
movw %ax, 0x1730(%rdi)
movl 0x1734(%rdi), %eax
addl $-0x8, %eax
movl %eax, 0x1734(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: tr_tally
int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc) {
#ifdef LIT_MEM
    s->d_buf[s->sym_next] = (ush)dist;
    s->l_buf[s->sym_next++] = (uch)lc;
#else
    s->sym_buf[s->sym_next++] = (uch)dist;
    s->sym_buf[s->sym_next++] = (uch)(dist >> 8);
    s->sym_buf[s->sym_next++] = (uch)lc;
#endif
    if (dist == 0) {
        /* lc is the unmatched char */
        s->dyn_ltree[lc].Freq++;
    } else {
        s->matches++;
        /* Here, lc is the match length - MIN_MATCH */
        dist--;             /* dist = match distance - 1 */
        Assert((ush)dist < (ush)MAX_DIST(s) &&
               (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&
               (ush)d_code(dist) < (ush)D_CODES,  "_tr_tally: bad match");

        s->dyn_ltree[_length_code[lc] + LITERALS + 1].Freq++;
        s->dyn_dtree[d_code(dist)].Freq++;
    }
    return (s->sym_next == s->sym_end);
}

// Assembly:
movl %esi, %eax
movq 0x1700(%rdi), %rcx
movl 0x170c(%rdi), %esi
leal 0x1(%rsi), %r8d
movl %r8d, 0x170c(%rdi)
movb %al, (%rcx,%rsi)
movq 0x1700(%rdi), %rcx
movl 0x170c(%rdi), %esi
leal 0x1(%rsi), %r8d
movl %r8d, 0x170c(%rdi)
movb %ah, (%rcx,%rsi)
movq 0x1700(%rdi), %rcx
movl 0x170c(%rdi), %esi
leal 0x1(%rsi), %r8d
movl %r8d, 0x170c(%rdi)
movb %dl, (%rcx,%rsi)
testl %eax, %eax
je 0xa0b4b
incl 0x1728(%rdi)
movl %edx, %ecx
leaq 0x576fe(%rip), %rdx     # 0xf8210
movzbl (%rcx,%rdx), %ecx
incw 0x4d8(%rdi,%rcx,4)
leal -0x1(%rax), %ecx
movl %ecx, %edx
shrl $0x7, %edx
addl $0x100, %edx            # imm = 0x100
cmpl $0x101, %eax            # imm = 0x101
cmovbl %ecx, %edx
leaq 0x574d5(%rip), %rax     # 0xf8010
movzbl (%rdx,%rax), %eax
leaq (%rdi,%rax,4), %rax
addq $0x9c8, %rax            # imm = 0x9C8
jmp 0xa0b57
movl %edx, %eax
leaq (%rdi,%rax,4), %rax
addq $0xd4, %rax
incw (%rax)
movl 0x170c(%rdi), %ecx
xorl %eax, %eax
cmpl 0x1710(%rdi), %ecx
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: pqdownheap
local void pqdownheap(deflate_state *s, ct_data *tree, int k) {
    int v = s->heap[k];
    int j = k << 1;  /* left son of k */
    while (j <= s->heap_len) {
        /* Set j to the smallest of the two sons: */
        if (j < s->heap_len &&
            smaller(tree, s->heap[j + 1], s->heap[j], s->depth)) {
            j++;
        }
        /* Exit if v is smaller than both sons */
        if (smaller(tree, v, s->heap[j], s->depth)) break;

        /* Exchange v with the smallest son */
        s->heap[k] = s->heap[j];  k = j;

        /* And continue down the tree, setting j to the left son of k */
        j <<= 1;
    }
    s->heap[k] = v;
}

// Assembly:
movl %edx, %eax
movl 0xbc0(%rdi,%rax,4), %eax
leal (%rdx,%rdx), %r9d
movl 0x14b4(%rdi), %r10d
cmpl %r10d, %r9d
jle 0xa0b8d
movl %edx, %r8d
jmp 0xa0c36
pushq %rbx
movslq %eax, %rcx
cmpl %r10d, %r9d
jge 0xa0bdd
movl %r9d, %r10d
orl $0x1, %r10d
movslq %r10d, %r8
movslq 0xbc0(%rdi,%r8,4), %r8
movslq %r9d, %r11
movslq 0xbc0(%rdi,%r11,4), %r11
movzwl (%rsi,%r11,4), %ebx
cmpw %bx, (%rsi,%r8,4)
jae 0xa0bc4
movl %r10d, %r8d
jmp 0xa0be0
jne 0xa0bdd
movb 0x14bc(%rdi,%r8), %bl
movl %r9d, %r8d
cmpb 0x14bc(%rdi,%r11), %bl
jbe 0xa0bbf
jmp 0xa0be0
movl %r9d, %r8d
movslq %r8d, %r9
movl 0xbc0(%rdi,%r9,4), %r9d
movslq %r9d, %r10
movzwl (%rsi,%r10,4), %r11d
cmpw %r11w, (%rsi,%rcx,4)
jb 0xa0c32
jne 0xa0c0e
movb 0x14bc(%rdi,%rcx), %r11b
cmpb 0x14bc(%rdi,%r10), %r11b
jbe 0xa0c32
movslq %edx, %rdx
movl %r9d, 0xbc0(%rdi,%rdx,4)
leal (%r8,%r8), %r9d
movl 0x14b4(%rdi), %r10d
movl %r8d, %edx
cmpl %r10d, %r9d
jle 0xa0b91
jmp 0xa0c35
movl %edx, %r8d
popq %rbx
movslq %r8d, %rcx
movl %eax, 0xbc0(%rdi,%rcx,4)
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/trees.c
// Function: scan_tree
local void scan_tree(deflate_state *s, ct_data *tree, int max_code) {
    int n;                     /* iterates over all tree elements */
    int prevlen = -1;          /* last emitted length */
    int curlen;                /* length of current code */
    int nextlen = tree[0].Len; /* length of next code */
    int count = 0;             /* repeat count of the current code */
    int max_count = 7;         /* max repeat count */
    int min_count = 4;         /* min repeat count */

    if (nextlen == 0) max_count = 138, min_count = 3;
    tree[max_code + 1].Len = (ush)0xffff; /* guard */

    for (n = 0; n <= max_code; n++) {
        curlen = nextlen; nextlen = tree[n + 1].Len;
        if (++count < max_count && curlen == nextlen) {
            continue;
        } else if (count < min_count) {
            s->bl_tree[curlen].Freq += count;
        } else if (curlen != 0) {
            if (curlen != prevlen) s->bl_tree[curlen].Freq++;
            s->bl_tree[REP_3_6].Freq++;
        } else if (count <= 10) {
            s->bl_tree[REPZ_3_10].Freq++;
        } else {
            s->bl_tree[REPZ_11_138].Freq++;
        }
        count = 0; prevlen = curlen;
        if (nextlen == 0) {
            max_count = 138, min_count = 3;
        } else if (curlen == nextlen) {
            max_count = 6, min_count = 3;
        } else {
            max_count = 7, min_count = 4;
        }
    }
}

// Assembly:
movzwl 0x2(%rsi), %eax
movslq %edx, %rcx
movw $0xffff, 0x6(%rsi,%rcx,4) # imm = 0xFFFF
testl %ecx, %ecx
js 0xa0d26
pushq %r14
pushq %rbx
xorl %r9d, %r9d
testl %eax, %eax
setne %r9b
movl $0x8a, %ecx
movl $0x7, %r10d
cmovel %ecx, %r10d
addl $0x3, %r9d
incl %edx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %r14d, %r14d
movl %eax, %r8d
movzwl 0x6(%rsi,%rcx,4), %eax
leal 0x1(%r14), %r11d
cmpl %r10d, %r11d
jge 0xa0c9d
cmpl %eax, %r8d
jne 0xa0c9d
movl %ebx, %r8d
jmp 0xa0d11
cmpl %r9d, %r11d
jge 0xa0cb0
movl %r8d, %r9d
addw %r11w, 0xabc(%rdi,%r9,4)
jmp 0xa0ce5
testl %r8d, %r8d
je 0xa0ccf
cmpl %ebx, %r8d
je 0xa0cc6
movl %r8d, %r9d
incw 0xabc(%rdi,%r9,4)
incw 0xafc(%rdi)
jmp 0xa0ce5
cmpl $0x9, %r14d
jg 0xa0cde
incw 0xb00(%rdi)
jmp 0xa0ce5
incw 0xb04(%rdi)
xorl %r11d, %r11d
testl %eax, %eax
je 0xa0d05
xorl %r10d, %r10d
cmpl %eax, %r8d
sete %r10b
movl $0x4, %r9d
subl %r10d, %r9d
xorl $0x7, %r10d
jmp 0xa0d11
movl $0x3, %r9d
movl $0x8a, %r10d
incq %rcx
movl %r11d, %r14d
movl %r8d, %ebx
cmpq %rcx, %rdx
jne 0xa0c82
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateResetKeep
int ZEXPORT inflateResetKeep(z_streamp strm) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    strm->total_in = strm->total_out = state->total = 0;
    strm->msg = Z_NULL;
    if (state->wrap)        /* to support ill-conceived Java test suite */
        strm->adler = state->wrap & 1;
    state->mode = HEAD;
    state->last = 0;
    state->havedict = 0;
    state->flags = -1;
    state->dmax = 32768U;
    state->head = Z_NULL;
    state->hold = 0;
    state->bits = 0;
    state->lencode = state->distcode = state->next = state->codes;
    state->sane = 1;
    state->back = -1;
    Tracev((stderr, "inflate: reset\n"));
    return Z_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa1337
movq 0x38(%rbx), %rcx
xorl %eax, %eax
movq %rax, 0x28(%rcx)
movq %rax, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movl 0x10(%rcx), %edx
testq %rdx, %rdx
je 0xa12e4
andl $0x1, %edx
movq %rdx, 0x60(%rbx)
movq $0x3f34, 0x8(%rcx)      # imm = 0x3F34
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
movq %rdx, 0x14(%rcx)
movl $0x8000, 0x1c(%rcx)     # imm = 0x8000
movq %rax, 0x30(%rcx)
movq %rax, 0x50(%rcx)
movl $0x0, 0x58(%rcx)
leaq 0x558(%rcx), %rdx
movq %rdx, 0x90(%rcx)
movq %rdx, 0x70(%rcx)
movq %rdx, 0x68(%rcx)
movabsq $-0xffffffff, %rdx      # imm = 0xFFFFFFFF00000001
movq %rdx, 0x1be8(%rcx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateStateCheck
local int inflateStateCheck(z_streamp strm) {
    struct inflate_state FAR *state;
    if (strm == Z_NULL ||
        strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
        return 1;
    state = (struct inflate_state FAR *)strm->state;
    if (state == Z_NULL || state->strm != strm ||
        state->mode < HEAD || state->mode > SYNC)
        return 1;
    return 0;
}

// Assembly:
movl $0x1, %eax
testq %rdi, %rdi
je 0xa135f
cmpq $0x0, 0x40(%rdi)
je 0xa135f
cmpq $0x0, 0x48(%rdi)
je 0xa135f
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0xa135f
cmpq %rdi, (%rcx)
je 0xa1360
retq
movl $0xffffc0ac, %edx       # imm = 0xFFFFC0AC
addl 0x8(%rcx), %edx
xorl %eax, %eax
cmpl $-0x20, %edx
setb %al
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateReset
int ZEXPORT inflateReset(z_streamp strm) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    state->wsize = 0;
    state->whave = 0;
    state->wnext = 0;
    return inflateResetKeep(strm);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
testl %eax, %eax
je 0xa1385
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
popq %rbx
retq
movq 0x38(%rbx), %rax
movq $0x0, 0x3c(%rax)
movl $0x0, 0x44(%rax)
movq %rbx, %rdi
popq %rbx
jmp 0xa12ac
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateReset2
int ZEXPORT inflateReset2(z_streamp strm, int windowBits) {
    int wrap;
    struct inflate_state FAR *state;

    /* get the state */
    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;

    /* extract wrap request from windowBits parameter */
    if (windowBits < 0) {
        if (windowBits < -15)
            return Z_STREAM_ERROR;
        wrap = 0;
        windowBits = -windowBits;
    }
    else {
        wrap = (windowBits >> 4) + 5;
#ifdef GUNZIP
        if (windowBits < 48)
            windowBits &= 15;
#endif
    }

    /* set number of window bits, free window if different */
    if (windowBits && (windowBits < 8 || windowBits > 15))
        return Z_STREAM_ERROR;
    if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) {
        ZFREE(strm, state->window);
        state->window = Z_NULL;
    }

    /* update state and reset the rest of it */
    state->wrap = wrap;
    state->wbits = (unsigned)windowBits;
    return inflateReset(strm);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
callq 0xa1339
testl %eax, %eax
je 0xa13c7
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x38(%rbx), %r15
testl %r14d, %r14d
js 0xa13ec
movl %r14d, %ebp
shrl $0x4, %ebp
addl $0x5, %ebp
movl %r14d, %eax
andl $0xf, %eax
cmpl $0x30, %r14d
cmovgel %r14d, %eax
movl %eax, %r14d
jmp 0xa13f7
cmpl $-0xf, %r14d
jl 0xa13b7
negl %r14d
xorl %ebp, %ebp
leal -0x8(%r14), %eax
cmpl $0x8, %eax
jae 0xa1438
movq 0x48(%r15), %rsi
testq %rsi, %rsi
je 0xa141e
cmpl %r14d, 0x38(%r15)
je 0xa141e
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq $0x0, 0x48(%r15)
movl %ebp, 0x10(%r15)
movl %r14d, 0x38(%r15)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa1371
testl %r14d, %r14d
je 0xa1400
jmp 0xa13b7
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateInit2_
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits,
                          const char *version, int stream_size) {
    int ret;
    struct inflate_state FAR *state;

    if (version == Z_NULL || version[0] != ZLIB_VERSION[0] ||
        stream_size != (int)(sizeof(z_stream)))
        return Z_VERSION_ERROR;
    if (strm == Z_NULL) return Z_STREAM_ERROR;
    strm->msg = Z_NULL;                 /* in case we return an error */
    if (strm->zalloc == (alloc_func)0) {
#ifdef Z_SOLO
        return Z_STREAM_ERROR;
#else
        strm->zalloc = zcalloc;
        strm->opaque = (voidpf)0;
#endif
    }
    if (strm->zfree == (free_func)0)
#ifdef Z_SOLO
        return Z_STREAM_ERROR;
#else
        strm->zfree = zcfree;
#endif
    state = (struct inflate_state FAR *)
            ZALLOC(strm, 1, sizeof(struct inflate_state));
    if (state == Z_NULL) return Z_MEM_ERROR;
    Tracev((stderr, "inflate: allocated\n"));
    strm->state = (struct internal_state FAR *)state;
    state->strm = strm;
    state->window = Z_NULL;
    state->mode = HEAD;     /* to pass state test in inflateReset2() */
    ret = inflateReset2(strm, windowBits);
    if (ret != Z_OK) {
        ZFREE(strm, state);
        strm->state = Z_NULL;
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xfffffffa, %r14d      # imm = 0xFFFFFFFA
testq %rdx, %rdx
je 0xa150e
cmpl $0x70, %ecx
jne 0xa150e
cmpb $0x31, (%rdx)
jne 0xa150e
movq %rdi, %rbx
testq %rdi, %rdi
je 0xa1500
movl %esi, %ebp
movq $0x0, 0x30(%rbx)
cmpq $0x0, 0x40(%rbx)
jne 0xa149a
leaq -0x1f7(%rip), %rax      # 0xa1297
movq %rax, 0x40(%rbx)
movq $0x0, 0x50(%rbx)
cmpq $0x0, 0x48(%rbx)
jne 0xa14ac
leaq -0x207(%rip), %rax      # 0xa12a1
movq %rax, 0x48(%rbx)
movq 0x50(%rbx), %rdi
movl $0x1, %esi
movl $0x1bf8, %edx           # imm = 0x1BF8
callq *0x40(%rbx)
testq %rax, %rax
je 0xa1508
movq %rax, %r15
movq %rax, 0x38(%rbx)
movq %rbx, (%rax)
movq $0x0, 0x48(%rax)
movl $0x3f34, 0x8(%rax)      # imm = 0x3F34
movq %rbx, %rdi
movl %ebp, %esi
callq 0xa13a1
movl %eax, %r14d
testl %eax, %eax
je 0xa150e
movq 0x50(%rbx), %rdi
movq %r15, %rsi
callq *0x48(%rbx)
movq $0x0, 0x38(%rbx)
jmp 0xa150e
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
jmp 0xa150e
movl $0xfffffffc, %r14d      # imm = 0xFFFFFFFC
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflatePrime
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    if (bits == 0)
        return Z_OK;
    state = (struct inflate_state FAR *)strm->state;
    if (bits < 0) {
        state->hold = 0;
        state->bits = 0;
        return Z_OK;
    }
    if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR;
    value &= (1L << bits) - 1;
    state->hold += (unsigned)value << state->bits;
    state->bits += (uInt)bits;
    return Z_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa1594
testl %r14d, %r14d
je 0xa1592
movq 0x38(%r15), %rsi
js 0xa1583
cmpl $0x10, %r14d
jg 0xa1594
movl 0x58(%rsi), %edx
leal (%rdx,%r14), %edi
cmpl $0x20, %edi
ja 0xa1594
movq $-0x1, %rax
movl %r14d, %ecx
shlq %cl, %rax
notl %eax
andl %ebx, %eax
movl %edx, %ecx
shll %cl, %eax
addq %rax, 0x50(%rsi)
movl %edi, 0x58(%rsi)
jmp 0xa1592
movq $0x0, 0x50(%rsi)
movl $0x0, 0x58(%rsi)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: updatewindow
local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) {
    struct inflate_state FAR *state;
    unsigned dist;

    state = (struct inflate_state FAR *)strm->state;

    /* if it hasn't been done already, allocate space for the window */
    if (state->window == Z_NULL) {
        state->window = (unsigned char FAR *)
                        ZALLOC(strm, 1U << state->wbits,
                               sizeof(unsigned char));
        if (state->window == Z_NULL) return 1;
    }

    /* if window not in use yet, initialize */
    if (state->wsize == 0) {
        state->wsize = 1U << state->wbits;
        state->wnext = 0;
        state->whave = 0;
    }

    /* copy state->wsize or less output bytes into the circular window */
    if (copy >= state->wsize) {
        zmemcpy(state->window, end - state->wsize, state->wsize);
        state->wnext = 0;
        state->whave = state->wsize;
    }
    else {
        dist = state->wsize - state->wnext;
        if (dist > copy) dist = copy;
        zmemcpy(state->window + state->wnext, end - copy, dist);
        copy -= dist;
        if (copy) {
            zmemcpy(state->window, end - copy, copy);
            state->wnext = copy;
            state->whave = state->wsize;
        }
        else {
            state->wnext += dist;
            if (state->wnext == state->wsize) state->wnext = 0;
            if (state->whave < state->wsize) state->whave += dist;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
movq 0x38(%rdi), %r13
cmpq $0x0, 0x48(%r13)
jne 0xa2ec9
movq %rdi, %rax
movq 0x50(%rdi), %rdi
movb 0x38(%r13), %cl
movl $0x1, %ebp
movl $0x1, %esi
shll %cl, %esi
movl $0x1, %edx
callq *0x40(%rax)
movq %rax, 0x48(%r13)
testq %rax, %rax
je 0xa2f5a
cmpl $0x0, 0x3c(%r13)
jne 0xa2ee7
movb 0x38(%r13), %cl
movl $0x1, %eax
shll %cl, %eax
movl %eax, 0x3c(%r13)
movq $0x0, 0x40(%r13)
movl 0x3c(%r13), %r15d
cmpl %r14d, %r15d
jbe 0xa2f36
movl 0x44(%r13), %edi
subl %edi, %r15d
cmpl %r14d, %r15d
movl %r14d, %r12d
cmovbl %r15d, %r12d
addq 0x48(%r13), %rdi
movl %r14d, %eax
movq %rbx, %rsi
subq %rax, %rsi
movq %r12, %rdx
callq 0xb520
cmpl %r14d, %r15d
jae 0xa2f6b
subl %r12d, %r14d
movq 0x48(%r13), %rdi
subq %r14, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0xb520
movl %r14d, 0x44(%r13)
jmp 0xa2f50
movq 0x48(%r13), %rdi
subq %r15, %rbx
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb520
movl $0x0, 0x44(%r13)
movl 0x3c(%r13), %eax
movl %eax, 0x40(%r13)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x44(%r13), %ecx
addl %r12d, %ecx
movl 0x3c(%r13), %edx
movl 0x40(%r13), %eax
xorl %ebp, %ebp
cmpl %edx, %ecx
cmovel %ebp, %ecx
movl %ecx, 0x44(%r13)
cmpl %edx, %eax
jae 0xa2f5a
addl %r12d, %eax
movl %eax, 0x40(%r13)
jmp 0xa2f5a
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateEnd
int ZEXPORT inflateEnd(z_streamp strm) {
    struct inflate_state FAR *state;
    if (inflateStateCheck(strm))
        return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    if (state->window != Z_NULL) ZFREE(strm, state->window);
    ZFREE(strm, strm->state);
    strm->state = Z_NULL;
    Tracev((stderr, "inflate: end\n"));
    return Z_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa2fcf
movq 0x38(%rbx), %rax
movq 0x48(%rax), %rsi
testq %rsi, %rsi
je 0xa2fba
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x50(%rbx), %rdi
callq *0x48(%rbx)
movq $0x0, 0x38(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateGetDictionary
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary,
                                 uInt *dictLength) {
    struct inflate_state FAR *state;

    /* check state */
    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;

    /* copy dictionary */
    if (state->whave && dictionary != Z_NULL) {
        zmemcpy(dictionary, state->window + state->wnext,
                state->whave - state->wnext);
        zmemcpy(dictionary + state->whave - state->wnext,
                state->window, state->wnext);
    }
    if (dictLength != Z_NULL)
        *dictLength = state->whave;
    return Z_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa303c
movq 0x38(%r15), %r15
movl 0x40(%r15), %edx
testl %edx, %edx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0xa302f
movl 0x44(%r15), %esi
subl %esi, %edx
addq 0x48(%r15), %rsi
movq %r14, %rdi
callq 0xb520
movl 0x40(%r15), %edi
movl 0x44(%r15), %edx
addq %r14, %rdi
subq %rdx, %rdi
movq 0x48(%r15), %rsi
callq 0xb520
xorl %eax, %eax
testq %rbx, %rbx
je 0xa303c
movl 0x40(%r15), %ecx
movl %ecx, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateSetDictionary
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary,
                                 uInt dictLength) {
    struct inflate_state FAR *state;
    unsigned long dictid;
    int ret;

    /* check state */
    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    if (state->wrap != 0 && state->mode != DICT)
        return Z_STREAM_ERROR;

    /* check for correct dictionary identifier */
    if (state->mode == DICT) {
        dictid = adler32(0L, Z_NULL, 0);
        dictid = adler32(dictid, dictionary, dictLength);
        if (dictid != state->check)
            return Z_DATA_ERROR;
    }

    /* copy dictionary to window using updatewindow(), which will amend the
       existing dictionary if appropriate */
    ret = updatewindow(strm, dictionary + dictLength, dictLength);
    if (ret) {
        state->mode = MEM;
        return Z_MEM_ERROR;
    }
    state->havedict = 1;
    Tracev((stderr, "inflate:   dictionary set\n"));
    return Z_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
je 0xa306e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x38(%r15), %r12
cmpl $0x0, 0x10(%r12)
je 0xa3085
cmpl $0x3f3e, 0x8(%r12)      # imm = 0x3F3E
jne 0xa3062
cmpl $0x3f3e, 0x8(%r12)      # imm = 0x3F3E
jne 0xa30b7
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb88a4
movq %rax, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0xb88a4
movq %rax, %rcx
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
cmpq 0x20(%r12), %rcx
jne 0xa3062
movl %ebx, %eax
addq %rax, %r14
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0xa2e81
testl %eax, %eax
je 0xa30dd
movl $0x3f52, 0x8(%r12)      # imm = 0x3F52
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0xa3062
movl $0x1, 0x14(%r12)
xorl %eax, %eax
jmp 0xa3062
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateGetHeader
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head) {
    struct inflate_state FAR *state;

    /* check state */
    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    if ((state->wrap & 2) == 0) return Z_STREAM_ERROR;

    /* save header structure */
    state->head = head;
    head->done = 0;
    return Z_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa311e
movq 0x38(%r14), %rcx
testb $0x2, 0x10(%rcx)
je 0xa311e
movq %rbx, 0x30(%rcx)
movl $0x0, 0x48(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: syncsearch
local unsigned syncsearch(unsigned FAR *have, const unsigned char FAR *buf,
                          unsigned len) {
    unsigned got;
    unsigned next;

    got = *have;
    next = 0;
    while (next < len && got < 4) {
        if ((int)(buf[next]) == (got < 2 ? 0 : 0xff))
            got++;
        else if (buf[next])
            got = 0;
        else
            got = 4 - got;
        next++;
    }
    *have = got;
    return next;
}

// Assembly:
movl (%rdi), %ecx
testl %edx, %edx
setne %al
cmpl $0x4, %ecx
setb %r8b
andb %al, %r8b
xorl %eax, %eax
cmpb $0x1, %r8b
jne 0xa32a0
pushq %rbx
movl %edx, %edx
xorl %r8d, %r8d
xorl %eax, %eax
movzbl (%rsi,%rax), %r9d
cmpl $0x2, %ecx
movl $0xff, %r10d
cmovbl %r8d, %r10d
movl $0x4, %r11d
subl %ecx, %r11d
movl %ecx, %ebx
incl %ebx
testl %r9d, %r9d
cmovnel %r8d, %r11d
cmpl %r9d, %r10d
movl %r11d, %ecx
cmovel %ebx, %ecx
incq %rax
cmpq %rdx, %rax
jae 0xa329f
cmpl $0x4, %ecx
jb 0xa3263
popq %rbx
movl %ecx, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateSyncPoint
int ZEXPORT inflateSyncPoint(z_streamp strm) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    return state->mode == STORED && state->bits == 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa32cf
movq 0x38(%rbx), %rcx
xorl %eax, %eax
cmpl $0x3f41, 0x8(%rcx)      # imm = 0x3F41
jne 0xa32cf
xorl %eax, %eax
cmpl $0x0, 0x58(%rcx)
sete %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateValidate
int ZEXPORT inflateValidate(z_streamp strm, int check) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
    state = (struct inflate_state FAR *)strm->state;
    if (check && state->wrap)
        state->wrap |= 4;
    else
        state->wrap &= ~4;
    return Z_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0xa1339
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa3480
movq 0x38(%r14), %rax
testl %ebx, %ebx
je 0xa347a
movl 0x10(%rax), %ecx
testl %ecx, %ecx
je 0xa347a
orl $0x4, %ecx
movl %ecx, 0x10(%rax)
jmp 0xa347e
andb $-0x5, 0x10(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateMark
long ZEXPORT inflateMark(z_streamp strm) {
    struct inflate_state FAR *state;

    if (inflateStateCheck(strm))
        return -(1L << 16);
    state = (struct inflate_state FAR *)strm->state;
    return (long)(((unsigned long)((long)state->back)) << 16) +
        (state->mode == COPY ? state->length :
            (state->mode == MATCH ? state->was - state->length : 0));
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
movl %eax, %ecx
movq $-0x10000, %rax         # imm = 0xFFFF0000
testl %ecx, %ecx
jne 0xa34d5
movq 0x38(%rbx), %rcx
movslq 0x1bec(%rcx), %rax
shlq $0x10, %rax
movl 0x8(%rcx), %esi
cmpl $0x3f4c, %esi           # imm = 0x3F4C
je 0xa34c7
xorl %edx, %edx
cmpl $0x3f43, %esi           # imm = 0x3F43
jne 0xa34d0
movl 0x5c(%rcx), %edx
jmp 0xa34d0
movl 0x1bf0(%rcx), %edx
subl 0x5c(%rcx), %edx
movl %edx, %ecx
addq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/zlib-1.3.0.1/inflate.c
// Function: inflateCodesUsed
unsigned long ZEXPORT inflateCodesUsed(z_streamp strm) {
    struct inflate_state FAR *state;
    if (inflateStateCheck(strm)) return (unsigned long)-1;
    state = (struct inflate_state FAR *)strm->state;
    return (unsigned long)(state->next - state->codes);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0xa1339
movl %eax, %ecx
movq $-0x1, %rax
testl %ecx, %ecx
jne 0xa3505
movq 0x38(%rbx), %rcx
movq 0x90(%rcx), %rax
subq %rcx, %rax
addq $-0x558, %rax           # imm = 0xFAA8
sarq $0x2, %rax
popq %rbx
retq
nop