// File: /workspace/github_c_makefile_star2_O2/c-zhou[P]oatk/syncasm.c
// Function: ks_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 %rdx, %r15
movq %rsi, %r12
movq %rdi, %r8
cmpq $0x0, 0x10(%rdi)
pushq $0x1
popq %rbp
je 0x6d25
movb (%r8), %cl
movl %ebp, %r13d
shll %cl, %r13d
jmp 0x6d28
xorl %r13d, %r13d
orl $-0x1, (%r14)
movl 0x4(%r8), %eax
movl %r13d, %ecx
shrl %ecx
movl %r13d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movq %r8, 0x8(%rsp)
jae 0x6d50
movq %r14, 0x18(%rsp)
movl (%r8), %r14d
jmp 0x6da5
incl %r13d
xorl %edx, %edx
movl %r13d, %ecx
cmpl $0x2, %ecx
jb 0x6d63
shrl %ecx
incl %edx
jmp 0x6d58
leal -0x1(%r13), %ecx
andl %r13d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
pushq $0x2
popq %rcx
cmovael %edx, %ecx
movl %ebp, %r13d
shll %cl, %r13d
movl %r13d, %edi
shrl %edi
movl %r13d, %esi
shrl $0x2, %esi
addl %edi, %esi
cmpl %esi, %eax
jbe 0x6e66
movq %r14, 0x18(%rsp)
movl (%r8), %r14d
movl %ebp, %r13d
movl %r14d, %ecx
shll %cl, %r13d
movq %r8, %rbx
decl %r13d
movq %r12, %rdi
movq %r15, %rsi
callq 0x9e59
imull $0x9e3779b9, %eax, %eax # imm = 0x9E3779B9
negb %r14b
movl %r14d, %ecx
shrl %cl, %eax
movq 0x8(%rbx), %rdi
movl %eax, %ecx
movq %rbx, %r9
movq 0x18(%rsp), %rbx
movl %ecx, %edx
shrl $0x5, %edx
movl (%rdi,%rdx,4), %r8d
movl %ebp, %esi
shll %cl, %esi
btl %ecx, %r8d
jae 0x6e23
movq 0x10(%r9), %r9
movl %ecx, %r10d
shlq $0x4, %r10
movq 0x8(%r9,%r10), %r11
xorq %r15, %r11
movq (%r9,%r10), %r9
xorq %r12, %r9
orq %r11, %r9
je 0x6e27
incl %ecx
andl %r13d, %ecx
cmpl %eax, %ecx
movq 0x8(%rsp), %r9
jne 0x6dd2
movl %eax, %edx
shrl $0x5, %edx
movl %ebp, %esi
movl %eax, %ecx
shll %cl, %esi
movl (%rdi,%rdx,4), %r8d
jmp 0x6e2e
movl %ecx, %eax
jmp 0x6e2e
movl %ecx, %eax
movq 0x8(%rsp), %r9
xorl %ecx, %ecx
testl %esi, %r8d
jne 0x6e55
movq 0x10(%r9), %rcx
movl %eax, %eax
shlq $0x4, %rax
movq %r12, (%rcx,%rax)
movq %r15, 0x8(%rcx,%rax)
movq 0x8(%r9), %rax
orl %esi, (%rax,%rdx,4)
incl 0x4(%r9)
movl %ebp, %ecx
movl %ecx, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ecx, 0x14(%rsp)
movq %r12, 0x40(%rsp)
movq %r15, 0x48(%rsp)
movq 0x18(%r8), %rdi
movl %r13d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %edx
pushq $0x4
popq %rbx
cmovael %eax, %ebx
movq %rbx, %rsi
movq %r8, %r12
callq 0x1799c
movq %r13, %r15
movq %rax, %r13
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x21e0
testq %r13, %r13
je 0x6e57
movq 0x10(%r12), %rsi
movl %r15d, %eax
movq %rax, 0x30(%rsp)
testq %rsi, %rsi
movq %r12, %r9
movl $0x0, %r12d
je 0x6ed6
movb (%r9), %cl
movl %ebp, %r12d
shll %cl, %r12d
cmpl %r15d, %r12d
jae 0x6efb
movq 0x18(%r9), %rdi
movq 0x30(%rsp), %rdx
shlq $0x4, %rdx
movq %r9, %rbx
callq 0x17aa4
testq %rax, %rax
je 0x7056
movq %rax, 0x10(%rbx)
movq %rbx, %r9
movq %r14, 0x18(%rsp)
movq %r15, 0x38(%rsp)
leal -0x1(%r15), %r14d
pushq $0x20
popq %rax
subl 0x14(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl %r12d, %eax
movq %rax, 0x20(%rsp)
xorl %ecx, %ecx
cmpq 0x20(%rsp), %rcx
je 0x6ffc
movq 0x8(%r9), %rbx
movl %ecx, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %edx
movl %ebp, %esi
shll %cl, %esi
btl %ecx, %edx
jae 0x6ff4
movq 0x10(%r9), %r8
movq %rcx, 0x50(%rsp)
movq %rcx, %rdi
shlq $0x4, %rdi
movq (%r8,%rdi), %r12
movq 0x8(%r8,%rdi), %r15
notl %esi
andl %esi, %edx
movl %edx, (%rbx,%rax,4)
movq %r12, %rdi
movq %r15, %rsi
callq 0x9e59
imull $0x9e3779b9, %eax, %eax # imm = 0x9E3779B9
movl 0x2c(%rsp), %ecx
shrl %cl, %eax
movl %eax, %edx
shrl $0x5, %edx
movl (%r13,%rdx,4), %edi
movl %ebp, %esi
movl %eax, %ecx
shll %cl, %esi
btl %eax, %edi
jae 0x6f95
incl %eax
andl %r14d, %eax
jmp 0x6f79
orl %esi, %edi
movl %edi, (%r13,%rdx,4)
movl %eax, %ecx
cmpl 0x20(%rsp), %eax
jae 0x6fd9
movq 0x8(%rsp), %r9
movq 0x10(%r9), %rax
testl %esi, (%rbx,%rdx,4)
je 0x6fe2
shlq $0x4, %rcx
movq (%rax,%rcx), %rdi
movq 0x8(%rax,%rcx), %r8
movq %r12, (%rax,%rcx)
movq %r15, 0x8(%rax,%rcx)
notl %esi
movq 0x8(%r9), %rbx
andl %esi, (%rbx,%rdx,4)
movq %r8, %r15
movq %rdi, %r12
jmp 0x6f62
movq 0x8(%rsp), %r9
movq 0x10(%r9), %rax
shlq $0x4, %rcx
movq %r12, (%rax,%rcx)
movq %r15, 0x8(%rax,%rcx)
movq 0x50(%rsp), %rcx
incq %rcx
jmp 0x6f1e
movq 0x20(%rsp), %rax
cmpl 0x38(%rsp), %eax
jbe 0x7026
movq 0x10(%r9), %rsi
movq 0x18(%r9), %rdi
movq 0x30(%rsp), %rdx
shlq $0x4, %rdx
callq 0x17aa4
movq 0x8(%rsp), %r9
movq %rax, 0x10(%r9)
movq 0x8(%r9), %rsi
movq 0x18(%r9), %rdi
movq %r9, %rbx
callq 0x178a7
movq %r13, 0x8(%rbx)
movl 0x14(%rsp), %r14d
movl %r14d, (%rbx)
movq 0x48(%rsp), %r15
movq 0x40(%rsp), %r12
movq 0x38(%rsp), %r13
jmp 0x6da8
movq 0x18(%rbx), %rdi
movq %r13, %rsi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x178a7