LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/hts.c
// Function: hts_idx_getfn
char *hts_idx_getfn(const char *fn, const char *ext)
{
    int i, l_fn, l_ext;
    char *fnidx;
    const char *ret;
    l_fn = strlen(fn); l_ext = strlen(ext);
    fnidx = (char*)calloc(l_fn + l_ext + 1, 1);
    strcpy(fnidx, fn); strcpy(fnidx + l_fn, ext);
    if ((ret = test_and_fetch(fnidx)) == 0) {
        for (i = l_fn - 1; i > 0; --i)
            if (fnidx[i] == '.') break;
        strcpy(fnidx + i, ext);
        ret = test_and_fetch(fnidx);
    }
    if (ret == 0) {
        free(fnidx);
        return 0;
    }
    l_fn = strlen(ret);
    memmove(fnidx, ret, l_fn + 1);
    return fnidx;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r12
callq 0x62d0
movq %rax, %r15
movq %r14, %rdi
callq 0x62d0
addl %r15d, %eax
incl %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x6470
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x6680
movslq %r15d, %rdi
addq %rbx, %rdi
movq %r14, %rsi
callq 0x6680
movq %rbx, %rdi
callq 0x51e72
testq %rax, %rax
jne 0x51e23
movl %r15d, %eax
testl %r15d, %r15d
movl $0x1, %ecx
cmovlel %r15d, %ecx
decl %ecx
decq %rax
cmpl $0x2, %r15d
jl 0x51e02
movl %eax, %edx
decl %r15d
decq %rax
cmpb $0x2e, (%rbx,%rdx)
jne 0x51dec
jmp 0x51e05
movl %ecx, %r15d
movslq %r15d, %rax
movq %rbx, %rdi
addq %rax, %rdi
movq %r14, %rsi
callq 0x6680
movq %rbx, %rdi
callq 0x51e72
testq %rax, %rax
je 0x51e5c
movq %rax, %r12
movabsq $0x100000000, %r14      # imm = 0x100000000
movq %rax, %rdi
callq 0x62d0
shlq $0x20, %rax
addq %rax, %r14
sarq $0x20, %r14
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6c60
movq %rbx, %rdi
callq 0x68a0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/hts.c
// Function: hts_idx_load
hts_idx_t *hts_idx_load(const char *fn, int fmt)
{
    char *fnidx;
    hts_idx_t *idx;
    fnidx = hts_idx_getfn(fn, ".csi");
    if (! fnidx) fnidx = hts_idx_getfn(fn, fmt == HTS_FMT_BAI? ".bai" : ".tbi");
    if (fnidx == 0) return 0;

    idx = hts_idx_load2(fn, fnidx);
    free(fnidx);
    return idx;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x468b4(%rip), %rsi     # 0x987ac
callq 0x51d7f
testq %rax, %rax
jne 0x51f24
cmpl $0x1, %ebp
leaq 0x4689b(%rip), %rax     # 0x987a7
leaq 0x3f096(%rip), %rsi     # 0x90fa9
cmoveq %rax, %rsi
movq %rbx, %rdi
callq 0x51d7f
testq %rax, %rax
je 0x51f45
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x51f49
movq %rax, %rbx
movq %r14, %rdi
callq 0x68a0
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
jmp 0x51f40
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/tbx.c
// Function: tbx_readrec
int tbx_readrec(BGZF *fp, void *tbxv, void *sv, int *tid, int *beg, int *end)
{
    tbx_t *tbx = (tbx_t *) tbxv;
    kstring_t *s = (kstring_t *) sv;
    int ret;
    if ((ret = bgzf_getline(fp, '\n', s)) >= 0) {
        tbx_intv_t intv;
        get_intv(tbx, s, &intv, 0);
        *tid = intv.tid; *beg = intv.beg; *end = intv.end;
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movl $0xa, %esi
callq 0x687af
movl %eax, %ebp
testl %eax, %eax
js 0x52c74
movq %rbx, 0x8(%rsp)
leaq 0x10(%rsp), %rbx
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x52c85
movl 0x20(%rbx), %eax
movl %eax, (%r15)
movl (%rbx), %eax
movl %eax, (%r14)
movl 0x8(%rbx), %eax
movq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/tbx.c
// Function: get_intv
static inline int get_intv(tbx_t *tbx, kstring_t *str, tbx_intv_t *intv, int is_add)
{
    if (tbx_parse1(&tbx->conf, str->l, str->s, intv) == 0) {
        int c = *intv->se;
        *intv->se = '\0'; intv->tid = get_tid(tbx, intv->ss, is_add); *intv->se = c;
        return (intv->tid >= 0 && intv->beg >= 0 && intv->end >= 0)? 0 : -1;
    } else {
        char *type = NULL;
        switch (tbx->conf.preset&0xffff)
        {
            case TBX_SAM: type = "TBX_SAM"; break;
            case TBX_VCF: type = "TBX_VCF"; break;
            case TBX_UCSC: type = "TBX_UCSC"; break;
            default: type = "TBX_GENERIC"; break;
        }
        if ((str->l > 0) && (*str->s != tbx->conf.meta_char))
            fprintf(stderr, "[E::%s] failed to parse %s, was wrong -p [type] used?\nThe offending line was: \"%s\"\n", __func__, type, str->s);
        return -1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl (%rsi), %esi
movq 0x10(%r14), %rdx
movq %rbx, %rcx
callq 0x52941
testl %eax, %eax
je 0x52d1f
movzwl (%r15), %eax
cmpw $0x2, %ax
leaq 0x45c42(%rip), %rcx     # 0x988fe
leaq 0x45c43(%rip), %rdx     # 0x98906
cmoveq %rcx, %rdx
cmpw $0x1, %ax
leaq 0x45c24(%rip), %rcx     # 0x988f6
cmovneq %rdx, %rcx
cmpq $0x0, (%r14)
je 0x52dad
movq 0x10(%r14), %r8
movsbl (%r8), %eax
cmpl %eax, 0x10(%r15)
je 0x52dad
movq 0x6c2df(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x45c0f(%rip), %rsi     # 0x98912
leaq 0x45c5c(%rip), %rdx     # 0x98966
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6a90
movq 0x18(%rbx), %rax
movb (%rax), %r13b
movb $0x0, (%rax)
movq 0x10(%rbx), %r12
movq 0x20(%r15), %r14
testq %r14, %r14
jne 0x52d42
callq 0x4c7e7
movq %rax, %r14
movq %rax, 0x20(%r15)
testl %ebp, %ebp
je 0x52d83
leaq 0x4(%rsp), %r15
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x4cbe7
movl %eax, %ebp
cmpl $0x0, (%r15)
je 0x52d90
movq %r12, %rdi
callq 0x6dd0
movq 0x18(%r14), %rcx
movl %ebp, %edx
movq %rax, (%rcx,%rdx,8)
movl 0x4(%r14), %eax
decl %eax
movq 0x20(%r14), %rcx
movq %rax, (%rcx,%rdx,8)
jmp 0x52d90
movq %r14, %rdi
movq %r12, %rsi
callq 0x4c85f
movl %eax, %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl (%r14), %ebp
je 0x52da3
movq 0x20(%r14), %rax
movl %ebp, %ecx
movl (%rax,%rcx,8), %eax
movl %eax, 0x20(%rbx)
movq 0x18(%rbx), %rax
movb %r13b, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/tbx.c
// Function: tbx_set_meta
void tbx_set_meta(tbx_t *tbx)
{
    int i, l = 0, l_nm;
    uint32_t x[7];
    char **name;
    uint8_t *meta;
    khint_t k;
    khash_t(s2i) *d = (khash_t(s2i)*)tbx->dict;

    memcpy(x, &tbx->conf, 24);
    name = (char**)malloc(sizeof(char*) * kh_size(d));
    for (k = kh_begin(d), l = 0; k != kh_end(d); ++k) {
        if (!kh_exist(d, k)) continue;
        name[kh_val(d, k)] = (char*)kh_key(d, k);
        l += strlen(kh_key(d, k)) + 1; // +1 to include '\0'
    }
    l_nm = x[6] = l;
    meta = (uint8_t*)malloc(l_nm + 28);
    if (ed_is_big())
        for (i = 0; i < 7; ++i)
            x[i] = ed_swap_4(x[i]);
    memcpy(meta, x, 28);
    for (l = 28, i = 0; i < (int)kh_size(d); ++i) {
        int x = strlen(name[i]) + 1;
        memcpy(meta + l, name[i], x);
        l += x;
    }
    free(name);
    hts_idx_set_meta(tbx->idx, l, meta, 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, (%rsp)
movq 0x20(%rdi), %rbp
movl 0x4(%rbp), %eax
movq %rax, 0x8(%rsp)
leaq (,%rax,8), %rdi
callq 0x69d0
movq %rax, %r14
movl (%rbp), %edi
testq %rdi, %rdi
je 0x52e53
movq 0x10(%rbp), %r13
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %edx, %edx
movq %rdi, 0x10(%rsp)
movl %r12d, %eax
shrl $0x4, %eax
movl (%r13,%rax,4), %eax
movl %ebx, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
jne 0x52e46
movq 0x18(%rbp), %rax
movq 0x20(%rbp), %rcx
movq (%rax,%r12,8), %rdi
movq (%rcx,%r12,8), %rax
movq %rdi, (%r14,%rax,8)
movq %r14, %r15
movq %rdx, %r14
callq 0x62d0
movq 0x10(%rsp), %rdi
movq %r14, %rdx
movq %r15, %r14
addl %eax, %edx
incl %edx
incq %r12
addl $0x2, %ebx
cmpq %r12, %rdi
jne 0x52e02
jmp 0x52e55
xorl %edx, %edx
leal 0x1c(%rdx), %eax
movslq %eax, %rdi
movq %rdx, %rbx
callq 0x69d0
movq %rax, %r15
movq (%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%r15)
movq 0x10(%rax), %rax
movq %rax, 0x10(%r15)
movl %ebx, 0x18(%r15)
cmpl $0x0, 0x8(%rsp)
jle 0x52ebf
movl $0x1c, %ebp
xorl %ebx, %ebx
movq (%r14,%rbx,8), %r12
movq %r12, %rdi
callq 0x62d0
movq %rax, %r13
incl %eax
movslq %ebp, %rbp
leaq (%r15,%rbp), %rdi
movslq %eax, %rdx
movq %r12, %rsi
callq 0x6570
addl %r13d, %ebp
incl %ebp
incq %rbx
cmpq 0x8(%rsp), %rbx
jb 0x52e8b
jmp 0x52ec4
movl $0x1c, %ebp
movq %r14, %rdi
callq 0x68a0
movq (%rsp), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
movq %r15, %rdx
xorl %ecx, %ecx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x50dc3
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/tbx.c
// Function: tbx_index_build2
int tbx_index_build2(const char *fn, const char *fnidx, int min_shift, const tbx_conf_t *conf)
{
    tbx_t *tbx;
    BGZF *fp;
    int ret;
    if ( bgzf_is_bgzf(fn)!=1 ) { fprintf(stderr,"Not a BGZF file: %s\n", fn); return -1; }
    if ((fp = bgzf_open(fn, "r")) == 0) return -1;
    if ( !fp->is_compressed ) { bgzf_close(fp); return -1; }
    tbx = tbx_index(fp, min_shift, conf);
    bgzf_close(fp);
    if ( !tbx ) return -1;
    ret = hts_idx_save_as(tbx->idx, fn, fnidx, min_shift > 0? HTS_FMT_CSI : HTS_FMT_TBI);
    tbx_destroy(tbx);
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x6868f
cmpl $0x1, %eax
jne 0x531f3
leaq 0x42d79(%rip), %rsi     # 0x95f09
movq %rbx, %rdi
callq 0x66abc
testq %rax, %rax
je 0x5320e
movq %rax, %r12
testb $0x60, 0x3(%rax)
je 0x531e9
movq %r12, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x52eee
movq %rax, %r15
movq %r12, %rdi
callq 0x68235
testq %r15, %r15
je 0x5320e
movq 0x18(%r15), %rdi
xorl %ecx, %ecx
testl %ebp, %ebp
setle %cl
addl %ecx, %ecx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x5098e
movl %eax, %ebx
movq %r15, %rdi
callq 0x530f3
movl %ebx, %eax
jmp 0x53213
movq %r12, %rdi
callq 0x68235
jmp 0x5320e
movq 0x6bdde(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x4569c(%rip), %rsi     # 0x988a0
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6a90
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/tbx.c
// Function: tbx_index_load2
tbx_t *tbx_index_load2(const char *fn, const char *fnidx)
{
    tbx_t *tbx;
    uint8_t *meta;
    char *nm, *p;
    uint32_t x[7];
    int l_meta, l_nm;
    tbx = (tbx_t*)calloc(1, sizeof(tbx_t));
    tbx->idx = fnidx? hts_idx_load2(fn, fnidx) : hts_idx_load(fn, HTS_FMT_TBI);
    if ( !tbx->idx )
    {
        free(tbx);
        return NULL;
    }
    meta = hts_idx_get_meta(tbx->idx, &l_meta);
    if ( !meta )
    {
        free(tbx);
        return NULL;
    }
    memcpy(x, meta, 28);
    memcpy(&tbx->conf, x, 24);
    p = nm = (char*)meta + 28;
    l_nm = x[6];
    for (; p - nm < l_nm; p += strlen(p) + 1) get_tid(tbx, p, 1);
    return tbx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %r14
movl $0x1, %edi
movl $0x28, %esi
callq 0x6470
movq %rax, %r12
movq %r14, %rdi
testq %r15, %r15
je 0x53260
movq %r15, %rsi
callq 0x51f49
jmp 0x5326a
movl $0x2, %esi
callq 0x51ee8
movq %rax, 0x18(%r12)
testq %rax, %rax
je 0x53332
leaq 0x14(%rsp), %rsi
movq %rax, %rdi
callq 0x50e22
testq %rax, %rax
je 0x53332
movq %rax, %r14
movslq 0x18(%rax), %rbx
movq 0x10(%rax), %rax
movq %rax, 0x10(%r12)
movups (%r14), %xmm0
movups %xmm0, (%r12)
testq %rbx, %rbx
jle 0x5333d
movq %r12, 0x8(%rsp)
addq $0x1c, %r14
xorl %r12d, %r12d
leaq 0x4(%rsp), %r15
movq %r14, %r13
testq %r12, %r12
jne 0x532d1
callq 0x4c7e7
movq %rax, %r12
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4cbe7
cmpl $0x0, 0x4(%rsp)
je 0x5330b
movl %eax, %ebp
movq %r13, %rdi
callq 0x6dd0
movq 0x18(%r12), %rcx
movl %ebp, %edx
movq %rax, (%rcx,%rdx,8)
movl 0x4(%r12), %eax
decl %eax
movq 0x20(%r12), %rcx
movq %rax, (%rcx,%rdx,8)
movq %r13, %rdi
callq 0x62d0
addq %rax, %r13
incq %r13
movq %r13, %rax
subq %r14, %rax
cmpq %rbx, %rax
jl 0x532c4
movq 0x8(%rsp), %rax
movq %r12, 0x20(%rax)
movq %rax, %r12
jmp 0x5333d
movq %r12, %rdi
callq 0x68a0
xorl %r12d, %r12d
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/./htslib/kstring.h
// Function: kputsn
static inline int kputsn(const char *p, int l, kstring_t *s)
{
	if (s->l + l + 1 >= s->m) {
		char *tmp;
		s->m = s->l + l + 2;
		kroundup32(s->m);
		if ((tmp = (char*)realloc(s->s, s->m)))
			s->s = tmp;
		else
			return EOF;
	}
	memcpy(s->s + s->l, p, l);
	s->l += l;
	s->s[s->l] = 0;
	return l;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r15
movq (%rdx), %rdi
movslq %esi, %r14
leaq (%r14,%rdi), %rax
incq %rax
cmpq 0x8(%rdx), %rax
jae 0x53b65
movq 0x10(%rbx), %rax
jmp 0x53bb2
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x6c80
testq %rax, %rax
je 0x53bcf
movq %rax, 0x10(%rbx)
movq (%rbx), %rdi
addq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x6570
addq (%rbx), %r14
movq %r14, (%rbx)
movq 0x10(%rbx), %rax
movb $0x0, (%rax,%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_index.c
// Function: kget_int32
static int kget_int32(kstring_t *k, size_t *pos, int32_t *val_p) {
    int sign = 1;
    int32_t val = 0;
    size_t p = *pos;

    while (p < k->l && (k->s[p] == ' ' || k->s[p] == '\t'))
	   p++;

    if (p < k->l && k->s[p] == '-')
	sign = -1, p++;

    if (p >= k->l || !(k->s[p] >= '0' && k->s[p] <= '9'))
	return -1;

    while (p < k->l && k->s[p] >= '0' && k->s[p] <= '9')
	val = val*10 + k->s[p++]-'0';
    
    *pos = p;
    *val_p = sign*val;

    return 0;
}

// Assembly:
movq (%rdx), %r8
movl $0x1, %r9d
cmpq %rdi, %r8
jae 0x53c13
movzbl (%rsi,%r8), %eax
cmpl $0x20, %eax
je 0x53bf2
cmpl $0x9, %eax
jne 0x53c00
incq %r8
cmpq %r8, %rdi
jne 0x53be3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
xorl %r9d, %r9d
cmpb $0x2d, %al
sete %r9b
addq %r9, %r8
negl %r9d
orl $0x1, %r9d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rdi, %r8
jae 0x53c5c
movb (%rsi,%r8), %r10b
addb $-0x30, %r10b
cmpb $0x9, %r10b
ja 0x53c5c
xorl %eax, %eax
movzbl (%rsi,%r8), %r10d
leal -0x30(%r10), %r11d
cmpb $0x9, %r11b
ja 0x53c51
leal (%rax,%rax,4), %eax
incq %r8
leal (%r10,%rax,2), %eax
addl $-0x30, %eax
cmpq %r8, %rdi
jne 0x53c2d
movq %rdi, %r8
imull %r9d, %eax
movq %r8, (%rdx)
movl %eax, (%rcx)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_index.c
// Function: cram_index_query
cram_index *cram_index_query(cram_fd *fd, int refid, int pos, 
			     cram_index *from) {
    int i, j, k;
    cram_index *e;

    if (refid+1 < 0 || refid+1 >= fd->index_sz)
	return NULL;

    if (!from)
	from = &fd->index[refid+1];

    // Ref with nothing aligned against it.
    if (!from->e)
	return NULL;

    // This sequence is covered by the index, so binary search to find
    // the optimal starting block.
    i = 0, j = fd->index[refid+1].nslice-1;
    for (k = j/2; k != i; k = (j-i)/2 + i) {
	if (from->e[k].refid > refid) {
	    j = k;
	    continue;
	}

	if (from->e[k].refid < refid) {
	    i = k;
	    continue;
	}

	if (from->e[k].start >= pos) {
	    j = k;
	    continue;
	}

	if (from->e[k].start < pos) {
	    i = k;
	    continue;
	}
    }
    // i==j or i==j-1. Check if j is better.
    if (j >= 0 && from->e[j].start < pos && from->e[j].refid == refid)
	i = j;

    /* The above found *a* bin overlapping, but not necessarily the first */
    while (i > 0 && from->e[i-1].end >= pos)
	i--;

    /* We may be one bin before the optimum, so check */
    while (i+1 < from->nslice &&
	   (from->e[i].refid < refid ||
	    from->e[i].end < pos))
	i++;

    e = &from->e[i];

    return e;
}

// Assembly:
cmpl $-0x1, %esi
jl 0x53e4c
leal 0x1(%rsi), %eax
cmpl 0x8834(%rdi), %eax
jge 0x53e4c
movl %eax, %r9d
testq %rcx, %rcx
jne 0x53d39
leaq (%r9,%r9,2), %rcx
shlq $0x4, %rcx
addq 0x8838(%rdi), %rcx
movq 0x8(%rcx), %rax
xorl %r8d, %r8d
testq %rax, %rax
je 0x53e4c
movq 0x8838(%rdi), %rdi
leaq (%r9,%r9,2), %r9
shlq $0x4, %r9
movl (%rdi,%r9), %r9d
leal -0x1(%r9), %edi
cmpl $0x3, %r9d
jb 0x53dbc
movl %edi, %r9d
shrl $0x1f, %r9d
addl %edi, %r9d
sarl %r9d
xorl %r8d, %r8d
movslq %r9d, %r10
leaq (%r10,%r10,2), %r11
shlq $0x4, %r11
leaq (%rax,%r11), %r10
cmpl %esi, 0x10(%rax,%r11)
jg 0x53d9a
jl 0x53d94
cmpl %edx, 0x14(%r10)
jge 0x53d9a
movl %r9d, %r8d
movl %edi, %r9d
movl %r9d, %edi
movl %r9d, %r10d
subl %r8d, %r10d
movl %r10d, %r9d
shrl $0x1f, %r9d
addl %r10d, %r9d
sarl %r9d
addl %r8d, %r9d
incl %r10d
cmpl $0x2, %r10d
ja 0x53d76
testl %edi, %edi
js 0x53ddd
movl %edi, %r9d
leaq (%r9,%r9,2), %r9
shlq $0x4, %r9
cmpl %edx, 0x14(%rax,%r9)
jge 0x53ddd
addq %rax, %r9
cmpl %esi, 0x10(%r9)
cmovel %edi, %r8d
testl %r8d, %r8d
jle 0x53e07
leaq -0x18(%rax), %rdi
movl %r8d, %r9d
leaq (%r9,%r9,2), %r9
shlq $0x4, %r9
cmpl %edx, (%rdi,%r9)
jl 0x53e07
leal -0x1(%r8), %r9d
cmpl $0x1, %r8d
movl %r9d, %r8d
jg 0x53de6
xorl %r8d, %r8d
movl (%rcx), %ecx
leal 0x1(%r8), %edi
cmpl %ecx, %edi
jge 0x53e3d
movslq %r8d, %rdi
decl %ecx
leaq (%rdi,%rdi,2), %rdi
shlq $0x4, %rdi
addq %rax, %rdi
addq $0x18, %rdi
cmpl %esi, -0x8(%rdi)
jl 0x53e2e
cmpl %edx, (%rdi)
jge 0x53e3d
incl %r8d
addq $0x30, %rdi
cmpl %r8d, %ecx
jne 0x53e25
movl %ecx, %r8d
movslq %r8d, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_index.c
// Function: cram_seek_to_refpos
int cram_seek_to_refpos(cram_fd *fd, cram_range *r) {
    cram_index *e;

    // Ideally use an index, so see if we have one.
    if ((e = cram_index_query(fd, r->refid, r->start, NULL))) {
	if (0 != cram_seek(fd, e->offset, SEEK_SET))
	    if (0 != cram_seek(fd, e->offset - fd->first_container, SEEK_CUR))
		return -1;
    } else {
	// Absent from index, but this most likely means it simply has no data.
	return -2;
    }

    if (fd->ctr) {
	cram_free_container(fd->ctr);
	fd->ctr = NULL;
	fd->ooc = 0;
    }

    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
movl 0x4(%rsi), %edx
movl %eax, %esi
xorl %ecx, %ecx
callq 0x53d0a
testq %rax, %rax
je 0x53ec5
movq %rax, %r14
movq 0x28(%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5cc50
testl %eax, %eax
je 0x53ea1
movq 0x28(%r14), %rsi
subq 0x8840(%rbx), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x5cc50
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jne 0x53eca
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x53ec1
callq 0x59605
movq $0x0, 0x38(%rbx)
movl $0x0, 0x88f8(%rbx)
xorl %eax, %eax
jmp 0x53eca
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: itf8_put_blk
int itf8_put_blk(cram_block *blk, int val) {
    char buf[5];
    int sz;

    sz = itf8_put(buf, val);
    BLOCK_APPEND(blk, buf, sz);
    return sz;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %eax
movq %rdi, %rbx
cmpl $0x7f, %esi
ja 0x55dc9
movb %al, 0xb(%rsp)
movl $0x1, %eax
jmp 0x55e60
movl %eax, %ecx
cmpl $0x3fff, %eax           # imm = 0x3FFF
ja 0x55de7
shrl $0x8, %ecx
orb $-0x80, %cl
movb %cl, 0xb(%rsp)
movb %al, 0xc(%rsp)
movl $0x2, %eax
jmp 0x55e60
cmpl $0x1fffff, %eax         # imm = 0x1FFFFF
ja 0x55e07
shrl $0x10, %ecx
orb $-0x40, %cl
movb %cl, 0xb(%rsp)
movb %ah, 0xc(%rsp)
movb %al, 0xd(%rsp)
movl $0x3, %eax
jmp 0x55e60
cmpl $0xfffffff, %eax        # imm = 0xFFFFFFF
ja 0x55e30
shrl $0x18, %ecx
orb $-0x20, %cl
movb %cl, 0xb(%rsp)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0xc(%rsp)
movb %ah, 0xd(%rsp)
movb %al, 0xe(%rsp)
movl $0x4, %eax
jmp 0x55e60
shrl $0x1c, %ecx
orb $-0x10, %cl
movb %cl, 0xb(%rsp)
movl %eax, %ecx
shrl $0x14, %ecx
movb %cl, 0xc(%rsp)
movl %eax, %ecx
shrl $0xc, %ecx
movb %cl, 0xd(%rsp)
movl %eax, %ecx
shrl $0x4, %ecx
movb %cl, 0xe(%rsp)
andb $0xf, %al
movb %al, 0xf(%rsp)
movl $0x5, %eax
movl %eax, %r14d
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
leaq (%rdx,%r14), %rsi
cmpq %rsi, %rcx
ja 0x55eee
movl $0x400, %r15d           # imm = 0x400
movq %rcx, %xmm0
punpckldq 0x36185(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x3618d(%rip), %xmm0    # 0x8c020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x3aa41(%rip), %xmm1    # 0x908e8
cvttsd2si %xmm1, %rdx
movq %rdx, %rdi
sarq $0x3f, %rdi
subsd 0x42315(%rip), %xmm1    # 0x981d0
cvttsd2si %xmm1, %rsi
andq %rdi, %rsi
orq %rdx, %rsi
testq %rcx, %rcx
cmoveq %r15, %rsi
movq %rsi, 0x28(%rbx)
movq %rax, %rdi
callq 0x6c80
movq %rax, 0x20(%rbx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
leaq (%rdx,%r14), %rsi
cmpq %rsi, %rcx
jbe 0x55e7e
addq %rdx, %rax
leaq 0xb(%rsp), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x6570
addq %r14, 0x30(%rbx)
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/./htslib/hfile.h
// Function: hread
static inline ssize_t HTS_RESULT_USED
hread(hFILE *fp, void *buffer, size_t nbytes)
{
    extern ssize_t hread2(hFILE *, void *, size_t, size_t);

    size_t n = fp->end - fp->begin;
    if (n > nbytes) n = nbytes;
    memcpy(buffer, fp->begin, n);
    fp->begin += n;
    return (n == nbytes)? (ssize_t) n : hread2(fp, buffer, nbytes, n);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %r13
subq %rsi, %r13
cmpq %rdx, %r13
movq %rdx, %r12
cmovbq %r13, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x6570
addq %r12, 0x8(%r15)
cmpq %rbx, %r13
jae 0x55fec
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x6b0a3
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: int32_encode
int int32_encode(cram_fd *fd, int32_t val) {
    val = le_int4(val);
    if (4 != hwrite(fd->fp, &val, 4))
	return -1;

    return 4;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %rax
movl %esi, (%rax)
movq (%rdi), %r14
movq 0x8(%r14), %rdi
movq 0x18(%r14), %r15
subq %rdi, %r15
cmpq $0x4, %r15
movl $0x4, %ebx
cmovbq %r15, %rbx
movq %rax, %rsi
movq %rbx, %rdx
callq 0x6570
addq %rbx, 0x8(%r14)
cmpq $0x3, %r15
ja 0x56051
leaq 0xc(%rsp), %rsi
movl $0x4, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x6b241
movq %rax, %rbx
xorl %eax, %eax
cmpq $0x4, %rbx
sete %al
leal (%rax,%rax,4), %eax
decl %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: int32_get_blk
int int32_get_blk(cram_block *b, int32_t *val) {
    if (b->uncomp_size - BLOCK_SIZE(b) < 4)
	return -1;

    *val =
	 b->data[b->byte  ]        |
	(b->data[b->byte+1] <<  8) |
	(b->data[b->byte+2] << 16) |
	(b->data[b->byte+3] << 24);
    BLOCK_SIZE(b) += 4;
    return 4;
}

// Assembly:
movslq 0x14(%rdi), %rdx
movq 0x30(%rdi), %rcx
subq %rcx, %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq $0x4, %rdx
jb 0x56095
movq 0x20(%rdi), %rax
movl (%rax,%rcx), %eax
movl %eax, (%rsi)
addq $0x4, %rcx
movq %rcx, 0x30(%rdi)
movl $0x4, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: int32_put_blk
int int32_put_blk(cram_block *b, int32_t val) {
    unsigned char cp[4];
    cp[0] = ( val      & 0xff);
    cp[1] = ((val>>8)  & 0xff);
    cp[2] = ((val>>16) & 0xff);
    cp[3] = ((val>>24) & 0xff);

    BLOCK_APPEND(b, cp, 4);
    return b->data ? 0 : -1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x28(%rdi), %rcx
movq 0x30(%rdi), %rdx
leaq 0x4(%rdx), %rsi
cmpq %rsi, %rcx
ja 0x5612a
movl $0x400, %r14d           # imm = 0x400
movq %rcx, %xmm0
punpckldq 0x35f49(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x35f51(%rip), %xmm0    # 0x8c020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
mulsd 0x3a805(%rip), %xmm1    # 0x908e8
cvttsd2si %xmm1, %rdx
movq %rdx, %rdi
sarq $0x3f, %rdi
subsd 0x420d9(%rip), %xmm1    # 0x981d0
cvttsd2si %xmm1, %rsi
andq %rdi, %rsi
orq %rdx, %rsi
testq %rcx, %rcx
cmoveq %r14, %rsi
movq %rsi, 0x28(%rbx)
movq %rax, %rdi
callq 0x6c80
movq %rax, 0x20(%rbx)
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rdx
leaq 0x4(%rdx), %rsi
cmpq %rsi, %rcx
jbe 0x560ba
movl %ebp, (%rax,%rdx)
addq $0x4, 0x30(%rbx)
xorl %eax, %eax
cmpq $0x1, 0x20(%rbx)
sbbl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_new_block
cram_block *cram_new_block(enum cram_content_type content_type,
			   int content_id) {
    cram_block *b = malloc(sizeof(*b));
    if (!b)
	return NULL;
    b->method = b->orig_method = RAW;
    b->content_type = content_type;
    b->content_id = content_id;
    b->comp_size = 0;
    b->uncomp_size = 0;
    b->data = NULL;
    b->alloc = 0;
    b->byte = 0;
    b->bit = 7; // MSB

    return b;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movl $0x40, %edi
callq 0x69d0
testq %rax, %rax
je 0x56340
xorl %ecx, %ecx
movq %rcx, (%rax)
movl %ebp, 0x8(%rax)
movl %ebx, 0xc(%rax)
movq %rcx, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movq %rcx, 0x30(%rax)
movl $0x7, 0x38(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_free_block
void cram_free_block(cram_block *b) {
    if (!b)
	return;
    if (b->data)
	free(b->data);
    free(b);
}

// Assembly:
testq %rdi, %rdi
je 0x56a70
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x56a67
callq 0x68a0
movq %rbx, %rdi
popq %rbx
jmp 0x68a0
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: paranoid_fclose
int paranoid_fclose(FILE *fp) {
    if (-1 == fflush(fp) && errno != EBADF) {
	fclose(fp);
	return -1;
    }

    errno = 0;
    if (-1 == fsync(fileno(fp))) {
	if (errno != EINVAL) { // eg pipe
	    fclose(fp);
	    return -1;
	}
    }
    return fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x6870
movl %eax, %ebp
callq 0x6060
movq %rax, %r14
cmpl $-0x1, %ebp
jne 0x576b9
cmpl $0x9, (%r14)
jne 0x576e6
movl $0x0, (%r14)
movq %rbx, %rdi
callq 0x6750
movl %eax, %edi
callq 0x65c0
cmpl $-0x1, %eax
jne 0x576da
cmpl $0x16, (%r14)
jne 0x576e6
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x66e0
movq %rbx, %rdi
callq 0x66e0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: refs_free
void refs_free(refs_t *r) {
    RP("refs_free()\n");

    if (--r->count > 0)
	return;

    if (!r)
	return;

    if (r->pool)
	string_pool_destroy(r->pool);

    if (r->h_meta) {
	khint_t k;

	for (k = kh_begin(r->h_meta); k != kh_end(r->h_meta); k++) {
	    ref_entry *e;

	    if (!kh_exist(r->h_meta, k))
		continue;
	    if (!(e = kh_val(r->h_meta, k)))
		continue;
	    ref_entry_free_seq(e);
	    free(e);
	}

	kh_destroy(refs, r->h_meta);
    }
    
    if (r->ref_id)
	free(r->ref_id);

    if (r->fp)
	bgzf_close(r->fp);

    pthread_mutex_destroy(&r->lock);

    free(r);
}

// Assembly:
movl 0x30(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0x30(%rdi)
cmpl $0x2, %eax
setge %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x577e5
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x5772d
callq 0x650c3
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x577b0
movl (%r14), %eax
testl %eax, %eax
je 0x5778d
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0x10(%r14), %rcx
movl %r12d, %edx
shrl $0x4, %edx
movl (%rcx,%rdx,4), %edx
movl %ebp, %ecx
andb $0x1e, %cl
shrl %cl, %edx
testb $0x3, %dl
jne 0x57782
movq 0x20(%r14), %rcx
movl %r12d, %edx
movq (%rcx,%rdx,8), %r15
testq %r15, %r15
je 0x57782
movq %r15, %rdi
callq 0x577e6
movq %r15, %rdi
callq 0x68a0
movq 0x8(%rbx), %r14
movl (%r14), %eax
incl %r12d
addl $0x2, %ebp
cmpl %eax, %r12d
jne 0x57742
movq 0x18(%r14), %rdi
callq 0x68a0
movq 0x10(%r14), %rdi
callq 0x68a0
movq 0x20(%r14), %rdi
callq 0x68a0
movq %r14, %rdi
callq 0x68a0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x577be
callq 0x68a0
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x577cc
callq 0x68235
leaq 0x38(%rbx), %rdi
callq 0x6860
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x68a0
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: ref_entry_free_seq
static void ref_entry_free_seq(ref_entry *e) {
    if (e->mf)
	mfclose(e->mf);
    if (e->seq && !e->mf)
	free(e->seq);

    e->seq = NULL;
    e->mf = NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x577fb
callq 0x5ea2b
leaq 0x30(%rbx), %r14
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x57814
cmpq $0x0, 0x38(%rbx)
jne 0x57814
callq 0x68a0
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: refs2id
int refs2id(refs_t *r, SAM_hdr *h) {
    int i;

    if (r->ref_id)
	free(r->ref_id);
    if (r->last)
	r->last = NULL;

    r->ref_id = calloc(h->nref, sizeof(*r->ref_id));
    if (!r->ref_id)
	return -1;

    r->nref = h->nref;
    for (i = 0; i < h->nref; i++) {
	khint_t k = kh_get(refs, r->h_meta, h->ref[i].name);
	if (k != kh_end(r->h_meta)) {
	    r->ref_id[i] = kh_val(r->h_meta, k);
	} else {
	    fprintf(stderr, "Unable to find ref name '%s'\n",
		    h->ref[i].name);
	}
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x57847
callq 0x68a0
cmpq $0x0, 0x60(%rbx)
je 0x57856
movq $0x0, 0x60(%rbx)
movq 0x8(%rsp), %rax
movl 0x38(%rax), %ebp
movslq %ebp, %rdi
movl $0x8, %esi
callq 0x6470
movq %rax, 0x10(%rbx)
testq %rax, %rax
je 0x579f4
movl %ebp, 0x18(%rbx)
testl %ebp, %ebp
jle 0x579f0
xorl %ecx, %ecx
movq %rbx, 0x20(%rsp)
movl %ebp, 0x1c(%rsp)
movq 0x8(%rbx), %rdx
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rax
movq %rcx, 0x28(%rsp)
shlq $0x5, %rcx
movq (%rax,%rcx), %r8
movq %rdx, 0x10(%rsp)
movl (%rdx), %esi
movl $0x0, %r13d
testl %esi, %esi
je 0x57982
movsbl (%r8), %r14d
testl %r14d, %r14d
je 0x578ed
movb 0x1(%r8), %al
testb %al, %al
je 0x578f0
leaq 0x2(%r8), %rcx
movl %r14d, %edx
shll $0x5, %edx
subl %r14d, %edx
movsbl %al, %r14d
addl %edx, %r14d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x578d2
jmp 0x578f0
xorl %r14d, %r14d
movq %rsi, 0x30(%rsp)
leal -0x1(%rsi), %r12d
andl %r12d, %r14d
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
movl $0x1, %ebx
movl %r14d, %r13d
movq %r8, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%rsi,%rax,4), %r15d
leal (,%r13,2), %ebp
andl $0x1e, %ebp
movl %r15d, %eax
movl %ebp, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x57970
testb $0x1, %al
jne 0x57961
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r8, %rsi
callq 0x6a50
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %r8
testl %eax, %eax
je 0x57970
addl %ebx, %r13d
andl %r12d, %r13d
incl %ebx
cmpl %r14d, %r13d
jne 0x57917
jmp 0x579c1
movl %ebp, %ecx
shrl %cl, %r15d
testb $0x3, %r15b
movq 0x30(%rsp), %rsi
cmovnel %esi, %r13d
cmpl %esi, %r13d
je 0x579c1
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rax
movq 0x20(%rsp), %rbx
movq 0x10(%rbx), %rcx
movq 0x28(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
movq %rdx, %rcx
movl 0x1c(%rsp), %ebp
incq %rcx
movslq %ebp, %rax
cmpq %rax, %rcx
jl 0x5788a
jmp 0x579f0
movq 0x67610(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x41677(%rip), %rsi     # 0x99049
movq %r8, %rdx
xorl %eax, %eax
callq 0x6a90
movq 0x8(%rsp), %rax
movl 0x38(%rax), %ebp
movq 0x20(%rsp), %rbx
movq 0x28(%rsp), %rcx
jmp 0x579b0
xorl %eax, %eax
jmp 0x579f9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_set_header
int cram_set_header(cram_fd *fd, SAM_hdr *hdr) {
    if (fd->header)
	sam_hdr_free(fd->header);
    fd->header = hdr;
    return refs_from_header(fd->refs, fd, hdr);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x57a20
callq 0x63d6d
movq %rbx, 0x18(%r14)
movq 0x48(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x57a34
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: expand_cache_path
void expand_cache_path(char *path, char *dir, char *fn) {
    char *cp;

    while ((cp = strchr(dir, '%'))) {
	strncpy(path, dir, cp-dir);
	path += cp-dir;

	if (*++cp == 's') {
	    strcpy(path, fn);
	    path += strlen(fn);
	    fn += strlen(fn);
	    cp++;
	} else if (*cp >= '0' && *cp <= '9') {
	    char *endp;
	    long l;

	    l = strtol(cp, &endp, 10);
	    l = MIN(l, strlen(fn));
	    if (*endp == 's') {
		strncpy(path, fn, l);
		path += l;
		fn += l;
		*path = 0;
		cp = endp+1;
	    } else {
		*path++ = '%';
		*path++ = *cp++;
	    }
	} else {
	    *path++ = '%';
	    *path++ = *cp++;
	}
	dir = cp;
    }
    strcpy(path, dir);
    path += strlen(dir);
    if (*fn && path[-1] != '/')
	*path++ = '/';
    strcpy(path, fn);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %rbp
movq %rdi, %r12
movq %rsi, %rdi
movl $0x25, %esi
callq 0x6270
testq %rax, %rax
je 0x57de6
movq %rax, %r15
movq %rsp, %r14
movq %r15, %r13
subq %rbp, %r13
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x6380
addq %r12, %r13
movb 0x1(%r15), %al
cmpb $0x73, %al
jne 0x57d59
movq %r13, %rdi
movq %rbx, %rsi
callq 0x6680
movq %rbx, %rdi
callq 0x62d0
addq %rax, %r13
addq %rax, %rbx
addq $0x2, %r15
jmp 0x57dc7
addb $-0x30, %al
cmpb $0x9, %al
ja 0x57db2
leaq 0x1(%r15), %rdi
movq %r14, %rsi
movl $0xa, %edx
callq 0x6a60
movq %rax, %r12
movq (%rsp), %rax
cmpb $0x73, (%rax)
jne 0x57db2
movq %rbx, %rdi
callq 0x62d0
movq %rax, %r15
cmpq %rax, %r12
cmovbq %r12, %r15
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x6380
leaq (%r15,%r13), %r12
addq %r15, %rbx
movb $0x0, (%r13,%r15)
movq (%rsp), %rbp
incq %rbp
jmp 0x57dcd
movb $0x25, (%r13)
movb 0x1(%r15), %al
addq $0x2, %r15
movb %al, 0x1(%r13)
addq $0x2, %r13
movq %r13, %r12
movq %r15, %rbp
movq %rbp, %rdi
movl $0x25, %esi
callq 0x6270
movq %rax, %r15
testq %rax, %rax
jne 0x57d1b
movq %r12, %rdi
movq %rbp, %rsi
callq 0x6680
movq %rbp, %rdi
callq 0x62d0
addq %r12, %rax
cmpb $0x0, (%rbx)
je 0x57e0d
cmpb $0x2f, -0x1(%rax)
je 0x57e0d
movb $0x2f, (%rax)
incq %rax
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6680
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_ref_load
ref_entry *cram_ref_load(refs_t *r, int id, int is_md5) {
    ref_entry *e = r->ref_id[id];
    int start = 1, end = e->length;
    char *seq;

    if (e->seq) {
	return e;
    }

    assert(e->count == 0);

    if (r->last) {
#ifdef REF_DEBUG
	int idx = 0;
	for (idx = 0; idx < r->nref; idx++)
	    if (r->last == r->ref_id[idx])
		break;
	RP("%d cram_ref_load DECR %d\n", gettid(), idx);
#endif
	assert(r->last->count > 0);
	if (--r->last->count <= 0) {
	    RP("%d FREE REF %d (%p)\n", gettid(), id, r->ref_id[id]->seq);
	    if (r->last->seq)
		ref_entry_free_seq(r->last);
	}
    }

    /* Open file if it's not already the current open reference */
    if (strcmp(r->fn, e->fn) || r->fp == NULL) {
	if (r->fp)
	    if (bgzf_close(r->fp) != 0)
		return NULL;
	r->fn = e->fn;
	if (!(r->fp = bgzf_open_ref(r->fn, "r", is_md5)))
	    return NULL;
    }

    RP("%d Loading ref %d (%d..%d)\n", gettid(), id, start, end);

    if (!(seq = load_ref_portion(r->fp, e, start, end))) {
	return NULL;
    }

    RP("%d Loaded ref %d (%d..%d) = %p\n", gettid(), id, start, end, seq);

    RP("%d INC REF %d, %d\n", gettid(), id, (int)(e->count+1));
    e->seq = seq;
    e->mf = NULL;
    e->count++;

    /*
     * Also keep track of last used ref so incr/decr loops on the same
     * sequence don't cause load/free loops.
     */
    RP("%d cram_ref_load INCR %d => %d\n", gettid(), id, e->count+1);
    r->last = e;
    e->count++; 

    return e;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x10(%rdi), %rax
movslq %esi, %rcx
movq (%rax,%rcx,8), %rbx
cmpq $0x0, 0x30(%rbx)
jne 0x58084
cmpq $0x0, 0x28(%rbx)
jne 0x58090
movl %edx, %r15d
movq %rdi, %r14
movl 0x10(%rbx), %ebp
movq 0x60(%rdi), %rdi
testq %rdi, %rdi
je 0x58004
movq 0x28(%rdi), %rax
testq %rax, %rax
jle 0x580af
leaq -0x1(%rax), %rcx
movq %rcx, 0x28(%rdi)
cmpq $0x1, %rax
jne 0x58004
cmpq $0x0, 0x30(%rdi)
je 0x58004
callq 0x577e6
movq 0x20(%r14), %rdi
movq 0x8(%rbx), %r12
movq %r12, %rsi
callq 0x6a50
movq 0x28(%r14), %rdi
testl %eax, %eax
je 0x58030
testq %rdi, %rdi
je 0x58035
callq 0x68235
testl %eax, %eax
jne 0x58082
movq 0x8(%rbx), %r12
jmp 0x58035
testq %rdi, %rdi
jne 0x58050
movq %r12, 0x20(%r14)
movq %r12, %rdi
movl %r15d, %esi
callq 0x580ce
movq %rax, %rdi
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x58082
movq %rbx, %rsi
movl $0x1, %edx
movl %ebp, %ecx
callq 0x581a3
testq %rax, %rax
je 0x58082
movq %rax, 0x30(%rbx)
movq $0x0, 0x38(%rbx)
movq 0x28(%rbx), %rax
movq %rbx, 0x60(%r14)
addq $0x2, %rax
movq %rax, 0x28(%rbx)
jmp 0x58084
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40fd0(%rip), %rdi     # 0x99067
leaq 0x40e38(%rip), %rsi     # 0x98ed6
leaq 0x40fd0(%rip), %rcx     # 0x99075
movl $0x9ea, %edx            # imm = 0x9EA
callq 0x6460
leaq 0x40fec(%rip), %rdi     # 0x990a2
leaq 0x40e19(%rip), %rsi     # 0x98ed6
leaq 0x40fb1(%rip), %rcx     # 0x99075
movl $0x9f4, %edx            # imm = 0x9F4
callq 0x6460
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: bgzf_open_ref
static BGZF *bgzf_open_ref(char *fn, char *mode, int is_md5) {
    BGZF *fp;

    if (!is_md5) {
	char fai_file[PATH_MAX];

	snprintf(fai_file, PATH_MAX, "%s.fai", fn);
	if (access(fai_file, R_OK) != 0)
	    if (fai_build(fn) != 0)
		return NULL;
    }

    if (!(fp = bgzf_open(fn, mode))) {
	perror(fn);
	return NULL;
    }

    if (fp->is_compressed == 1 && bgzf_index_load(fp, fn, ".gzi") < 0) {
	fprintf(stderr, "Unable to load .gzi index '%s.gzi'\n", fn);
	bgzf_close(fp);
	return NULL;
    }

    return fp;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %rbx
testl %esi, %esi
je 0x58148
leaq 0x3de23(%rip), %rsi     # 0x95f09
movq %rbx, %rdi
callq 0x66abc
testq %rax, %rax
je 0x5818a
movq %rax, %r14
movl $0x60000000, %eax       # imm = 0x60000000
andl (%r14), %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
jne 0x58195
leaq 0x4123e(%rip), %rdx     # 0x99352
movq %r14, %rdi
movq %rbx, %rsi
callq 0x68c01
testl %eax, %eax
jns 0x58195
movq 0x66eae(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x41223(%rip), %rsi     # 0x99357
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6a90
movq %r14, %rdi
callq 0x68235
jmp 0x58192
leaq 0x411fc(%rip), %rdx     # 0x9934b
movq %rsp, %r14
movl $0x1000, %esi           # imm = 0x1000
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x6c20
movq %r14, %rdi
movl $0x4, %esi
callq 0x6cb0
testl %eax, %eax
je 0x580df
movq %rbx, %rdi
callq 0x69d29
testl %eax, %eax
jne 0x58192
jmp 0x580df
movq %rbx, %rdi
callq 0x6590
xorl %r14d, %r14d
movq %r14, %rax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_load_reference
int cram_load_reference(cram_fd *fd, char *fn) {
    int ret = 0;

    if (fn) {
	fd->refs = refs_load_fai(fd->refs, fn,
				 !(fd->embed_ref && fd->mode == 'r'));
	fn = fd->refs ? fd->refs->fn : NULL;
	if (!fn)
	    ret = -1;
	sanitise_SQ_lines(fd);
    }
    fd->ref_fn = fn;

    if ((!fd->refs || (fd->refs->nref == 0 && !fn)) && fd->header) {
	if (fd->refs)
	    refs_free(fd->refs);
	if (!(fd->refs = refs_create()))
	    return -1;
	if (-1 == refs_from_header(fd->refs, fd, fd->header))
	    return -1;
    }

    if (fd->header)
	if (-1 == refs2id(fd->refs, fd->header))
	    return -1;

    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x58cdb
movq 0x48(%rbx), %rdi
cmpl $0x0, 0x208(%rbx)
je 0x58ce3
xorl %edx, %edx
cmpl $0x72, 0x8(%rbx)
setne %dl
jmp 0x58ce8
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x58d11
movl $0x1, %edx
callq 0x58d97
movq %rax, 0x48(%rbx)
xorl %r14d, %r14d
testq %rax, %rax
je 0x58cff
movq 0x20(%rax), %r15
jmp 0x58d02
xorl %r15d, %r15d
cmpq $0x1, %r15
sbbl %r14d, %r14d
movq %rbx, %rdi
callq 0x591d8
movq %r15, 0x70(%rbx)
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x58d3b
testq %r15, %r15
jne 0x58d69
cmpl $0x0, 0x18(%rdi)
jne 0x58d69
cmpq $0x0, 0x18(%rbx)
je 0x58d69
leaq 0x18(%rbx), %r15
callq 0x576f8
jmp 0x58d46
cmpq $0x0, 0x18(%rbx)
je 0x58d69
leaq 0x18(%rbx), %r15
callq 0x593f8
movq %rax, 0x48(%rbx)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x58d8a
movq (%r15), %rsi
movq %rax, %rdi
callq 0x57a34
cmpl $-0x1, %eax
je 0x58d8a
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x58d80
movq 0x48(%rbx), %rdi
callq 0x57823
cmpl $-0x1, %eax
je 0x58d85
movl %r14d, %ebp
jmp 0x58d8a
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_new_container
cram_container *cram_new_container(int nrec, int nslice) {
    cram_container *c = calloc(1, sizeof(*c));
    enum cram_DS_ID id;

    if (!c)
	return NULL;

    c->curr_ref = -2;

    c->max_c_rec = nrec * nslice;
    c->curr_c_rec = 0;

    c->max_rec = nrec;
    c->record_counter = 0;
    c->num_bases = 0;

    c->max_slice = nslice;
    c->curr_slice = 0;

    c->pos_sorted = 1;
    c->max_apos   = 0;
    c->multi_seq  = 0;

    c->bams = NULL;

    if (!(c->slices = (cram_slice **)calloc(nslice, sizeof(cram_slice *))))
	goto err;
    c->slice = NULL;

    if (!(c->comp_hdr = cram_new_compression_header()))
	goto err;
    c->comp_hdr_block = NULL;

    for (id = DS_RN; id < DS_TN; id++)
	if (!(c->stats[id] = cram_stats_create())) goto err;
    
    //c->aux_B_stats = cram_stats_create();

    if (!(c->tags_used = kh_init(s_i2i)))
	goto err;
    c->refs_used = 0;

    return c;

 err:
    if (c) {
	if (c->slices)
	    free(c->slices);
	free(c);
    }
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movl %edi, %r14d
movl $0x1, %edi
movl $0x250, %esi            # imm = 0x250
callq 0x6470
testq %rax, %rax
je 0x5952b
movq %rax, %rbx
movl $0xfffffffe, 0x6c(%rax) # imm = 0xFFFFFFFE
movl %ebp, %eax
imull %r14d, %eax
movl %eax, 0x60(%rbx)
movl %r14d, 0x58(%rbx)
movl %ebp, 0x50(%rbx)
movl $0x1, 0x88(%rbx)
movslq %ebp, %rdi
movl $0x8, %esi
callq 0x6470
movq %rax, 0x78(%rbx)
testq %rax, %rax
je 0x59523
movq %rax, %r14
callq 0x5953b
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x5951b
movl $0x23, %r15d
callq 0x5db64
movq %rax, (%rbx,%r15,8)
testq %rax, %rax
je 0x5951b
incq %r15
cmpq $0x3f, %r15
jne 0x594dc
movl $0x1, %edi
movl $0x28, %esi
callq 0x6470
movq %rax, 0x238(%rbx)
testq %rax, %rax
je 0x5951b
movq $0x0, 0x240(%rbx)
jmp 0x5952d
movq %r14, %rdi
callq 0x68a0
movq %rbx, %rdi
callq 0x68a0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_new_compression_header
cram_block_compression_hdr *cram_new_compression_header(void) {
    cram_block_compression_hdr *hdr = calloc(1, sizeof(*hdr));
    if (!hdr)
	return NULL;

    if (!(hdr->TD_blk = cram_new_block(CORE, 0))) {
	free(hdr);
	return NULL;
    }

    if (!(hdr->TD_hash = kh_init(m_s2i))) {
	cram_free_block(hdr->TD_blk);
	free(hdr);
	return NULL;
    }

    if (!(hdr->TD_keys = string_pool_create(8192))) {
	kh_destroy(m_s2i, hdr->TD_hash);
	cram_free_block(hdr->TD_blk);
	free(hdr);
	return NULL;
    }

    return hdr;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x1, %edi
movl $0x418, %esi            # imm = 0x418
callq 0x6470
testq %rax, %rax
je 0x595fa
movq %rax, %rbx
movl $0x40, %edi
callq 0x69d0
testq %rax, %rax
je 0x595f2
movq %rax, %r14
movaps 0x3f738(%rip), %xmm0    # 0x98cb0
movups %xmm0, (%rax)
xorl %eax, %eax
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movq %rax, 0x30(%r14)
movl $0x7, 0x38(%r14)
movq %r14, 0x50(%rbx)
movl $0x1, %edi
movl $0x28, %esi
callq 0x6470
movq %rax, 0x68(%rbx)
testq %rax, %rax
je 0x595ea
movq %rax, %r15
movl $0x2000, %edi           # imm = 0x2000
callq 0x65094
movq %rax, 0x70(%rbx)
testq %rax, %rax
jne 0x595fc
movq 0x18(%r15), %rdi
callq 0x68a0
movq 0x10(%r15), %rdi
callq 0x68a0
movq 0x20(%r15), %rdi
callq 0x68a0
movq %r15, %rdi
callq 0x68a0
movq %r14, %rdi
callq 0x56a50
movq %rbx, %rdi
callq 0x68a0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_free_container
void cram_free_container(cram_container *c) {
    enum cram_DS_ID id;
    int i;

    if (!c)
	return;

    if (c->refs_used)
	free(c->refs_used);

    if (c->landmark)
	free(c->landmark);

    if (c->comp_hdr)
	cram_free_compression_header(c->comp_hdr);

    if (c->comp_hdr_block)
	cram_free_block(c->comp_hdr_block);

    if (c->slices) {
	for (i = 0; i < c->max_slice; i++)
	    if (c->slices[i])
		cram_free_slice(c->slices[i]);
	free(c->slices);
    }

    for (id = DS_RN; id < DS_TN; id++)
	if (c->stats[id]) cram_stats_free(c->stats[id]);

    //if (c->aux_B_stats) cram_stats_free(c->aux_B_stats);
    
    if (c->tags_used) kh_destroy(s_i2i, c->tags_used);

    free(c);
}

// Assembly:
testq %rdi, %rdi
je 0x596e7
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x240(%rdi), %rdi
testq %rdi, %rdi
je 0x59626
callq 0x68a0
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x59634
callq 0x68a0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x59642
callq 0x596e8
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x59650
callq 0x56a50
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x5968c
movl 0x50(%rbx), %eax
testl %eax, %eax
jle 0x59687
xorl %r14d, %r14d
movq 0x78(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x59678
callq 0x59823
movl 0x50(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x59663
movq 0x78(%rbx), %rdi
callq 0x68a0
movl $0x23, %r14d
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x596a0
callq 0x5e115
incq %r14
cmpq $0x3f, %r14
jne 0x59692
movq 0x238(%rbx), %r14
testq %r14, %r14
je 0x596d8
movq 0x18(%r14), %rdi
callq 0x68a0
movq 0x10(%r14), %rdi
callq 0x68a0
movq 0x20(%r14), %rdi
callq 0x68a0
movq %r14, %rdi
callq 0x68a0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x68a0
retq