// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bam_rmdup.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->n_checked = q->n_removed = 0;
		q->best_hash = kh_init(pos);
		return q;
	} else return &kh_val(aux, k);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdi), %edi
testl %edi, %edi
movq %rdi, 0x8(%rsp)
je 0xc1fd
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xc208
movb 0x1(%r14), %al
testb %al, %al
je 0xc205
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 0xc1e2
jmp 0xc208
xorl %r13d, %r13d
jmp 0xc2a4
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 0xc297
testb $0x1, %al
jne 0xc281
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 0xc297
addl %edx, %r13d
cmpl %edi, %r13d
movl %edi, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r15d, %r13d
jne 0xc22e
jmp 0xc2a9
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %edi, %r13d
cmpl %edi, %r13d
jne 0xc2c6
movq %r14, %rdi
callq 0x3570
movq %rax, %rsi
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jae 0xc2da
movq 0x8(%rsp), %r13
jmp 0xc58b
movl %r13d, %eax
leaq (%rax,%rax,2), %r14
shlq $0x3, %r14
addq 0x20(%rbx), %r14
jmp 0xc737
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 0x34e31(%rip), %rdx     # 0x41130
leal -0x2(%r8), %edi
decl %r8d
cmpl %ecx, (%rdx,%rdi,4)
ja 0xc2ff
movl %r8d, %ecx
movl (%rdx,%rcx,4), %r13d
cvtsi2sd %r13, %xmm0
mulsd 0x32cf1(%rip), %xmm0    # 0x3f010
addsd 0x32cf1(%rip), %xmm0    # 0x3f018
cvttsd2si %xmm0, %rbp
cmpl %ebp, %eax
jae 0xc588
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 0xc398
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %r12
movq %r12, %rsi
callq 0x3720
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (%r12,%r12,2), %rsi
callq 0x3720
movq %rax, 0x20(%rbx)
movl (%rbx), %r10d
testl %r10d, %r10d
je 0xc568
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 0xc52e
movq 0x18(%rbx), %rsi
movl %r8d, %r11d
movq (%rsi,%r11,8), %r10
movq 0x20(%rbx), %rsi
leaq (%r11,%r11,2), %r11
movq 0x10(%rsi,%r11,8), %r14
movq %r14, 0x30(%rsp)
movupd (%rsi,%r11,8), %xmm0
movapd %xmm0, 0x20(%rsp)
btsl %ecx, %edx
movl %edx, (%r9,%rax,4)
movsbl (%r10), %ecx
testl %ecx, %ecx
je 0xc426
movb 0x1(%r10), %al
testb %al, %al
je 0xc428
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 0xc40f
jmp 0xc428
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 0xc482
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r13d, %esi
jb 0xc463
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 0xc457
notl %r14d
andl %r11d, %r14d
movl %r14d, (%r15,%rax,4)
movl %esi, %edx
cmpl (%rbx), %esi
jae 0xc506
movl (%r9,%rax,4), %r9d
shrl %cl, %r9d
movq 0x18(%rbx), %rsi
testb $0x3, %r9b
jne 0xc50a
movq (%rsi,%rdx,8), %r11
movq %r10, (%rsi,%rdx,8)
movq 0x20(%rbx), %rsi
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%rsi,%rdx,8), %r9
movq %r9, 0x60(%rsp)
movups (%rsi,%rdx,8), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x30(%rsp), %r9
movq %r9, 0x10(%rsi,%rdx,8)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rsi,%rdx,8)
movq 0x60(%rsp), %rdx
movq %rdx, 0x30(%rsp)
movapd 0x50(%rsp), %xmm0
movapd %xmm0, 0x20(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%rbx), %r9
orl %edx, (%r9,%rax,4)
movq %r11, %r10
jmp 0xc3fb
movq 0x18(%rbx), %rsi
movq %r10, (%rsi,%rdx,8)
movq 0x20(%rbx), %rax
leaq (%rdx,%rdx,2), %rcx
movq 0x30(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movapd 0x20(%rsp), %xmm0
movupd %xmm0, (%rax,%rcx,8)
movl (%rbx), %r10d
incl %r8d
cmpl %r10d, %r8d
jne 0xc3a8
cmpl %r13d, %r10d
jbe 0xc568
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %r12
movq %r12, %rsi
callq 0x3720
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (%r12,%r12,2), %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 0xc58b
movl %r9d, %r13d
movsbl (%rsi), %edi
testl %edi, %edi
je 0xc5b7
movb 0x1(%rsi), %al
testb %al, %al
je 0xc5b9
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 0xc5a0
jmp 0xc5b9
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 0xc5e5
movl %r9d, %r15d
jmp 0xc6a0
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 0xc67e
testb $0x1, %al
jne 0xc655
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 0xc67e
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 0xc60a
movb $0x1, %al
movl %r13d, %ecx
cmpl %r13d, %r15d
je 0xc690
jmp 0xc6a0
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 0xc6c2
testb $0x1, %dl
jne 0xc6f1
movl %r15d, %edx
jmp 0xc70f
movq 0x18(%rbx), %rdi
movl %r15d, %edx
movq %rsi, (%rdi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rbx), %rcx
andl %esi, (%rcx,%rax,4)
movq 0x4(%rbx), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%rbx)
jmp 0xc70f
movq 0x18(%rbx), %rdi
movl %r15d, %edx
movq %rsi, (%rdi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rbx), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%rbx)
movq 0x20(%rbx), %rax
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,8), %r14
movl $0x1, %edi
movl $0x28, %esi
callq 0x3610
pxor %xmm0, %xmm0
movdqu %xmm0, (%r14)
movq %rax, 0x10(%r14)
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq