// File: /workspace/github_cpp_makefile_star2_O3/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/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 $0x68, %rsp
movq %r9, %rbp
movq %r8, 0x8(%rsp)
movl %ecx, 0x20(%rsp)
movl %edx, 0x1c(%rsp)
movq %rsi, %rbx
movq %rdi, %r13
movl 0x8(%rdi), %r14d
cmpl 0xc(%rdi), %r14d
jne 0x1ae65
leal (%r14,%r14), %eax
testl %r14d, %r14d
movl $0x10, %ecx
cmovnel %eax, %ecx
movl %ecx, 0xc(%r13)
movq 0x10(%r13), %rdi
movslq %ecx, %rsi
shlq $0x3, %rsi
callq 0x3610
movq %rax, %r12
movq %rax, 0x10(%r13)
movl 0x8(%r13), %r14d
jmp 0x1ae69
movq 0x10(%r13), %r12
movq %rbx, %rdi
callq 0x34b0
movslq %r14d, %rcx
movq %rax, (%r12,%rcx,8)
movq 0x10(%r13), %rax
movq 0x18(%r13), %r14
movq (%rax,%rcx,8), %rsi
movl (%r14), %r15d
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
movq %r13, 0x28(%rsp)
jae 0x1ae9e
movl %r15d, %r13d
jmp 0x1b124
movq %rbp, (%rsp)
movl 0x4(%r14), %eax
leal (%rax,%rax), %edx
xorl %ecx, %ecx
cmpl %r15d, %edx
sbbl %ecx, %ecx
orl $0x1, %ecx
addl %r15d, %ecx
movl $0x21, %r8d
leaq 0xb6dd(%rip), %rdx      # 0x265a0
leal -0x2(%r8), %edi
decl %r8d
cmpl %ecx, (%rdx,%rdi,4)
ja 0x1aec3
movl %r8d, %ecx
movl (%rdx,%rcx,4), %r13d
cvtsi2sd %r13, %xmm0
mulsd 0x86ed(%rip), %xmm0     # 0x235d0
addsd 0x860d(%rip), %xmm0     # 0x234f8
cvttsd2si %xmm0, %rbp
cmpl %ebp, %eax
jae 0x1b11d
movq %rsi, 0x10(%rsp)
movl %r13d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %r12
movq %r12, %rdi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x3060
cmpl %r13d, %r15d
jae 0x1af57
movq 0x18(%r14), %rdi
leaq (,%r13,8), %rsi
callq 0x3610
movq %rax, 0x18(%r14)
movq 0x20(%r14), %rdi
movq %r13, %rsi
shlq $0x4, %rsi
callq 0x3610
movq %rax, 0x20(%r14)
movl (%r14), %r15d
testl %r15d, %r15d
je 0x1b0f6
leal -0x1(%r13), %edi
xorl %r8d, %r8d
movq 0x10(%r14), %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 0x1b0bc
movq 0x18(%r14), %rsi
movl %r8d, %r11d
movq (%rsi,%r11,8), %r10
movq 0x20(%r14), %rsi
shlq $0x4, %r11
movupd (%rsi,%r11), %xmm0
movapd %xmm0, 0x30(%rsp)
btsl %ecx, %edx
movl %edx, (%r9,%rax,4)
movsbl (%r10), %ecx
testl %ecx, %ecx
je 0x1afdb
movb 0x1(%r10), %al
testb %al, %al
je 0x1afdd
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 0x1afc4
jmp 0x1afdd
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, %r15d
shll %cl, %r15d
shrl $0x4, %eax
movl (%rbx,%rax,4), %r11d
testl %r11d, %r15d
jne 0x1b037
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r13d, %esi
jb 0x1b018
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, %r15d
shll %cl, %r15d
testl %r11d, %r15d
je 0x1b00c
notl %r15d
andl %r11d, %r15d
movl %r15d, (%rbx,%rax,4)
movl %esi, %edx
cmpl (%r14), %esi
jae 0x1b09e
movl (%r9,%rax,4), %r9d
shrl %cl, %r9d
movq 0x18(%r14), %rsi
testb $0x3, %r9b
jne 0x1b0a2
movq (%rsi,%rdx,8), %r11
movq %r10, (%rsi,%rdx,8)
movq 0x20(%r14), %rsi
shlq $0x4, %rdx
movups (%rsi,%rdx), %xmm0
movaps %xmm0, 0x50(%rsp)
movaps 0x30(%rsp), %xmm0
movups %xmm0, (%rsi,%rdx)
movapd 0x50(%rsp), %xmm0
movapd %xmm0, 0x30(%rsp)
movl $0x1, %edx
shll %cl, %edx
movq 0x10(%r14), %r9
orl %edx, (%r9,%rax,4)
movq %r11, %r10
jmp 0x1afb0
movq 0x18(%r14), %rsi
movq %r10, (%rsi,%rdx,8)
movq 0x20(%r14), %rax
shlq $0x4, %rdx
movapd 0x30(%rsp), %xmm0
movupd %xmm0, (%rax,%rdx)
movl (%r14), %r15d
incl %r8d
cmpl %r15d, %r8d
jne 0x1af67
cmpl %r13d, %r15d
jbe 0x1b0f6
movq 0x18(%r14), %rdi
leaq (,%r13,8), %rsi
callq 0x3610
movq %rax, 0x18(%r14)
movq 0x20(%r14), %rdi
movq %r13, %rsi
shlq $0x4, %rsi
callq 0x3610
movq %rax, 0x20(%r14)
movq 0x10(%r14), %rdi
callq 0x32c0
movq %rbx, 0x10(%r14)
movl %r13d, (%r14)
movl 0x4(%r14), %eax
movl %eax, 0x8(%r14)
movl %ebp, 0xc(%r14)
movq (%rsp), %rbp
movq 0x10(%rsp), %rsi
jmp 0x1b124
movl %r15d, %r13d
movq (%rsp), %rbp
movsbl (%rsi), %edi
testl %edi, %edi
je 0x1b14d
movb 0x1(%rsi), %al
testb %al, %al
je 0x1b14f
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 0x1b136
jmp 0x1b14f
xorl %edi, %edi
xorl %r10d, %r10d
movl %edi, %eax
xorl %edx, %edx
divl %r13d
movl %edx, %r9d
movq 0x10(%r14), %r8
movl %edx, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %eax
leal (%r9,%r9), %ecx
shrl %cl, %eax
testb $0x2, %al
je 0x1b17b
movl %r9d, %ebx
jmp 0x1b240
movq %rbp, (%rsp)
leal -0x1(%r13), %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r9d, %r15d
movl %r13d, %ebx
movq %rsi, 0x10(%rsp)
movq %r8, 0x48(%rsp)
movq %r9, 0x40(%rsp)
movl %edx, 0x24(%rsp)
movl %r15d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %ebp
leal (%r15,%r15), %r12d
andl $0x1e, %r12d
movl %ebp, %eax
movl %r12d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x1b21c
testb $0x1, %al
jne 0x1b1ef
movq 0x18(%r14), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %rdi
callq 0x34e0
movl 0x24(%rsp), %edx
xorl %r10d, %r10d
movq 0x40(%rsp), %r9
movq 0x48(%rsp), %r8
movq 0x10(%rsp), %rsi
testl %eax, %eax
je 0x1b21c
btl %r12d, %ebp
cmovbl %r15d, %ebx
addl %edx, %r15d
cmpl %r13d, %r15d
movl %r13d, %eax
cmovbl %r10d, %eax
subl %eax, %r15d
cmpl %r9d, %r15d
jne 0x1b1a4
movb $0x1, %al
movl %r13d, %ecx
cmpl %r13d, %ebx
movq (%rsp), %rbp
je 0x1b231
jmp 0x1b240
movl %r12d, %ecx
shrl %cl, %ebp
testb $0x2, %bpl
sete %al
movl %ebx, %ecx
movl %r15d, %r9d
movq (%rsp), %rbp
cmpl %r13d, %ecx
cmovel %r9d, %ecx
testb %al, %al
cmovnel %r9d, %ecx
movl %ecx, %ebx
movl %ebx, %edx
shrl $0x4, %edx
movl (%r8,%rdx,4), %eax
leal (%rbx,%rbx), %ecx
andl $0x1e, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x1b262
testb $0x1, %al
movq 0x28(%rsp), %rdi
jne 0x1b29c
movl %ebx, %eax
jmp 0x1b2ba
movq 0x18(%r14), %rdi
movl %ebx, %eax
movq %rsi, (%rdi,%rax,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%r14), %rcx
andl %esi, (%rcx,%rdx,4)
movq 0x4(%r14), %xmm0
pcmpeqd %xmm1, %xmm1
psubd %xmm1, %xmm0
movq %xmm0, 0x4(%r14)
movq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdi
jmp 0x1b2bf
movq 0x18(%r14), %r8
movl %ebx, %eax
movq %rsi, (%r8,%rax,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%r14), %rcx
andl %esi, (%rcx,%rdx,4)
incl 0x4(%r14)
movq 0x8(%rsp), %rsi
movl 0x1c(%rsp), %ecx
movzwl 0x20(%rsp), %edx
shlq $0x20, %rdx
orq %rcx, %rdx
shlq $0x30, %rsi
orq %rdx, %rsi
movq 0x18(%rdi), %rcx
movq 0x20(%rcx), %rcx
shlq $0x4, %rax
movq %rsi, (%rcx,%rax)
movq %rbp, 0x8(%rcx,%rax)
incl 0x8(%rdi)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq