// File: /workspace/github_c_makefile_star2_O2/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 $0x68, %rsp
movq %r9, %r14
movq %r8, %rbp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x4292
movq 0x10(%rbp), %rdx
testq %rdx, %rdx
je 0x3e2c
movb (%rbp), %cl
movl %eax, %esi
shrl %cl, %esi
testl %esi, %esi
je 0x3f3e
movq %rbp, 0x18(%rsp)
movq (%r13), %rbp
movq (%r12), %rax
cmpq %rax, %rbp
movq %r13, 0x28(%rsp)
jne 0x3e91
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, 0x58(%rsp)
movq %r15, %rdi
callq 0x22c0
movq %rax, %r15
jmp 0x3e96
movq %rax, 0x58(%rsp)
movq %rbx, %rdi
callq 0x23b0
movq %rbp, 0x20(%rsp)
movq %rax, 0x40(%rsp)
movq %rax, (%r15,%rbp,8)
movq 0x18(%rsp), %r13
cmpq $0x0, 0x10(%r13)
pushq $0x1
popq %rbp
je 0x3ec5
movb (%r13), %cl
movl %ebp, %edi
shll %cl, %edi
jmp 0x3ec7
xorl %edi, %edi
movl 0x4(%r13), %eax
movl %edi, %ecx
shrl %ecx
movl %edi, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movq %r14, 0x50(%rsp)
movq %r15, 0x38(%rsp)
movq %r12, 0x30(%rsp)
jae 0x3ef0
movl %edi, %eax
jmp 0x4113
leal 0x1(%rdi), %ecx
xorl %edx, %edx
movl %ecx, %esi
cmpl $0x2, %esi
jb 0x3f02
shrl %esi
incl %edx
jmp 0x3ef7
leal -0x1(%rcx), %esi
andl %ecx, %esi
cmpl $0x1, %esi
sbbl $-0x1, %edx
cmpl $0x3, %edx
pushq $0x2
popq %rcx
cmovael %edx, %ecx
movl %ebp, %r9d
movl %ecx, 0xc(%rsp)
shll %cl, %r9d
movl %r9d, %ecx
shrl %ecx
movl %r9d, %esi
shrl $0x2, %esi
addl %ecx, %esi
cmpl %esi, %eax
jbe 0x3f4e
movb (%r13), %cl
movl %ebp, %eax
shll %cl, %eax
jmp 0x4113
movl %eax, %eax
imulq $0xc, %rax, %rax
movl 0x8(%rdx,%rax), %r8d
jmp 0x420f
movq %rdi, (%rsp)
movq 0x18(%r13), %rdi
movq %r9, 0x10(%rsp)
movl %r9d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
pushq $0x4
popq %rbx
cmovael %eax, %ebx
movq %rbx, %rsi
callq 0x52d8
movq %rax, %r12
xorl %r15d, %r15d
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2190
testq %r12, %r12
je 0x4224
movq 0x10(%r13), %rsi
testq %rsi, %rsi
movq %r13, %r9
je 0x3fad
movb (%r9), %cl
movl %ebp, %r15d
shll %cl, %r15d
cmpl 0x10(%rsp), %r15d
jae 0x3fd3
movq 0x18(%r9), %rdi
pushq $0xc
popq %rdx
movl 0xc(%rsp), %ecx
shlq %cl, %rdx
movq %r9, %rbx
callq 0x53e0
testq %rax, %rax
je 0x4238
movq %rax, 0x10(%rbx)
movq %rbx, %r9
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r14d
pushq $0x20
popq %rax
subl 0xc(%rsp), %eax
movl %eax, 0x4c(%rsp)
movl %r15d, %eax
movq %rax, (%rsp)
xorl %ecx, %ecx
cmpq (%rsp), %rcx
je 0x40c8
movq 0x8(%r9), %r15
movl %ecx, %eax
shrl $0x5, %eax
movl (%r15,%rax,4), %edx
movl %ebp, %esi
shll %cl, %esi
btl %ecx, %edx
jae 0x40c0
movq 0x10(%r9), %r8
movq %rcx, 0x60(%rsp)
imulq $0xc, %rcx, %rdi
movq (%r8,%rdi), %rbx
movl 0x8(%r8,%rdi), %r13d
notl %esi
andl %esi, %edx
movl %edx, (%r15,%rax,4)
movq %rbx, %rdi
callq 0x4c2f
imull $0x9e3779b9, %eax, %eax # imm = 0x9E3779B9
movl 0x4c(%rsp), %ecx
shrl %cl, %eax
movl %eax, %edx
shrl $0x5, %edx
movl (%r12,%rdx,4), %edi
movl %ebp, %esi
movl %eax, %ecx
shll %cl, %esi
btl %eax, %edi
jae 0x4061
incl %eax
andl %r14d, %eax
jmp 0x4046
orl %esi, %edi
movl %edi, (%r12,%rdx,4)
movl %eax, %ecx
cmpl (%rsp), %eax
jae 0x40a5
movq 0x18(%rsp), %r9
movq 0x10(%r9), %rax
testl %esi, (%r15,%rdx,4)
je 0x40ae
imulq $0xc, %rcx, %rcx
movq (%rax,%rcx), %rdi
movl 0x8(%rax,%rcx), %r8d
movq %rbx, (%rax,%rcx)
movl %r13d, 0x8(%rax,%rcx)
notl %esi
movq 0x8(%r9), %r15
andl %esi, (%r15,%rdx,4)
movl %r8d, %r13d
movq %rdi, %rbx
jmp 0x4032
movq 0x18(%rsp), %r9
movq 0x10(%r9), %rax
imulq $0xc, %rcx, %rcx
movq %rbx, (%rax,%rcx)
movl %r13d, 0x8(%rax,%rcx)
movq 0x60(%rsp), %rcx
incq %rcx
jmp 0x3ff0
movq (%rsp), %rax
cmpl 0x10(%rsp), %eax
jbe 0x40f2
movq 0x10(%r9), %rsi
movq 0x18(%r9), %rdi
movl 0xc(%rsp), %ecx
pushq $0xc
popq %rdx
shlq %cl, %rdx
callq 0x53e0
movq 0x18(%rsp), %r9
movq %rax, 0x10(%r9)
movq 0x8(%r9), %rsi
movq 0x18(%r9), %rdi
movq %r9, %r13
callq 0x51e3
movq %r12, 0x8(%r13)
movl 0xc(%rsp), %eax
movl %eax, (%r13)
movq 0x10(%rsp), %rax
decl %eax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rdi
callq 0x4c2f
imull $0x9e3779b9, %eax, %r12d # imm = 0x9E3779B9
xorl %ecx, %ecx
subb (%r13), %cl
shrl %cl, %r12d
movq 0x8(%r13), %rax
movq %rax, (%rsp)
movl %r12d, %ebx
movq %r13, %rdi
movl %ebx, %r14d
shrl $0x5, %r14d
movq (%rsp), %rax
movl (%rax,%r14,4), %r15d
movl %ebp, %r13d
movl %ebx, %ecx
shll %cl, %r13d
btl %ebx, %r15d
jae 0x41a4
movq 0x10(%rdi), %rax
movl %ebx, %ecx
imulq $0xc, %rcx, %rcx
movq (%rax,%rcx), %rdi
movq 0x40(%rsp), %rsi
callq 0x2200
testl %eax, %eax
je 0x41a9
incl %ebx
andl 0x10(%rsp), %ebx
cmpl %r12d, %ebx
movq 0x18(%rsp), %rdi
jne 0x4142
movl %r12d, %ecx
shll %cl, %ebp
movl %r12d, %r14d
shrl $0x5, %r14d
movq (%rsp), %rax
movl (%rax,%r14,4), %r15d
movl %ebp, %r13d
jmp 0x41b1
movl %ebx, %r12d
jmp 0x41b1
movl %ebx, %r12d
movq 0x18(%rsp), %rdi
testl %r15d, %r13d
movq 0x38(%rsp), %r15
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %r8
jne 0x41e9
movq 0x10(%rdi), %rax
movl %r12d, %ecx
imulq $0xc, %rcx, %rcx
movq 0x40(%rsp), %r9
movq %r9, (%rax,%rcx)
movq 0x8(%rdi), %rax
orl %r13d, (%rax,%r14,4)
incl 0x4(%rdi)
movq 0x50(%rsp), %r14
movq 0x10(%rdi), %rax
movl %r12d, %ecx
imulq $0xc, %rcx, %rcx
movl %r8d, 0x8(%rax,%rcx)
movq %r8, %rax
incq %rax
movq %rax, (%rsi)
movq 0x58(%rsp), %rax
movq %rax, (%rdx)
movl %r8d, (%r14)
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x38(%rsp), %r15
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rsi
movq %r13, %rdi
jmp 0x4256
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0x51e3
movq 0x38(%rsp), %r15
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rsi
movq %rbx, %rdi
movq 0x20(%rsp), %r8
movq (%rsp), %r12
jmp 0x41ee