LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x9baf2
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9b818
movq 0x38(%rbx), %rsi
movl 0x8(%rsi), %ebp
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x9b7b6
movq 0x50(%rbx), %rdi
movq %rax, %rsi
callq *0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x78(%rsi), %rax
testq %rax, %rax
je 0x9b7cd
movq 0x50(%rbx), %rdi
movq %rax, %rsi
callq *0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x70(%rsi), %rax
testq %rax, %rax
je 0x9b7e4
movq 0x50(%rbx), %rdi
movq %rax, %rsi
callq *0x48(%rbx)
movq 0x38(%rbx), %rsi
movq 0x60(%rsi), %rax
testq %rax, %rax
je 0x9b7fb
movq 0x50(%rbx), %rdi
movq %rax, %rsi
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_O3/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 0x9bb18
cmpq $0x0, 0x40(%rdi)
je 0x9bb18
cmpq $0x0, 0x48(%rdi)
je 0x9bb18
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0x9bb18
cmpq %rdi, (%rcx)
je 0x9bb19
retq
movl 0x8(%rcx), %ecx
leal -0x39(%rcx), %edx
cmpl $0x38, %edx
ja 0x9bb37
movabsq $0x100400400011001, %rsi # imm = 0x100400400011001
btq %rdx, %rsi
jae 0x9bb37
xorl %eax, %eax
retq
cmpl $0x29a, %ecx            # imm = 0x29A
je 0x9bb34
cmpl $0x2a, %ecx
jne 0x9bb18
jmp 0x9bb34
// File: /workspace/github_c_makefile_star2_O3/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 0x9baf2
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9bdf6
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 0x9bded
testl %ebp, %ebp
je 0x9bded
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 0x9bdf6
movl %ebp, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9baf2
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9bf08
testq %r15, %r15
je 0x9bef5
movq 0x38(%r14), %rax
movl 0x28(%rax), %eax
movl %eax, (%r15)
xorl %eax, %eax
testq %rbx, %rbx
je 0x9bf08
movq 0x38(%r14), %rcx
movl 0x1734(%rcx), %ecx
movl %ecx, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9baf2
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9bf9a
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
cmpl $0x10, %ebp
ja 0x9bf9a
movq 0x38(%r14), %r14
movq 0x20(%r14), %rcx
addq $0x2, %rcx
cmpq %rcx, 0x1700(%r14)
jb 0x9bf9a
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 0x9ed4e
movl %r15d, %ecx
sarl %cl, %ebx
subl %r15d, %ebp
jne 0x9bf4b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/external/zlib-1.3.0.1/deflate.c
// Function: deflateParams
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy) {
    deflate_state *s;
    compress_func func;

    if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
    s = strm->state;

#ifdef FASTEST
    if (level != 0) level = 1;
#else
    if (level == Z_DEFAULT_COMPRESSION) level = 6;
#endif
    if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
        return Z_STREAM_ERROR;
    }
    func = configuration_table[s->level].func;

    if ((strategy != s->strategy || func != configuration_table[level].func) &&
        s->last_flush != -2) {
        /* Flush the last buffer: */
        int err = deflate(strm, Z_BLOCK);
        if (err == Z_STREAM_ERROR)
            return err;
        if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
            return Z_BUF_ERROR;
    }
    if (s->level != level) {
        if (s->level == 0 && s->matches != 0) {
            if (s->matches == 1)
                slide_hash(s);
            else
                CLEAR_HASH(s);
            s->matches = 0;
        }
        s->level = level;
        s->max_lazy_match   = configuration_table[level].max_lazy;
        s->good_match       = configuration_table[level].good_length;
        s->nice_match       = configuration_table[level].nice_length;
        s->max_chain_length = configuration_table[level].max_chain;
    }
    s->strategy = strategy;
    return Z_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %r14d
movq %rdi, %r15
callq 0x9baf2
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
testl %eax, %eax
jne 0x9c10c
cmpl $-0x1, %r14d
movl $0x6, %r12d
cmovnel %r14d, %r12d
cmpl $0xa, %r12d
setae %al
cmpl $0x5, %ebx
setae %cl
orb %al, %cl
jne 0x9c10c
movq 0x38(%r15), %r14
cmpl %ebx, 0xc8(%r14)
jne 0x9c01c
movslq 0xc4(%r14), %rax
shlq $0x4, %rax
leaq 0xb3eb7(%rip), %rcx     # 0x14fec0
movq 0x8(%rax,%rcx), %rax
movl %r12d, %edx
shlq $0x4, %rdx
cmpq 0x8(%rdx,%rcx), %rax
je 0x9c023
cmpl $-0x2, 0x4c(%r14)
jne 0x9c055
movl 0xc4(%r14), %eax
cmpl %r12d, %eax
je 0x9c103
testl %eax, %eax
jne 0x9c0bf
movl 0x1728(%r14), %eax
testl %eax, %eax
je 0x9c0bf
cmpl $0x1, %eax
jne 0x9c097
movq %r14, %rdi
callq 0x9cc0a
jmp 0x9c0b4
movq %r15, %rdi
movl $0x5, %esi
callq 0x9c117
cmpl $-0x2, %eax
je 0x9c10c
movl $0xfffffffb, %ebp       # imm = 0xFFFFFFFB
cmpl $0x0, 0x8(%r15)
jne 0x9c10c
movl 0xac(%r14), %eax
movl 0xb4(%r14), %ecx
subq 0x98(%r14), %rax
addq %rax, %rcx
je 0x9c023
jmp 0x9c10c
movq 0x78(%r14), %rdi
movl 0x84(%r14), %edx
decl %edx
movw $0x0, (%rdi,%rdx,2)
addq %rdx, %rdx
xorl %esi, %esi
callq 0xb2f0
movl $0x0, 0x1728(%r14)
movl %r12d, 0xc4(%r14)
movl %r12d, %eax
shlq $0x4, %rax
leaq 0xb3dec(%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)
movl %ebx, 0xc8(%r14)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9baf2
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0x9cca3
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_O3/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 0x9ed4e
movl 0x28(%rbx), %ebp
movl 0x20(%r14), %eax
cmpl %ebp, %eax
cmovbl %eax, %ebp
testl %ebp, %ebp
je 0x9ce6b
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 0x9ce6b
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_O3/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 0x9d2dc
movq %rbx, %rdi
callq 0x9bb46
cmpl $0x0, 0xb4(%rbx)
je 0x9d3be
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 0x9d2be
movq 0x98(%rbx), %rcx
testq %rcx, %rcx
js 0x9d383
movl %ecx, %esi
addq 0x60(%rbx), %rsi
jmp 0x9d385
xorl %esi, %esi
movl %eax, %edx
subq %rcx, %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9ee9f
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9ce14
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
jne 0x9d2be
jmp 0x9d48a
testl %ebp, %ebp
je 0x9d3e5
movl $0x0, 0x172c(%rbx)
cmpl $0x4, %ebp
jne 0x9d3ed
movq 0x98(%rbx), %rax
testq %rax, %rax
js 0x9d411
movl %eax, %esi
addq 0x60(%rbx), %rsi
jmp 0x9d413
xorl %r14d, %r14d
jmp 0x9d48a
cmpl $0x0, 0x170c(%rbx)
je 0x9d484
movq 0x98(%rbx), %rax
xorl %r14d, %r14d
testq %rax, %rax
js 0x9d451
movl %eax, %esi
addq 0x60(%rbx), %rsi
jmp 0x9d453
xorl %esi, %esi
movl 0xac(%rbx), %edx
subq %rax, %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x9ee9f
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9ce14
movq (%rbx), %rax
cmpl $0x1, 0x20(%rax)
movl $0x3, %r14d
sbbl $0x0, %r14d
jmp 0x9d48a
xorl %esi, %esi
movl 0xac(%rbx), %edx
subq %rax, %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x9ee9f
movl 0xac(%rbx), %eax
movq %rax, 0x98(%rbx)
movq (%rbx), %rdi
callq 0x9ce14
movq (%rbx), %rax
cmpl $0x0, 0x20(%rax)
je 0x9d48a
movl $0x1, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x9da8c
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 0x9da73
cmpl $0x1, %eax
jne 0x9da85
movq 0x60(%r14), %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xb991c
jmp 0x9da81
movq 0x60(%r14), %rdi
movq %r12, %rsi
movl %ebx, %edx
callq 0xb9de3
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_O3/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 0x9ec4d
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 0x9ec5d
movl %eax, %ecx
shll %cl, %r8d
orw %r8w, 0x1730(%r14)
addl $0x3, %eax
movl %eax, 0x1734(%r14)
movq %r14, %rdi
callq 0x9ece1
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 0x9ecd7
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_O3/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 0x9ed17
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 0x9ed2a
testl %eax, %eax
jle 0x9ed3a
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_O3/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 0x9ed9a
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 0x9edcf
cmpl $0x8, %eax
jl 0x9edd5
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_O3/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 0xa016f
incl 0x1728(%rdi)
movl %edx, %ecx
leaq 0x5804a(%rip), %rdx     # 0xf8180
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 0x57e21(%rip), %rax     # 0xf7f80
movzbl (%rdx,%rax), %eax
leaq (%rdi,%rax,4), %rax
addq $0x9c8, %rax            # imm = 0x9C8
jmp 0xa017b
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_O3/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), %r8d
movl 0x14b4(%rdi), %r10d
cmpl %r10d, %r8d
jle 0xa01b1
movl %edx, %r9d
jmp 0xa0263
pushq %rbp
pushq %r14
pushq %rbx
movslq %eax, %rcx
cmpl %r10d, %r8d
jge 0xa01ee
movl %r8d, %r11d
orl $0x1, %r11d
movslq %r11d, %rbx
movslq 0xbc0(%rdi,%rbx,4), %r9
movslq %r8d, %r10
movslq 0xbc0(%rdi,%r10,4), %r14
movzwl (%rsi,%r14,4), %ebp
cmpw %bp, (%rsi,%r9,4)
jae 0xa0243
movq %rbx, %r10
movl %r11d, %r9d
jmp 0xa01f4
movslq %r8d, %r10
movl %r8d, %r9d
movl 0xbc0(%rdi,%r10,4), %r8d
movslq %r8d, %r10
movzwl (%rsi,%r10,4), %r11d
cmpw %r11w, (%rsi,%rcx,4)
jb 0xa025c
jne 0xa021f
movb 0x14bc(%rdi,%rcx), %r11b
cmpb 0x14bc(%rdi,%r10), %r11b
jbe 0xa025c
movslq %edx, %rdx
movl %r8d, 0xbc0(%rdi,%rdx,4)
leal (%r9,%r9), %r8d
movl 0x14b4(%rdi), %r10d
movl %r9d, %edx
cmpl %r10d, %r8d
jle 0xa01b8
jmp 0xa025f
jne 0xa01f1
movb 0x14bc(%rdi,%r9), %bpl
movl %r8d, %r9d
cmpb 0x14bc(%rdi,%r14), %bpl
jbe 0xa01e6
jmp 0xa01f4
movl %edx, %r9d
popq %rbx
popq %r14
popq %rbp
movslq %r9d, %rcx
movl %eax, 0xbc0(%rdi,%rcx,4)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0353
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 0xa02ca
cmpl %eax, %r8d
jne 0xa02ca
movl %ebx, %r8d
jmp 0xa033e
cmpl %r9d, %r11d
jge 0xa02dd
movl %r8d, %r9d
addw %r11w, 0xabc(%rdi,%r9,4)
jmp 0xa0312
testl %r8d, %r8d
je 0xa02fc
cmpl %ebx, %r8d
je 0xa02f3
movl %r8d, %r9d
incw 0xabc(%rdi,%r9,4)
incw 0xafc(%rdi)
jmp 0xa0312
cmpl $0x9, %r14d
jg 0xa030b
incw 0xb00(%rdi)
jmp 0xa0312
incw 0xb04(%rdi)
xorl %r11d, %r11d
testl %eax, %eax
je 0xa0332
xorl %r10d, %r10d
cmpl %eax, %r8d
sete %r10b
movl $0x4, %r9d
subl %r10d, %r9d
xorl $0x7, %r10d
jmp 0xa033e
movl $0x3, %r9d
movl $0x8a, %r10d
incq %rcx
movl %r11d, %r14d
movl %r8d, %ebx
cmpq %rcx, %rdx
jne 0xa02af
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa0907
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 0xa08b4
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_O3/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 0xa092f
cmpq $0x0, 0x40(%rdi)
je 0xa092f
cmpq $0x0, 0x48(%rdi)
je 0xa092f
movq 0x38(%rdi), %rcx
testq %rcx, %rcx
je 0xa092f
cmpq %rdi, (%rcx)
je 0xa0930
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_O3/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 0xa0909
testl %eax, %eax
je 0xa0955
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 0xa087c
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
testl %eax, %eax
je 0xa0997
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 0xa09bc
movl %r14d, %ebp
shrl $0x4, %ebp
addl $0x5, %ebp
movl %r14d, %eax
andl $0xf, %eax
cmpl $0x30, %r14d
cmovael %r14d, %eax
movl %eax, %r14d
jmp 0xa09c7
cmpl $-0xf, %r14d
jb 0xa0987
negl %r14d
xorl %ebp, %ebp
leal -0x8(%r14), %eax
cmpl $0x8, %eax
jae 0xa0a08
movq 0x48(%r15), %rsi
testq %rsi, %rsi
je 0xa09ee
cmpl %r14d, 0x38(%r15)
je 0xa09ee
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 0xa0941
testl %r14d, %r14d
je 0xa09d0
jmp 0xa0987
// File: /workspace/github_c_makefile_star2_O3/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 0xa0ae4
cmpl $0x70, %ecx
jne 0xa0ae4
cmpb $0x31, (%rdx)
jne 0xa0ae4
movq %rdi, %rbx
testq %rdi, %rdi
je 0xa0ad1
movl %esi, %ebp
movq $0x0, 0x30(%rbx)
movq 0x40(%rbx), %rax
testq %rax, %rax
jne 0xa0a6c
leaq -0x1f9(%rip), %rax      # 0xa0867
movq %rax, 0x40(%rbx)
movq $0x0, 0x50(%rbx)
cmpq $0x0, 0x48(%rbx)
jne 0xa0a7e
leaq -0x209(%rip), %rcx      # 0xa0871
movq %rcx, 0x48(%rbx)
movq 0x50(%rbx), %rdi
movl $0x1, %esi
movl $0x1bf8, %edx           # imm = 0x1BF8
callq *%rax
testq %rax, %rax
je 0xa0ad9
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 0xa0971
testl %eax, %eax
je 0xa0ae1
movl %eax, %r14d
movq 0x50(%rbx), %rdi
movq %r15, %rsi
callq *0x48(%rbx)
movq $0x0, 0x38(%rbx)
jmp 0xa0ae4
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
jmp 0xa0ae4
movl $0xfffffffc, %r14d      # imm = 0xFFFFFFFC
jmp 0xa0ae4
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa0b6a
testl %r14d, %r14d
je 0xa0b68
movq 0x38(%r15), %rsi
js 0xa0b59
cmpl $0x10, %r14d
ja 0xa0b6a
movl 0x58(%rsi), %edx
leal (%rdx,%r14), %edi
cmpl $0x20, %edi
ja 0xa0b6a
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 0xa0b68
movq $0x0, 0x50(%rsi)
movl $0x0, 0x58(%rsi)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %rax
movq 0x38(%rdi), %r12
movq 0x48(%r12), %rdi
testq %rdi, %rdi
jne 0xa2674
movq 0x50(%rax), %rdi
movb 0x38(%r12), %cl
movl $0x1, %ebp
movl $0x1, %esi
shll %cl, %esi
movl $0x1, %edx
callq *0x40(%rax)
movq %rax, %rdi
movq %rax, 0x48(%r12)
testq %rax, %rax
je 0xa2705
movl 0x3c(%r12), %ebp
testl %ebp, %ebp
jne 0xa2697
movb 0x38(%r12), %cl
movl $0x1, %ebp
shll %cl, %ebp
movl %ebp, 0x3c(%r12)
movq $0x0, 0x40(%r12)
cmpl %r14d, %ebp
jbe 0xa26e3
movl 0x44(%r12), %eax
subl %eax, %ebp
cmpl %r14d, %ebp
movl %r14d, %r15d
cmovbl %ebp, %r15d
addq %rax, %rdi
movl %r14d, %eax
movq %rbx, %rsi
subq %rax, %rsi
movq %r15, %rdx
callq 0xb520
cmpl %r14d, %ebp
jae 0xa2710
subl %r15d, %r14d
movq 0x48(%r12), %rdi
subq %r14, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0xb520
movl %r14d, 0x44(%r12)
jmp 0xa26f9
movl %ebp, %edx
subq %rdx, %rbx
movq %rbx, %rsi
callq 0xb520
movl $0x0, 0x44(%r12)
movl 0x3c(%r12), %eax
movl %eax, 0x40(%r12)
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x44(%r12), %ecx
addl %r15d, %ecx
movl 0x3c(%r12), %edx
movl 0x40(%r12), %eax
xorl %ebp, %ebp
cmpl %edx, %ecx
cmovel %ebp, %ecx
movl %ecx, 0x44(%r12)
cmpl %edx, %eax
jae 0xa2705
addl %r15d, %eax
movl %eax, 0x40(%r12)
jmp 0xa2705
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa277c
movq 0x38(%rbx), %rsi
movq 0x48(%rsi), %rax
testq %rax, %rax
je 0xa276b
movq 0x50(%rbx), %rdi
movq %rax, %rsi
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_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa27e9
movq 0x38(%r15), %r15
movl 0x40(%r15), %edx
testl %edx, %edx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0xa27dc
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 0xa27e9
movl 0x40(%r15), %ecx
movl %ecx, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
je 0xa281a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x38(%r15), %r12
cmpl $0x0, 0x10(%r12)
movl 0x8(%r12), %ecx
je 0xa283a
cmpl $0x3f3e, %ecx           # imm = 0x3F3E
jne 0xa2810
leaq 0x8(%r12), %r13
jmp 0xa2847
leaq 0x8(%r12), %r13
cmpl $0x3f3e, %ecx           # imm = 0x3F3E
jne 0xa286e
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb991c
movq %rax, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0xb991c
movq %rax, %rcx
movl $0xfffffffd, %eax       # imm = 0xFFFFFFFD
cmpq 0x20(%r12), %rcx
jne 0xa2810
movl %ebx, %eax
addq %rax, %r14
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0xa2627
testl %eax, %eax
je 0xa2896
movl $0x3f52, (%r13)         # imm = 0x3F52
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0xa2810
movl $0x1, 0x14(%r12)
xorl %eax, %eax
jmp 0xa2810
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa28d7
movq 0x38(%r14), %rcx
testb $0x2, 0x10(%rcx)
je 0xa28d7
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_O3/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 0xa2a64
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 0xa2a63
cmpl $0x4, %ecx
jb 0xa2a27
popq %rbx
movl %ecx, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa2a93
movq 0x38(%rbx), %rcx
xorl %eax, %eax
cmpl $0x3f41, 0x8(%rcx)      # imm = 0x3F41
jne 0xa2a93
xorl %eax, %eax
cmpl $0x0, 0x58(%rcx)
sete %al
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
testl %ecx, %ecx
jne 0xa2c4a
movq 0x38(%r14), %rax
movl 0x10(%rax), %ecx
testl %ebx, %ebx
je 0xa2c3e
testl %ecx, %ecx
je 0xa2c43
orl $0x4, %ecx
jmp 0xa2c45
andl $-0x5, %ecx
jmp 0xa2c45
xorl %ecx, %ecx
movl %ecx, 0x10(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xa0909
movl %eax, %ecx
movq $-0x10000, %rax         # imm = 0xFFFF0000
testl %ecx, %ecx
jne 0xa2c9f
movq 0x38(%rbx), %rcx
movslq 0x1bec(%rcx), %rax
shlq $0x10, %rax
movl 0x8(%rcx), %esi
cmpl $0x3f4c, %esi           # imm = 0x3F4C
je 0xa2c91
xorl %edx, %edx
cmpl $0x3f43, %esi           # imm = 0x3F43
jne 0xa2c9a
movl 0x5c(%rcx), %edx
jmp 0xa2c9a
movl 0x1bf0(%rcx), %edx
subl 0x5c(%rcx), %edx
movl %edx, %ecx
addq %rcx, %rax
popq %rbx
retq