// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bam_index.c
// Function: bam_index_core
bam_index_t *bam_index_core(bamFile fp)
{
	bam1_t *b;
	bam_header_t *h;
	int i, ret;
	bam_index_t *idx;
	uint32_t last_bin, save_bin;
	int32_t last_coor, last_tid, save_tid;
	bam1_core_t *c;
	uint64_t save_off, last_off, n_mapped, n_unmapped, off_beg, off_end, n_no_coor;

	h = bam_header_read(fp);
	if(h == 0) {
	    fprintf(stderr, "[bam_index_core] Invalid BAM header.");
	    return NULL;
	}

	idx = (bam_index_t*)calloc(1, sizeof(bam_index_t));
	b = (bam1_t*)calloc(1, sizeof(bam1_t));
	c = &b->core;

	idx->n = h->n_targets;
	bam_header_destroy(h);
	idx->index = (khash_t(i)**)calloc(idx->n, sizeof(void*));
	for (i = 0; i < idx->n; ++i) idx->index[i] = kh_init(i);
	idx->index2 = (bam_lidx_t*)calloc(idx->n, sizeof(bam_lidx_t));

	save_bin = save_tid = last_tid = last_bin = 0xffffffffu;
	save_off = last_off = bam_tell(fp); last_coor = 0xffffffffu;
	n_mapped = n_unmapped = n_no_coor = off_end = 0;
	off_beg = off_end = bam_tell(fp);
	while ((ret = bam_read1(fp, b)) >= 0) {
		if (c->tid < 0) ++n_no_coor;
		if (last_tid < c->tid || (last_tid >= 0 && c->tid < 0)) { // change of chromosomes
			last_tid = c->tid;
			last_bin = 0xffffffffu;
		} else if ((uint32_t)last_tid > (uint32_t)c->tid) {
			fprintf(stderr, "[bam_index_core] the alignment is not sorted (%s): %d-th chr > %d-th chr\n",
					bam1_qname(b), last_tid+1, c->tid+1);
			return NULL;
		} else if ((int32_t)c->tid >= 0 && last_coor > c->pos) {
			fprintf(stderr, "[bam_index_core] the alignment is not sorted (%s): %u > %u in %d-th chr\n",
					bam1_qname(b), last_coor, c->pos, c->tid+1);
			return NULL;
		}
		if (c->tid >= 0 && !(c->flag & BAM_FUNMAP)) insert_offset2(&idx->index2[b->core.tid], b, last_off);
		if (c->bin != last_bin) { // then possibly write the binning index
			if (save_bin != 0xffffffffu) // save_bin==0xffffffffu only happens to the first record
				insert_offset(idx->index[save_tid], save_bin, save_off, last_off);
			if (last_bin == 0xffffffffu && save_tid != 0xffffffffu) { // write the meta element
				off_end = last_off;
				insert_offset(idx->index[save_tid], BAM_MAX_BIN, off_beg, off_end);
				insert_offset(idx->index[save_tid], BAM_MAX_BIN, n_mapped, n_unmapped);
				n_mapped = n_unmapped = 0;
				off_beg = off_end;
			}
			save_off = last_off;
			save_bin = last_bin = c->bin;
			save_tid = c->tid;
			if (save_tid < 0) break;
		}
		if (bam_tell(fp) <= last_off) {
			fprintf(stderr, "[bam_index_core] bug in BGZF/RAZF: %llx < %llx\n",
					(unsigned long long)bam_tell(fp), (unsigned long long)last_off);
			return NULL;
		}
		if (c->flag & BAM_FUNMAP) ++n_unmapped;
		else ++n_mapped;
		last_off = bam_tell(fp);
		last_coor = b->core.pos;
	}
	if (save_tid >= 0) {
		insert_offset(idx->index[save_tid], save_bin, save_off, bam_tell(fp));
		insert_offset(idx->index[save_tid], BAM_MAX_BIN, off_beg, bam_tell(fp));
		insert_offset(idx->index[save_tid], BAM_MAX_BIN, n_mapped, n_unmapped);
	}
	merge_chunks(idx);
	fill_missing(idx);
	if (ret >= 0) {
		while ((ret = bam_read1(fp, b)) >= 0) {
			++n_no_coor;
			if (c->tid >= 0 && n_no_coor) {
				fprintf(stderr, "[bam_index_core] the alignment is not sorted: reads without coordinates prior to reads with coordinates.\n");
				return NULL;
			}
		}
	}
	if (ret < -1) fprintf(stderr, "[bam_index_core] truncated file? Continue anyway. (%d)\n", ret);
	free(b->data); free(b);
	idx->n_no_coor = n_no_coor;
	return idx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r12
callq 0x9bfb
testq %rax, %rax
je 0xfad6
movq %rax, %rbx
movl $0x1, %edi
movl $0x20, %esi
callq 0x32e0
movq %rax, %rbp
movl $0x1, %edi
movl $0x38, %esi
callq 0x32e0
movq %rax, 0x10(%rsp)
movslq (%rbx), %r13
movl %r13d, (%rbp)
movq %rbx, %rdi
callq 0x9b77
movl $0x8, %esi
movq %r13, %rdi
callq 0x32e0
movq %rax, %r14
movq %rax, 0x10(%rbp)
testq %r13, %r13
jle 0xf504
xorl %ebx, %ebx
movl $0x1, %edi
movl $0x28, %esi
callq 0x32e0
movq %rax, (%r14,%rbx,8)
incq %rbx
cmpq %rbx, %r13
jne 0xf4e9
movq %r14, 0x28(%rsp)
movl $0x10, %esi
movq %r13, %rdi
callq 0x32e0
movq %rax, 0x68(%rsp)
movq %rax, 0x18(%rbp)
movq 0x10(%r12), %r15
movzwl 0xc(%r12), %ebx
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x9f3b
testl %eax, %eax
js 0xfa7e
movq %r13, 0x18(%rsp)
movq %r12, 0x8(%rsp)
movq %rbp, 0x50(%rsp)
shlq $0x10, %r15
orq %rbx, %r15
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
movq $0x0, 0x40(%rsp)
xorl %r14d, %r14d
movq %r15, %rbp
movq %r15, 0x58(%rsp)
movq %r15, 0x60(%rsp)
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rbx
movl %eax, 0x30(%rsp)
movq %rcx, %rax
movl (%rbx), %r13d
movl %r13d, %ecx
shrl $0x1f, %ecx
addq %rax, %rcx
movq %rcx, 0x48(%rsp)
movl 0x24(%rsp), %ecx
cmpl %r13d, %ecx
movq %rbx, %r9
jge 0xf5ca
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl %r13d, %ecx
testl %r13d, %r13d
jns 0xf619
jmp 0xf5e1
testl %r13d, %r13d
sets %al
testl %ecx, %ecx
movl %ecx, %edx
setns %cl
testb %al, %cl
je 0xf5f5
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl %r13d, 0x24(%rsp)
movq 0x8(%rsp), %r12
movq 0x18(%rsp), %r13
jmp 0xf754
cmpl %r13d, %edx
movl %edx, %ecx
ja 0xfe55
testl %r13d, %r13d
js 0xf733
movl 0x4(%r9), %r8d
cmpl %r8d, %r12d
movl %r15d, %r10d
jg 0xfe7d
movl %ecx, 0x24(%rsp)
movq 0x8(%r9), %rsi
btq $0x22, %rsi
jb 0xf6f0
movq %rbp, 0x70(%rsp)
movl %r10d, 0x34(%rsp)
movl %edi, 0x3c(%rsp)
shlq $0x4, %r13
movq 0x68(%rsp), %rbp
movq %rbp, %r15
addq %r13, %r15
movl 0x4(%r9), %ebx
shrl $0x18, %esi
addq 0x30(%r9), %rsi
movq %r9, %rdi
callq 0x9a3c
decl %eax
movl %eax, %r12d
shrl $0xe, %r12d
movslq 0x4(%rbp,%r13), %r13
cmpl %r12d, %r13d
jg 0xf6c2
shrl $0xf, %eax
orl %r12d, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x10, %eax
orl %ecx, %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x4(%r15)
movq 0x8(%r15), %rdi
leal 0x8(,%rax,8), %esi
callq 0x3430
movq %rax, 0x8(%r15)
leaq (%rax,%r13,8), %rdi
movslq 0x4(%r15), %rdx
subq %r13, %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x3260
sarl $0xe, %ebx
cmpl %r12d, %ebx
movq 0x70(%rsp), %rbp
jne 0xf6f7
movq 0x8(%r15), %rax
movl %ebx, %ecx
cmpq $0x0, (%rax,%rcx,8)
movq 0x10(%rsp), %r9
movq 0x18(%rsp), %r13
movl 0x3c(%rsp), %edi
jne 0xf726
movq %rbp, (%rax,%rcx,8)
jmp 0xf726
movq 0x18(%rsp), %r13
jmp 0xf73b
movq 0x10(%rsp), %r9
movq 0x18(%rsp), %r13
movl 0x3c(%rsp), %edi
jg 0xf726
movq 0x8(%r15), %rax
movslq %ebx, %rcx
leal 0x1(%r12), %edx
cmpq $0x0, (%rax,%rcx,8)
jne 0xf71e
movq %rbp, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rdx
jne 0xf713
incl %r12d
movl %r12d, (%r15)
movl 0x34(%rsp), %r10d
jmp 0xf73b
movq 0x18(%rsp), %r13
movl %r15d, %r10d
movq 0x8(%r9), %rax
movzwl %ax, %ecx
cmpl %r10d, %ecx
movq 0x8(%rsp), %r12
jne 0xf754
movq %r14, %rcx
jmp 0xf9b0
movl 0x38(%rsp), %esi
cmpl $-0x1, %esi
je 0xf81a
movq %rbp, %r15
movl %r10d, 0x34(%rsp)
movl %edi, %ebp
movslq %edi, %rax
movq 0x28(%rsp), %rcx
movq (%rcx,%rax,8), %r12
movq %r12, %rdi
leaq 0x4(%rsp), %rdx
callq 0x11529
movl %eax, %r13d
shlq $0x4, %r13
addq 0x20(%r12), %r13
cmpl $0x0, 0x4(%rsp)
je 0xf7ba
movq $0x1, (%r13)
leaq 0x4(%r13), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%r13)
xorl %esi, %esi
jmp 0xf7e9
leaq 0x4(%r13), %rbx
movl 0x4(%r13), %esi
cmpl (%r13), %esi
jne 0xf7e5
leal (%rsi,%rsi), %eax
movl %eax, (%r13)
movq 0x8(%r13), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%r13)
movl 0x4(%r13), %esi
jmp 0xf7e9
movq 0x8(%r13), %rax
movq 0x10(%rsp), %r9
movq 0x8(%rsp), %r12
movl %ebp, %edi
movl %esi, %ecx
shlq $0x4, %rcx
movq 0x60(%rsp), %rdx
movq %rdx, (%rax,%rcx)
incl %esi
movl %esi, (%rbx)
movq %r15, %rbp
movq %r15, 0x8(%rax,%rcx)
movq 0x18(%rsp), %r13
movl 0x34(%rsp), %r10d
cmpl $-0x1, %r10d
sete %al
cmpl $-0x1, %edi
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xf881
movl %edi, %ebx
movq 0x28(%rsp), %rax
movq (%rax,%rbx,8), %r12
movq %r12, %rdi
movl $0x924a, %esi           # imm = 0x924A
leaq 0x4(%rsp), %rdx
callq 0x11529
movl %eax, %r13d
shlq $0x4, %r13
addq 0x20(%r12), %r13
cmpl $0x0, 0x4(%rsp)
je 0xf889
movq $0x1, (%r13)
leaq 0x4(%r13), %r12
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%r13)
xorl %esi, %esi
jmp 0xf8b8
movq %r14, %rcx
jmp 0xf993
leaq 0x4(%r13), %r12
movl 0x4(%r13), %esi
cmpl (%r13), %esi
jne 0xf8b4
leal (%rsi,%rsi), %eax
movl %eax, (%r13)
movq 0x8(%r13), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%r13)
movl 0x4(%r13), %esi
jmp 0xf8b8
movq 0x8(%r13), %rax
movl %esi, %ecx
shlq $0x4, %rcx
movq 0x58(%rsp), %rdx
movq %rdx, (%rax,%rcx)
incl %esi
movl %esi, (%r12)
movq %rbp, 0x8(%rax,%rcx)
movq 0x28(%rsp), %rax
movq (%rax,%rbx,8), %r12
movq %r12, %rdi
movl $0x924a, %esi           # imm = 0x924A
leaq 0x4(%rsp), %rdx
callq 0x11529
movl %eax, %r13d
shlq $0x4, %r13
addq 0x20(%r12), %r13
cmpl $0x0, 0x4(%rsp)
je 0xf92d
movq $0x1, (%r13)
leaq 0x4(%r13), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%r13)
xorl %esi, %esi
movq 0x10(%rsp), %r9
movq 0x8(%rsp), %r12
jmp 0xf966
leaq 0x4(%r13), %rbx
movl 0x4(%r13), %esi
cmpl (%r13), %esi
movq 0x8(%rsp), %r12
jne 0xf95d
leal (%rsi,%rsi), %eax
movl %eax, (%r13)
movq 0x8(%r13), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%r13)
movl 0x4(%r13), %esi
jmp 0xf961
movq 0x8(%r13), %rax
movq 0x10(%rsp), %r9
movl %esi, %ecx
shlq $0x4, %rcx
movq %r14, (%rax,%rcx)
incl %esi
movl %esi, (%rbx)
movq 0x40(%rsp), %rdx
movq %rdx, 0x8(%rax,%rcx)
xorl %ecx, %ecx
movq $0x0, 0x40(%rsp)
movq %rbp, 0x58(%rsp)
movq 0x18(%rsp), %r13
movl (%r9), %edi
testl %edi, %edi
js 0xfa92
movq 0x8(%r9), %rax
movzwl %ax, %r10d
movl %r10d, 0x38(%rsp)
movq %rbp, 0x60(%rsp)
movq 0x10(%r12), %rdx
shlq $0x10, %rdx
movzwl 0xc(%r12), %r13d
orq %rdx, %r13
cmpq %rbp, %r13
jbe 0xfe33
movl %r10d, %r15d
shrq $0x22, %rax
andl $0x1, %eax
movq %rax, %r14
xorq $0x1, %r14
addq %rcx, %r14
addq %rax, 0x40(%rsp)
movl %edi, %ebp
movq %r12, %rdi
movl 0x4(%r9), %r12d
movq %r9, %rsi
movq %r9, %rbx
callq 0x9f3b
movl %ebp, %edi
movq %r13, %rbp
testl %eax, %eax
movq 0x48(%rsp), %rcx
jns 0xf596
testl %edi, %edi
movl %eax, 0x30(%rsp)
js 0xfa9e
movl %edi, %r13d
movq 0x28(%rsp), %rax
movq (%rax,%r13,8), %r15
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rax
shlq $0x10, %rax
movzwl 0xc(%rcx), %ebx
orq %rax, %rbx
leaq 0x4(%rsp), %r12
movq %r15, %rdi
movl 0x38(%rsp), %esi
movq %r12, %rdx
callq 0x11529
movl %eax, %ebp
shlq $0x4, %rbp
addq 0x20(%r15), %rbp
cmpl $0x0, (%r12)
je 0xfaaf
movq $0x1, (%rbp)
leaq 0x4(%rbp), %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%rbp)
xorl %esi, %esi
jmp 0xfae4
movl %eax, 0x30(%rsp)
xorl %eax, %eax
movq $0x0, 0x48(%rsp)
jmp 0xfc57
movb $0x1, %al
movq 0x50(%rsp), %rbp
jmp 0xfc57
xorl %eax, %eax
movq 0x50(%rsp), %rbp
movq 0x8(%rsp), %r12
jmp 0xfc52
leaq 0x4(%rbp), %r15
movl 0x4(%rbp), %esi
cmpl (%rbp), %esi
jne 0xfae0
leal (%rsi,%rsi), %eax
movl %eax, (%rbp)
movq 0x8(%rbp), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%rbp)
movl 0x4(%rbp), %esi
jmp 0xfae4
callq 0x3f0f
jmp 0xfdcb
movq 0x8(%rbp), %rax
movq 0x8(%rsp), %rdx
movl %esi, %ecx
shlq $0x4, %rcx
movq 0x60(%rsp), %rdi
movq %rdi, (%rax,%rcx)
incl %esi
movl %esi, (%r15)
movq %rbx, 0x8(%rax,%rcx)
movq 0x28(%rsp), %rax
movq (%rax,%r13,8), %r15
movq 0x10(%rdx), %rax
shlq $0x10, %rax
movzwl 0xc(%rdx), %ebx
orq %rax, %rbx
leaq 0x4(%rsp), %r12
movq %r15, %rdi
movl $0x924a, %esi           # imm = 0x924A
movq %r12, %rdx
callq 0x11529
movl %eax, %ebp
shlq $0x4, %rbp
addq 0x20(%r15), %rbp
cmpl $0x0, (%r12)
je 0xfb63
movq $0x1, (%rbp)
leaq 0x4(%rbp), %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%rbp)
xorl %esi, %esi
jmp 0xfb8e
leaq 0x4(%rbp), %r15
movl 0x4(%rbp), %esi
cmpl (%rbp), %esi
jne 0xfb8a
leal (%rsi,%rsi), %eax
movl %eax, (%rbp)
movq 0x8(%rbp), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%rbp)
movl 0x4(%rbp), %esi
jmp 0xfb8e
movq 0x8(%rbp), %rax
movl %esi, %ecx
shlq $0x4, %rcx
movq 0x58(%rsp), %rdx
movq %rdx, (%rax,%rcx)
incl %esi
movl %esi, (%r15)
movq %rbx, 0x8(%rax,%rcx)
movq 0x28(%rsp), %rax
movq (%rax,%r13,8), %r15
leaq 0x4(%rsp), %r12
movq %r15, %rdi
movl $0x924a, %esi           # imm = 0x924A
movq %r12, %rdx
callq 0x11529
movl %eax, %r13d
shlq $0x4, %r13
addq 0x20(%r15), %r13
cmpl $0x0, (%r12)
movq 0x50(%rsp), %rbp
je 0xfc04
movq $0x1, (%r13)
leaq 0x4(%r13), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x32e0
movq %rax, 0x8(%r13)
xorl %esi, %esi
movq 0x8(%rsp), %r12
jmp 0xfc38
leaq 0x4(%r13), %rbx
movl 0x4(%r13), %esi
cmpl (%r13), %esi
movq 0x8(%rsp), %r12
jne 0xfc34
leal (%rsi,%rsi), %eax
movl %eax, (%r13)
movq 0x8(%r13), %rdi
shll $0x5, %esi
callq 0x3430
movq %rax, 0x8(%r13)
movl 0x4(%r13), %esi
jmp 0xfc38
movq 0x8(%r13), %rax
movl %esi, %ecx
shlq $0x4, %rcx
movq %r14, (%rax,%rcx)
incl %esi
movl %esi, (%rbx)
movq 0x40(%rsp), %rdx
movq %rdx, 0x8(%rax,%rcx)
xorl %eax, %eax
movq 0x18(%rsp), %r13
testl %r13d, %r13d
jle 0xfd90
xorl %edx, %edx
movq 0x28(%rsp), %rcx
movq (%rcx,%rdx,8), %rsi
movl (%rsi), %r8d
testl %r8d, %r8d
je 0xfd40
xorl %edi, %edi
movq 0x10(%rsi), %rcx
movl %edi, %r9d
shrl $0x4, %r9d
movl (%rcx,%r9,4), %r9d
leal (%rdi,%rdi), %ecx
shrl %cl, %r9d
testb $0x3, %r9b
jne 0xfd35
movq 0x18(%rsi), %rcx
movl %edi, %r9d
cmpl $0x924a, (%rcx,%r9,4)   # imm = 0x924A
je 0xfd35
movq 0x20(%rsi), %r10
shlq $0x4, %r9
leaq (%r10,%r9), %rcx
movl 0x4(%r10,%r9), %r10d
movl $0x1, %r9d
cmpl $0x2, %r10d
jb 0xfd31
xorl %r9d, %r9d
movl $0x1, %r8d
movl $0x10, %r11d
movq 0x8(%rcx), %rbx
movslq %r9d, %r14
shlq $0x4, %r14
movq (%rbx,%r11), %r15
xorq 0x8(%rbx,%r14), %r15
cmpq $0xffff, %r15           # imm = 0xFFFF
ja 0xfd07
addq %rbx, %r14
addq $0x8, %r14
movq 0x8(%rbx,%r11), %rbx
movq %rbx, (%r14)
jmp 0xfd1c
leaq (%rbx,%r11), %r10
incl %r9d
movups (%r10), %xmm0
movups %xmm0, 0x10(%r14,%rbx)
movl 0x4(%rcx), %r10d
incq %r8
movl %r10d, %ebx
addq $0x10, %r11
cmpq %rbx, %r8
jb 0xfcd9
movl (%rsi), %r8d
incl %r9d
movl %r9d, 0x4(%rcx)
incl %edi
cmpl %r8d, %edi
jne 0xfc79
incq %rdx
cmpq %r13, %rdx
jne 0xfc62
xorl %ecx, %ecx
movq 0x68(%rsp), %r9
movq %rcx, %rsi
shlq $0x4, %rsi
movslq (%r9,%rsi), %rdx
cmpq $0x2, %rdx
jl 0xfd88
addq %r9, %rsi
movq 0x8(%rsi), %rsi
movl $0x1, %edi
cmpq $0x0, (%rsi,%rdi,8)
jne 0xfd80
movq -0x8(%rsi,%rdi,8), %r8
movq %r8, (%rsi,%rdi,8)
incq %rdi
cmpq %rdi, %rdx
jne 0xfd70
incq %rcx
cmpq %r13, %rcx
jne 0xfd53
testb %al, %al
movq 0x10(%rsp), %rsi
je 0xfdcf
movq 0x48(%rsp), %rax
negq %rax
movq %rax, %rbx
movq %r12, %rdi
movq %rsi, %r14
callq 0x9f3b
testl %eax, %eax
js 0xfdda
leaq -0x1(%rbx), %rax
cmpl $0x0, (%r14)
movq %r14, %rsi
js 0xfda1
cmpq $0x1, %rbx
je 0xfda1
callq 0x3ef3
xorl %ebp, %ebp
jmp 0xfe02
movq 0x48(%rsp), %r15
movl 0x30(%rsp), %edx
jmp 0xfde5
movl %eax, %edx
negq %rbx
movq %rbx, %r15
movq %r14, %rsi
cmpl $-0x1, %edx
jne 0xfe14
movq 0x30(%rsi), %rdi
movq %rsi, %rbx
callq 0x3060
movq %rbx, %rdi
callq 0x3060
movq %r15, 0x8(%rbp)
movq %rbp, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x131dd(%rip), %rax     # 0x22ff8
movq (%rax), %rdi
leaq 0xc545(%rip), %rsi      # 0x1c36a
xorl %eax, %eax
callq 0x3320
movq 0x10(%rsp), %rsi
jmp 0xfdea
movq 0x131be(%rip), %rax     # 0x22ff8
movq (%rax), %rdi
leaq 0xc48c(%rip), %rsi      # 0x1c2d0
movq %rbp, %rcx
xorl %ebp, %ebp
movq %r13, %rdx
xorl %eax, %eax
callq 0x3320
jmp 0xfe02
movq 0x1319c(%rip), %rax     # 0x22ff8
movq (%rax), %rdi
movq 0x30(%r9), %rdx
incl %ecx
incl %r13d
leaq 0xc3ce(%rip), %rsi      # 0x1c23d
xorl %ebp, %ebp
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3320
jmp 0xfe02
movq 0x13174(%rip), %rax     # 0x22ff8
movq (%rax), %rdi
movq 0x30(%r9), %rdx
incl %r13d
leaq 0xc3f2(%rip), %rsi      # 0x1c287
xorl %ebp, %ebp
movl %r12d, %ecx
movl %r13d, %r9d
xorl %eax, %eax
callq 0x3320
jmp 0xfe02