// File: /workspace/github_c_makefile_star2_O2/skoren[P]bacValidation/bamcat.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 0x640b
retq
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rdi
pushq $0x28
popq %rsi
callq 0x31c0
movq %rax, %rdi
movq %rax, 0x20(%rbx)
xorl %r13d, %r13d
pushq $0x2
popq %r14
xorl %r15d, %r15d
xorl %r8d, %r8d
xorl %ecx, %ecx
movq %rbx, -0x70(%rbp)
movq %rax, -0x30(%rbp)
movslq (%rbx), %rax
cmpq %rax, %rcx
jge 0x6817
movq 0x8(%rbx), %rax
movq %rcx, -0x58(%rbp)
movq (%rax,%rcx,8), %rax
movq %rax, -0x50(%rbp)
movl (%rdi), %ebx
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jb 0x6647
movl 0x4(%rdi), %eax
leal (%rax,%rax), %ecx
cmpl %ebx, %ecx
movl $0x0, %ecx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %ebx, %ecx
pushq $0x21
popq %rdx
leaq 0x4c20(%rip), %rdi      # 0xb0b0
leal -0x2(%rdx), %esi
decl %edx
cmpl %ecx, (%rdi,%rsi,4)
ja 0x6490
movl %edx, %ecx
movl (%rdi,%rcx,4), %r12d
cvtsi2sd %r12, %xmm0
mulsd 0x4b5b(%rip), %xmm0     # 0xb008
addsd 0x4b5b(%rip), %xmm0     # 0xb010
cvttsd2si %xmm0, %rcx
cmpl %ecx, %eax
jae 0x6647
movq %rcx, -0x60(%rbp)
movl %r12d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %rdi
movq %rdi, -0x48(%rbp)
movq %r8, -0x38(%rbp)
callq 0x3470
movq %rax, %r15
movq %rax, %rdi
movl $0xaa, %esi
movq -0x48(%rbp), %rdx
callq 0x3170
movq -0x38(%rbp), %r8
movq -0x30(%rbp), %r9
cmpl %r12d, %ebx
jae 0x653b
movq 0x18(%r9), %rdi
leaq (,%r12,8), %rsi
callq 0x3590
movq -0x30(%rbp), %rcx
movq %rax, 0x18(%rcx)
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rdi
leaq (,%r12,4), %rsi
callq 0x3590
movq -0x30(%rbp), %r9
movq %rax, %r8
movq %rax, 0x20(%r9)
leal -0x1(%r12), %eax
movl %eax, -0x3c(%rbp)
xorl %edi, %edi
cmpl (%r9), %edi
je 0x664c
movq 0x10(%r9), %rbx
movl %edi, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %edx
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl %edx, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0x6640
movq 0x18(%r9), %rsi
movq %rdi, -0x68(%rbp)
movl %edi, %r9d
movq (%rsi,%r9,8), %rdi
movl (%r8,%r9,4), %esi
movl %esi, -0x38(%rbp)
btsl %ecx, %edx
movl %edx, (%rbx,%rax,4)
movq %rdi, -0x48(%rbp)
callq 0x910c
movl %eax, %ecx
xorl %edx, %edx
divl %r12d
movl %edx, %esi
movl %ecx, %eax
xorl %edx, %edx
divl -0x3c(%rbp)
incl %edx
movq -0x30(%rbp), %r9
movl %esi, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %edi
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl %r14d, %r8d
shll %cl, %r8d
testl %edi, %r8d
jne 0x65d3
addl %edx, %esi
cmpl %r12d, %esi
movl %r12d, %eax
cmovbl %r13d, %eax
subl %eax, %esi
jmp 0x65a9
notl %r8d
andl %r8d, %edi
movl %edi, (%r15,%rax,4)
movl %esi, %edx
cmpl (%r9), %esi
jae 0x6624
movl (%rbx,%rax,4), %edi
shrl %cl, %edi
movq 0x18(%r9), %rsi
testb $0x3, %dil
movl -0x38(%rbp), %r10d
movq -0x48(%rbp), %r8
jne 0x6630
movq (%rsi,%rdx,8), %rdi
movq %r8, (%rsi,%rdx,8)
movq 0x20(%r9), %rsi
movl (%rsi,%rdx,4), %r8d
movl %r10d, (%rsi,%rdx,4)
pushq $0x1
popq %rdx
shll %cl, %edx
movq 0x10(%r9), %rbx
orl %edx, (%rbx,%rax,4)
movl %r8d, -0x38(%rbp)
jmp 0x658a
movq 0x18(%r9), %rsi
movl -0x38(%rbp), %r10d
movq -0x48(%rbp), %r8
movq %r8, (%rsi,%rdx,8)
movq 0x20(%r9), %r8
movl %r10d, (%r8,%rdx,4)
movq -0x68(%rbp), %rdi
incl %edi
jmp 0x6545
movl %ebx, %r12d
jmp 0x66a7
cmpl %r12d, %edi
jbe 0x6687
movq 0x18(%r9), %rdi
leaq (,%r12,8), %rsi
callq 0x3590
movq -0x30(%rbp), %rcx
movq %rax, 0x18(%rcx)
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rdi
leaq (,%r12,4), %rsi
callq 0x3590
movq -0x30(%rbp), %r9
movq %rax, 0x20(%r9)
movq 0x10(%r9), %rdi
movq %r9, %rbx
callq 0x33d0
movq %r15, 0x10(%rbx)
movl %r12d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movq -0x60(%rbp), %rax
movl %eax, 0xc(%rbx)
movq -0x50(%rbp), %rdi
callq 0x910c
movl %eax, %esi
xorl %edx, %edx
divl %r12d
movl %edx, %r8d
movl %edx, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %eax
leal (%r8,%r8), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0x66d9
movl %r8d, %r9d
movq -0x30(%rbp), %rdi
jmp 0x6798
leal -0x1(%r12), %ecx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r8d, %r10d
movl %r12d, %r9d
movq -0x30(%rbp), %rdi
movq %r8, -0x68(%rbp)
movl %edx, -0x60(%rbp)
movl %r10d, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %esi
leal (%r10,%r10), %ebx
andl $0x1e, %ebx
movl %esi, %eax
movl %ebx, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x6777
testb $0x1, %al
jne 0x674f
movq 0x18(%rdi), %rax
movl %r10d, %ecx
movq (%rax,%rcx,8), %rdi
movl %esi, -0x3c(%rbp)
movq -0x50(%rbp), %rsi
movq %r9, -0x38(%rbp)
movq %r10, -0x48(%rbp)
callq 0x34a0
movl -0x3c(%rbp), %esi
movl -0x60(%rbp), %edx
movq -0x48(%rbp), %r10
movq -0x38(%rbp), %r9
movq -0x68(%rbp), %r8
movq -0x30(%rbp), %rdi
testl %eax, %eax
je 0x6777
btl %ebx, %esi
cmovbl %r10d, %r9d
addl %edx, %r10d
cmpl %r12d, %r10d
movl %r12d, %eax
cmovbl %r13d, %eax
subl %eax, %r10d
cmpl %r8d, %r10d
jne 0x66f7
movb $0x1, %al
movl %r12d, %ecx
cmpl %r12d, %r9d
je 0x6788
jmp 0x6798
movl %ebx, %ecx
shrl %cl, %esi
testb $0x2, %sil
sete %al
movl %r9d, %ecx
movl %r10d, %r8d
cmpl %r12d, %ecx
cmovel %r8d, %ecx
testb %al, %al
cmovnel %r8d, %ecx
movl %ecx, %r9d
movl %r9d, %edx
shrl $0x4, %edx
movl (%r15,%rdx,4), %esi
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
movl %r9d, %eax
testb $0x2, %sil
jne 0x67de
testb $0x1, %sil
movq -0x70(%rbp), %rbx
je 0x6803
movq 0x18(%rdi), %rsi
movq -0x50(%rbp), %r8
movq %r8, (%rsi,%rax,8)
pushq $0x3
popq %rsi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %r15
andl %esi, (%r15,%rdx,4)
incl 0x4(%rdi)
jmp 0x6803
movq 0x18(%rdi), %rsi
movq -0x50(%rbp), %r8
movq %r8, (%rsi,%rax,8)
pushq $0x3
popq %rsi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %r15
andl %esi, (%r15,%rdx,4)
incl 0x4(%rdi)
incl 0x8(%rdi)
movq -0x70(%rbp), %rbx
movq -0x58(%rbp), %rcx
movq 0x20(%rdi), %r8
movl %ecx, (%r8,%rax,4)
incq %rcx
jmp 0x6448
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq