// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/hmmannot.c
// Function: update_name_list
static inline char **update_name_list(char *name, char **dict, size_t *_n, size_t *_m, kh_str_t *h_dict, uint32_t *index)
{
    khint32_t k;

    k = kh_str_get(h_dict, name);
    if (k < kh_end(h_dict)) {
        // name already exists
        *index = kh_val(h_dict, k);
        return dict;
    }

    // new name
    int absent;
    size_t n, m;
    n = *_n;
    m = *_m;
    if (n == m) {
        ++m;
        kroundup32(m);
        MYREALLOC(dict, m);
    }
    dict[n] = strdup(name);
    k = kh_str_put(h_dict, dict[n], &absent);
    kh_val(h_dict, k) = n;

    *_n = n + 1;
    *_m = m;
    *index = n;

    return dict;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x50(%rsp)
movq %r8, %r13
movq %rcx, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq %rsi, %rbx
movq %rdi, %r8
movq 0x10(%r13), %rax
xorl %edx, %edx
movl $0x0, %esi
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x4260
movl (%r13), %ecx
movl $0x1, %r9d
shll %cl, %r9d
movsbl (%r8), %eax
testl %eax, %eax
movq %rbx, 0x10(%rsp)
je 0x41eb
movb 0x1(%r8), %dl
testb %dl, %dl
je 0x41ed
leaq 0x2(%r8), %rsi
movl %eax, %edi
shll $0x5, %edi
subl %eax, %edi
movsbl %dl, %eax
addl %edi, %eax
movb (%rsi), %dl
incq %rsi
testb %dl, %dl
jne 0x41d4
jmp 0x41ed
xorl %eax, %eax
imull $0x9e3779b9, %eax, %r15d # imm = 0x9E3779B9
negb %cl
shrl %cl, %r15d
movq %r9, 0x20(%rsp)
leal -0x1(%r9), %ebp
movq 0x8(%r13), %rbx
movl %r15d, %r12d
movl %r12d, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %eax
btl %r12d, %eax
jae 0x4245
movl %r12d, %eax
leaq (%rax,%rax,2), %rax
movq 0x18(%rsp), %rcx
movq (%rcx,%rax,4), %rdi
movq %r8, %r14
movq %r8, %rsi
callq 0x2200
testl %eax, %eax
je 0x4253
incl %r12d
andl %ebp, %r12d
cmpl %r15d, %r12d
movq %r14, %r8
jne 0x4209
movq 0x10(%rsp), %rbx
xorl %edx, %edx
movq 0x20(%rsp), %rsi
jmp 0x4260
movl %r12d, %esi
movq 0x10(%rsp), %rbx
movq %r14, %r8
xorl %edx, %edx
cmpq $0x0, 0x18(%rsp)
je 0x4273
movb (%r13), %cl
movl $0x1, %edx
shll %cl, %edx
cmpl %edx, %esi
jae 0x428b
movl %esi, %eax
leaq (%rax,%rax,2), %rax
movq 0x18(%rsp), %rcx
movl 0x8(%rcx,%rax,4), %edx
jmp 0x467e
movq 0x38(%rsp), %rax
movq (%rax), %r14
movq 0x40(%rsp), %rax
movq (%rax), %rcx
cmpq %rcx, %r14
jne 0x42f4
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
leaq 0x8(,%rax,8), %rsi
incq %rax
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
movq %r8, %rbx
callq 0x22c0
movq %rbx, %r8
movq %rax, %rbx
jmp 0x42f9
movq %rcx, 0x30(%rsp)
movq %r8, %rdi
callq 0x23b0
movq %rax, %r15
movq %rbx, 0x10(%rsp)
movq %rax, (%rbx,%r14,8)
cmpq $0x0, 0x10(%r13)
je 0x4323
movb (%r13), %cl
movl $0x1, %r12d
shll %cl, %r12d
jmp 0x4326
xorl %r12d, %r12d
movq %r14, 0x20(%rsp)
movl 0x4(%r13), %eax
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
jae 0x4348
movl %r12d, %r14d
jmp 0x459a
leal 0x1(%r12), %ecx
bsrl %ecx, %esi
xorl %edx, %edx
cmpl $0x2, %ecx
cmovael %esi, %edx
andl %r12d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
movl $0x2, %ecx
cmovael %edx, %ecx
movl $0x1, %r8d
shll %cl, %r8d
movl $0x1, %r14d
movl %r8d, %edi
shrl %edi
movl %r8d, %esi
shrl $0x2, %esi
addl %edi, %esi
cmpl %esi, %eax
ja 0x4593
movl %ecx, 0xc(%rsp)
movq %r15, 0x48(%rsp)
movq 0x18(%r13), %rdi
movq %r8, 0x28(%rsp)
movl %r8d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
movl $0x4, %ebx
cmovael %eax, %ebx
movq %rbx, %rsi
callq 0x590d
movq %rax, %r15
xorl %ebp, %ebp
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2190
testq %r15, %r15
je 0x464a
movq 0x10(%r13), %rsi
testq %rsi, %rsi
je 0x43ed
movb (%r13), %cl
movl $0x1, %ebp
shll %cl, %ebp
cmpl 0x28(%rsp), %ebp
jae 0x442b
movq 0x18(%r13), %rdi
movl $0xc, %edx
movl 0xc(%rsp), %ecx
shlq %cl, %rdx
callq 0x5a10
movq %rax, %rbx
testq %rax, %rax
je 0x4416
movq %rbx, 0x10(%r13)
jmp 0x4422
movq 0x18(%r13), %rdi
movq %r15, %rsi
callq 0x5842
testq %rbx, %rbx
je 0x464a
testl %ebp, %ebp
je 0x4554
movq 0x28(%rsp), %rax
leal -0x1(%rax), %edi
movl $0x20, %eax
subl 0xc(%rsp), %eax
movl %ebp, %ecx
movq %rcx, 0x18(%rsp)
xorl %edx, %edx
movq 0x8(%r13), %rsi
movl %edx, %r11d
shrl $0x5, %r11d
movl (%rsi,%r11,4), %ebx
movl $0x1, %r12d
movl %edx, %ecx
shll %cl, %r12d
btl %edx, %ebx
jae 0x4546
movq 0x10(%r13), %rcx
leaq (%rdx,%rdx,2), %r9
movq (%rcx,%r9,4), %r10
movl 0x8(%rcx,%r9,4), %r8d
notl %r12d
andl %r12d, %ebx
movl %ebx, (%rsi,%r11,4)
movsbl (%r10), %ecx
testl %ecx, %ecx
je 0x44ba
movb 0x1(%r10), %sil
testb %sil, %sil
je 0x44bc
leaq 0x2(%r10), %r11
movl %ecx, %ebx
shll $0x5, %ebx
subl %ecx, %ebx
movsbl %sil, %ecx
addl %ebx, %ecx
movb (%r11), %sil
incq %r11
testb %sil, %sil
jne 0x44a0
jmp 0x44bc
xorl %ecx, %ecx
imull $0x9e3779b9, %ecx, %esi # imm = 0x9E3779B9
movl %eax, %ecx
shrl %cl, %esi
movl %esi, %r11d
shrl $0x5, %r11d
movl (%r15,%r11,4), %r12d
movl $0x1, %ebx
movl %esi, %ecx
shll %cl, %ebx
btl %esi, %r12d
jae 0x44e6
incl %esi
andl %edi, %esi
jmp 0x44c6
orl %ebx, %r12d
movl %r12d, (%r15,%r11,4)
movl %esi, %ecx
cmpl %ebp, %esi
jae 0x452b
movq 0x8(%r13), %rsi
testl %ebx, (%rsi,%r11,4)
je 0x452b
movq 0x10(%r13), %rsi
leaq (%rcx,%rcx,2), %rcx
movq (%rsi,%rcx,4), %r12
movl 0x8(%rsi,%rcx,4), %r9d
movq %r10, (%rsi,%rcx,4)
movl %r8d, 0x8(%rsi,%rcx,4)
notl %ebx
movq 0x8(%r13), %rcx
andl %ebx, (%rcx,%r11,4)
movb $0x1, %cl
movl %r9d, %r8d
movq %r12, %r10
jmp 0x453e
movq 0x10(%r13), %rsi
leaq (%rcx,%rcx,2), %rcx
movq %r10, (%rsi,%rcx,4)
movl %r8d, 0x8(%rsi,%rcx,4)
xorl %ecx, %ecx
testb %cl, %cl
jne 0x448b
incq %rdx
cmpq 0x18(%rsp), %rdx
jne 0x444d
cmpl 0x28(%rsp), %ebp
movl 0xc(%rsp), %ebx
jbe 0x4579
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdi
movl $0xc, %edx
movl %ebx, %ecx
shlq %cl, %rdx
callq 0x5a10
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rsi
movq 0x18(%r13), %rdi
callq 0x5842
movq %r15, 0x8(%r13)
movl %ebx, (%r13)
movq 0x48(%rsp), %r15
movb (%r13), %cl
shll %cl, %r14d
movsbl (%r15), %eax
testl %eax, %eax
je 0x45c8
movb 0x1(%r15), %cl
testb %cl, %cl
je 0x45ca
movq %r15, %rdx
addq $0x2, %rdx
movl %eax, %esi
shll $0x5, %esi
subl %eax, %esi
movsbl %cl, %eax
addl %esi, %eax
movb (%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0x45b1
jmp 0x45ca
xorl %eax, %eax
imull $0x9e3779b9, %eax, %ebp # imm = 0x9E3779B9
xorl %ecx, %ecx
subb (%r13), %cl
shrl %cl, %ebp
decl %r14d
movq 0x8(%r13), %rbx
movl %ebp, %r12d
movl %r12d, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %eax
btl %r12d, %eax
jae 0x4617
movq 0x10(%r13), %rax
movl %r12d, %ecx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,4), %rdi
movq %r15, %rsi
callq 0x2200
testl %eax, %eax
je 0x4617
incl %r12d
andl %r14d, %r12d
cmpl %ebp, %r12d
jne 0x45e2
movl %r12d, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %esi
movl $0x1, %edx
movl %r12d, %ecx
shll %cl, %edx
btl %r12d, %esi
jb 0x464a
movq 0x10(%r13), %rcx
movl %r12d, %esi
leaq (%rsi,%rsi,2), %rsi
movq %r15, (%rcx,%rsi,4)
movq 0x8(%r13), %rcx
orl %edx, (%rcx,%rax,4)
incl 0x4(%r13)
movq 0x10(%r13), %rax
movl %r12d, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x20(%rsp), %rdx
movl %edx, 0x8(%rax,%rcx,4)
movq %rdx, %rax
incq %rax
movq 0x38(%rsp), %rcx
movq %rax, (%rcx)
movq 0x40(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rcx, (%rax)
movq 0x10(%rsp), %rbx
movq 0x50(%rsp), %rax
movl %edx, (%rax)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq