// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/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 0x3610
movq %rax, 0x10(%rsp)
movl $0x1, %edi
movl $0x38, %esi
callq 0x3610
movq %rax, %r13
movl $0x1, %edi
movl $0x20, %esi
callq 0x3610
movq %rax, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0x3610
movq %rax, 0x10(%r14)
movq $0x1, (%rax)
movl $0x1, %edi
movl $0x18, %esi
callq 0x3610
movq %rax, 0x8(%r14)
movq %rax, (%r14)
movq %rbx, 0x38(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x283b1
testl %eax, %eax
movq %r14, 0x18(%rsp)
movq %r13, 0x20(%rsp)
js 0xd2d5
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
movzbl 0xb(%r13), %esi
addq 0x30(%r13), %rsi
movq %r13, %rdi
callq 0x2343c
movl %eax, 0x4(%rsp)
movslq 0x10(%r13), %rax
movl $0x0, %ebp
testq %rax, %rax
jle 0xcb3b
movq 0x8(%r13), %rdx
movq %rdx, %rsi
shrq $0x30, %rsi
shlq $0x2, %rsi
addq 0x30(%r13), %rsi
shrl $0x18, %edx
leal 0x1(%rax), %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 0xcb2d
movl (%r13), %eax
cmpl %eax, %r15d
jne 0xcb5c
movl 0x4(%r13), %edx
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movq 0x10(%rsp), %rcx
callq 0xd4a6
jmp 0xcb7f
testl %r15d, %r15d
movl %eax, %r15d
js 0xcb7f
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x10(%rsp), %rcx
callq 0xd4a6
movl (%r13), %r15d
movl 0xc(%r13), %eax
testb $0x4, %al
movl %r15d, (%rsp)
jne 0xcb9f
cmpl $0x0, 0x34(%rsp)
jne 0xcc9d
andl $0x1, %eax
je 0xcc9d
movq 0x10(%r14), %rax
incq (%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xcbc2
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xcbd1
movl $0x1, %edi
movl $0x18, %esi
callq 0x3610
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 0xcc17
movl $0x1, %edi
movl $0x38, %esi
callq 0x3610
movq %rax, %r15
movq %rax, 0x8(%rbx)
movq 0x30(%r15), %r12
movl 0x28(%r15), %ebx
movl 0x24(%r13), %eax
cmpl %eax, %ebx
jge 0xcc5f
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 0x3720
movq %rax, %r12
movl 0x24(%r13), %eax
movq 0x30(%r13), %rsi
movslq %eax, %rdx
movq %r12, %rdi
callq 0x37d0
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 0xd24a
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdi
movq %r13, %rsi
callq 0x2619d
testq %rax, %rax
leaq 0x35481(%rip), %rcx     # 0x42139
cmoveq %rcx, %rax
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xd5f1
movq %rax, %r9
incq (%rax)
xorl %eax, %eax
movl 0x4(%rsp), %r10d
movabsq $0x1000000000, %rcx     # imm = 0x1000000000
testq %rcx, 0x8(%r13)
setne %cl
jne 0xcced
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 0xcf3f
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 0x344c7(%rip), %rdi     # 0x411f0
leal -0x2(%rdx), %esi
decl %edx
cmpl %ecx, (%rdi,%rsi,4)
ja 0xcd29
movl %edx, %ecx
movl (%rdi,%rcx,4), %ebx
cvtsi2sd %rbx, %xmm0
mulsd 0x322cb(%rip), %xmm0    # 0x3f010
addsd 0x322cb(%rip), %xmm0    # 0x3f018
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jae 0xcf3f
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 0x3240
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x3080
movl (%r13), %eax
cmpl %ebx, %eax
jae 0xcdc7
movq 0x18(%r13), %rdi
leaq (,%rbx,4), %rsi
callq 0x3720
movq %rax, 0x18(%r13)
movq 0x20(%r13), %rdi
leaq (,%rbx,8), %rsi
callq 0x3720
movq %rax, 0x20(%r13)
movl (%r13), %eax
testl %eax, %eax
je 0xcf0c
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 0xced2
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 0xce6a
incl %edx
addl %edx, %edi
xorl %eax, %eax
cmpl %ebx, %edi
jb 0xce4b
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 0xce41
notl %r14d
andl %r12d, %r14d
movl %r14d, (%r15,%rax,4)
movl %edi, %edx
cmpl (%r13), %edi
jae 0xceba
movl (%r10,%rax,4), %r10d
shrl %cl, %r10d
movq 0x18(%r13), %rdi
testb $0x3, %r10b
jne 0xcebe
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 0xce12
movq 0x18(%r13), %rdi
movl %esi, (%rdi,%rdx,4)
movq 0x20(%r13), %rax
movq %r11, (%rax,%rdx,8)
movl (%r13), %eax
movq 0x18(%rsp), %r14
incl %r9d
cmpl %eax, %r9d
jne 0xcdd6
cmpl %ebx, %eax
jbe 0xcf0c
movq 0x18(%r13), %rdi
leaq (,%rbx,4), %rsi
callq 0x3720
movq %rax, 0x18(%r13)
movq 0x20(%r13), %rdi
leaq (,%rbx,8), %rsi
callq 0x3720
movq %rax, 0x20(%r13)
movq 0x10(%r13), %rdi
callq 0x3350
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 0xcf65
movl %esi, %eax
jmp 0xd00b
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 0xcfe7
testb $0x1, %r11b
jne 0xcfb0
movq 0x18(%r13), %r11
movl %r9d, %ebx
cmpl %r12d, (%r11,%rbx,4)
je 0xcfe7
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 0xcf80
movb $0x1, %cl
movl %r8d, %edx
cmpl %r8d, %eax
movq 0x8(%rsp), %r9
movl %r12d, %r10d
je 0xcffe
jmp 0xd00b
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 0xd0fc
testb $0x1, %sil
jne 0xd126
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 0x20(%rsp), %r14
jge 0xd24e
movabsq $0x1000000000, %rdx     # imm = 0x1000000000
testq %rdx, 0x8(%r14)
jne 0xd26d
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 0x24(%r14), %eax
cmpl %eax, %ebp
jge 0xd0c6
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 0x3720
movq %rax, %r15
movl 0x24(%r14), %eax
movq 0x30(%r14), %rsi
movslq %eax, %rdx
movq %r15, %rdi
callq 0x37d0
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 0xd24a
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 0x31f22(%rip), %xmm0    # 0x3f040
movq %xmm0, 0x4(%r13)
jmp 0xd13e
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 0xd166
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xd175
movl $0x1, %edi
movl $0x18, %esi
callq 0x3610
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 0xd1bb
movl $0x1, %edi
movl $0x38, %esi
callq 0x3610
movq %rax, %r15
movq %rax, 0x8(%rbx)
movq 0x30(%r15), %r12
movl 0x28(%r15), %ebp
movq 0x20(%rsp), %r14
movl 0x24(%r14), %eax
cmpl %eax, %ebp
jge 0xd208
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 0x3720
movq %rax, %r12
movl 0x24(%r14), %eax
movq 0x30(%r14), %rsi
movslq %eax, %rdx
movq %r12, %rdi
callq 0x37d0
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 0x283b1
testl %eax, %eax
movq %r14, %r13
movq 0x18(%rsp), %r14
jns 0xcae2
jmp 0xd2d5
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0x4(%rax)
movq 0x18(%rsp), %r14
movq 0x10(%r14), %rax
incq (%rax)
movq 0x8(%rax), %rcx
testq %rcx, %rcx
movq %r8, 0x8(%rsp)
je 0xd2a3
movq 0x18(%rax), %rdx
leaq -0x1(%rcx), %rsi
movq %rsi, 0x8(%rax)
movq -0x8(%rdx,%rcx,8), %rax
jmp 0xd2b2
movl $0x1, %edi
movl $0x18, %esi
callq 0x3610
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 0xd199
movq 0x28(%rsp), %rdi
movq %r14, %rsi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x10(%rsp), %r14
movq %r14, %rcx
callq 0xd4a6
movl (%r14), %ebx
movq 0x10(%r14), %r15
testq %rbx, %rbx
je 0xd340
movq 0x10(%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 0xd330
incq %rbp
addl $0x2, %r12d
cmpq %rbp, %rbx
jne 0xd30d
jmp 0xd340
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x3e88
jmp 0xd322
movq 0x10(%rsp), %rbx
movq 0x18(%rbx), %rdi
callq 0x3350
movq %r15, %rdi
callq 0x3350
movq 0x20(%rbx), %rdi
callq 0x3350
movq %rbx, %rdi
callq 0x3350
movq 0x20(%rsp), %rbx
testq %rbx, %rbx
je 0xd382
movq 0x30(%rbx), %rdi
callq 0x3350
movq %rbx, %rdi
callq 0x3350
movq 0x18(%rsp), %r14
movq (%r14), %rbx
movq 0x8(%r14), %r15
movq 0x10(%r14), %r14
cmpq %r15, %rbx
je 0xd3ee
movq 0x8(%r14), %rdx
movl $0x10, %r12d
decq (%r14)
cmpq 0x10(%r14), %rdx
jne 0xd3d0
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
cmoveq %r12, %rsi
movq %rsi, 0x10(%r14)
movq 0x18(%r14), %rdi
shlq $0x3, %rsi
callq 0x3720
movq %rax, 0x18(%r14)
movq 0x8(%r14), %rdx
jmp 0xd3d4
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 0xd3a1
jmp 0xd3f2
movq 0x8(%r14), %rcx
decq (%r14)
cmpq 0x10(%r14), %rcx
jne 0xd426
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 0x3720
movq %rax, 0x18(%r14)
movq 0x8(%r14), %rcx
jmp 0xd42a
movq 0x18(%r14), %rax
movq %rcx, %rdx
incq %rdx
movq %rdx, 0x8(%r14)
movq %rbx, (%rax,%rcx,8)
je 0xd47d
xorl %ebx, %ebx
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rdi
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0xd46f
movq 0x30(%rax), %rdi
callq 0x3350
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rax
movq 0x8(%rax), %rdi
callq 0x3350
movq 0x18(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x3350
incq %rbx
cmpq 0x8(%r14), %rbx
jb 0xd43c
movq 0x18(%r14), %rdi
callq 0x3350
movq %r14, %rdi
callq 0x3350
movq 0x18(%rsp), %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3350