// File: /workspace/github_cpp_makefile_star2_O1/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/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 $0x28, %rsp
movq %rsi, %r14
movl (%rdi), %ebx
testl %ebx, %ebx
movq %rdi, 0x8(%rsp)
je 0xce20
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xce2b
movb 0x1(%r14), %al
testb %al, %al
je 0xce28
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 0xce05
jmp 0xce2b
xorl %r13d, %r13d
jmp 0xced0
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 0xcec3
testb $0x1, %al
jne 0xceaa
movq 0x18(%rdi), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
movl %r10d, %ebx
callq 0x34e0
movq 0x18(%rsp), %r8
movl %ebx, %r10d
movq 0x10(%rsp), %rbx
xorl %r9d, %r9d
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xcec3
addl %r15d, %r13d
cmpl %ebx, %r13d
movl %ebx, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r10d, %r13d
jne 0xce56
movl %ebx, %r13d
jmp 0xced0
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %ebx, %r13d
cmpl %ebx, %r13d
jne 0xcf3f
movq %r14, %rdi
callq 0x34b0
movq 0x8(%rsp), %rdi
movq %rax, %r12
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jb 0xcf0c
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 0xd135
movq 0x8(%rsp), %rdi
movl (%rdi), %r14d
movsbl (%r12), %esi
testl %esi, %esi
je 0xcf4f
movb 0x1(%r12), %al
testb %al, %al
je 0xcf51
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 0xcf28
jmp 0xcf51
movl %r13d, %eax
shlq $0x5, %rax
addq 0x20(%rdi), %rax
jmp 0xd0d3
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 0xd038
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 0xd007
testb $0x1, %al
jne 0xcfe6
movq 0x18(%rdi), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
movq 0x10(%rsp), %rsi
callq 0x34e0
movl 0x24(%rsp), %edx
xorl %r11d, %r11d
movq 0x18(%rsp), %r10
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xd007
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 0xcf9a
jmp 0xd00a
movl %r14d, %eax
movl %eax, %r10d
cmpl %r14d, %eax
movq 0x10(%rsp), %r12
jne 0xd038
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), %edx
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
shrl %cl, %edx
movl %r10d, %r14d
testb $0x2, %dl
jne 0xd076
testb $0x1, %dl
je 0xd094
movq 0x18(%rdi), %rdx
movq %r12, (%rdx,%r14,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rdi), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%rdi)
jmp 0xd094
movq 0x18(%rdi), %rdx
movq %r12, (%rdx,%r14,8)
movl $0x3, %edx
shll %cl, %edx
notl %edx
movq 0x10(%rdi), %rcx
andl %edx, (%rcx,%rax,4)
incl 0x4(%rdi)
incl 0x8(%rdi)
movq 0x20(%rdi), %r15
shlq $0x5, %r14
leaq (%r15,%r14), %rbx
movl $0x1, %edi
movl $0x28, %esi
callq 0x3530
movq %rax, 0x10(%r15,%r14)
movl $0x1, %edi
movl $0x28, %esi
callq 0x3530
movq %rax, 0x18(%r15,%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r15,%r14)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq