// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rcx, %r15
movq %rdi, %r11
cmpq $0x0, 0x10(%rdi)
je 0xcd32
movb (%r11), %cl
movl $0x1, %ebx
shll %cl, %ebx
jmp 0xcd34
xorl %ebx, %ebx
movl $0xffffffff, (%r15)     # imm = 0xFFFFFFFF
movl 0x4(%r11), %eax
movl %ebx, %ecx
shrl %ecx
movl %ebx, %edi
shrl $0x2, %edi
addl %ecx, %edi
cmpl %edi, %eax
jae 0xcd59
movl (%r11), %r9d
movl %ebx, %r12d
jmp 0xd095
leal 0x1(%rbx), %ecx
bsrl %ecx, %edi
xorl %r9d, %r9d
cmpl $0x2, %ecx
cmovael %edi, %r9d
andl %ebx, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %r9d
cmpl $0x3, %r9d
movl $0x2, %ecx
cmovael %r9d, %ecx
movl $0x1, %r10d
shll %cl, %r10d
movl $0x1, %r8d
movl %r10d, %ebp
shrl %ebp
movl %r10d, %edi
shrl $0x2, %edi
addl %ebp, %edi
cmpl %edi, %eax
jbe 0xcdb0
movl (%r11), %r9d
movl %r9d, %ecx
shll %cl, %r8d
movl %r8d, %r12d
jmp 0xd095
movl %ecx, 0x4(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x18(%r11), %rdi
movq %r10, 0x8(%rsp)
movl %r10d, %eax
shrl $0x3, %eax
andl $-0x4, %eax
cmpl $0x5, %r9d
movl $0x4, %ebp
cmovael %eax, %ebp
movq %rbp, %rsi
movq %r11, %r12
callq 0x1d7c1
movq %rax, %r13
xorl %r14d, %r14d
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x21e0
testq %r13, %r13
je 0xd1f9
movq 0x10(%r12), %rsi
testq %rsi, %rsi
movq %r12, %r8
movq %r12, 0x10(%rsp)
je 0xce28
movb (%r8), %cl
movl $0x1, %r14d
shll %cl, %r14d
cmpl 0x8(%rsp), %r14d
jae 0xce5d
movq 0x18(%r8), %rdi
movl $0x18, %edx
movl 0x4(%rsp), %ecx
shlq %cl, %rdx
movq %r8, %r12
callq 0x1d8c9
testq %rax, %rax
je 0xd20a
movq %rax, %rsi
movq %rax, 0x10(%r12)
testl %r14d, %r14d
movq %r12, %r8
je 0xd068
movq %r15, 0x28(%rsp)
movq 0x8(%rsp), %rax
leal -0x1(%rax), %r10d
movq 0x8(%r8), %r11
movl $0x20, %eax
subl 0x4(%rsp), %eax
movl %eax, 0x24(%rsp)
movl %r14d, %eax
movq %rax, 0x18(%rsp)
xorl %ecx, %ecx
movl %ecx, %edi
shrl $0x5, %edi
movl (%r11,%rdi,4), %r8d
movl $0x1, %r15d
shll %cl, %r15d
btl %ecx, %r8d
jae 0xd027
leaq (%r11,%rdi,4), %rbx
movq %rcx, 0x40(%rsp)
leaq (%rcx,%rcx,2), %rdi
movq (%rsi,%rdi,8), %r12
movq 0x8(%rsi,%rdi,8), %rax
movq 0x10(%rsi,%rdi,8), %rdx
notl %r15d
andl %r8d, %r15d
movl %r15d, (%rbx)
movq %r12, %rcx
notq %rcx
movq %r12, %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), %rdi
movq %rdi, %rcx
shrq $0x1c, %rcx
xorq %rdi, %rcx
movabsq $-0x7fffffff00000000, %rdi # imm = 0x8000000100000000
imulq %rdi, %rcx
movq %rax, %rdi
notq %rdi
movq %rax, %r8
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorl %edi, %r8d
movl $0x80000001, %edi       # imm = 0x80000001
imull %edi, %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, %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
imull $0x1e3779b9, %edi, %edi # imm = 0x1E3779B9
movl 0x24(%rsp), %ecx
shrl %cl, %edi
movl %edi, %r9d
shrl $0x5, %r9d
movl (%r13,%r9,4), %r8d
movl $0x1, %r15d
movl %edi, %ecx
shll %cl, %r15d
btl %edi, %r8d
jae 0xcfc3
incl %edi
andl %r10d, %edi
jmp 0xcf9f
orl %r15d, %r8d
movl %r8d, (%r13,%r9,4)
cmpl 0x18(%rsp), %edi
jae 0xd00e
movl (%r11,%r9,4), %r8d
testl %r15d, %r8d
je 0xd00e
leaq (%r11,%r9,4), %rbx
movl %edi, %edi
leaq (%rdi,%rdi,2), %rdi
movq (%rsi,%rdi,8), %r9
movq 0x8(%rsi,%rdi,8), %r14
movq 0x10(%rsi,%rdi,8), %rbp
movq %r12, (%rsi,%rdi,8)
movq %rax, 0x8(%rsi,%rdi,8)
movq %rdx, 0x10(%rsi,%rdi,8)
movq %rbp, %rdx
movq %r9, %r12
movq %r14, %rax
jmp 0xcebd
movl %edi, %ecx
leaq (%rcx,%rcx,2), %rcx
movq %rax, 0x8(%rsi,%rcx,8)
movq %r12, (%rsi,%rcx,8)
movq %rdx, 0x10(%rsi,%rcx,8)
movq 0x40(%rsp), %rcx
incq %rcx
cmpq 0x18(%rsp), %rcx
jne 0xce86
movq 0x18(%rsp), %rax
cmpl 0x8(%rsp), %eax
movq 0x28(%rsp), %r15
movq 0x10(%rsp), %r8
jbe 0xd068
movq 0x18(%r8), %rdi
movl $0x18, %edx
movl 0x4(%rsp), %ecx
shlq %cl, %rdx
callq 0x1d8c9
movq 0x10(%rsp), %r8
movq %rax, 0x10(%r8)
movq 0x8(%r8), %rsi
movq 0x18(%r8), %rdi
callq 0x1d6fb
movq 0x10(%rsp), %r11
movq %r13, 0x8(%r11)
movl 0x4(%rsp), %r9d
movl %r9d, (%r11)
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x8(%rsp), %r12
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, %ebx # imm = 0x1E3779B9
negb %r9b
movl %r9d, %ecx
shrl %cl, %ebx
decl %r12d
movq 0x8(%r11), %rax
movl %ebx, %ecx
movl %ecx, %r14d
shrl $0x5, %r14d
movl (%rax,%r14,4), %ebp
movl $0x1, %edi
shll %cl, %edi
btl %ecx, %ebp
jae 0xd1cb
movq 0x10(%r11), %r8
movl %ecx, %r9d
leaq (%r9,%r9,2), %r9
movq 0x8(%r8,%r9,8), %r10
xorq %rdx, %r10
movq (%r8,%r9,8), %r8
xorq %rsi, %r8
orq %r10, %r8
je 0xd1cb
incl %ecx
andl %r12d, %ecx
cmpl %ebx, %ecx
jne 0xd176
movl %ebx, %r14d
shrl $0x5, %r14d
movl $0x1, %edi
movl %ebx, %ecx
shll %cl, %edi
movl (%rax,%r14,4), %ebp
jmp 0xd1cd
movl %ecx, %ebx
xorl %ecx, %ecx
testl %edi, %ebp
jne 0xd1f6
movq 0x10(%r11), %rcx
movl %ebx, %r8d
leaq (%r8,%r8,2), %r8
movq %rdx, 0x8(%rcx,%r8,8)
movq %rsi, (%rcx,%r8,8)
orl %edi, %ebp
movl %ebp, (%rax,%r14,4)
incl 0x4(%r11)
movl $0x1, %ecx
movl %ecx, (%r15)
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r12), %rdi
movq %r13, %rsi
callq 0x1d6fb
jmp 0xd1f9