// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]yahs/sdict.c
// Function: asm_put
uint32_t asm_put(asm_dict_t *d, const char *name, uint64_t len, uint64_t gap, uint32_t n, uint32_t s, uint32_t gn, 
        uint32_t *gs, uint32_t *gsize, uint32_t *gcomp, uint32_t *gtype, uint32_t *glink, uint32_t *gevid)
{
    if (!name) 
        return UINT32_MAX;
    sdhash_t *h;
    khint_t k;
    int absent;

    h = d->h;
    k = kh_put(sdict, h, name, &absent);
    if (absent) {
        sd_aseq_t *a;
        if (d->n == d->m) {
            d->m = d->m? d->m<<1 : 16;
            d->s = (sd_aseq_t *) realloc(d->s, d->m * sizeof(sd_aseq_t));
        }
        a = &d->s[d->n];
        a->len = len;
        a->gap = gap;
        a->n = n;
        a->s = s;
        a->gn = gn;
        a->gs = memcpy1(gs, sizeof(uint32_t) * gn);
        a->gsize = memcpy1(gsize, sizeof(uint32_t) * gn);
        a->gcomp = memcpy1(gcomp, sizeof(uint32_t) * gn);
        a->gtype = memcpy1(gtype, sizeof(uint32_t) * gn);
        a->glink = memcpy1(glink, sizeof(uint32_t) * gn);
        a->gevid = memcpy1(gevid, sizeof(uint32_t) * gn);
        kh_key(h, k) = a->name = strdup(name);
        kh_val(h, k) = d->n++;
    }
    return kh_val(h, k);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x40(%rbp), %rax
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x653e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x6711
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x5630
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x40(%rbp)
je 0x6700
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x65c6
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x658f
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x4c(%rbp)
jmp 0x6599
movl $0x10, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6599
movl -0x4c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
imulq $0x58, %rax, %rsi
callq 0x22a0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x10(%rax)
movl -0x2c(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0x30(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl 0x10(%rbp), %ecx
movq -0x48(%rbp), %rax
movl %ecx, 0x20(%rax)
movq 0x18(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x28(%rax)
movq 0x20(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x30(%rax)
movq 0x28(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x38(%rax)
movq 0x30(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x40(%rax)
movq 0x38(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x48(%rax)
movq 0x40(%rbp), %rdi
movl 0x10(%rbp), %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x6720
movq %rax, %rcx
movq -0x48(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x18(%rbp), %rdi
callq 0x23c0
movq %rax, %rdx
movq -0x48(%rbp), %rax
movq %rdx, (%rax)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x3c(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x10(%rbp), %rax
movl (%rax), %edx
movl %edx, %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x3c(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x3c(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)