// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bam_rmdupse.c
// Function: get_aux
static lib_aux_t *get_aux(khash_t(lib) *aux, const char *lib)
{
	khint_t k = kh_get(lib, aux, lib);
	if (k == kh_end(aux)) {
		int ret;
		char *p = strdup(lib);
		lib_aux_t *q;
		k = kh_put(lib, aux, p, &ret);
		q = &kh_val(aux, k);
		q->left = kh_init(best);
		q->rght = kh_init(best);
		q->n_checked = q->n_removed = 0;
		return q;
	} else return &kh_val(aux, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
movq %rdi, 0x8(%rsp)
je 0xd64b
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xd656
movb 0x1(%r14), %al
testb %al, %al
je 0xd653
leaq 0x2(%r14), %rdx
movl %r8d, %ecx
movl %ecx, %r8d
shll $0x5, %r8d
subl %ecx, %r8d
movsbl %al, %ecx
addl %r8d, %ecx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0xd630
jmp 0xd656
xorl %r13d, %r13d
jmp 0xd6f2
movl %r8d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %edi
movl %edx, %r15d
leal -0x1(%rdi), %r8d
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
incl %edx
movq 0x10(%rbx), %r8
movl %r15d, %r13d
movq %rbx, 0x48(%rsp)
movl %edx, 0x10(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %ebp
leal (,%r13,2), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xd6e5
testb $0x1, %al
jne 0xd6cf
movq 0x18(%rbx), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
movq %r8, %rbx
callq 0x35a0
movq %rbx, %r8
movl 0x10(%rsp), %edx
movq 0x48(%rsp), %rbx
xorl %r9d, %r9d
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xd6e5
addl %edx, %r13d
cmpl %edi, %r13d
movl %edi, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r15d, %r13d
jne 0xd67c
jmp 0xd6f7
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %edi, %r13d
cmpl %edi, %r13d
jne 0xd714
movq %r14, %rdi
callq 0x3570
movq %rax, %rsi
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jae 0xd724
movq 0x8(%rsp), %r13
jmp 0xd9dc
movl %r13d, %eax
shlq $0x5, %rax
addq 0x20(%rbx), %rax
jmp 0xdba1
movl 0x4(%rbx), %eax
leal (%rax,%rax), %edx
xorl %ecx, %ecx
movq 0x8(%rsp), %r9
cmpl %r9d, %edx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %r9d, %ecx
movl $0x21, %r8d
leaq 0x33aa7(%rip), %rdx     # 0x411f0
leal -0x2(%r8), %edi
decl %r8d
cmpl %ecx, (%rdx,%rdi,4)
ja 0xd749
movl %r8d, %ecx
movl (%rdx,%rcx,4), %r13d
cvtsi2sd %r13, %xmm0
mulsd 0x318a7(%rip), %xmm0    # 0x3f010
addsd 0x318a7(%rip), %xmm0    # 0x3f018
cvttsd2si %xmm0, %rbp
cmpl %ebp, %eax
jae 0xd9d9
movq %rsi, 0x10(%rsp)
movl %r13d, %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
movq 0x8(%rsp), %r10
cmpl %r13d, %r10d
jae 0xd7e2
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %rsi
callq 0x3720
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
movq %r13, %rsi
shlq $0x5, %rsi
callq 0x3720
movq %rax, 0x20(%rbx)
movl (%rbx), %r10d
testl %r10d, %r10d
je 0xd9b9
leal -0x1(%r13), %edi
xorl %r8d, %r8d
movq 0x10(%rbx), %r9
movl %r8d, %eax
shrl $0x4, %eax
movl (%r9,%rax,4), %edx
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %edx, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0xd97f
movq 0x18(%rbx), %rsi
movl %r8d, %r11d
movq (%rsi,%r11,8), %r10
movq 0x20(%rbx), %rsi
shlq $0x5, %r11
movupd (%rsi,%r11), %xmm0
movdqu 0x10(%rsi,%r11), %xmm1
movdqa %xmm1, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
btsl %ecx, %edx
movl %edx, (%r9,%rax,4)
movsbl (%r10), %ecx
testl %ecx, %ecx
je 0xd873
movb 0x1(%r10), %al
testb %al, %al
je 0xd875
leaq 0x2(%r10), %rdx
movl %ecx, %esi
shll $0x5, %esi
subl %ecx, %esi
movsbl %al, %ecx
addl %esi, %ecx
movb (%rdx), %al
incq %rdx
testb %al, %al
jne 0xd85c
jmp 0xd875
xorl %ecx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r13d
movl %edx, %esi
movl %ecx, %eax
xorl %edx, %edx
divl %edi
movl %esi, %eax
movl %esi, %ecx
addl %esi, %ecx
andl $0x1e, %ecx
movl $0x2, %r14d
shll %cl, %r14d
shrl $0x4, %eax
movl (%r15,%rax,4), %r11d
testl %r11d, %r14d
jne 0xd8cf
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r13d, %esi
jb 0xd8b0
movl %r13d, %eax
subl %eax, %esi
movl %esi, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %r11d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl $0x2, %r14d
shll %cl, %r14d
testl %r11d, %r14d
je 0xd8a4
notl %r14d
andl %r11d, %r14d
movl %r14d, (%r15,%rax,4)
movl %esi, %edx
cmpl (%rbx), %esi
jae 0xd955
movl (%r9,%rax,4), %r9d
shrl %cl, %r9d
movq 0x18(%rbx), %rsi
testb $0x3, %r9b
jne 0xd959
movq (%rsi,%rdx,8), %r11
movq %r10, (%rsi,%rdx,8)
movq 0x20(%rbx), %rsi
shlq $0x5, %rdx
movups (%rsi,%rdx), %xmm0
movups 0x10(%rsi,%rdx), %xmm1
movaps %xmm1, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm1, 0x10(%rsi,%rdx)
movups %xmm0, (%rsi,%rdx)
movapd 0x50(%rsp), %xmm0
movdqa 0x60(%rsp), %xmm1
movdqa %xmm1, 0x30(%rsp)
movapd %xmm0, 0x20(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%rbx), %r9
orl %edx, (%r9,%rax,4)
movq %r11, %r10
jmp 0xd848
movq 0x18(%rbx), %rsi
movq %r10, (%rsi,%rdx,8)
movq 0x20(%rbx), %rax
shlq $0x5, %rdx
movapd 0x20(%rsp), %xmm0
movdqa 0x30(%rsp), %xmm1
movdqu %xmm1, 0x10(%rax,%rdx)
movupd %xmm0, (%rax,%rdx)
movl (%rbx), %r10d
incl %r8d
cmpl %r10d, %r8d
jne 0xd7f2
cmpl %r13d, %r10d
jbe 0xd9b9
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %rsi
callq 0x3720
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
movq %r13, %rsi
shlq $0x5, %rsi
callq 0x3720
movq %rax, 0x20(%rbx)
movq 0x10(%rbx), %rdi
callq 0x3350
movq %r15, 0x10(%rbx)
movl %r13d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
movq 0x10(%rsp), %rsi
jmp 0xd9dc
movl %r9d, %r13d
movsbl (%rsi), %edi
testl %edi, %edi
je 0xda08
movb 0x1(%rsi), %al
testb %al, %al
je 0xda0a
movq %rsi, %rcx
addq $0x2, %rcx
movl %edi, %edx
shll $0x5, %edx
subl %edi, %edx
movsbl %al, %edi
addl %edx, %edi
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xd9f1
jmp 0xda0a
xorl %edi, %edi
xorl %r10d, %r10d
movl %edi, %eax
xorl %edx, %edx
divl %r13d
movl %edx, %r9d
movq 0x10(%rbx), %r8
movl %edx, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %eax
leal (%r9,%r9), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0xda36
movl %r9d, %r15d
jmp 0xdaf1
leal -0x1(%r13), %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r9d, %r14d
movl %r13d, %r15d
movq %rsi, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %r9, 0x40(%rsp)
movl %edx, 0x1c(%rsp)
movl %r14d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %ebp
leal (%r14,%r14), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xdacf
testb $0x1, %al
jne 0xdaa6
movq 0x18(%rbx), %rax
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x35a0
movl 0x1c(%rsp), %edx
xorl %r10d, %r10d
movq 0x40(%rsp), %r9
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %rsi
testl %eax, %eax
je 0xdacf
btl %r12d, %ebp
cmovbl %r14d, %r15d
addl %edx, %r14d
cmpl %r13d, %r14d
movl %r13d, %eax
cmovbl %r10d, %eax
subl %eax, %r14d
cmpl %r9d, %r14d
jne 0xda5b
movb $0x1, %al
movl %r13d, %ecx
cmpl %r13d, %r15d
je 0xdae1
jmp 0xdaf1
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x2, %bpl
sete %al
movl %r15d, %ecx
movl %r14d, %r9d
cmpl %r13d, %ecx
cmovel %r9d, %ecx
testb %al, %al
cmovnel %r9d, %ecx
movl %ecx, %r15d
movl %r15d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %edx
leal (%r15,%r15), %ecx
andl $0x1e, %ecx
shrl %cl, %edx
testb $0x2, %dl
jne 0xdb13
testb $0x1, %dl
jne 0xdb42
movl %r15d, %r14d
jmp 0xdb60
movq 0x18(%rbx), %rdx
movl %r15d, %r14d
movq %rsi, (%rdx,%r14,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rbx), %rcx
andl %edx, (%rcx,%rax,4)
movq 0x4(%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%rbx)
jmp 0xdb60
movq 0x18(%rbx), %rdx
movl %r15d, %r14d
movq %rsi, (%rdx,%r14,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rbx), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%rbx)
movq 0x20(%rbx), %r15
shlq $0x5, %r14
leaq (%r15,%r14), %rbx
movl $0x1, %edi
movl $0x28, %esi
callq 0x3610
movq %rax, 0x10(%r15,%r14)
movl $0x1, %edi
movl $0x28, %esi
callq 0x3610
movq %rax, 0x18(%r15,%r14)
pxor %xmm0, %xmm0
movdqu %xmm0, (%r15,%r14)
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq