// File: /workspace/github_c_makefile_star2_O1/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 0x8a20
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r13
movl $0x1, %edi
movl $0x28, %esi
callq 0x32e0
movq %rax, 0x20(%r13)
cmpl $0x0, (%r13)
jle 0x8c28
movq %rax, %rbp
xorl %ecx, %ecx
movq %r13, 0x10(%rsp)
movq %rax, 0x8(%rsp)
movq 0x8(%r13), %rax
movq %rcx, 0x18(%rsp)
movq (%rax,%rcx,8), %r8
movl 0x8(%rbp), %eax
cmpl 0xc(%rbp), %eax
jb 0x8a97
movl (%rbp), %eax
movl 0x4(%rbp), %ecx
addl %ecx, %ecx
cmpl %eax, %ecx
movl $0x0, %esi
sbbl %esi, %esi
orl $0x1, %esi
addl %eax, %esi
movq %rbp, %rdi
movq %r8, %rbx
callq 0x93d1
movq %rbx, %r8
movl (%rbp), %edi
movsbl (%r8), %esi
testl %esi, %esi
je 0x8ac5
movb 0x1(%r8), %al
testb %al, %al
je 0x8ac7
leaq 0x2(%r8), %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 0x8aae
jmp 0x8ac7
xorl %esi, %esi
movl %esi, %eax
xorl %edx, %edx
divl %edi
movl %edx, %r10d
movq 0x10(%rbp), %rbx
movl %edx, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %eax
leal (%r10,%r10), %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x8bb0
leal -0x1(%rdi), %ecx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
movl %edx, %r15d
incl %r15d
movl %r10d, %r12d
movl %edi, %r14d
movq %rdi, 0x30(%rsp)
movq %r10, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movl %r12d, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %ebp
leal (%r12,%r12), %r13d
andl $0x1e, %r13d
movl %ebp, %eax
movl %r13d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x8b7e
testb $0x1, %al
jne 0x8b59
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movl %r12d, %ecx
movq (%rax,%rcx,8), %rdi
movq %r8, %rsi
callq 0x3300
movq 0x28(%rsp), %r10
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %r8
testl %eax, %eax
je 0x8b7e
btl %r13d, %ebp
cmovbl %r12d, %r14d
addl %r15d, %r12d
cmpl %edi, %r12d
movl %edi, %eax
movl $0x0, %ecx
cmovbl %ecx, %eax
subl %eax, %r12d
movl %r14d, %eax
cmpl %r10d, %r12d
jne 0x8b0e
jmp 0x8b80
movl %edi, %eax
movl %eax, %r10d
cmpl %edi, %eax
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %rbp
jne 0x8bb0
movl %r12d, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %eax
leal (%r12,%r12), %ecx
shrl %cl, %eax
cmpl %edi, %r14d
cmovel %r12d, %r14d
testb $0x2, %al
cmovel %r12d, %r14d
movl %r14d, %r10d
movl %r10d, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %esi
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
movl %r10d, %edx
testb $0x2, %sil
jne 0x8bee
testb $0x1, %sil
je 0x8c0c
movq 0x18(%rbp), %rsi
movq %r8, (%rsi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rbp), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%rbp)
jmp 0x8c0c
movq 0x18(%rbp), %rsi
movq %r8, (%rsi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rbp), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%rbp)
incl 0x8(%rbp)
movq 0x20(%rbp), %rax
movq 0x18(%rsp), %rcx
movl %ecx, (%rax,%rdx,4)
incq %rcx
movslq (%r13), %rax
cmpq %rax, %rcx
jl 0x8a5e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq