LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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), %rcx
movq 0x30(%rdi), %rax
subq %rax, %rcx
cmpq $0x4, %rcx
jae 0x4d902
pushq $-0x1
popq %rax
retq
movq 0x20(%rdi), %rcx
movl (%rcx,%rax), %ecx
movl %ecx, (%rsi)
addq $0x4, %rax
movq %rax, 0x30(%rdi)
pushq $0x4
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x40
popq %rdi
callq 0x69d0
testq %rax, %rax
je 0x4dbac
andq $0x0, (%rax)
movl %ebp, 0x8(%rax)
movl %ebx, 0xc(%rax)
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
andq $0x0, 0x30(%rax)
movl $0x7, 0x38(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4e1aa
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0x68a0
movq %rbx, %rdi
popq %rbx
jmp 0x68a0
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_new_metrics
cram_metrics *cram_new_metrics(void) {
    cram_metrics *m = calloc(1, sizeof(*m));
    if (!m)
	return NULL;
    m->trial = NTRIALS-1;
    m->next_trial = TRIAL_SPAN;
    m->method = RAW;
    m->strat = 0;
    m->revised_method = 0;

    return m;
}

// Assembly:
pushq %rax
pushq $0x1
popq %rdi
pushq $0x78
popq %rsi
callq 0x6470
testq %rax, %rax
je 0x4eddc
movabsq $0x3200000002, %rcx     # imm = 0x3200000002
movq %rcx, (%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4ee1d
cmpl $0x9, (%r14)
jne 0x4ee47
andl $0x0, (%r14)
movq %rbx, %rdi
callq 0x6750
movl %eax, %edi
callq 0x65c0
cmpl $-0x1, %eax
jne 0x4ee3b
cmpl $0x16, (%r14)
jne 0x4ee47
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x66e0
movq %rbx, %rdi
callq 0x66e0
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4eedf
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x4ee88
callq 0x5a4cd
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x4ef03
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpl (%r14), %r12d
je 0x4eee0
movq 0x10(%r14), %rax
movl %r12d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %eax
movl %ebp, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
jne 0x4eed7
movq 0x20(%r14), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x4eed7
movq %r15, %rdi
callq 0x4ef33
movq %r15, %rdi
callq 0x68a0
movq 0x8(%rbx), %r14
incl %r12d
addl $0x2, %ebp
jmp 0x4ee96
retq
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
callq 0x68a0
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x4ef1a
callq 0x5d0b0
leaq 0x38(%rbx), %rdi
callq 0x6860
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x68a0
// File: /workspace/github_c_makefile_star2_O2/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 0x4ef48
callq 0x555eb
leaq 0x30(%rbx), %r14
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x4ef61
cmpq $0x0, 0x38(%rbx)
jne 0x4ef61
callq 0x68a0
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rsi, (%rsp)
movq %rdi, %r14
movq 0x10(%rdi), %rdi
callq 0x68a0
cmpq $0x0, 0x60(%r14)
je 0x4ef97
andq $0x0, 0x60(%r14)
movq (%rsp), %rax
movl 0x38(%rax), %r12d
movslq %r12d, %rdi
pushq $0x8
popq %rsi
callq 0x6470
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x4f028
movl %r12d, 0x18(%r14)
xorl %r15d, %r15d
xorl %ebx, %ebx
movslq %r12d, %rax
cmpq %rax, %rbx
jge 0x4f024
movq 0x8(%r14), %rbp
movq (%rsp), %rax
movq 0x40(%rax), %rax
movq (%rax,%r15,4), %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4f03a
cmpl (%rbp), %eax
je 0x4efff
movq 0x20(%rbp), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rax
movq 0x10(%r14), %rcx
movq %rax, (%rcx,%r15)
incq %rbx
addq $0x8, %r15
jmp 0x4efbc
movq 0x63fd2(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
leaq 0x38de9(%rip), %rsi     # 0x87df9
movq %r13, %rdx
xorl %eax, %eax
callq 0x6a90
movq (%rsp), %rax
movl 0x38(%rax), %r12d
jmp 0x4eff6
xorl %eax, %eax
jmp 0x4f02b
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f113
callq 0x597b7
movq %rbx, 0x18(%r14)
movq 0x48(%r14), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4f127
// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rdi, %r13
pushq $0x25
popq %rbp
movq %r15, %rdi
movl %ebp, %esi
callq 0x6270
testq %rax, %rax
je 0x4f3a0
movq %rax, %r14
movq %rax, %r12
subq %r15, %r12
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6380
addq %r13, %r12
movb 0x1(%r14), %al
cmpb $0x73, %al
je 0x4f328
addb $-0x30, %al
cmpb $0x9, %al
jbe 0x4f34d
movb $0x25, (%r12)
movq %r14, %r15
addq $0x2, %r15
movb 0x1(%r14), %al
movb %al, 0x1(%r12)
addq $0x2, %r12
movq %r12, %r13
jmp 0x4f2cf
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6680
movq %rbx, %rdi
callq 0x62d0
addq %rax, %r12
addq %rax, %rbx
addq $0x2, %r14
movq %r12, %r13
movq %r14, %r15
jmp 0x4f2cf
leaq 0x1(%r14), %rdi
movq %rsp, %rsi
pushq $0xa
popq %rdx
callq 0x6a60
movq %rax, %r15
movq (%rsp), %rax
cmpb $0x73, (%rax)
jne 0x4f30a
movq %rbx, %rdi
callq 0x62d0
movq %rax, %r14
cmpq %rax, %r15
cmovbq %r15, %r14
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6380
leaq (%r12,%r14), %r13
addq %r14, %rbx
movb $0x0, (%r12,%r14)
movq (%rsp), %r15
incq %r15
jmp 0x4f2cf
movq %r13, %rdi
movq %r15, %rsi
callq 0x6680
movq %r15, %rdi
callq 0x62d0
addq %r13, %rax
cmpb $0x0, (%rbx)
je 0x4f3c7
cmpb $0x2f, -0x1(%rax)
je 0x4f3c7
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_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_ref_incr_locked
static void cram_ref_incr_locked(refs_t *r, int id) {
    RP("%d INC REF %d, %d %p\n", gettid(), id, (int)(id>=0?r->ref_id[id]->count+1:-999), id>=0?r->ref_id[id]->seq:(char *)1);

    if (id < 0 || !r->ref_id[id]->seq)
	return;

    if (r->last_id == id)
	r->last_id = -1;

    ++r->ref_id[id]->count;
}

// Assembly:
testl %esi, %esi
js 0x4f48e
movq 0x10(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
cmpq $0x0, 0x30(%rax)
je 0x4f48e
cmpl %esi, 0x68(%rdi)
jne 0x4f48a
orl $-0x1, 0x68(%rdi)
incq 0x28(%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4f63c
cmpq $0x0, 0x28(%rbx)
jne 0x4f648
movl %edx, %r15d
movq %rdi, %r14
movl 0x10(%rbx), %ebp
movq 0x60(%rdi), %rdi
testq %rdi, %rdi
je 0x4f5c1
movq 0x28(%rdi), %rax
testq %rax, %rax
jle 0x4f667
leaq -0x1(%rax), %rcx
movq %rcx, 0x28(%rdi)
cmpq $0x1, %rax
jne 0x4f5c1
cmpq $0x0, 0x30(%rdi)
je 0x4f5c1
callq 0x4ef33
movq 0x20(%r14), %rdi
movq 0x8(%rbx), %r12
movq %r12, %rsi
callq 0x6a50
movq 0x28(%r14), %rdi
testl %eax, %eax
je 0x4f5ed
testq %rdi, %rdi
je 0x4f5f2
callq 0x5d0b0
testl %eax, %eax
jne 0x4f63a
movq 0x8(%rbx), %r12
jmp 0x4f5f2
testq %rdi, %rdi
jne 0x4f60d
movq %r12, 0x20(%r14)
movq %r12, %rdi
movl %r15d, %esi
callq 0x4f686
movq %rax, %rdi
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x4f63a
pushq $0x1
popq %rdx
movq %rbx, %rsi
movl %ebp, %ecx
callq 0x4f759
testq %rax, %rax
je 0x4f63a
movq %rax, 0x30(%rbx)
andq $0x0, 0x38(%rbx)
movq 0x28(%rbx), %rax
movq %rbx, 0x60(%r14)
addq $0x2, %rax
movq %rax, 0x28(%rbx)
jmp 0x4f63c
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x387c8(%rip), %rdi     # 0x87e17
leaq 0x38630(%rip), %rsi     # 0x87c86
leaq 0x387c8(%rip), %rcx     # 0x87e25
movl $0x9ea, %edx            # imm = 0x9EA
callq 0x6460
leaq 0x387e4(%rip), %rdi     # 0x87e52
leaq 0x38611(%rip), %rsi     # 0x87c86
leaq 0x387a9(%rip), %rcx     # 0x87e25
movl $0x9f4, %edx            # imm = 0x9F4
callq 0x6460
// File: /workspace/github_c_makefile_star2_O2/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 0x4f700
leaq 0x3576b(%rip), %rsi     # 0x84e09
movq %rbx, %rdi
callq 0x5bd04
testq %rax, %rax
je 0x4f740
movq %rax, %r14
movl $0x60000000, %eax       # imm = 0x60000000
andl (%r14), %eax
cmpl $0x20000000, %eax       # imm = 0x20000000
jne 0x4f74b
leaq 0x38a31(%rip), %rdx     # 0x880fd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5d8e7
testl %eax, %eax
jns 0x4f74b
movq 0x638f6(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
leaq 0x38a16(%rip), %rsi     # 0x88102
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6a90
movq %r14, %rdi
callq 0x5d0b0
jmp 0x4f748
leaq 0x389ef(%rip), %rdx     # 0x880f6
movq %rsp, %r14
movl $0x1000, %esi           # imm = 0x1000
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x6c20
pushq $0x4
popq %rsi
movq %r14, %rdi
callq 0x6cb0
testl %eax, %eax
je 0x4f697
movq %rbx, %rdi
callq 0x5e8f9
testl %eax, %eax
jne 0x4f748
jmp 0x4f697
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_O2/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 0x50210
movq 0x48(%rbx), %rdi
cmpl $0x0, 0x208(%rbx)
je 0x50218
xorl %edx, %edx
cmpl $0x72, 0x8(%rbx)
setne %dl
jmp 0x5021b
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x50244
pushq $0x1
popq %rdx
callq 0x502c1
movq %rax, 0x48(%rbx)
xorl %r14d, %r14d
testq %rax, %rax
je 0x50232
movq 0x20(%rax), %r15
jmp 0x50235
xorl %r15d, %r15d
cmpq $0x1, %r15
sbbl %r14d, %r14d
movq %rbx, %rdi
callq 0x5066f
movq %r15, 0x70(%rbx)
movq 0x48(%rbx), %rdi
pushq $-0x1
popq %rbp
testq %rdi, %rdi
je 0x50271
testq %r15, %r15
jne 0x5029a
cmpl $0x0, 0x18(%rdi)
jne 0x5029a
cmpq $0x0, 0x18(%rbx)
je 0x5029a
leaq 0x18(%rbx), %r15
callq 0x4ee57
jmp 0x5027c
cmpq $0x0, 0x18(%rbx)
je 0x5029a
leaq 0x18(%rbx), %r15
callq 0x50796
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x502b4
movq (%r15), %rsi
movq %rax, %rdi
callq 0x4f127
cmpl $-0x1, %eax
je 0x502b4
movq 0x18(%rbx), %rsi
testq %rsi, %rsi
je 0x502b1
movq 0x48(%rbx), %rdi
callq 0x4ef70
cmpl $-0x1, %eax
je 0x502b4
movl %r14d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: sanitise_SQ_lines
static void sanitise_SQ_lines(cram_fd *fd) {
    int i;

    if (!fd->header)
	return;

    if (!fd->refs || !fd->refs->h_meta)
	return;

    for (i = 0; i < fd->header->nref; i++) {
	char *name = fd->header->ref[i].name;
	khint_t k = kh_get(refs, fd->refs->h_meta, name);
	ref_entry *r;

	// We may have @SQ lines which have no known .fai, but do not
	// in themselves pose a problem because they are unused in the file.
	if (k == kh_end(fd->refs->h_meta))
	    continue;

	if (!(r = (ref_entry *)kh_val(fd->refs->h_meta, k)))
	    continue;

	if (r->length && r->length != fd->header->ref[i].len) {
	    assert(strcmp(r->name, fd->header->ref[i].name) == 0);

	    // Should we also check MD5sums here to ensure the correct
	    // reference was given?
	    fprintf(stderr, "WARNING: Header @SQ length mismatch for "
		    "ref %s, %d vs %d\n",
		    r->name, fd->header->ref[i].len, (int)r->length);

	    // Fixing the parsed @SQ header will make MD:Z: strings work
	    // and also stop it producing N for the sequence.
	    fd->header->ref[i].len = r->length;
	}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x18(%rdi), %r13
testq %r13, %r13
je 0x50768
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rax
testq %rax, %rax
je 0x50768
cmpq $0x0, 0x8(%rax)
je 0x50768
pushq $0x8
popq %r14
xorl %ebp, %ebp
movslq 0x38(%r13), %rax
cmpq %rax, %rbp
jge 0x50768
movq 0x40(%r13), %rbx
movq -0x8(%rbx,%r14), %r15
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rax
movq 0x8(%rax), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x4f03a
cmpl (%r12), %eax
je 0x50709
movq 0x20(%r12), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x50709
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x50709
movl (%rbx,%r14), %ecx
cmpq %rcx, %rax
jne 0x50712
incq %rbp
addq $0x20, %r14
jmp 0x506b2
movq %rcx, %r13
movq %rax, 0x10(%rsp)
movq (%r12), %rdi
movq %rdi, %rbx
movq %r15, %rsi
callq 0x6a50
testl %eax, %eax
jne 0x50777
movq 0x628a4(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
leaq 0x37b66(%rip), %rsi     # 0x882a4
movq %rbx, %rdx
movl %r13d, %ecx
movq 0x10(%rsp), %r8
xorl %eax, %eax
callq 0x6a90
movl 0x10(%r12), %eax
movq 0x8(%rsp), %rcx
movq 0x18(%rcx), %r13
movq 0x40(%r13), %rcx
movl %eax, (%rcx,%r14)
jmp 0x50709
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x37ad6(%rip), %rdi     # 0x88254
leaq 0x37501(%rip), %rsi     # 0x87c86
leaq 0x37af6(%rip), %rcx     # 0x88282
movl $0x7a6, %edx            # imm = 0x7A6
callq 0x6460
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
movl $0x250, %esi            # imm = 0x250
callq 0x6470
testq %rax, %rax
je 0x508b3
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
pushq $0x8
popq %rsi
callq 0x6470
movq %rax, %r14
movq %rax, 0x78(%rbx)
testq %rax, %rax
je 0x508a3
callq 0x508c3
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x508a3
pushq $0x23
popq %r15
cmpq $0x3f, %r15
je 0x50882
callq 0x547b4
movq %rax, (%rbx,%r15,8)
incq %r15
testq %rax, %rax
jne 0x50869
jmp 0x508a3
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x6470
movq %rax, 0x238(%rbx)
testq %rax, %rax
je 0x508a3
andq $0x0, 0x240(%rbx)
jmp 0x508b5
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_O2/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
pushq $0x1
popq %rdi
movl $0x418, %esi            # imm = 0x418
callq 0x6470
testq %rax, %rax
je 0x5092f
movq %rax, %rbx
pushq $0x5
popq %rdi
xorl %esi, %esi
callq 0x4db76
movq %rax, 0x50(%rbx)
testq %rax, %rax
je 0x50927
movq %rax, %r14
callq 0x5220c
movq %rax, 0x68(%rbx)
testq %rax, %rax
je 0x5091f
movq %rax, %r15
movl $0x2000, %edi           # imm = 0x2000
callq 0x5a4a0
movq %rax, 0x70(%rbx)
testq %rax, %rax
jne 0x50931
movq %r15, %rdi
callq 0x52217
movq %r14, %rdi
callq 0x4e18f
movq %rbx, %rdi
callq 0x68a0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x50a05
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x240(%rdi), %rdi
callq 0x68a0
movq 0x30(%rbx), %rdi
callq 0x68a0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x5096d
callq 0x50a06
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x5097b
callq 0x4e18f
cmpq $0x0, 0x78(%rbx)
je 0x509aa
xorl %r14d, %r14d
movslq 0x50(%rbx), %rax
movq 0x78(%rbx), %rdi
cmpq %rax, %r14
jge 0x509a5
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x509a0
callq 0x50b17
incq %r14
jmp 0x50985
callq 0x68a0
pushq $0x23
popq %r14
cmpq $0x3f, %r14
je 0x509c7
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x509c2
callq 0x54df1
incq %r14
jmp 0x509ae
movq 0x238(%rbx), %r14
testq %r14, %r14
je 0x509f6
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
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_free_compression_header
void cram_free_compression_header(cram_block_compression_hdr *hdr) {
    int i;

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

    if (hdr->preservation_map)
	kh_destroy(map, hdr->preservation_map);

    for (i = 0; i < CRAM_MAP_HASH; i++) {
	cram_map *m, *m2;
	for (m = hdr->rec_encoding_map[i]; m; m = m2) {
	    m2 = m->next;
	    if (m->codec)
		m->codec->free(m->codec);
	    free(m);
	}
    }

    for (i = 0; i < CRAM_MAP_HASH; i++) {
	cram_map *m, *m2;
	for (m = hdr->tag_encoding_map[i]; m; m = m2) {
	    m2 = m->next;
	    if (m->codec)
		m->codec->free(m->codec);
	    free(m);
	}
    }

    for (i = 0; i < DS_END; i++) {
	if (hdr->codecs[i])
	    hdr->codecs[i]->free(hdr->codecs[i]);
    }

    if (hdr->TL)
	free(hdr->TL);
    if (hdr->TD_blk)
	cram_free_block(hdr->TD_blk);
    if (hdr->TD_hash)
	kh_destroy(m_s2i, hdr->TD_hash);
    if (hdr->TD_keys)
	string_pool_destroy(hdr->TD_keys);

    free(hdr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x68a0
movq 0x78(%rbx), %r14
testq %r14, %r14
je 0x50a46
movq 0x18(%r14), %rdi
callq 0x68a0
movq 0x10(%r14), %rdi
callq 0x68a0
movq 0x20(%r14), %rdi
callq 0x68a0
movq %r14, %rdi
callq 0x68a0
xorl %r15d, %r15d
cmpq $0x20, %r15
je 0x50a7e
movq 0x80(%rbx,%r15,8), %r14
testq %r14, %r14
je 0x50a79
movq 0x10(%r14), %rdi
movq 0x18(%r14), %r12
testq %rdi, %rdi
je 0x50a6c
callq *0x10(%rdi)
movq %r14, %rdi
callq 0x68a0
movq %r12, %r14
jmp 0x50a57
incq %r15
jmp 0x50a49
xorl %r15d, %r15d
cmpq $0x20, %r15
je 0x50ab6
movq 0x180(%rbx,%r15,8), %r14
testq %r14, %r14
je 0x50ab1
movq 0x10(%r14), %rdi
movq 0x18(%r14), %r12
testq %rdi, %rdi
je 0x50aa4
callq *0x10(%rdi)
movq %r14, %rdi
callq 0x68a0
movq %r12, %r14
jmp 0x50a8f
incq %r15
jmp 0x50a81
pushq $0x50
popq %r14
cmpq $0x7f, %r14
je 0x50ad1
movq (%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x50acc
callq *0x10(%rdi)
incq %r14
jmp 0x50aba
movq 0x60(%rbx), %rdi
callq 0x68a0
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x50ae8
callq 0x4e18f
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x50af6
callq 0x52217
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x50b04
callq 0x5a4cd
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x68a0
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_free_slice
void cram_free_slice(cram_slice *s) {
    if (!s)
	return;

    if (s->hdr_block)
	cram_free_block(s->hdr_block);

    if (s->block) {
	int i;

	if (s->hdr) {
	    for (i = 0; i < s->hdr->num_blocks; i++) {
		cram_free_block(s->block[i]);
	    }
	}
	free(s->block);
    }

    if (s->block_by_id)
	free(s->block_by_id);

    if (s->hdr)
	cram_free_slice_header(s->hdr);

    if (s->seqs_blk)
	cram_free_block(s->seqs_blk);

    if (s->qual_blk)
	cram_free_block(s->qual_blk);

    if (s->name_blk)
	cram_free_block(s->name_blk);

    if (s->aux_blk)
	cram_free_block(s->aux_blk);

    if (s->aux_OQ_blk)
	cram_free_block(s->aux_OQ_blk);

    if (s->aux_BQ_blk)
	cram_free_block(s->aux_BQ_blk);

    if (s->aux_FZ_blk)
	cram_free_block(s->aux_FZ_blk);

    if (s->aux_oq_blk)
	cram_free_block(s->aux_oq_blk);

    if (s->aux_os_blk)
	cram_free_block(s->aux_os_blk);

    if (s->aux_oz_blk)
	cram_free_block(s->aux_oz_blk);

    if (s->base_blk)
	cram_free_block(s->base_blk);

    if (s->soft_blk)
	cram_free_block(s->soft_blk);

    if (s->cigar)
	free(s->cigar);

    if (s->crecs)
	free(s->crecs);

    if (s->features)
	free(s->features);

    if (s->TN)
	free(s->TN);

    if (s->pair_keys)
	string_pool_destroy(s->pair_keys);

    if (s->pair[0])
	kh_destroy(m_s2i, s->pair[0]);
    if (s->pair[1])
	kh_destroy(m_s2i, s->pair[1]);

    free(s);
}

// Assembly:
testq %rdi, %rdi
je 0x50ca8
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x50b35
callq 0x4e18f
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x50b6c
movq (%rbx), %rax
testq %rax, %rax
je 0x50b67
xorl %r14d, %r14d
movslq 0x20(%rax), %rax
movq 0x10(%rbx), %rdi
cmpq %rax, %r14
jge 0x50b67
movq (%rdi,%r14,8), %rdi
callq 0x4e18f
incq %r14
movq (%rbx), %rax
jmp 0x50b49
callq 0x68a0
movq 0x18(%rbx), %rdi
callq 0x68a0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x50b82
callq 0x52245
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x50b90
callq 0x4e18f
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x50b9e
callq 0x4e18f
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x50bac
callq 0x4e18f
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x50bbd
callq 0x4e18f
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x50bce
callq 0x4e18f
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x50bdf
callq 0x4e18f
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x50bf0
callq 0x4e18f
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0x50c01
callq 0x4e18f
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x50c12
callq 0x4e18f
movq 0xc8(%rbx), %rdi
testq %rdi, %rdi
je 0x50c23
callq 0x4e18f
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x50c31
callq 0x4e18f
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x50c42
callq 0x4e18f
movq 0x30(%rbx), %rdi
callq 0x68a0
movq 0x28(%rbx), %rdi
callq 0x68a0
movq 0x40(%rbx), %rdi
callq 0x68a0
movq 0x50(%rbx), %rdi
callq 0x68a0
movq 0xd0(%rbx), %rdi
testq %rdi, %rdi
je 0x50c77
callq 0x5a4cd
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x50c88
callq 0x52217
movq 0xe0(%rbx), %rdi
testq %rdi, %rdi
je 0x50c99
callq 0x52217
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x68a0
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_flush_container2
static int cram_flush_container2(cram_fd *fd, cram_container *c) {
    int i, j;

    if (c->curr_slice > 0 && !c->slices)
	return -1;

    //fprintf(stderr, "Writing container %d, sum %u\n", c->record_counter, sum);

    /* Write the container struct itself */
    if (0 != cram_write_container(fd, c))
	return -1;

    /* And the compression header */
    if (0 != cram_write_block(fd, c->comp_hdr_block))
	return -1;

    /* Followed by the slice blocks */
    for (i = 0; i < c->curr_slice; i++) {
	cram_slice *s = c->slices[i];

	if (0 != cram_write_block(fd, s->hdr_block))
	    return -1;

	for (j = 0; j < s->hdr->num_blocks; j++) {
	    if (0 != cram_write_block(fd, s->block[j]))
		return -1;
	}
    }

    return hflush(fd->fp) == 0 ? 0 : -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
cmpl $0x0, 0x54(%rsi)
pushq $-0x1
popq %rbx
jle 0x5200c
cmpq $0x0, 0x78(%r15)
je 0x5202b
movq %r14, %rdi
movq %r15, %rsi
callq 0x51839
testl %eax, %eax
jne 0x5202b
movq 0x48(%r15), %rsi
movq %r14, %rdi
callq 0x4de55
testl %eax, %eax
je 0x5203c
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
movslq 0x54(%r15), %rax
cmpq %rax, %r12
jge 0x5208d
movq 0x78(%r15), %rax
movq (%rax,%r12,8), %r13
movq 0x8(%r13), %rsi
movq %r14, %rdi
callq 0x4de55
testl %eax, %eax
jne 0x5202b
xorl %ebp, %ebp
movq (%r13), %rax
movslq 0x20(%rax), %rax
cmpq %rax, %rbp
jge 0x52088
movq 0x10(%r13), %rax
movq (%rax,%rbp,8), %rsi
movq %r14, %rdi
callq 0x4de55
incq %rbp
testl %eax, %eax
je 0x52062
jmp 0x5202b
incq %r12
jmp 0x5203f
movq (%r14), %rdi
callq 0x5f83e
xorl %ebx, %ebx
negl %eax
sbbl %ebx, %ebx
jmp 0x5202b
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_flush_container_mt
int cram_flush_container_mt(cram_fd *fd, cram_container *c) {
    cram_job *j;

    if (!fd->pool)
	return cram_flush_container(fd, c);

    if (!(j = malloc(sizeof(*j))))
	return -1;
    j->fd = fd;
    j->c = c;
    
    t_pool_dispatch(fd->pool, fd->rqueue, cram_flush_thread, j);

    return cram_flush_result(fd);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8860(%rdi), %r15
testq %r15, %r15
je 0x52124
pushq $0x10
popq %rdi
callq 0x69d0
testq %rax, %rax
je 0x52134
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
movq 0x8868(%rbx), %rsi
leaq -0x72(%rip), %rdx       # 0x5209d
movq %r15, %rdi
movq %rax, %rcx
callq 0x5ab23
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x5213d
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x51fbe
pushq $-0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_flush_result
static int cram_flush_result(cram_fd *fd) {
    int i, ret = 0;
    t_pool_result *r;

    while ((r = t_pool_next_result(fd->rqueue))) {
	cram_job *j = (cram_job *)r->data;
	cram_container *c;

	if (!j) {
	    t_pool_delete_result(r, 0);
	    return -1;
	}

	fd = j->fd;
	c = j->c;

	if (0 != cram_flush_container2(fd, c))
	    return -1;

	/* Free the container */
	for (i = 0; i < c->max_slice; i++) {
	    cram_free_slice(c->slices[i]);
	    c->slices[i] = NULL;
	}

	c->slice = NULL;
	c->curr_slice = 0;

	cram_free_container(c);

	ret |= hflush(fd->fp) == 0 ? 0 : -1;

	t_pool_delete_result(r, 1);
    }

    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %r13d, %r13d
pushq $0x1
popq %rbp
movq 0x8868(%r14), %rdi
callq 0x5a614
testq %rax, %rax
je 0x521eb
movq %rax, %r15
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x521f0
movq (%rax), %r14
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x51feb
testl %eax, %eax
jne 0x521fa
xorl %ebx, %ebx
movslq 0x50(%r12), %rax
cmpq %rax, %rbx
jge 0x521b1
movq 0x78(%r12), %rax
movq (%rax,%rbx,8), %rdi
callq 0x50b17
movq 0x78(%r12), %rax
andq $0x0, (%rax,%rbx,8)
incq %rbx
jmp 0x5218a
andq $0x0, 0x80(%r12)
andl $0x0, 0x54(%r12)
movq %r12, %rdi
callq 0x5093a
movq (%r14), %rdi
callq 0x5f83e
negl %eax
movl $0x0, %eax
sbbl %eax, %eax
orl %eax, %r13d
movq %r15, %rdi
movl %ebp, %esi
callq 0x5a79f
jmp 0x52151
movl %r13d, %eax
jmp 0x521fd
movq %r15, %rdi
xorl %esi, %esi
callq 0x5a79f
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_free_slice_header
void cram_free_slice_header(cram_block_slice_hdr *hdr) {
    if (!hdr)
	return;

    if (hdr->block_content_ids)
	free(hdr->block_content_ids);

    free(hdr);

    return;
}

// Assembly:
testq %rdi, %rdi
je 0x52260
pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
callq 0x68a0
movq %rbx, %rdi
popq %rbx
jmp 0x68a0
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_read_file_def
cram_file_def *cram_read_file_def(cram_fd *fd) {
    cram_file_def *def = malloc(sizeof(*def));
    if (!def)
	return NULL;

    if (26 != hread(fd->fp, &def->magic[0], 26)) {
	free(def);
	return NULL;
    }

    if (memcmp(def->magic, "CRAM", 4) != 0) {
	free(def);
	return NULL;
    }

    if (def->major_version > 3) {
	fprintf(stderr, "CRAM version number mismatch\n"
		"Expected 1.x, 2.x or 3.x, got %d.%d\n",
		def->major_version, def->minor_version);
	free(def);
	return NULL;
    }

    fd->first_container += 26;
    fd->last_slice = 0;

    return def;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x1a
popq %rdi
callq 0x69d0
testq %rax, %rax
je 0x5261c
movq %rax, %rbx
movq (%r14), %rdi
pushq $0x1a
popq %rdx
movq %rax, %rsi
callq 0x4d865
cmpq $0x1a, %rax
jne 0x52614
cmpl $0x4d415243, (%rbx)     # imm = 0x4D415243
je 0x52629
movq %rbx, %rdi
callq 0x68a0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movzbl 0x4(%rbx), %edx
cmpl $0x4, %edx
jae 0x52644
addq $0x1a, 0x8840(%r14)
andl $0x0, 0x884c(%r14)
jmp 0x5261e
movq 0x6098d(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
movzbl 0x5(%rbx), %ecx
leaq 0x3590e(%rip), %rsi     # 0x87f67
xorl %eax, %eax
callq 0x6a90
jmp 0x52614
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_seek
int cram_seek(cram_fd *fd, off_t offset, int whence) {
    char buf[65536];

    fd->ooc = 0;

    if (hseek(fd->fp, offset, whence) >= 0)
	return 0;

    if (!(whence == SEEK_CUR && offset >= 0))
	return -1;

    /* Couldn't fseek, but we're in SEEK_CUR mode so read instead */
    while (offset > 0) {
	int len = MIN(65536, offset);
	if (len != hread(fd->fp, buf, len))
	    return -1;
	offset -= len;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10008, %rsp          # imm = 0x10008
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
andl $0x0, 0x88f8(%rdi)
movq (%rdi), %rdi
callq 0x5f9ba
xorl %ebp, %ebp
testq %rax, %rax
jns 0x539ea
cmpl $0x1, %r15d
setne %al
testq %rbx, %rbx
sets %cl
pushq $-0x1
popq %rdx
orb %al, %cl
jne 0x539e8
movl $0x10000, %r13d         # imm = 0x10000
movq %rsp, %r15
testq %rbx, %rbx
jle 0x539ea
cmpq %r13, %rbx
movl $0x10000, %r12d         # imm = 0x10000
cmovbq %rbx, %r12
movq (%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x4d865
subq %r12, %rbx
cmpq %rax, %r12
je 0x539bb
pushq $-0x1
popq %rbp
jmp 0x539ea
movl %edx, %ebp
movl %ebp, %eax
addq $0x10008, %rsp          # imm = 0x10008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_io.c
// Function: cram_flush
int cram_flush(cram_fd *fd) {
    if (!fd)
	return -1;

    if (fd->mode == 'w' && fd->ctr) {
	if(fd->ctr->slice)
	    fd->ctr->curr_slice++;
	if (-1 == cram_flush_container_mt(fd, fd->ctr))
	    return -1;
    }

    return 0;
}

// Assembly:
pushq %rbx
pushq $-0x1
popq %rbx
testq %rdi, %rdi
je 0x53a2f
cmpl $0x77, 0x8(%rdi)
jne 0x53a2d
movq 0x38(%rdi), %rsi
testq %rsi, %rsi
je 0x53a2d
cmpq $0x0, 0x80(%rsi)
je 0x53a23
incl 0x54(%rsi)
callq 0x520d6
cmpl $-0x1, %eax
je 0x53a2f
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_stats.c
// Function: cram_stats_add
void cram_stats_add(cram_stats *st, int32_t val) {
    st->nsamp++;

    //assert(val >= 0);

    if (val < MAX_STAT_VAL && val >= 0) {
	st->freqs[val]++;
    } else {
	khint_t k;
	int r;

	if (!st->h) {
	    st->h = kh_init(m_i2i);
	}

	k = kh_put(m_i2i, st->h, val, &r);
	if (r == 0)
	    kh_val(st->h, k)++;
	else if (r != -1)
	    kh_val(st->h, k) = 1;
	//else
	    //; // FIXME: handle error
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
incl 0x1008(%rdi)
cmpl $0x3ff, %esi            # imm = 0x3FF
ja 0x547e6
movl %ebp, %eax
incl (%rbx,%rax,4)
jmp 0x54954
movq 0x1000(%rbx), %r14
testq %r14, %r14
jne 0x54807
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x6470
movq %rax, %r14
movq %rax, 0x1000(%rbx)
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
jb 0x54834
movl (%r14), %esi
movl 0x4(%r14), %eax
addl %eax, %eax
cmpl %eax, %esi
jbe 0x54822
decl %esi
jmp 0x54824
incl %esi
movq %r14, %rdi
callq 0x54e36
testl %eax, %eax
js 0x54954
movl (%r14), %esi
leal -0x1(%rsi), %r8d
movl %r8d, %edi
andl %ebp, %edi
movq 0x10(%r14), %rax
movl %edi, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %edx
leal (%rdi,%rdi), %ecx
shrl %cl, %edx
testb $0x2, %dl
je 0x5485a
movl %edi, %edx
jmp 0x548d4
pushq $0x1
popq %r10
movl %edi, %r9d
movl %esi, %edx
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rax,%rcx,4), %r11d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r11d, %r15d
shrl %cl, %r15d
testb $0x2, %r15b
jne 0x548b4
testb $0x1, %r15b
jne 0x54893
movq 0x18(%r14), %r15
movl %r9d, %r12d
cmpl %ebp, (%r15,%r12,4)
je 0x548b4
btl %ecx, %r11d
cmovbl %r9d, %edx
addl %r10d, %r9d
andl %r8d, %r9d
incl %r10d
cmpl %edi, %r9d
jne 0x54863
movb $0x1, %cl
movl %esi, %r8d
cmpl %esi, %edx
je 0x548c4
jmp 0x548d4
shrl %cl, %r11d
testb $0x2, %r11b
sete %cl
movl %edx, %r8d
movl %r9d, %edi
cmpl %esi, %r8d
cmovel %edi, %r8d
testb %cl, %cl
cmovnel %edi, %r8d
movl %r8d, %edx
movl %edx, %esi
shrl $0x4, %esi
movl (%rax,%rsi,4), %edi
leal (%rdx,%rdx), %ecx
andl $0x1e, %ecx
shrl %cl, %edi
testb $0x2, %dil
jne 0x54902
testb $0x1, %dil
jne 0x5492b
movq 0x1000(%rbx), %rax
movq 0x20(%rax), %rax
movl %edx, %ecx
incl (%rax,%rcx,4)
jmp 0x54954
movq 0x18(%r14), %rdi
movl %edx, %edx
movl %ebp, (%rdi,%rdx,4)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%rsi,4)
movq 0x4(%r14), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%r14)
jmp 0x54942
movq 0x18(%r14), %rdi
movl %edx, %edx
movl %ebp, (%rdi,%rdx,4)
pushq $0x3
popq %rdi
shll %cl, %edi
notl %edi
andl %edi, (%rax,%rsi,4)
incl 0x4(%r14)
movq 0x1000(%rbx), %rax
movq 0x20(%rax), %rax
movl $0x1, (%rax,%rdx,4)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_stats.c
// Function: cram_stats_del
void cram_stats_del(cram_stats *st, int32_t val) {
    st->nsamp--;

    //assert(val >= 0);

    if (val < MAX_STAT_VAL && val >= 0) {
	st->freqs[val]--;
	assert(st->freqs[val] >= 0);
    } else if (st->h) {
	khint_t k = kh_get(m_i2i, st->h, val);

	if (k != kh_end(st->h)) {
	    if (--kh_val(st->h, k) == 0)
		kh_del(m_i2i, st->h, k);
	} else {
	    fprintf(stderr, "Failed to remove val %d from cram_stats\n", val);
	    st->nsamp++;
	}
    } else {
	fprintf(stderr, "Failed to remove val %d from cram_stats\n", val);
	st->nsamp++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %edx
movq %rdi, %rbx
decl 0x1008(%rdi)
cmpl $0x3ff, %esi            # imm = 0x3FF
ja 0x549a7
movl %edx, %eax
movl (%rbx,%rax,4), %ecx
leal -0x1(%rcx), %edx
movl %edx, (%rbx,%rax,4)
testl %ecx, %ecx
jg 0x54a7b
leaq 0x3396e(%rip), %rdi     # 0x882ff
leaq 0x3397b(%rip), %rsi     # 0x88313
leaq 0x33986(%rip), %rcx     # 0x88325
pushq $0x53
popq %rdx
callq 0x6460
movq 0x1000(%rbx), %rsi
testq %rsi, %rsi
je 0x54a5d
movl (%rsi), %edi
testl %edi, %edi
je 0x54a1b
leal -0x1(%rdi), %r8d
movl %r8d, %r9d
andl %edx, %r9d
movq 0x10(%rsi), %r10
pushq $0x1
popq %r11
movl %r9d, %eax
movl %eax, %ecx
shrl $0x4, %ecx
movl (%r10,%rcx,4), %ebp
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %ebp, %r14d
shrl %cl, %r14d
testb $0x2, %r14b
jne 0x54a10
testb $0x1, %r14b
jne 0x54a00
movq 0x18(%rsi), %r14
movl %eax, %r15d
cmpl %edx, (%r14,%r15,4)
je 0x54a10
addl %r11d, %eax
andl %r8d, %eax
incl %r11d
cmpl %r9d, %eax
jne 0x549d2
jmp 0x54a5d
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %edi, %eax
jmp 0x54a1d
xorl %eax, %eax
cmpl %edi, %eax
je 0x54a5d
movq 0x20(%rsi), %rcx
movl %eax, %edx
decl (%rcx,%rdx,4)
jne 0x54a7b
cmpl %eax, (%rsi)
je 0x54a7b
movq 0x10(%rsi), %rdx
movl %eax, %edi
shrl $0x4, %edi
movl (%rdx,%rdi,4), %r8d
addl %eax, %eax
andl $0x1e, %eax
movl %r8d, %r9d
movl %eax, %ecx
shrl %cl, %r9d
testb $0x3, %r9b
jne 0x54a7b
btsl %eax, %r8d
movl %r8d, (%rdx,%rdi,4)
decl 0x4(%rsi)
jmp 0x54a7b
movq 0x5e574(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
leaq 0x338e2(%rip), %rsi     # 0x88350
xorl %eax, %eax
callq 0x6a90
incl 0x1008(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/cram_stats.c
// Function: cram_stats_dump
void cram_stats_dump(cram_stats *st) {
    int i;
    fprintf(stderr, "cram_stats:\n");
    for (i = 0; i < MAX_STAT_VAL; i++) {
	if (!st->freqs[i])
	    continue;
	fprintf(stderr, "\t%d\t%d\n", i, st->freqs[i]);
    }
    if (st->h) {
	khint_t k;
	for (k = kh_begin(st->h); k != kh_end(st->h); k++) {
	    if (!kh_exist(st->h, k))
		continue;

	    fprintf(stderr, "\t%d\t%d\n", kh_key(st->h, k), kh_val(st->h, k));
	}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x5e540(%rip), %r12     # 0xb2fd8
movq (%r12), %rcx
leaq 0x338d6(%rip), %rdi     # 0x88379
pushq $0xc
popq %rsi
pushq $0x1
popq %rdx
callq 0x6e70
leaq 0x2a271(%rip), %r14     # 0x7ed26
xorl %r15d, %r15d
cmpq $0x400, %r15            # imm = 0x400
je 0x54ae1
movl (%rbx,%r15,4), %ecx
testl %ecx, %ecx
jne 0x54ace
incq %r15
jmp 0x54ab8
movq (%r12), %rdi
movq %r14, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x6a90
jmp 0x54ac9
movq 0x1000(%rbx), %rax
testq %rax, %rax
je 0x54b47
leaq 0x2a232(%rip), %r14     # 0x7ed26
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpl (%rax), %r15d
je 0x54b47
movq 0x10(%rax), %rcx
movl %r15d, %edx
shrl $0x4, %edx
movl (%rcx,%rdx,4), %edx
movl %ebp, %ecx
andb $0x1e, %cl
shrl %cl, %edx
testb $0x3, %dl
je 0x54b1f
incl %r15d
addl $0x2, %ebp
jmp 0x54af9
movq (%r12), %rdi
movl %r15d, %ecx
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rax
movl (%rdx,%rcx,4), %edx
movl (%rax,%rcx,4), %ecx
movq %r14, %rsi
xorl %eax, %eax
callq 0x6a90
movq 0x1000(%rbx), %rax
jmp 0x54b17
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/mFILE.c
// Function: mfmmap
int mfmmap(mFILE *mf, FILE *fp, const char *fn) {
    struct stat sb;

    if (stat(fn, &sb) != 0)
	return -1;

    mf->size = sb.st_size;
    mf->data = mmap(NULL, mf->size, PROT_READ, MAP_SHARED,
		    fileno(fp), 0);

    if (!mf->data)
	return -1;

    mf->alloced = 0;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rsi
movq %rdx, %rdi
callq 0x6630
pushq $-0x1
popq %rbp
testl %eax, %eax
jne 0x55189
movq 0x38(%rsp), %r15
movq %r15, 0x20(%rbx)
movq %r14, %rdi
callq 0x6750
pushq $0x1
popq %rcx
xorl %edi, %edi
movq %r15, %rsi
movl %ecx, %edx
movl %eax, %r8d
xorl %r9d, %r9d
callq 0x6d70
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x55189
andq $0x0, 0x10(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/cram/mFILE.c
// Function: mfload
static char *mfload(FILE *fp, const char *fn, size_t *size, int binary) {
    struct stat sb;
    char *data = NULL;
    size_t allocated = 0, used = 0;
    int bufsize = 8192;

#ifdef _WIN32
    if (binary)
	_setmode(_fileno(fp), _O_BINARY);
    else 
	_setmode(_fileno(fp), _O_TEXT);
#endif

    if (fn && -1 != stat(fn, &sb)) {
	data = malloc(allocated = sb.st_size);
	bufsize = sb.st_size;
    } else {
	fn = NULL;
    }

    do {
	size_t len;
	if (used + bufsize > allocated) {
	    allocated += bufsize;
	    data = realloc(data, allocated);
	}
	len = fread(data + used, 1, allocated - used, fp);
	if (len > 0)
	    used += len;
    } while (!feof(fp) && (fn == NULL || used < sb.st_size));

    *size = used;

    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, 0x10(%rsp)
movq %rdi, %r14
movb $0x1, %al
movl %eax, 0xc(%rsp)
movl $0x2000, %ebp           # imm = 0x2000
testq %rsi, %rsi
je 0x55544
leaq 0x18(%rsp), %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x6630
movq 0x30(%r15), %r15
cmpl $-0x1, %eax
je 0x55549
movq %r15, %rdi
callq 0x69d0
movq %rax, %r12
movslq %r15d, %rbp
movl $0x0, 0xc(%rsp)
movq %r15, %r13
jmp 0x5554f
xorl %r12d, %r12d
jmp 0x5554c
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebx, %ebx
leaq (%rbx,%rbp), %rax
cmpq %r13, %rax
jbe 0x5556b
addq %rbp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x6c80
movq %rax, %r12
leaq (%r12,%rbx), %rdi
movq %r13, %rdx
subq %rbx, %rdx
pushq $0x1
popq %rsi
movq %r14, %rcx
callq 0x6b20
addq %rax, %rbx
movq %r14, %rdi
callq 0x6bc0
cmpq %r15, %rbx
setb %cl
testl %eax, %eax
jne 0x5559b
orb 0xc(%rsp), %cl
jne 0x55551
movq 0x10(%rsp), %rax
movq %rbx, (%rax)
movq %r12, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq