// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movq %r9, %r14
movl %r8d, %r12d
movl %ecx, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movq %rsi, %rbx
movq %rdi, %r15
movl 0xc(%rdi), %eax
cmpl %eax, 0x8(%rdi)
jne 0x1a812
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovnel %ecx, %eax
movl %eax, 0xc(%r15)
movq 0x10(%r15), %rdi
movslq %eax, %rsi
shlq $0x3, %rsi
callq 0x3610
movq %rax, 0x10(%r15)
movq %rbx, %rdi
callq 0x34b0
movq 0x10(%r15), %rcx
movslq 0x8(%r15), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x10(%r15), %rax
movq 0x18(%r15), %rdi
movq (%rax,%rdx,8), %r9
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
movq %rdi, 0x20(%rsp)
jb 0x1a861
movl (%rdi), %eax
movl 0x4(%rdi), %ecx
addl %ecx, %ecx
xorl %esi, %esi
cmpl %eax, %ecx
sbbl %esi, %esi
orl $0x1, %esi
addl %eax, %esi
movq %r9, %rbx
callq 0x1b71a
movq %rbx, %r9
movq 0x20(%rsp), %rdi
movl (%rdi), %r8d
movsbl (%r9), %esi
testl %esi, %esi
movq %r15, 0x18(%rsp)
je 0x1a894
movb 0x1(%r9), %al
testb %al, %al
je 0x1a896
leaq 0x2(%r9), %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 0x1a87d
jmp 0x1a896
xorl %esi, %esi
xorl %ebx, %ebx
movl %esi, %eax
xorl %edx, %edx
divl %r8d
movl %edx, %r11d
movq 0x10(%rdi), %r15
movl %edx, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %eax
leal (%r11,%r11), %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x1a993
movq %r12, 0x28(%rsp)
movq %r14, 0x30(%rsp)
leal -0x1(%r8), %ecx
movl %esi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %r11d, %ebp
movl %r8d, %r13d
movq %r8, 0x40(%rsp)
movq %r11, 0x38(%rsp)
movl %edx, 0x14(%rsp)
movl %ebp, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %r12d
leal (,%rbp,2), %r14d
andl $0x1e, %r14d
movl %r12d, %eax
movl %r14d, %ecx
shrl %cl, %eax
testb $0x2, %al
jne 0x1a95c
testb $0x1, %al
jne 0x1a93d
movq 0x18(%rdi), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rdi
movq %r9, %rsi
movq %r9, %rbx
callq 0x34e0
movl 0x14(%rsp), %edx
movq 0x38(%rsp), %r11
movq 0x40(%rsp), %r8
movq %rbx, %r9
xorl %ebx, %ebx
movq 0x20(%rsp), %rdi
testl %eax, %eax
je 0x1a95c
btl %r14d, %r12d
cmovbl %ebp, %r13d
addl %edx, %ebp
cmpl %r8d, %ebp
movl %r8d, %eax
cmovbl %ebx, %eax
subl %eax, %ebp
movl %r13d, %eax
cmpl %r11d, %ebp
jne 0x1a8e7
jmp 0x1a95f
movl %r8d, %eax
movl %eax, %r11d
cmpl %r8d, %eax
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r12
jne 0x1a993
movl %ebp, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %eax
leal (,%rbp,2), %ecx
shrl %cl, %eax
cmpl %r8d, %r13d
cmovel %ebp, %r13d
testb $0x2, %al
cmovel %ebp, %r13d
movl %r13d, %r11d
movl %r11d, %edx
shrl $0x4, %edx
movl (%r15,%rdx,4), %esi
leal (%r11,%r11), %ecx
andl $0x1e, %ecx
shrl %cl, %esi
movl %r11d, %eax
testb $0x2, %sil
jne 0x1a9d7
testb $0x1, %sil
movq 0x18(%rsp), %r8
je 0x1a9fa
movq 0x18(%rdi), %rsi
movq %r9, (%rsi,%rax,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %rcx
andl %esi, (%rcx,%rdx,4)
incl 0x4(%rdi)
jmp 0x1a9fa
movq 0x18(%rdi), %rsi
movq %r9, (%rsi,%rax,8)
movl $0x3, %esi
shll %cl, %esi
notl %esi
movq 0x10(%rdi), %rcx
andl %esi, (%rcx,%rdx,4)
incl 0x4(%rdi)
incl 0x8(%rdi)
movq 0x18(%rsp), %r8
movl 0xc(%rsp), %ecx
movzwl 0x10(%rsp), %edx
shlq $0x20, %rdx
orq %rcx, %rdx
shlq $0x30, %r12
orq %rdx, %r12
movq 0x18(%r8), %rcx
movq 0x20(%rcx), %rcx
shlq $0x4, %rax
movq %r12, (%rcx,%rax)
movq %r14, 0x8(%rcx,%rax)
incl 0x8(%r8)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq