// File: /workspace/github_c_makefile_star2_O3/yutopp[P]cc/asm_x86_64.c
// Function: asm_x86_64_new
ASM_X86_64* asm_x86_64_new(IRModule* m) {
    ASM_X86_64* a = (ASM_X86_64*)malloc(sizeof(ASM_X86_64));
    a->insts = vector_new(sizeof(ASM_X86_64_Inst));
    a->values = vector_new(sizeof(ASM_X86_64_Var));
    a->global_values = vector_new(sizeof(ASM_X86_64_Var));
    a->offsets = vector_new(sizeof(size_t));
    a->string_label_count = 0;
    a->code_label_count = 0;
    a->labels = uint_map_new(sizeof(char const*), NULL);

    built_from_ir(a, m);

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r15
movl $0x38, %edi
callq 0x1160
movq %rax, %r14
movl $0x70, %edi
callq 0x2d9c
movq %rax, 0x20(%rsp)
movq %rax, (%r14)
movl $0x20, %edi
callq 0x2d9c
movq %rax, 0x8(%r14)
movl $0x20, %edi
callq 0x2d9c
movq %rax, 0x10(%r14)
movl $0x8, %edi
callq 0x2d9c
movq %rax, 0x18(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movl $0x8, %edi
xorl %esi, %esi
callq 0x5d74
movq %rax, 0x30(%r14)
movq (%r15), %rdi
callq 0x2f0b
testq %rax, %rax
movq %r15, 0x48(%rsp)
je 0x4b3b
movq 0x6635(%rip), %r13      # 0xafd8
leaq 0x28(%rsp), %rbp
movq $0x0, 0x40(%rsp)
xorl %r12d, %r12d
movq (%r15), %rdi
movq %r12, %rsi
callq 0x2ef6
cmpl $0x0, (%rax)
jne 0x4d6d
movq %rax, %rbx
movq 0x8(%rax), %rsi
movl 0x10(%rax), %edi
cmpl $0x1, %edi
je 0x4a23
testl %edi, %edi
jne 0x4d8c
movl $0x0, 0x28(%rsp)
movq 0x18(%rbx), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %rsi, %rbx
movl $0x1, %edx
callq 0x52ad
movq (%r13), %rdi
leaq 0x31d3(%rip), %rsi      # 0x7bf1
jmp 0x4b03
movl $0xa, %edi
movq %rsi, 0x50(%rsp)
callq 0x1160
movq %rax, %r15
movl $0xa, %esi
movq %rax, %rdi
leaq 0x31bb(%rip), %rdx      # 0x7bff
movq 0x40(%rsp), %rbp
movq %rbp, %rcx
xorl %eax, %eax
callq 0x10c0
incq %rbp
movq %rbp, 0x40(%rsp)
movq %rbp, 0x20(%r14)
movq 0x20(%rsp), %rdi
callq 0x2eb0
movl $0x0, (%rax)
leaq 0x3191(%rip), %rcx      # 0x7c07
movq %rcx, 0x8(%rax)
movq %r13, %rbp
movq (%r14), %r13
movq %r13, %rdi
callq 0x2eb0
movl $0x5, (%rax)
movq %r15, 0x8(%rax)
movl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq %r13, 0x20(%rsp)
movq %r13, %rdi
movq %rbp, %r13
leaq 0x28(%rsp), %rbp
callq 0x2eb0
movl $0x1, %ecx
movl %ecx, (%rax)
movq 0x18(%rbx), %rcx
movq %rcx, 0x8(%rax)
movl $0x2, 0x28(%rsp)
movq %r15, 0x30(%rsp)
movq 0x48(%rsp), %r15
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq 0x50(%rsp), %rbx
movq %rbx, %rsi
movl $0x1, %edx
callq 0x52ad
movq (%r13), %rdi
leaq 0x310c(%rip), %rsi      # 0x7c0f
movq %rbx, %rdx
xorl %eax, %eax
callq 0x1120
movq (%r13), %rdi
movq %rbp, %rsi
callq 0x51a7
movq (%r13), %rsi
movl $0xa, %edi
callq 0x10f0
incq %r12
movq (%r15), %rdi
callq 0x2f0b
cmpq %rax, %r12
jb 0x49b4
movq 0x8(%r15), %rdi
callq 0x2f0b
testq %rax, %rax
je 0x4d1d
leaq 0x31ab(%rip), %r13      # 0x7cff
xorl %ebx, %ebx
movq 0x8(%r15), %rdi
movq %rbx, 0x20(%rsp)
movq %rbx, %rsi
callq 0x2ef6
movq %rax, %r15
movq (%r14), %rdi
callq 0x2eb0
movl $0x2, %ecx
movl %ecx, (%rax)
movq (%r14), %rdi
callq 0x2eb0
movl $0x3, %ecx
movl %ecx, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
movq (%r14), %rdi
callq 0x2eb0
movl $0x4, %ecx
movl %ecx, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
leaq 0x30c8(%rip), %rcx      # 0x7c74
movq %rcx, 0x10(%rax)
movq (%r14), %rdi
callq 0x2eb0
movl $0x5, %ebp
movl %ebp, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
xorl %ebx, %ebx
movl %ebx, 0x10(%rax)
movq (%r14), %rdi
callq 0x2eb0
movl $0x6, %r12d
movl %r12d, (%rax)
movl %ebx, 0x8(%rax)
movl $0x3, %ecx
movl %ecx, 0x10(%rax)
movl %ebp, 0x18(%rax)
movq (%r14), %rdi
callq 0x2eb0
movl %r12d, (%rax)
movl $0x2, %ecx
movl %ecx, 0x8(%rax)
movl $0x3, %ecx
movl %ecx, 0x10(%rax)
movl %ebp, 0x18(%rax)
movl %ecx, 0x28(%rax)
movl $0x4, %ecx
movl %ecx, 0x30(%rax)
movq 0x28(%r15), %rdi
callq 0x2f0b
testq %rax, %rax
je 0x4cd8
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x28(%r15), %rdi
movq %rbx, %rsi
callq 0x2ef6
movq %rax, %rbp
movq 0x18(%r14), %rdi
callq 0x2f0b
cmpq %rbx, %rax
ja 0x4c5a
movq 0x18(%r14), %rdi
callq 0x2eb0
testq %rax, %rax
jne 0x4c39
jmp 0x4d2f
movq 0x6377(%rip), %rax      # 0xafd8
movq (%rax), %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x1120
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x2ef6
movq %r12, (%rax)
movq (%rbp), %rax
cmpq $0x11, %rax
jae 0x4d4e
addq %rax, %r12
incq %rbx
movq 0x28(%r15), %rdi
callq 0x2f0b
cmpq %rax, %rbx
jb 0x4c2a
testq %r12, %r12
je 0x4cd8
movq (%r14), %rdi
callq 0x2eb0
movl $0x6, (%rax)
movl $0x5, 0x8(%rax)
movl $0x3, 0x10(%rax)
movl $0x4, 0x18(%rax)
movl $0x1, 0x28(%rax)
movl %r12d, 0x30(%rax)
movq 0x18(%r15), %rdi
leaq 0x679(%rip), %rsi       # 0x535c
movq %r14, %rdx
callq 0x5c1b
movq 0x18(%r15), %rdi
leaq 0x6bf(%rip), %rsi       # 0x53b5
movq %r14, %rdx
callq 0x5c1b
movq 0x20(%rsp), %rbx
incq %rbx
movq 0x48(%rsp), %r15
movq 0x8(%r15), %rdi
callq 0x2f0b
cmpq %rax, %rbx
jb 0x4b56
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x231a(%rip), %rdi      # 0x7050
leaq 0x2d7e(%rip), %rsi      # 0x7abb
leaq 0x2f7f(%rip), %rcx      # 0x7cc3
movl $0xe5, %edx
callq 0x10d0
leaq 0x2f29(%rip), %rdi      # 0x7c7e
leaq 0x2d5f(%rip), %rsi      # 0x7abb
leaq 0x2f28(%rip), %rcx      # 0x7c8b
movl $0x20b, %edx            # imm = 0x20B
callq 0x10d0
leaq 0x2e27(%rip), %rdi      # 0x7b9b
leaq 0x2d40(%rip), %rsi      # 0x7abb
leaq 0x2e38(%rip), %rcx      # 0x7bba
movl $0x373, %edx            # imm = 0x373
callq 0x10d0
callq 0x1389