// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %r14
movl (%rdi), %ebx
testl %ebx, %ebx
movq %rdi, 0x8(%rsp)
je 0xbdeb
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xbdf6
movb 0x1(%r14), %al
testb %al, %al
je 0xbdf3
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 0xbdd0
jmp 0xbdf6
xorl %r13d, %r13d
jmp 0xbe9b
movl %r8d, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %ebx
movl %edx, %r10d
leal -0x1(%rbx), %r8d
movl %ecx, %eax
xorl %edx, %edx
divl %r8d
movl %edx, %r15d
incl %r15d
movq 0x10(%rdi), %r8
movl %r10d, %r13d
movq %rbx, 0x10(%rsp)
movq %r8, 0x18(%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 0xbe8e
testb $0x1, %al
jne 0xbe75
movq 0x18(%rdi), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
movl %r10d, %ebx
callq 0x35a0
movq 0x18(%rsp), %r8
movl %ebx, %r10d
movq 0x10(%rsp), %rbx
xorl %r9d, %r9d
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xbe8e
addl %r15d, %r13d
cmpl %ebx, %r13d
movl %ebx, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r10d, %r13d
jne 0xbe21
movl %ebx, %r13d
jmp 0xbe9b
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %ebx, %r13d
cmpl %ebx, %r13d
jne 0xbf0a
movq %r14, %rdi
callq 0x3570
movq 0x8(%rsp), %rdi
movq %rax, %r12
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jb 0xbed7
movl 0x4(%rdi), %eax
addl %eax, %eax
xorl %esi, %esi
cmpl %ebx, %eax
sbbl %esi, %esi
orl $0x1, %esi
addl %ebx, %esi
movq 0x8(%rsp), %rdi
callq 0xc370
movq 0x8(%rsp), %rdi
movl (%rdi), %r14d
movsbl (%r12), %esi
testl %esi, %esi
je 0xbf1e
movb 0x1(%r12), %al
testb %al, %al
je 0xbf20
movq %r12, %rcx
addq $0x2, %rcx
movl %esi, %edx
shll $0x5, %edx
subl %esi, %edx
movsbl %al, %esi
addl %edx, %esi
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0xbef3
jmp 0xbf20
movl %r13d, %eax
leaq (%rax,%rax,2), %r14
shlq $0x3, %r14
addq 0x20(%rdi), %r14
jmp 0xc08b
xorl %esi, %esi
xorl %r11d, %r11d
movl %esi, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r10d
movq 0x10(%rdi), %r13
movl %edx, %eax
shrl $0x4, %eax
movl (%r13,%rax,4), %eax
leal (%r10,%r10), %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xc007
movq %r12, 0x10(%rsp)
leal -0x1(%r14), %ecx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r10d, %r15d
movl %r14d, %ebx
movq %r10, 0x18(%rsp)
movl %edx, 0x24(%rsp)
movl %r15d, %eax
shrl $0x4, %eax
movl (%r13,%rax,4), %ebp
leal (%r15,%r15), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0xbfd6
testb $0x1, %al
jne 0xbfb5
movq 0x18(%rdi), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
movq 0x10(%rsp), %rsi
callq 0x35a0
movl 0x24(%rsp), %edx
xorl %r11d, %r11d
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xbfd6
btl %r12d, %ebp
cmovbl %r15d, %ebx
addl %edx, %r15d
cmpl %r14d, %r15d
movl %r14d, %eax
cmovbl %r11d, %eax
subl %eax, %r15d
movl %ebx, %eax
cmpl %r10d, %r15d
jne 0xbf69
jmp 0xbfd9
movl %r14d, %eax
movl %eax, %r10d
cmpl %r14d, %eax
movq 0x10(%rsp), %r12
jne 0xc007
movl %r15d, %eax
shrl $0x4, %eax
movl (%r13,%rax,4), %eax
leal (%r15,%r15), %ecx
shrl %cl, %eax
cmpl %r14d, %ebx
cmovel %r15d, %ebx
testb $0x2, %al
cmovel %r15d, %ebx
movl %ebx, %r10d
movl %r10d, %eax
shrl $0x4, %eax
movl (%r13,%rax,4), %esi
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
movl %r10d, %edx
testb $0x2, %sil
jne 0xc047
testb $0x1, %sil
je 0xc065
movq 0x18(%rdi), %rsi
movq %r12, (%rsi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%rdi)
jmp 0xc065
movq 0x18(%rdi), %rsi
movq %r12, (%rsi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%rdi)
incl 0x8(%rdi)
movq 0x20(%rdi), %rax
leaq (%rdx,%rdx,2), %rcx
leaq (%rax,%rcx,8), %r14
movl $0x1, %edi
movl $0x28, %esi
callq 0x3610
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %rax, 0x10(%r14)
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq