// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rsi, %r14
movl (%rdi), %ebx
testl %ebx, %ebx
movq %rdi, 0x8(%rsp)
je 0xd10f
movsbl (%r14), %r8d
xorl %r9d, %r9d
movl $0x0, %ecx
testl %r8d, %r8d
je 0xd11a
movb 0x1(%r14), %al
testb %al, %al
je 0xd117
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 0xd0f4
jmp 0xd11a
xorl %r13d, %r13d
jmp 0xd1bf
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 0xd1b2
testb $0x1, %al
jne 0xd199
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 0xd1b2
addl %r15d, %r13d
cmpl %ebx, %r13d
movl %ebx, %eax
cmovbl %r9d, %eax
subl %eax, %r13d
cmpl %r10d, %r13d
jne 0xd145
movl %ebx, %r13d
jmp 0xd1bf
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x3, %bpl
cmovnel %ebx, %r13d
cmpl %ebx, %r13d
jne 0xd22e
movq %r14, %rdi
callq 0x3570
movq 0x8(%rsp), %rdi
movq %rax, %r12
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jb 0xd1fb
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 0xd424
movq 0x8(%rsp), %rdi
movl (%rdi), %r14d
movsbl (%r12), %esi
testl %esi, %esi
je 0xd23e
movb 0x1(%r12), %al
testb %al, %al
je 0xd240
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 0xd217
jmp 0xd240
movl %r13d, %eax
shlq $0x5, %rax
addq 0x20(%rdi), %rax
jmp 0xd3c2
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 0xd327
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 0xd2f6
testb $0x1, %al
jne 0xd2d5
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 0xd2f6
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 0xd289
jmp 0xd2f9
movl %r14d, %eax
movl %eax, %r10d
cmpl %r14d, %eax
movq 0x10(%rsp), %r12
jne 0xd327
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 0xd365
testb $0x1, %dl
je 0xd383
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 0xd383
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 0x3610
movq %rax, 0x10(%r15,%r14)
movl $0x1, %edi
movl $0x28, %esi
callq 0x3610
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