// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]yahs/link.c
// Function: kh_resize_str
KHASH_SET_INIT_STR(str)

void intra_link_mat_destroy(intra_link_mat_t *link_mat)
{
    if (!link_mat) return;
    uint32_t i;
    for (i = 0; i < link_mat->n; ++i)
        if (link_mat->links[i].n)
            free(link_mat->links[i].link);
    if (link_mat->links)
        free(link_mat->links);
    free(link_mat);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
decl %esi
movl %esi, %eax
shrl %eax
orl %esi, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x10, %eax
orl %ecx, %eax
incl %eax
cmpl $0x5, %eax
movl $0x4, %r13d
cmovael %eax, %r13d
movl $0x4, %ecx
movl 0x4(%rdi), %ebp
cvtsi2sd %r13, %xmm0
mulsd 0x104b9(%rip), %xmm0    # 0x21658
addsd 0x10051(%rip), %xmm0    # 0x211f8
cvttsd2si %xmm0, %r12
xorl %r14d, %r14d
cmpl %r12d, %ebp
jae 0x1123c
movq %r12, (%rsp)
movl %r13d, %r12d
shrl $0x2, %r12d
andl $-0x4, %r12d
cmpl $0x10, %eax
cmovbl %ecx, %r12d
xorl %edi, %edi
movq %r12, %rsi
callq 0xb3cd
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x113af
movq %rax, %r14
movq %rax, %rdi
movl $0xaa, %esi
movq %r12, %rdx
callq 0x21e0
cmpl %r13d, (%rbx)
jae 0x1121f
movq 0x18(%rbx), %rsi
movl %r13d, %edx
shlq $0x3, %rdx
xorl %edi, %edi
callq 0xb4d0
movq %rax, %r12
testq %rax, %rax
je 0x11225
movq %r12, 0x18(%rbx)
jmp 0x1122f
movq (%rsp), %r12
jmp 0x1123c
xorl %edi, %edi
movq %r14, %rsi
callq 0xb302
testq %r12, %r12
movq (%rsp), %r12
je 0x113af
movl $0x0, %r15d
cmpl %r12d, %ebp
jae 0x113af
movl (%rbx), %ecx
testl %ecx, %ecx
je 0x11375
leal -0x1(%r13), %eax
xorl %edx, %edx
movq 0x10(%rbx), %rdi
movl %edx, %r8d
shrl $0x4, %r8d
movl (%rdi,%r8,4), %r9d
leal (%rdx,%rdx), %ecx
andl $0x1e, %ecx
movl %r9d, %esi
shrl %cl, %esi
testb $0x3, %sil
je 0x11288
incl %edx
movl (%rbx), %ecx
cmpl %ecx, %edx
jne 0x1125b
jmp 0x11375
movq 0x18(%rbx), %rsi
movl %edx, %r10d
movq (%rsi,%r10,8), %rsi
btsl %ecx, %r9d
movl %r9d, (%rdi,%r8,4)
movsbl (%rsi), %edi
testl %edi, %edi
je 0x112c9
movb 0x1(%rsi), %cl
testb %cl, %cl
je 0x112cb
leaq 0x2(%rsi), %r8
movl %edi, %r9d
shll $0x5, %r9d
subl %edi, %r9d
movsbl %cl, %edi
addl %r9d, %edi
movb (%r8), %cl
incq %r8
testb %cl, %cl
jne 0x112ad
jmp 0x112cb
xorl %edi, %edi
andl %eax, %edi
movl %edi, %r8d
shrl $0x4, %r8d
movl (%r14,%r8,4), %r9d
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl $0x2, %r10d
shll %cl, %r10d
testl %r9d, %r10d
jne 0x11319
movl $0x1, %r11d
addl %r11d, %edi
andl %eax, %edi
movl %edi, %r8d
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl $0x2, %r10d
shll %cl, %r10d
shrl $0x4, %r8d
movl (%r14,%r8,4), %r9d
incl %r11d
testl %r9d, %r10d
je 0x112f2
notl %r10d
andl %r9d, %r10d
movl %r10d, (%r14,%r8,4)
cmpl (%rbx), %edi
jae 0x11338
movq 0x10(%rbx), %r9
movl (%r9,%r8,4), %r9d
shrl %cl, %r9d
testb $0x3, %r9b
je 0x11351
movq 0x18(%rbx), %rcx
movl %edi, %edi
movq %rsi, (%rcx,%rdi,8)
xorl %ecx, %ecx
testb %cl, %cl
jne 0x1129b
jmp 0x1127b
movq 0x18(%rbx), %r9
movl %edi, %edi
movq (%r9,%rdi,8), %r10
movq %rsi, (%r9,%rdi,8)
movl $0x1, %esi
shll %cl, %esi
movq 0x10(%rbx), %rcx
orl %esi, (%rcx,%r8,4)
movb $0x1, %cl
movq %r10, %rsi
jmp 0x11344
cmpl %r13d, %ecx
jbe 0x11390
movq 0x18(%rbx), %rsi
movl %r13d, %edx
shlq $0x3, %rdx
xorl %edi, %edi
callq 0xb4d0
movq %rax, 0x18(%rbx)
movq 0x10(%rbx), %rsi
xorl %r15d, %r15d
xorl %edi, %edi
callq 0xb302
movq %r14, 0x10(%rbx)
movl %r13d, (%rbx)
movl 0x4(%rbx), %eax
movl %eax, 0x8(%rbx)
movl %r12d, 0xc(%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)