// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/faidx.c
// Function: fai_insert_index
static inline void fai_insert_index(faidx_t *idx, const char *name, int len, int line_len, int line_blen, uint64_t offset)
{
	khint_t k;
	int ret;
	faidx1_t t;
	if (idx->n == idx->m) {
		idx->m = idx->m? idx->m<<1 : 16;
		idx->name = (char**)realloc(idx->name, sizeof(void*) * idx->m);
	}
	idx->name[idx->n] = strdup(name);
	k = kh_put(s, idx->hash, idx->name[idx->n], &ret);
	t.len = len; t.line_len = line_len; t.line_blen = line_blen; t.offset = offset;
	kh_value(idx->hash, k) = t;
	++idx->n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %rbp
movl %r8d, 0xc(%rsp)
movl %ecx, 0x28(%rsp)
movl %edx, 0x24(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
movl 0x8(%rdi), %r14d
cmpl 0xc(%rdi), %r14d
jne 0x13e64
leal (%r14,%r14), %eax
testl %r14d, %r14d
movl $0x10, %ecx
cmovnel %eax, %ecx
movl %ecx, 0xc(%r12)
movq 0x10(%r12), %rdi
movslq %ecx, %rsi
shlq $0x3, %rsi
callq 0x3430
movq %rax, %r15
movq %rax, 0x10(%r12)
movl 0x8(%r12), %r14d
jmp 0x13e69
movq 0x10(%r12), %r15
movq %rbx, %rdi
callq 0x3590
movslq %r14d, %rcx
movq %rax, (%r15,%rcx,8)
movq 0x10(%r12), %rax
movq %r12, 0x48(%rsp)
movq 0x18(%r12), %r12
movq (%rax,%rcx,8), %rsi
movl (%r12), %r14d
movl 0x8(%r12), %eax
cmpl 0xc(%r12), %eax
jae 0x13ea3
movl %r14d, %r13d
jmp 0x14178
movq %rbp, 0x10(%rsp)
movl 0x4(%r12), %eax
leal (%rax,%rax), %edx
xorl %ecx, %ecx
cmpl %r14d, %edx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %r14d, %ecx
movl $0x21, %r8d
leaq 0x8d66(%rip), %rdx      # 0x1cc30
leal -0x2(%r8), %edi
decl %r8d
cmpl %ecx, (%rdx,%rdi,4)
ja 0x13eca
movl %r8d, %ecx
movl (%rdx,%rcx,4), %r13d
cvtsi2sd %r13, %xmm0
mulsd 0x6356(%rip), %xmm0     # 0x1a240
addsd 0x632e(%rip), %xmm0     # 0x1a220
cvttsd2si %xmm0, %rbp
cmpl %ebp, %eax
jae 0x14170
movq %rsi, 0x18(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %r15
movq %r15, %rdi
callq 0x33e0
movq %rax, %rbx
movq %rax, %rdi
movl $0xaa, %esi
movq %r15, %rdx
callq 0x3260
cmpl %r13d, %r14d
jae 0x13f63
movq 0x18(%r12), %rdi
leaq (,%r13,8), %r15
movq %r15, %rsi
callq 0x3430
movq %rax, 0x18(%r12)
movq 0x20(%r12), %rdi
leaq (%r15,%r15,2), %rsi
callq 0x3430
movq %rax, 0x20(%r12)
movl (%r12), %r14d
testl %r14d, %r14d
je 0x14142
leal -0x1(%r13), %edi
xorl %r8d, %r8d
movq 0x10(%r12), %r9
movl %r8d, %eax
shrl $0x4, %eax
movl (%r9,%rax,4), %edx
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %edx, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0x14104
movq 0x18(%r12), %rsi
movl %r8d, %r11d
movq (%rsi,%r11,8), %r10
movq 0x20(%r12), %rsi
leaq (%r11,%r11,2), %r11
movq 0x10(%rsi,%r11,8), %r14
movq %r14, 0x40(%rsp)
movupd (%rsi,%r11,8), %xmm0
movapd %xmm0, 0x30(%rsp)
btsl %ecx, %edx
movl %edx, (%r9,%rax,4)
movsbl (%r10), %ecx
testl %ecx, %ecx
je 0x13ff4
movb 0x1(%r10), %al
testb %al, %al
je 0x13ff6
leaq 0x2(%r10), %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 0x13fdd
jmp 0x13ff6
xorl %ecx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r13d
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, %r14d
shll %cl, %r14d
shrl $0x4, %eax
movl (%rbx,%rax,4), %r11d
testl %r11d, %r14d
jne 0x14050
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r13d, %esi
jb 0x14031
movl %r13d, %eax
subl %eax, %esi
movl %esi, %eax
shrl $0x4, %eax
movl (%rbx,%rax,4), %r11d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl $0x2, %r14d
shll %cl, %r14d
testl %r11d, %r14d
je 0x14025
notl %r14d
andl %r11d, %r14d
movl %r14d, (%rbx,%rax,4)
movl %esi, %edx
cmpl (%r12), %esi
jae 0x140d9
movl (%r9,%rax,4), %r9d
shrl %cl, %r9d
movq 0x18(%r12), %rsi
testb $0x3, %r9b
jne 0x140de
movq (%rsi,%rdx,8), %r11
movq %r10, (%rsi,%rdx,8)
movq 0x20(%r12), %rsi
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%rsi,%rdx,8), %r9
movq %r9, 0x70(%rsp)
movups (%rsi,%rdx,8), %xmm0
movaps %xmm0, 0x60(%rsp)
movq 0x40(%rsp), %r9
movq %r9, 0x10(%rsi,%rdx,8)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsi,%rdx,8)
movq 0x70(%rsp), %rdx
movq %rdx, 0x40(%rsp)
movapd 0x60(%rsp), %xmm0
movapd %xmm0, 0x30(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%r12), %r9
orl %edx, (%r9,%rax,4)
movq %r11, %r10
jmp 0x13fc9
movq 0x18(%r12), %rsi
movq %r10, (%rsi,%rdx,8)
movq 0x20(%r12), %rax
leaq (%rdx,%rdx,2), %rcx
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movapd 0x30(%rsp), %xmm0
movupd %xmm0, (%rax,%rcx,8)
movl (%r12), %r14d
incl %r8d
cmpl %r14d, %r8d
jne 0x13f73
cmpl %r13d, %r14d
jbe 0x14142
movq 0x18(%r12), %rdi
leaq (,%r13,8), %r15
movq %r15, %rsi
callq 0x3430
movq %rax, 0x18(%r12)
movq 0x20(%r12), %rdi
leaq (%r15,%r15,2), %rsi
callq 0x3430
movq %rax, 0x20(%r12)
movq 0x10(%r12), %rdi
callq 0x3060
movq %rbx, 0x10(%r12)
movl %r13d, (%r12)
movl 0x4(%r12), %eax
movl %eax, 0x8(%r12)
movl %ebp, 0xc(%r12)
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rsi
jmp 0x14178
movl %r14d, %r13d
movq 0x10(%rsp), %rbp
movsbl (%rsi), %edi
testl %edi, %edi
je 0x141a1
movb 0x1(%rsi), %al
testb %al, %al
je 0x141a3
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 0x1418a
jmp 0x141a3
xorl %edi, %edi
xorl %r10d, %r10d
movl %edi, %eax
xorl %edx, %edx
divl %r13d
movl %edx, %r9d
movq 0x10(%r12), %r8
movl %edx, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %eax
leal (%r9,%r9), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0x141d0
movl %r9d, %ebx
jmp 0x14299
movq %rbp, 0x10(%rsp)
leal -0x1(%r13), %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r9d, %r14d
movl %r13d, %ebx
movq %rsi, 0x18(%rsp)
movq %r8, 0x58(%rsp)
movq %r9, 0x50(%rsp)
movl %edx, 0x2c(%rsp)
movl %r14d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %ebp
leal (%r14,%r14), %r15d
andl $0x1e, %r15d
movl %ebp, %eax
movl %r15d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x14274
testb $0x1, %al
jne 0x14246
movq 0x18(%r12), %rax
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x3300
movl 0x2c(%rsp), %edx
xorl %r10d, %r10d
movq 0x50(%rsp), %r9
movq 0x58(%rsp), %r8
movq 0x18(%rsp), %rsi
testl %eax, %eax
je 0x14274
btl %r15d, %ebp
cmovbl %r14d, %ebx
addl %edx, %r14d
cmpl %r13d, %r14d
movl %r13d, %eax
cmovbl %r10d, %eax
subl %eax, %r14d
cmpl %r9d, %r14d
jne 0x141fa
movb $0x1, %al
movl %r13d, %ecx
cmpl %r13d, %ebx
movq 0x10(%rsp), %rbp
je 0x1428a
jmp 0x14299
movl %r15d, %ecx
shrl %cl, %ebp
testb $0x2, %bpl
sete %al
movl %ebx, %ecx
movl %r14d, %r9d
movq 0x10(%rsp), %rbp
cmpl %r13d, %ecx
cmovel %r9d, %ecx
testb %al, %al
cmovnel %r9d, %ecx
movl %ecx, %ebx
movl %ebx, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %edx
leal (%rbx,%rbx), %ecx
andl $0x1e, %ecx
shrl %cl, %edx
testb $0x2, %dl
jne 0x142b8
testb $0x1, %dl
jne 0x142ec
movl %ebx, %edx
jmp 0x1430d
movq 0x18(%r12), %rdi
movl %ebx, %edx
movq %rsi, (%rdi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%r12), %rcx
andl %esi, (%rcx,%rax,4)
movq 0x4(%r12), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%r12)
jmp 0x1430d
movq 0x18(%r12), %rdi
movl %ebx, %edx
movq %rsi, (%rdi,%rdx,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%r12), %rcx
andl %esi, (%rcx,%rax,4)
incl 0x4(%r12)
movl 0xc(%rsp), %esi
movslq 0x24(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x18(%rdi), %rcx
movq 0x20(%rcx), %rcx
leaq (%rdx,%rdx,2), %rdx
movl 0x28(%rsp), %r8d
movl %r8d, (%rcx,%rdx,8)
movl %esi, 0x4(%rcx,%rdx,8)
movq %rax, 0x8(%rcx,%rdx,8)
movq %rbp, 0x10(%rcx,%rdx,8)
incl 0x8(%rdi)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq