// File: /workspace/github_cpp_makefile_star2_O3/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/bam_rmdupse.c
// Function: bam_rmdupse_core
void bam_rmdupse_core(samfile_t *in, samfile_t *out, int force_se)
{
	bam1_t *b;
	queue_t *queue;
	khint_t k;
	int last_tid = -2;
	khash_t(lib) *aux;

	aux = kh_init(lib);
	b = bam_init1();
	queue = kl_init(q);
	while (samread(in, b) >= 0) {
		bam1_core_t *c = &b->core;
		int endpos = bam_calend(c, bam1_cigar(b));
		int score = sum_qual(b);
		
		if (last_tid != c->tid) {
			if (last_tid >= 0) dump_alignment(out, queue, MAX_POS, aux);
			last_tid = c->tid;
		} else dump_alignment(out, queue, c->pos, aux);
		if ((c->flag&BAM_FUNMAP) || ((c->flag&BAM_FPAIRED) && !force_se)) {
			push_queue(queue, b, endpos, score);
		} else {
			const char *lib;
			lib_aux_t *q;
			besthash_t *h;
			uint32_t key;
			int ret;
			lib = bam_get_library(in->header, b);
			q = lib? get_aux(aux, lib) : get_aux(aux, "\t");
			++q->n_checked;
			h = (c->flag&BAM_FREVERSE)? q->rght : q->left;
			key = (c->flag&BAM_FREVERSE)? endpos : c->pos;
			k = kh_put(best, h, key, &ret);
			if (ret == 0) { // in the hash table
				elem_t *p = kh_val(h, k);
				++q->n_removed;
				if (p->score < score) {
					if (c->flag&BAM_FREVERSE) { // mark "discarded" and push the queue
						p->discarded = 1;
						kh_val(h, k) = push_queue(queue, b, endpos, score);
					} else { // replace
						p->score = score; p->endpos = endpos;
						bam_copy1(p->b, b);
					}
				} // otherwise, discard the alignment
			} else kh_val(h, k) = push_queue(queue, b, endpos, score);
		}
	}
	dump_alignment(out, queue, MAX_POS, aux);

	for (k = kh_begin(aux); k != kh_end(aux); ++k) {
		if (kh_exist(aux, k)) {
			lib_aux_t *q = &kh_val(aux, k);
			fprintf(stderr, "[bam_rmdupse_core] %lld / %lld = %.4lf in library '%s'\n", (long long)q->n_removed,
					(long long)q->n_checked, (double)q->n_removed/q->n_checked, kh_key(aux, k));
			kh_destroy(best, q->left); kh_destroy(best, q->rght);
			free((char*)kh_key(aux, k));
		}
	}
	kh_destroy(lib, aux);
	bam_destroy1(b);
	kl_destroy(q, queue);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, 0x34(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdi, %rbx
movl $0x1, %edi
movl $0x28, %esi
callq 0x3530
movq %rax, 0x18(%rsp)
movl $0x1, %edi
movl $0x38, %esi
callq 0x3530
movq %rax, %r13
movl $0x1, %edi
movl $0x20, %esi
callq 0x3530
movq %rax, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0x3530
movq %rax, 0x10(%r14)
movq $0x1, (%rax)
movl $0x1, %edi
movl $0x18, %esi
callq 0x3530
movq %rax, 0x8(%r14)
movq %rax, (%r14)
movq %rbx, 0x38(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x15122
testl %eax, %eax
movq %r14, 0x20(%rsp)
movq %r13, 0x10(%rsp)
js 0xd19b
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
movzbl 0xb(%r13), %esi
addq 0x30(%r13), %rsi
movq %r13, %rdi
callq 0x12268
movl %eax, 0x4(%rsp)
movslq 0x10(%r13), %rax
movl $0x0, %ebp
testq %rax, %rax
jle 0xca06
movq 0x8(%r13), %rdx
movq %rdx, %rsi
shrq $0x30, %rsi
shlq $0x2, %rsi
addq 0x30(%r13), %rsi
shrl $0x18, %edx
leal 0x1(%rax), %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
incl %ecx
sarl %ecx
movslq %ecx, %rcx
addq %rdx, %rcx
addq %rsi, %rcx
xorl %edx, %edx
xorl %ebp, %ebp
movzbl (%rcx,%rdx), %esi
addl %esi, %ebp
incq %rdx
cmpq %rdx, %rax
jne 0xc9f8
movl (%r13), %eax
cmpl %eax, %r15d
jne 0xca27
movl 0x4(%r13), %edx
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movq 0x18(%rsp), %rcx
callq 0xd36c
jmp 0xca4a
testl %r15d, %r15d
movl %eax, %r15d
js 0xca4a
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x18(%rsp), %rcx
callq 0xd36c
movl (%r13), %r15d
movl 0xc(%r13), %eax
testb $0x4, %al
movl %r15d, (%rsp)
jne 0xca6a
cmpl $0x0, 0x34(%rsp)
jne 0xcb65
andl $0x1, %eax
je 0xcb65
movq 0x10(%r14), %rax
incq (%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xca8d
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xca9c
movl $0x1, %edi
movl $0x18, %esi
callq 0x3530
movq 0x8(%r14), %rbx
movq $0x0, 0x10(%rax)
movq %rax, 0x10(%rbx)
movq %rax, 0x8(%r14)
incq 0x18(%r14)
movl 0x4(%rsp), %eax
movl %eax, (%rbx)
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl %ebp, 0x4(%rbx)
movq 0x8(%rbx), %r15
testq %r15, %r15
jne 0xcae2
movl $0x1, %edi
movl $0x38, %esi
callq 0x3530
movq %rax, %r15
movq %rax, 0x8(%rbx)
movq 0x30(%r15), %r12
movl 0x28(%r15), %ebx
movl 0x28(%r13), %eax
cmpl %eax, %ebx
jge 0xcb26
decl %eax
movl %eax, %ecx
sarl %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x8, %eax
orl %ecx, %eax
movl %eax, %ebx
sarl $0x10, %ebx
orl %eax, %ebx
incl %ebx
movslq %ebx, %rsi
movq %r12, %rdi
callq 0x3610
movq %rax, %r12
movq 0x30(%r13), %rsi
movslq 0x24(%r13), %rdx
movq %r12, %rdi
callq 0x3680
movupd (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups 0x20(%r13), %xmm2
movups %xmm2, 0x20(%r15)
movupd %xmm0, (%r15)
movups %xmm1, 0x10(%r15)
movl %ebx, 0x28(%r15)
movq %r12, 0x30(%r15)
movq %r13, %r14
jmp 0xd110
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdi
movq %r13, %rsi
callq 0x134e4
testq %rax, %rax
leaq 0x1713d(%rip), %rcx     # 0x23cbd
cmoveq %rcx, %rax
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0xd4b7
movq %rax, %r9
incq (%rax)
xorl %eax, %eax
movl 0x4(%rsp), %r10d
movabsq $0x1000000000, %rcx     # imm = 0x1000000000
testq %rcx, 0x8(%r13)
setne %cl
jne 0xcbb5
movl 0x4(%r13), %r10d
movb %cl, %al
movq 0x10(%r9,%rax,8), %r13
movl (%r13), %r8d
movl 0x8(%r13), %eax
cmpl 0xc(%r13), %eax
jb 0xce07
movl 0x4(%r13), %eax
leal (%rax,%rax), %ecx
cmpl %r8d, %ecx
movl $0x0, %ecx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %r8d, %ecx
movl $0x21, %edx
leaq 0x17e5f(%rip), %rdi     # 0x24a50
leal -0x2(%rdx), %esi
decl %edx
cmpl %ecx, (%rdi,%rsi,4)
ja 0xcbf1
movl %edx, %ecx
movl (%rdi,%rcx,4), %ebx
cvtsi2sd %rbx, %xmm0
mulsd 0x169c3(%rip), %xmm0    # 0x235d0
addsd 0x168e3(%rip), %xmm0    # 0x234f8
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jae 0xce07
movq %rcx, 0x40(%rsp)
movl %r10d, 0x30(%rsp)
movq %r9, 0x8(%rsp)
movl %ebx, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %r12
movq %r12, %rdi
callq 0x31d0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x3060
movl (%r13), %eax
cmpl %ebx, %eax
jae 0xcc8f
movq 0x18(%r13), %rdi
leaq (,%rbx,4), %rsi
callq 0x3610
movq %rax, 0x18(%r13)
movq 0x20(%r13), %rdi
leaq (,%rbx,8), %rsi
callq 0x3610
movq %rax, 0x20(%r13)
movl (%r13), %eax
testl %eax, %eax
je 0xcdd4
leal -0x1(%rbx), %r8d
xorl %r9d, %r9d
movq 0x10(%r13), %r10
movl %r9d, %edx
shrl $0x4, %edx
movl (%r10,%rdx,4), %edi
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %edi, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0xcd9a
movl %r9d, %eax
movq 0x18(%r13), %rsi
movq 0x20(%r13), %r11
movl (%rsi,%rax,4), %esi
movq (%r11,%rax,8), %r11
btsl %ecx, %edi
movl %edi, (%r10,%rdx,4)
movl %esi, %eax
xorl %edx, %edx
divl %ebx
movl %edx, %edi
movl %esi, %eax
xorl %edx, %edx
divl %r8d
movl %edi, %eax
movl %edi, %ecx
addl %edi, %ecx
andl $0x1e, %ecx
movl $0x2, %r14d
shll %cl, %r14d
shrl $0x4, %eax
movl (%r15,%rax,4), %r12d
testl %r12d, %r14d
jne 0xcd32
incl %edx
addl %edx, %edi
xorl %eax, %eax
cmpl %ebx, %edi
jb 0xcd13
movl %ebx, %eax
subl %eax, %edi
movl %edi, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %r12d
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl $0x2, %r14d
shll %cl, %r14d
testl %r12d, %r14d
je 0xcd09
notl %r14d
andl %r12d, %r14d
movl %r14d, (%r15,%rax,4)
movl %edi, %edx
cmpl (%r13), %edi
jae 0xcd82
movl (%r10,%rax,4), %r10d
shrl %cl, %r10d
movq 0x18(%r13), %rdi
testb $0x3, %r10b
jne 0xcd86
movl (%rdi,%rdx,4), %r14d
movl %esi, (%rdi,%rdx,4)
movq 0x20(%r13), %rsi
movq (%rsi,%rdx,8), %rdi
movq %r11, (%rsi,%rdx,8)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%r13), %r10
orl %edx, (%r10,%rax,4)
movl %r14d, %esi
movq %rdi, %r11
jmp 0xccda
movq 0x18(%r13), %rdi
movl %esi, (%rdi,%rdx,4)
movq 0x20(%r13), %rax
movq %r11, (%rax,%rdx,8)
movl (%r13), %eax
movq 0x20(%rsp), %r14
incl %r9d
cmpl %eax, %r9d
jne 0xcc9e
cmpl %ebx, %eax
jbe 0xcdd4
movq 0x18(%r13), %rdi
leaq (,%rbx,4), %rsi
callq 0x3610
movq %rax, 0x18(%r13)
movq 0x20(%r13), %rdi
leaq (,%rbx,8), %rsi
callq 0x3610
movq %rax, 0x20(%r13)
movq 0x10(%r13), %rdi
callq 0x32c0
movq %r15, 0x10(%r13)
movl %ebx, (%r13)
movl 0x4(%r13), %eax
movl %eax, 0x8(%r13)
movq 0x40(%rsp), %rax
movl %eax, 0xc(%r13)
movl %ebx, %r8d
movl (%rsp), %r15d
movq 0x8(%rsp), %r9
movl 0x30(%rsp), %r10d
movl %r10d, %eax
xorl %edx, %edx
divl %r8d
movl %edx, %esi
movq 0x10(%r13), %rdi
movl %edx, %eax
shrl $0x4, %eax
movl (%rdi,%rax,4), %eax
leal (%rsi,%rsi), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0xce2d
movl %esi, %eax
jmp 0xced3
movq %r9, 0x8(%rsp)
leal -0x1(%r8), %ecx
movl %r10d, %r12d
movl %r10d, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %esi, %r9d
movl %r8d, %eax
movl %r9d, %ecx
shrl $0x4, %ecx
movl (%rdi,%rcx,4), %r10d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r10d, %r11d
shrl %cl, %r11d
testb $0x2, %r11b
jne 0xceaf
testb $0x1, %r11b
jne 0xce78
movq 0x18(%r13), %r11
movl %r9d, %ebx
cmpl %r12d, (%r11,%rbx,4)
je 0xceaf
btl %ecx, %r10d
cmovbl %r9d, %eax
addl %edx, %r9d
cmpl %r8d, %r9d
movl %r8d, %ecx
movl $0x0, %r10d
cmovbl %r10d, %ecx
subl %ecx, %r9d
cmpl %esi, %r9d
jne 0xce48
movb $0x1, %cl
movl %r8d, %edx
cmpl %r8d, %eax
movq 0x8(%rsp), %r9
movl %r12d, %r10d
je 0xcec6
jmp 0xced3
shrl %cl, %r10d
testb $0x2, %r10b
sete %cl
movl %eax, %edx
movl %r9d, %esi
movq 0x8(%rsp), %r9
movl %r12d, %r10d
cmpl %r8d, %edx
cmovel %esi, %edx
testb %cl, %cl
cmovnel %esi, %edx
movl %edx, %eax
movl %eax, %edx
shrl $0x4, %edx
movl (%rdi,%rdx,4), %esi
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
movl %eax, %r8d
testb $0x2, %sil
jne 0xcfc1
testb $0x1, %sil
jne 0xcfeb
movq 0x20(%r13), %rax
movq (%rax,%r8,8), %rax
incq 0x8(%r9)
movl 0x4(%rax), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpl %ebp, %edx
movq 0x10(%rsp), %r14
jge 0xd114
movabsq $0x1000000000, %rdx     # imm = 0x1000000000
testq %rdx, 0x8(%r14)
jne 0xd133
andl $0x80000000, %ecx       # imm = 0x80000000
orl %ebp, %ecx
movl %ecx, 0x4(%rax)
movl 0x4(%rsp), %ecx
movl %ecx, (%rax)
movq 0x8(%rax), %rbx
movq 0x30(%rbx), %r15
movl 0x28(%rbx), %ebp
movl 0x28(%r14), %eax
cmpl %eax, %ebp
jge 0xcf8a
decl %eax
movl %eax, %ecx
sarl %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x8, %eax
orl %ecx, %eax
movl %eax, %ebp
sarl $0x10, %ebp
orl %eax, %ebp
incl %ebp
movslq %ebp, %rsi
movq %r15, %rdi
callq 0x3610
movq %rax, %r15
movq 0x30(%r14), %rsi
movslq 0x24(%r14), %rdx
movq %r15, %rdi
callq 0x3680
movupd (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rbx)
movupd %xmm0, (%rbx)
movups %xmm1, 0x10(%rbx)
movl %ebp, 0x28(%rbx)
movq %r15, 0x30(%rbx)
jmp 0xd110
movq 0x18(%r13), %rax
movl %r10d, (%rax,%r8,4)
movl $0x3, %eax
shll %cl, %eax
notl %eax
andl %eax, (%rdi,%rdx,4)
movq 0x4(%r13), %xmm0
psubd 0x160cd(%rip), %xmm0    # 0x230b0
movq %xmm0, 0x4(%r13)
jmp 0xd003
movq 0x18(%r13), %rax
movl %r10d, (%rax,%r8,4)
movl $0x3, %eax
shll %cl, %eax
notl %eax
andl %eax, (%rdi,%rdx,4)
incl 0x4(%r13)
movq 0x10(%r14), %rax
incq (%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
movq %r8, 0x8(%rsp)
je 0xd02b
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xd03a
movl $0x1, %edi
movl $0x18, %esi
callq 0x3530
movq 0x8(%r14), %rbx
movq $0x0, 0x10(%rax)
movq %rax, 0x10(%rbx)
movq %rax, 0x8(%r14)
incq 0x18(%r14)
movl 0x4(%rsp), %eax
movl %eax, (%rbx)
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl %ebp, 0x4(%rbx)
movq 0x8(%rbx), %r15
testq %r15, %r15
jne 0xd080
movl $0x1, %edi
movl $0x38, %esi
callq 0x3530
movq %rax, %r15
movq %rax, 0x8(%rbx)
movq 0x30(%r15), %r12
movl 0x28(%r15), %ebp
movq 0x10(%rsp), %rax
movl 0x28(%rax), %eax
cmpl %eax, %ebp
jge 0xd0c8
decl %eax
movl %eax, %ecx
sarl %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x8, %eax
orl %ecx, %eax
movl %eax, %ebp
sarl $0x10, %ebp
orl %eax, %ebp
incl %ebp
movslq %ebp, %rsi
movq %r12, %rdi
callq 0x3610
movq %rax, %r12
movq 0x10(%rsp), %r14
movq 0x30(%r14), %rsi
movslq 0x24(%r14), %rdx
movq %r12, %rdi
callq 0x3680
movupd (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%r15)
movupd %xmm0, (%r15)
movups %xmm1, 0x10(%r15)
movl %ebp, 0x28(%r15)
movq %r12, 0x30(%r15)
movq 0x20(%r13), %rax
movq 0x8(%rsp), %rcx
movq %rbx, (%rax,%rcx,8)
movl (%rsp), %r15d
movq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x15122
testl %eax, %eax
movq %r14, %r13
movq 0x20(%rsp), %r14
jns 0xc9a6
jmp 0xd19b
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0x4(%rax)
movq 0x20(%rsp), %r14
movq 0x10(%r14), %rax
incq (%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
movq %r8, 0x8(%rsp)
je 0xd169
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xd178
movl $0x1, %edi
movl $0x18, %esi
callq 0x3530
movq 0x8(%r14), %rbx
movq $0x0, 0x10(%rax)
movq %rax, 0x10(%rbx)
movq %rax, 0x8(%r14)
incq 0x18(%r14)
movl 0x4(%rsp), %eax
movl %eax, (%rbx)
jmp 0xd05e
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x18(%rsp), %r14
movq %r14, %rcx
callq 0xd36c
movl (%r14), %ebx
movq 0x10(%r14), %r15
testq %rbx, %rbx
je 0xd206
movq 0x18(%rsp), %r13
leaq 0x20(%r13), %r14
addq $0x18, %r13
xorl %r12d, %r12d
xorl %ebp, %ebp
movl %ebp, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %eax
movl %r12d, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
je 0xd1f6
incq %rbp
addl $0x2, %r12d
cmpq %rbp, %rbx
jne 0xd1d3
jmp 0xd206
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x3ad9
jmp 0xd1e8
movq 0x18(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0x32c0
movq %r15, %rdi
callq 0x32c0
movq 0x20(%rbx), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x32c0
movq 0x10(%rsp), %rbx
testq %rbx, %rbx
je 0xd248
movq 0x30(%rbx), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x32c0
movq 0x20(%rsp), %r14
movq (%r14), %rbx
movq 0x8(%r14), %r15
movq 0x10(%r14), %r14
cmpq %r15, %rbx
je 0xd2b4
movq 0x8(%r14), %rdx
movl $0x10, %r12d
decq (%r14)
cmpq 0x10(%r14), %rdx
jne 0xd296
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
cmoveq %r12, %rsi
movq %rsi, 0x10(%r14)
movq 0x18(%r14), %rdi
shlq $0x3, %rsi
callq 0x3610
movq %rax, 0x18(%r14)
movq 0x8(%r14), %rdx
jmp 0xd29a
movq 0x18(%r14), %rax
leaq 0x1(%rdx), %rcx
movq %rcx, 0x8(%r14)
movq %rbx, (%rax,%rdx,8)
movq 0x10(%rbx), %rbx
movq %rcx, %rdx
cmpq %r15, %rbx
jne 0xd267
jmp 0xd2b8
movq 0x8(%r14), %rcx
decq (%r14)
cmpq 0x10(%r14), %rcx
jne 0xd2ec
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x10, %esi
cmovneq %rax, %rsi
movq %rsi, 0x10(%r14)
movq 0x18(%r14), %rdi
shlq $0x3, %rsi
callq 0x3610
movq %rax, 0x18(%r14)
movq 0x8(%r14), %rcx
jmp 0xd2f0
movq 0x18(%r14), %rax
movq %rcx, %rdx
incq %rdx
movq %rdx, 0x8(%r14)
movq %rbx, (%rax,%rcx,8)
je 0xd343
xorl %ebx, %ebx
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rdi
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0xd335
movq 0x30(%rax), %rdi
callq 0x32c0
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x8(%rax), %rdi
callq 0x32c0
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x32c0
incq %rbx
cmpq 0x8(%r14), %rbx
jb 0xd302
movq 0x18(%r14), %rdi
callq 0x32c0
movq %r14, %rdi
callq 0x32c0
movq 0x20(%rsp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x32c0