// File: /workspace/github_cpp_makefile_star2_O3/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/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 0xc0c3
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xc0ce
movb 0x1(%r14), %al
testb %al, %al
je 0xc0cb
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 0xc0a8
jmp 0xc0ce
xorl %r13d, %r13d
jmp 0xc16a
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 0xc15d
testb $0x1, %al
jne 0xc147
movq 0x18(%rbx), %rax
movl %r13d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r14, %rsi
movq %r8, %rbx
callq 0x34e0
movq %rbx, %r8
movl 0x10(%rsp), %edx
movq 0x48(%rsp), %rbx
xorl %r9d, %r9d
movq 0x8(%rsp), %rdi
testl %eax, %eax
je 0xc15d
addl %edx, %r13d
cmpl %edi, %r13d
movl %edi, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r15d, %r13d
jne 0xc0f4
jmp 0xc16f
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %edi, %r13d
cmpl %edi, %r13d
jne 0xc18c
movq %r14, %rdi
callq 0x34b0
movq %rax, %rsi
movl 0x8(%rbx), %eax
cmpl 0xc(%rbx), %eax
jae 0xc1a0
movq 0x8(%rsp), %r13
jmp 0xc451
movl %r13d, %eax
leaq (%rax,%rax,2), %r14
shlq $0x3, %r14
addq 0x20(%rbx), %r14
jmp 0xc5fd
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 0x187cb(%rip), %rdx     # 0x24990
leal -0x2(%r8), %edi
decl %r8d
cmpl %ecx, (%rdx,%rdi,4)
ja 0xc1c5
movl %r8d, %ecx
movl (%rdx,%rcx,4), %r13d
cvtsi2sd %r13, %xmm0
mulsd 0x173eb(%rip), %xmm0    # 0x235d0
addsd 0x1730b(%rip), %xmm0    # 0x234f8
cvttsd2si %xmm0, %rbp
cmpl %ebp, %eax
jae 0xc44e
movq %rsi, 0x10(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %r12
movq %r12, %rdi
callq 0x31d0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x3060
movq 0x8(%rsp), %r10
cmpl %r13d, %r10d
jae 0xc25e
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %r12
movq %r12, %rsi
callq 0x3610
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (%r12,%r12,2), %rsi
callq 0x3610
movq %rax, 0x20(%rbx)
movl (%rbx), %r10d
testl %r10d, %r10d
je 0xc42e
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 0xc3f4
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 0xc2ec
movb 0x1(%r10), %al
testb %al, %al
je 0xc2ee
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 0xc2d5
jmp 0xc2ee
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 0xc348
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r13d, %esi
jb 0xc329
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 0xc31d
notl %r14d
andl %r11d, %r14d
movl %r14d, (%r15,%rax,4)
movl %esi, %edx
cmpl (%rbx), %esi
jae 0xc3cc
movl (%r9,%rax,4), %r9d
shrl %cl, %r9d
movq 0x18(%rbx), %rsi
testb $0x3, %r9b
jne 0xc3d0
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 0xc2c1
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 0xc26e
cmpl %r13d, %r10d
jbe 0xc42e
movq 0x18(%rbx), %rdi
leaq (,%r13,8), %r12
movq %r12, %rsi
callq 0x3610
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (%r12,%r12,2), %rsi
callq 0x3610
movq %rax, 0x20(%rbx)
movq 0x10(%rbx), %rdi
callq 0x32c0
movq %r15, 0x10(%rbx)
movl %r13d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movl %ebp, 0xc(%rbx)
movq 0x10(%rsp), %rsi
jmp 0xc451
movl %r9d, %r13d
movsbl (%rsi), %edi
testl %edi, %edi
je 0xc47d
movb 0x1(%rsi), %al
testb %al, %al
je 0xc47f
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 0xc466
jmp 0xc47f
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 0xc4ab
movl %r9d, %r15d
jmp 0xc566
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 0xc544
testb $0x1, %al
jne 0xc51b
movq 0x18(%rbx), %rax
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x34e0
movl 0x1c(%rsp), %edx
xorl %r10d, %r10d
movq 0x40(%rsp), %r9
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %rsi
testl %eax, %eax
je 0xc544
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 0xc4d0
movb $0x1, %al
movl %r13d, %ecx
cmpl %r13d, %r15d
je 0xc556
jmp 0xc566
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 0xc588
testb $0x1, %dl
jne 0xc5b7
movl %r15d, %edx
jmp 0xc5d5
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 0xc5d5
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 0x3530
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