// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/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 0x8e0a
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 0x32e0
movq %rax, 0x20(%r14)
cmpl $0x0, (%r14)
jle 0x92a4
leaq 0x12c51(%rip), %r8      # 0x1ba90
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 0x90d5
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 0x8e81
movl %edx, %ecx
movl (%r8,%rcx,4), %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
mulsd 0x1139e(%rip), %xmm0    # 0x1a240
addsd 0x11376(%rip), %xmm0    # 0x1a220
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jae 0x90d5
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 0x33e0
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq %rbx, %rdx
callq 0x3260
cmpl %r12d, %ebp
jae 0x8f28
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq (,%r12,8), %rsi
callq 0x3430
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (,%r12,4), %rsi
callq 0x3430
movq %rax, %r13
movq %rax, 0x20(%rbx)
movl (%rbx), %ebp
testl %ebp, %ebp
je 0x909f
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 0x905f
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 0x8fa5
movb 0x1(%r11), %al
testb %al, %al
je 0x8fa7
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 0x8f8e
jmp 0x8fa7
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 0x8ffb
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r12d, %esi
jb 0x8fdf
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 0x8fd3
notl %ebp
andl %ebx, %ebp
movl %ebp, (%r15,%rax,4)
movl %esi, %edx
cmpl (%r13), %esi
jae 0x9049
movl (%r10,%rax,4), %r10d
shrl %cl, %r10d
movq 0x18(%r13), %rsi
testb $0x3, %r10b
jne 0x904d
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 0x8f7a
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 0x8f38
cmpl %r12d, %ebp
jbe 0x909f
movq 0x8(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq (,%r12,8), %rsi
callq 0x3430
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
leaq (,%r12,4), %rsi
callq 0x3430
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x3060
movq %r15, 0x10(%rbx)
movl %r12d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movq 0x18(%rsp), %rax
movl %eax, 0xc(%rbx)
leaq 0x129c7(%rip), %r8      # 0x1ba90
movq 0x10(%rsp), %r9
movq 0x20(%rsp), %rsi
jmp 0x90d8
movl %ebp, %r12d
movsbl (%rsi), %edi
testl %edi, %edi
je 0x9101
movb 0x1(%rsi), %al
testb %al, %al
je 0x9103
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 0x90ea
jmp 0x9103
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 0x9128
movl %r10d, %r13d
jmp 0x9205
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 0x91d2
testb $0x1, %al
jne 0x9196
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x3300
movl 0x2c(%rsp), %edx
movq 0x18(%rsp), %r10
movq 0x20(%rsp), %rsi
testl %eax, %eax
je 0x91d2
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 0x914e
movb $0x1, %al
movl %r12d, %ecx
cmpl %r12d, %r13d
movq 0x30(%rsp), %r14
leaq 0x128c7(%rip), %r8      # 0x1ba90
movq 0x10(%rsp), %r9
je 0x91f5
jmp 0x9205
movl %ebx, %ecx
shrl %cl, %r14d
testb $0x2, %r14b
sete %al
movl %r13d, %ecx
movl %ebp, %r10d
movq 0x30(%rsp), %r14
leaq 0x128a0(%rip), %r8      # 0x1ba90
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 0x9230
testb $0x1, %dl
jne 0x9265
movl %r13d, %edx
movq 0x8(%rsp), %rdi
jmp 0x9289
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 0x10f82(%rip), %xmm0    # 0x1a1e0
movq %xmm0, 0x4(%rdi)
jmp 0x9289
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 0x8e52
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq