// File: /workspace/github_c_makefile_star2_O3/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, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %r12
movq %rdi, %r8
movq 0x10(%r13), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x43c1
movl (%r13), %ecx
movl $0x1, %edi
shll %cl, %edi
movsbl (%r8), %eax
testl %eax, %eax
movq %r12, 0x18(%rsp)
je 0x4342
movb 0x1(%r8), %r9b
testb %r9b, %r9b
je 0x4344
leaq 0x2(%r8), %rdx
movl %eax, %esi
shll $0x5, %esi
subl %eax, %esi
movsbl %r9b, %eax
addl %esi, %eax
movb (%rdx), %r9b
incq %rdx
testb %r9b, %r9b
jne 0x4328
jmp 0x4344
xorl %eax, %eax
imull $0x9e3779b9, %eax, %r15d # imm = 0x9E3779B9
movl %ecx, 0x4(%rsp)
negb %cl
shrl %cl, %r15d
movq %rdi, 0x10(%rsp)
leal -0x1(%rdi), %ebp
movq 0x8(%r13), %rbx
movl %r15d, %r12d
movl %r12d, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %eax
btl %r12d, %eax
jae 0x439f
movl %r12d, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rsp), %rcx
movq (%rcx,%rax,4), %rdi
movq %r8, %r14
movq %r8, %rsi
callq 0x2200
testl %eax, %eax
je 0x43a6
incl %r12d
andl %ebp, %r12d
cmpl %r15d, %r12d
movq %r14, %r8
jne 0x4363
movq 0x10(%rsp), %rdx
jmp 0x43ac
movl %r12d, %edx
movq %r14, %r8
movl %edx, %eax
movl 0x4(%rsp), %ecx
shrl %cl, %eax
testl %eax, %eax
movq 0x18(%rsp), %r12
je 0x44cf
movq 0x28(%rsp), %rax
movq (%rax), %rbp
movq 0x30(%rsp), %rax
movq (%rax), %rax
cmpq %rax, %rbp
jne 0x442a
movq %rbp, %rax
shrq %rax
orq %rbp, %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, 0x10(%rsp)
movq %r12, %rdi
movq %r8, %rbx
callq 0x22c0
movq %rbx, %r8
movq %rax, %r12
jmp 0x442f
movq %rax, 0x10(%rsp)
movq %r8, %rdi
callq 0x23b0
movq %rax, %rsi
movq %rax, (%r12,%rbp,8)
cmpq $0x0, 0x10(%r13)
je 0x4454
movb (%r13), %cl
movl $0x1, %r11d
shll %cl, %r11d
jmp 0x4457
xorl %r11d, %r11d
movl 0x4(%r13), %eax
movl %r11d, %ecx
shrl %ecx
movl %r11d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movq %r12, 0x18(%rsp)
movq %rbp, 0x48(%rsp)
jae 0x447e
movl %r11d, %r8d
jmp 0x46c6
leal 0x1(%r11), %ecx
bsrl %ecx, %edi
xorl %edx, %edx
cmpl $0x2, %ecx
cmovael %edi, %edx
andl %r11d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
movl $0x2, %ecx
cmovael %edx, %ecx
movl $0x1, %r9d
shll %cl, %r9d
movl $0x1, %r8d
movl %r9d, %r10d
shrl %r10d
movl %r9d, %edi
shrl $0x2, %edi
addl %r10d, %edi
cmpl %edi, %eax
jbe 0x44e3
movb (%r13), %cl
shll %cl, %r8d
jmp 0x46c6
movl %edx, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rsp), %rcx
movl 0x8(%rcx,%rax,4), %ebp
jmp 0x4804
movq %r11, 0x20(%rsp)
movl %ecx, 0x4(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x18(%r13), %rdi
movq %r9, 0x8(%rsp)
movl %r9d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
movl $0x4, %r14d
cmovael %eax, %r14d
movq %r14, %rsi
callq 0x5a6d
movq %rax, %r15
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x2190
testq %r15, %r15
je 0x47d6
movq 0x10(%r13), %rsi
testq %rsi, %rsi
je 0x454d
movb (%r13), %cl
movl $0x1, %ebx
shll %cl, %ebx
cmpl 0x8(%rsp), %ebx
jae 0x4577
movq 0x18(%r13), %rdi
movl $0xc, %edx
movl 0x4(%rsp), %ecx
shlq %cl, %rdx
callq 0x5b75
testq %rax, %rax
je 0x47ca
movq %rax, 0x10(%r13)
testl %ebx, %ebx
je 0x46a3
movq 0x8(%rsp), %rax
leal -0x1(%rax), %edi
movl $0x20, %eax
subl 0x4(%rsp), %eax
movl %ebx, %r8d
xorl %edx, %edx
movq 0x8(%r13), %r10
movl %edx, %esi
shrl $0x5, %esi
movl (%r10,%rsi,4), %ebx
movl $0x1, %ebp
movl %edx, %ecx
shll %cl, %ebp
btl %edx, %ebx
jae 0x4673
movq 0x10(%r13), %rcx
leaq (%rdx,%rdx,2), %r9
movq (%rcx,%r9,4), %r11
movl 0x8(%rcx,%r9,4), %r9d
notl %ebp
andl %ebp, %ebx
movl %ebx, (%r10,%rsi,4)
movsbl (%r11), %ecx
testl %ecx, %ecx
je 0x45f4
movb 0x1(%r11), %sil
testb %sil, %sil
je 0x45f6
leaq 0x2(%r11), %rbx
movl %ecx, %ebp
shll $0x5, %ebp
subl %ecx, %ebp
movsbl %sil, %ecx
addl %ebp, %ecx
movb (%rbx), %sil
incq %rbx
testb %sil, %sil
jne 0x45da
jmp 0x45f6
xorl %ecx, %ecx
imull $0x9e3779b9, %ecx, %esi # imm = 0x9E3779B9
movl %eax, %ecx
shrl %cl, %esi
movl %esi, %r14d
shrl $0x5, %r14d
movl (%r15,%r14,4), %ebp
movl $0x1, %ebx
movl %esi, %ecx
shll %cl, %ebx
btl %esi, %ebp
jae 0x461f
incl %esi
andl %edi, %esi
jmp 0x4600
orl %ebx, %ebp
movl %ebp, (%r15,%r14,4)
cmpl %r8d, %esi
jae 0x4660
movq 0x10(%r13), %rcx
testl %ebx, (%r10,%r14,4)
je 0x4664
movl %esi, %esi
leaq (%rsi,%rsi,2), %rsi
movq (%rcx,%rsi,4), %r12
movl 0x8(%rcx,%rsi,4), %ebp
movq %r11, (%rcx,%rsi,4)
movl %r9d, 0x8(%rcx,%rsi,4)
notl %ebx
movq 0x8(%r13), %r10
andl %ebx, (%r10,%r14,4)
movl %ebp, %r9d
movq %r12, %r11
jmp 0x45c5
movq 0x10(%r13), %rcx
movl %esi, %esi
leaq (%rsi,%rsi,2), %rsi
movq %r11, (%rcx,%rsi,4)
movl %r9d, 0x8(%rcx,%rsi,4)
incq %rdx
cmpq %r8, %rdx
jne 0x458d
cmpl 0x8(%rsp), %r8d
jbe 0x46a3
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdi
movl $0xc, %edx
movl 0x4(%rsp), %ecx
shlq %cl, %rdx
callq 0x5b75
movq %rax, 0x10(%r13)
movq 0x8(%r13), %rsi
movq 0x18(%r13), %rdi
callq 0x59a7
movq %r15, 0x8(%r13)
movl 0x4(%rsp), %eax
movl %eax, (%r13)
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %r8
movsbl (%rsi), %eax
testl %eax, %eax
je 0x46f2
movb 0x1(%rsi), %cl
testb %cl, %cl
je 0x46f4
movq %rsi, %rdx
addq $0x2, %rdx
movl %eax, %edi
shll $0x5, %edi
subl %eax, %edi
movsbl %cl, %eax
addl %edi, %eax
movb (%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0x46db
jmp 0x46f4
xorl %eax, %eax
imull $0x9e3779b9, %eax, %edx # imm = 0x9E3779B9
xorl %ecx, %ecx
subb (%r13), %cl
shrl %cl, %edx
decl %r8d
movq 0x8(%r13), %rax
movq %rax, 0x8(%rsp)
movl %edx, %ebx
movq %r13, 0x38(%rsp)
movl %ebx, %r14d
shrl $0x5, %r14d
movq 0x8(%rsp), %rax
movl (%rax,%r14,4), %eax
movl $0x1, %r15d
movl %ebx, %ecx
shll %cl, %r15d
btl %ebx, %eax
jae 0x478d
movl %eax, 0x4(%rsp)
movq %rdx, %rbp
movq %r8, %r12
movq 0x10(%r13), %rax
movl %ebx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,4), %rdi
movq %rsi, %r13
callq 0x2200
testl %eax, %eax
je 0x4791
incl %ebx
movq %r12, %r8
andl %r8d, %ebx
movq %rbp, %rdx
cmpl %edx, %ebx
movq %r13, %rsi
movq 0x38(%rsp), %r13
jne 0x4715
movl %edx, %r14d
shrl $0x5, %r14d
movl $0x1, %r15d
movl %edx, %ecx
shll %cl, %r15d
movq 0x8(%rsp), %rax
movl (%rax,%r14,4), %eax
jmp 0x479f
movl %ebx, %edx
jmp 0x479f
movl %ebx, %edx
movq %r13, %rsi
movq 0x38(%rsp), %r13
movl 0x4(%rsp), %eax
testl %eax, %r15d
movq 0x18(%rsp), %r12
movq 0x48(%rsp), %rbp
jne 0x47db
movq 0x10(%r13), %rax
movl %edx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq %rsi, (%rax,%rcx,4)
movq 0x8(%r13), %rax
orl %r15d, (%rax,%r14,4)
incl 0x4(%r13)
jmp 0x47db
movq 0x18(%r13), %rdi
movq %r15, %rsi
callq 0x59a7
movq 0x20(%rsp), %rdx
movq 0x10(%r13), %rax
movl %edx, %ecx
leaq (%rcx,%rcx,2), %rcx
movl %ebp, 0x8(%rax,%rcx,4)
movq %rbp, %rax
incq %rax
movq 0x28(%rsp), %rcx
movq %rax, (%rcx)
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, (%rax)
movq 0x50(%rsp), %rax
movl %ebp, (%rax)
movq %r12, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq