// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: kh_u128_put
void scg_destroy(scg_t *g)
{
    if (!g) return;
    if (g->utg_asmg) asmg_destroy(g->utg_asmg);
    if (g->scm_u) free(g->scm_u);
    if (g->idx_u) free(g->idx_u);
    free(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
je 0xc3b1
movb (%r15), %cl
movl $0x1, %ebx
shll %cl, %ebx
jmp 0xc3b3
xorl %ebx, %ebx
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
movl 0x4(%r15), %eax
movl %ebx, %ecx
shrl %ecx
movl %ebx, %edi
shrl $0x2, %edi
addl %ecx, %edi
cmpl %edi, %eax
jb 0xc74b
leal 0x1(%rbx), %ecx
bsrl %ecx, %edi
xorl %r8d, %r8d
cmpl $0x2, %ecx
cmovael %edi, %r8d
andl %ebx, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %r8d
cmpl $0x3, %r8d
movl $0x2, %ecx
cmovael %r8d, %ecx
movl $0x1, %r11d
shll %cl, %r11d
movl $0x1, %r10d
movl %r11d, %r9d
shrl %r9d
movl %r11d, %edi
shrl $0x2, %edi
addl %r9d, %edi
cmpl %edi, %eax
ja 0xc742
movl %ecx, 0xc(%rsp)
movq %rdx, 0x40(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x18(%r15), %rdi
movq %r11, 0x18(%rsp)
movl %r11d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %r8d
movl $0x4, %ebp
cmovael %eax, %ebp
movq %rbp, %rsi
callq 0x1b695
movq %rax, %r13
xorl %r12d, %r12d
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x21e0
testq %r13, %r13
je 0xc8a7
movq 0x10(%r15), %rsi
testq %rsi, %rsi
je 0xc482
movb (%r15), %cl
movl $0x1, %r12d
shll %cl, %r12d
cmpl 0x18(%rsp), %r12d
jae 0xc4c1
movq 0x18(%r15), %rdi
movl $0x18, %edx
movl 0xc(%rsp), %ecx
shlq %cl, %rdx
callq 0x1b798
movq %rax, %rbp
testq %rax, %rax
je 0xc4ac
movq %rbp, 0x10(%r15)
jmp 0xc4b8
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0x1b5ca
testq %rbp, %rbp
je 0xc8a7
movq %r15, 0x20(%rsp)
movq %r14, 0x38(%rsp)
testl %r12d, %r12d
je 0xc6ec
movq 0x18(%rsp), %rax
leal -0x1(%rax), %edi
movabsq $-0x7fffffff00000000, %r10 # imm = 0x8000000100000000
movl $0x80000001, %ebp       # imm = 0x80000001
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movl $0x20, %eax
subl 0xc(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl %r12d, %eax
movq %rax, 0x50(%rsp)
xorl %ecx, %ecx
movl %ecx, %esi
shrl $0x5, %esi
movq 0x10(%rsp), %rax
movl (%rax,%rsi,4), %r8d
movl $0x1, %r9d
shll %cl, %r9d
movq %rcx, 0x30(%rsp)
btl %ecx, %r8d
jae 0xc6d9
movq 0x20(%rsp), %rcx
movq 0x10(%rcx), %rbx
movq 0x30(%rsp), %rax
leaq (%rax,%rax,2), %rcx
movq (%rbx,%rcx,8), %r11
movq 0x8(%rbx,%rcx,8), %rdx
movq 0x10(%rbx,%rcx,8), %r15
notl %r9d
andl %r9d, %r8d
movq 0x10(%rsp), %rax
movl %r8d, (%rax,%rsi,4)
movq %r11, %rcx
notq %rcx
movq %r11, %rsi
shlq $0x15, %rsi
addq %rcx, %rsi
movq %rsi, %rcx
shrq $0x18, %rcx
xorq %rsi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rsi
shrq $0xe, %rsi
xorq %rcx, %rsi
leaq (%rsi,%rsi,4), %rcx
leaq (%rsi,%rcx,4), %rsi
movq %rsi, %rcx
shrq $0x1c, %rcx
xorq %rsi, %rcx
imulq %r10, %rcx
movq %rdx, %rsi
notq %rsi
movq %rdx, %r8
shlq $0x15, %r8
addq %rsi, %r8
movq %r8, %rsi
shrq $0x18, %rsi
xorq %r8, %rsi
imulq $0x109, %rsi, %rsi      # imm = 0x109
movq %rsi, %r8
shrq $0xe, %r8
xorq %rsi, %r8
leaq (%r8,%r8,4), %rsi
leaq (%r8,%rsi,4), %rsi
movq %rsi, %r8
shrq $0x1c, %r8
xorl %esi, %r8d
imull %ebp, %r8d
orq %rcx, %r8
movq %r8, %rcx
notq %rcx
shlq $0x15, %r8
addq %rcx, %r8
movq %r8, %rcx
shrq $0x18, %rcx
xorq %r8, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rsi
shrq $0xe, %rsi
xorq %rcx, %rsi
leaq (%rsi,%rsi,4), %rcx
leaq (%rsi,%rcx,4), %rcx
movq %rcx, %rsi
shrq $0x1c, %rsi
xorl %ecx, %esi
imull $0x1e3779b9, %esi, %esi # imm = 0x1E3779B9
movl 0x2c(%rsp), %ecx
shrl %cl, %esi
movl %esi, %r14d
shrl $0x5, %r14d
movl (%r13,%r14,4), %r9d
movl $0x1, %r8d
movl %esi, %ecx
shll %cl, %r8d
btl %esi, %r9d
jae 0xc652
incl %esi
andl %edi, %esi
jmp 0xc62f
orl %r8d, %r9d
movl %r9d, (%r13,%r14,4)
movl %esi, %r9d
cmpl %r12d, %esi
jae 0xc6bd
movq 0x10(%rsp), %rax
movl (%rax,%r14,4), %ecx
testl %r8d, %ecx
je 0xc6bd
leaq (%r9,%r9,2), %rsi
movq (%rbx,%rsi,8), %r9
movq %r10, %rax
movl %r12d, %r10d
movq 0x8(%rbx,%rsi,8), %r12
movq 0x10(%rbx,%rsi,8), %rbp
movq %r11, (%rbx,%rsi,8)
movq %rdx, 0x8(%rbx,%rsi,8)
movq %r15, 0x10(%rbx,%rsi,8)
notl %r8d
andl %r8d, %ecx
movq 0x10(%rsp), %rdx
movl %ecx, (%rdx,%r14,4)
movb $0x1, %cl
movq %rbp, %r15
movl $0x80000001, %ebp       # imm = 0x80000001
movq %r9, %r11
movq %r12, %rdx
movl %r10d, %r12d
movq %rax, %r10
jmp 0xc6d1
leaq (%r9,%r9,2), %rcx
movq %rdx, 0x8(%rbx,%rcx,8)
movq %r11, (%rbx,%rcx,8)
movq %r15, 0x10(%rbx,%rcx,8)
xorl %ecx, %ecx
testb %cl, %cl
jne 0xc565
movq 0x30(%rsp), %rcx
incq %rcx
cmpq 0x50(%rsp), %rcx
jne 0xc510
cmpl 0x18(%rsp), %r12d
movq 0x20(%rsp), %r15
jbe 0xc715
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdi
movl $0x18, %edx
movl 0xc(%rsp), %ecx
shlq %cl, %rdx
callq 0x1b798
movq %rax, 0x10(%r15)
movq 0x8(%r15), %rsi
movq 0x18(%r15), %rdi
callq 0x1b5ca
movq %r13, 0x8(%r15)
movl 0xc(%rsp), %eax
movl %eax, (%r15)
movq 0x38(%rsp), %r14
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
movl $0x1, %r10d
movb (%r15), %cl
shll %cl, %r10d
movl %r10d, %ebx
movq %rsi, %rax
notq %rax
movq %rsi, %rcx
shlq $0x15, %rcx
addq %rax, %rcx
movq %rcx, %rax
shrq $0x18, %rax
xorq %rcx, %rax
imulq $0x109, %rax, %rax      # imm = 0x109
movq %rax, %rcx
shrq $0xe, %rcx
xorq %rax, %rcx
leaq (%rcx,%rcx,4), %rax
leaq (%rcx,%rax,4), %rcx
movq %rcx, %rax
shrq $0x1c, %rax
xorl %ecx, %eax
movq %rdx, %rcx
notq %rcx
movq %rdx, %rdi
shlq $0x15, %rdi
addq %rcx, %rdi
movq %rdi, %rcx
shrq $0x18, %rcx
xorq %rdi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdi
shrq $0xe, %rdi
xorq %rcx, %rdi
leaq (%rdi,%rdi,4), %rcx
leaq (%rdi,%rcx,4), %rcx
movq %rcx, %rdi
shrq $0x1c, %rdi
xorl %ecx, %edi
movl $0x80000001, %ecx       # imm = 0x80000001
imull %edi, %ecx
movabsq $-0x7fffffff00000000, %rdi # imm = 0x8000000100000000
imulq %rax, %rdi
orq %rdi, %rcx
movq %rcx, %rax
notq %rax
shlq $0x15, %rcx
addq %rax, %rcx
movq %rcx, %rax
shrq $0x18, %rax
xorq %rcx, %rax
imulq $0x109, %rax, %rax      # imm = 0x109
movq %rax, %rcx
shrq $0xe, %rcx
xorq %rax, %rcx
leaq (%rcx,%rcx,4), %rax
leaq (%rcx,%rax,4), %rax
movq %rax, %rcx
shrq $0x1c, %rcx
xorl %eax, %ecx
imull $0x1e3779b9, %ecx, %r10d # imm = 0x1E3779B9
xorl %ecx, %ecx
subb (%r15), %cl
shrl %cl, %r10d
movl %ebx, %ecx
decl %ecx
movq 0x8(%r15), %rax
movl %r10d, %ebx
movl %ebx, %edi
shrl $0x5, %edi
movl (%rax,%rdi,4), %edi
btl %ebx, %edi
jae 0xc863
movq 0x10(%r15), %r9
movl %ebx, %edi
leaq (%rdi,%rdi,2), %rdi
movq 0x8(%r9,%rdi,8), %r8
xorq %rdx, %r8
movq (%r9,%rdi,8), %rdi
xorq %rsi, %rdi
orq %r8, %rdi
je 0xc863
incl %ebx
andl %ecx, %ebx
cmpl %r10d, %ebx
jne 0xc82f
movl %ebx, %r10d
movl $0x1, %r9d
movl %ebx, %ecx
shll %cl, %r9d
shrl $0x5, %r10d
movl (%rax,%r10,4), %ecx
xorl %edi, %edi
btl %ebx, %ecx
jb 0xc8a4
movq 0x10(%r15), %rdi
movl %ebx, %r8d
leaq (%r8,%r8,2), %r8
movq %rdx, 0x8(%rdi,%r8,8)
movq %rsi, (%rdi,%r8,8)
orl %ecx, %r9d
movl %r9d, (%rax,%r10,4)
incl 0x4(%r15)
movl $0x1, %edi
movl %edi, (%r14)
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq