// File: /workspace/github_cpp_makefile_star2_O3/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/bam_aux.c
// Function: bam_init_header_hash
void bam_init_header_hash(bam_header_t *header)
{
	if (header->hash == 0) {
		int ret, i;
		khiter_t iter;
		khash_t(s) *h;
		header->hash = h = kh_init(s);
		for (i = 0; i < header->n_targets; ++i) {
			iter = kh_put(s, h, header->target_name[i], &ret);
			kh_value(h, iter) = i;
		}
	}
}

// Assembly:
cmpq $0x0, 0x20(%rdi)
je 0x11949
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movl $0x1, %edi
movl $0x28, %esi
callq 0x3530
movq %rax, 0x20(%r14)
cmpl $0x0, (%r14)
jle 0x11de3
leaq 0x139f2(%rip), %r8      # 0x25370
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r9d, %r9d
movq %rax, 0x8(%rsp)
movq %r14, 0x30(%rsp)
movq 0x8(%r14), %rcx
movq (%rcx,%r9,8), %rsi
movl (%rax), %ebp
movl 0x8(%rax), %ecx
cmpl 0xc(%rax), %ecx
jb 0x11c14
movl 0x4(%rax), %eax
leal (%rax,%rax), %ecx
cmpl %ebp, %ecx
movl $0x0, %ecx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %ebp, %ecx
movl $0x21, %edx
leal -0x2(%rdx), %edi
decl %edx
cmpl %ecx, (%r8,%rdi,4)
ja 0x119c0
movl %edx, %ecx
movl (%r8,%rcx,4), %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
mulsd 0x11bef(%rip), %xmm0    # 0x235d0
addsd 0x11b0f(%rip), %xmm0    # 0x234f8
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jae 0x11c14
movq %rcx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq %r9, 0x10(%rsp)
movl %r12d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %rbx
movq %rbx, %rdi
callq 0x31d0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %rbx, %rdx
callq 0x3060
cmpl %r12d, %ebp
jae 0x11a67
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq (,%r12,8), %rsi
callq 0x3610
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (,%r12,4), %rsi
callq 0x3610
movq %rax, %r13
movq %rax, 0x20(%rbx)
movl (%rbx), %ebp
testl %ebp, %ebp
je 0x11bde
leal -0x1(%r12), %edi
xorl %r8d, %r8d
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %r10
movl %r8d, %eax
shrl $0x4, %eax
movl (%r10,%rax,4), %edx
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %edx, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0x11b9e
movq 0x18(%rbx), %rsi
movl %r8d, %r9d
movq (%rsi,%r9,8), %r11
movl (%r13,%r9,4), %r9d
btsl %ecx, %edx
movl %edx, (%r10,%rax,4)
movq %rbx, %r13
movsbl (%r11), %ecx
testl %ecx, %ecx
je 0x11ae4
movb 0x1(%r11), %al
testb %al, %al
je 0x11ae6
leaq 0x2(%r11), %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 0x11acd
jmp 0x11ae6
xorl %ecx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r12d
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, %ebp
shll %cl, %ebp
shrl $0x4, %eax
movl (%r15,%rax,4), %ebx
testl %ebx, %ebp
jne 0x11b3a
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r12d, %esi
jb 0x11b1e
movl %r12d, %eax
subl %eax, %esi
movl %esi, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %ebx
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl $0x2, %ebp
shll %cl, %ebp
testl %ebx, %ebp
je 0x11b12
notl %ebp
andl %ebx, %ebp
movl %ebp, (%r15,%rax,4)
movl %esi, %edx
cmpl (%r13), %esi
jae 0x11b88
movl (%r10,%rax,4), %r10d
shrl %cl, %r10d
movq 0x18(%r13), %rsi
testb $0x3, %r10b
jne 0x11b8c
movq (%rsi,%rdx,8), %rbx
movq %r11, (%rsi,%rdx,8)
movq 0x20(%r13), %rsi
movl (%rsi,%rdx,4), %ebp
movl %r9d, (%rsi,%rdx,4)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%r13), %r10
orl %edx, (%r10,%rax,4)
movq %rbx, %r11
movl %ebp, %r9d
jmp 0x11ab9
movq 0x18(%r13), %rsi
movq %r11, (%rsi,%rdx,8)
movq %r13, %rax
movq 0x20(%r13), %r13
movl %r9d, (%r13,%rdx,4)
movl (%rax), %ebp
incl %r8d
cmpl %ebp, %r8d
jne 0x11a77
cmpl %r12d, %ebp
jbe 0x11bde
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq (,%r12,8), %rsi
callq 0x3610
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (,%r12,4), %rsi
callq 0x3610
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x32c0
movq %r15, 0x10(%rbx)
movl %r12d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movq 0x18(%rsp), %rax
movl %eax, 0xc(%rbx)
leaq 0x13768(%rip), %r8      # 0x25370
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %rsi
jmp 0x11c17
movl %ebp, %r12d
movsbl (%rsi), %edi
testl %edi, %edi
je 0x11c40
movb 0x1(%rsi), %al
testb %al, %al
je 0x11c42
leaq 0x2(%rsi), %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 0x11c29
jmp 0x11c42
xorl %edi, %edi
movl %edi, %eax
xorl %edx, %edx
divl %r12d
movl %edx, %r10d
movl %edx, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %eax
leal (%r10,%r10), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0x11c67
movl %r10d, %r13d
jmp 0x11d44
movq %r9, 0x10(%rsp)
leal -0x1(%r12), %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r10d, %ebp
movl %r12d, %r13d
movq %rsi, 0x20(%rsp)
movq %r10, 0x18(%rsp)
movl %edx, 0x2c(%rsp)
movl %ebp, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %r14d
leal (,%rbp,2), %ebx
andl $0x1e, %ebx
movl %r14d, %eax
movl %ebx, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x11d11
testb $0x1, %al
jne 0x11cd5
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x34e0
movl 0x2c(%rsp), %edx
movq 0x18(%rsp), %r10
movq 0x20(%rsp), %rsi
testl %eax, %eax
je 0x11d11
btl %ebx, %r14d
cmovbl %ebp, %r13d
addl %edx, %ebp
cmpl %r12d, %ebp
movl %r12d, %eax
movl $0x0, %ecx
cmovbl %ecx, %eax
subl %eax, %ebp
cmpl %r10d, %ebp
jne 0x11c8d
movb $0x1, %al
movl %r12d, %ecx
cmpl %r12d, %r13d
movq 0x30(%rsp), %r14
leaq 0x13668(%rip), %r8      # 0x25370
movq 0x10(%rsp), %r9
je 0x11d34
jmp 0x11d44
movl %ebx, %ecx
shrl %cl, %r14d
testb $0x2, %r14b
sete %al
movl %r13d, %ecx
movl %ebp, %r10d
movq 0x30(%rsp), %r14
leaq 0x13641(%rip), %r8      # 0x25370
movq 0x10(%rsp), %r9
cmpl %r12d, %ecx
cmovel %r10d, %ecx
testb %al, %al
cmovnel %r10d, %ecx
movl %ecx, %r13d
movl %r13d, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %edx
leal (,%r13,2), %ecx
andl $0x1e, %ecx
shrl %cl, %edx
testb $0x2, %dl
jne 0x11d6f
testb $0x1, %dl
jne 0x11da4
movl %r13d, %edx
movq 0x8(%rsp), %rdi
jmp 0x11dc8
movq 0x8(%rsp), %rdi
movq 0x18(%rdi), %r10
movl %r13d, %edx
movq %rsi, (%r10,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %r15
andl %esi, (%r15,%rax,4)
movq 0x4(%rdi), %xmm0
psubd 0x11313(%rip), %xmm0    # 0x230b0
movq %xmm0, 0x4(%rdi)
jmp 0x11dc8
movq 0x8(%rsp), %rdi
movq 0x18(%rdi), %r10
movl %r13d, %edx
movq %rsi, (%r10,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %r15
andl %esi, (%r15,%rax,4)
incl 0x4(%rdi)
movq %rdi, %rax
movq 0x20(%rdi), %r13
movl %r9d, (%r13,%rdx,4)
incq %r9
movslq (%r14), %rcx
cmpq %rcx, %r9
jl 0x11991
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq