// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %rdi, %rbp
movl $0x38, %edi
callq 0x1150
movq %rax, %r14
movl $0x70, %edi
callq 0x30b4
movq %rax, (%r14)
movl $0x20, %edi
callq 0x30b4
movq %rax, 0x8(%r14)
movl $0x20, %edi
callq 0x30b4
movq %rax, 0x10(%r14)
movl $0x8, %edi
callq 0x30b4
movq %rax, 0x18(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movl $0x8, %edi
xorl %esi, %esi
callq 0x6074
movq %rax, 0x30(%r14)
movq (%rbp), %rdi
callq 0x322b
testq %rax, %rax
movq %rbp, 0x38(%rsp)
je 0x4e36
movq 0x6305(%rip), %r13      # 0xafd8
xorl %r15d, %r15d
movq (%rbp), %rdi
movq %r15, %rsi
callq 0x3216
cmpl $0x0, (%rax)
jne 0x506e
movq %rax, %rbx
movq 0x8(%rax), %r12
movl 0x10(%rax), %edi
cmpl $0x1, %edi
je 0x4d46
testl %edi, %edi
jne 0x508d
movl $0x0, 0x20(%rsp)
movq 0x18(%rbx), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x55ae
movq (%r13), %rdi
leaq 0x2ea0(%rip), %rsi      # 0x7be1
jmp 0x4dfb
movl $0xa, %edi
callq 0x1150
movq %rax, %rbp
movq 0x20(%r14), %rcx
movl $0xa, %esi
movq %rax, %rdi
leaq 0x2e89(%rip), %rdx      # 0x7bef
xorl %eax, %eax
callq 0x10c0
incq 0x20(%r14)
movq (%r14), %rdi
callq 0x31d0
movl $0x0, (%rax)
leaq 0x2e71(%rip), %rcx      # 0x7bf7
movq %rcx, 0x8(%rax)
movq (%r14), %rdi
callq 0x31d0
movl $0x5, (%rax)
movq %rbp, 0x8(%rax)
movl $0x1, %ecx
movl %ecx, 0x10(%rax)
movq (%r14), %rdi
callq 0x31d0
movl $0x1, %ecx
movl %ecx, (%rax)
movq 0x18(%rbx), %rcx
movq %rcx, 0x8(%rax)
movl $0x2, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movq 0x38(%rsp), %rbp
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x55ae
movq (%r13), %rdi
leaq 0x2e04(%rip), %rsi      # 0x7bff
movq %r12, %rdx
xorl %eax, %eax
callq 0x1110
movq (%r13), %rdi
leaq 0x20(%rsp), %rsi
callq 0x54a8
movq (%r13), %rsi
movl $0xa, %edi
callq 0x10f0
incq %r15
movq (%rbp), %rdi
callq 0x322b
cmpq %rax, %r15
jb 0x4cd6
movq 0x8(%rbp), %rdi
callq 0x322b
testq %rax, %rax
je 0x501e
leaq 0x2ea0(%rip), %r13      # 0x7cef
xorl %ebx, %ebx
movq 0x8(%rbp), %rdi
movq %rbx, 0x40(%rsp)
movq %rbx, %rsi
callq 0x3216
movq %rax, %r15
movq (%r14), %rdi
callq 0x31d0
movl $0x2, %ecx
movl %ecx, (%rax)
movq (%r14), %rdi
callq 0x31d0
movl $0x3, %ecx
movl %ecx, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
movq (%r14), %rdi
callq 0x31d0
movl $0x4, %ecx
movl %ecx, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
leaq 0x2dbd(%rip), %rcx      # 0x7c64
movq %rcx, 0x10(%rax)
movq (%r14), %rdi
callq 0x31d0
movl $0x5, %ebp
movl %ebp, (%rax)
movq (%r15), %rcx
movq %rcx, 0x8(%rax)
xorl %ebx, %ebx
movl %ebx, 0x10(%rax)
movq (%r14), %rdi
callq 0x31d0
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 0x31d0
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 0x322b
testq %rax, %rax
je 0x4fa5
xorl %ebx, %ebx
xorl %r12d, %r12d
movq 0x28(%r15), %rdi
movq %r12, %rsi
callq 0x3216
movq %rax, %rbp
movq 0x18(%r14), %rdi
callq 0x322b
cmpq %r12, %rax
ja 0x4f55
movq 0x18(%r14), %rdi
callq 0x31d0
testq %rax, %rax
jne 0x4f34
jmp 0x5030
movq 0x607c(%rip), %rax      # 0xafd8
movq (%rax), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x1110
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0x3216
movq %rbx, (%rax)
movq (%rbp), %rbp
cmpq $0x11, %rbp
jae 0x504f
addq %rbx, %rbp
incq %r12
movq 0x28(%r15), %rdi
callq 0x322b
movq %rbp, %rbx
cmpq %rax, %r12
jb 0x4f25
jmp 0x4fa7
xorl %ebp, %ebp
testq %rbp, %rbp
je 0x4fd9
movq (%r14), %rdi
callq 0x31d0
movl $0x6, (%rax)
movl $0x5, 0x8(%rax)
movl $0x3, 0x10(%rax)
movl $0x4, 0x18(%rax)
movl $0x1, 0x28(%rax)
movl %ebp, 0x30(%rax)
movq 0x18(%r15), %rdi
leaq 0x679(%rip), %rsi       # 0x565d
movq %r14, %rdx
callq 0x5f1b
movq 0x18(%r15), %rdi
leaq 0x6bf(%rip), %rsi       # 0x56b6
movq %r14, %rdx
callq 0x5f1b
movq 0x40(%rsp), %rbx
incq %rbx
movq 0x38(%rsp), %rbp
movq 0x8(%rbp), %rdi
callq 0x322b
cmpq %rax, %rbx
jb 0x4e51
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2019(%rip), %rdi      # 0x7050
leaq 0x2a6d(%rip), %rsi      # 0x7aab
leaq 0x2c6e(%rip), %rcx      # 0x7cb3
movl $0xe5, %edx
callq 0x10d0
leaq 0x2c18(%rip), %rdi      # 0x7c6e
leaq 0x2a4e(%rip), %rsi      # 0x7aab
leaq 0x2c17(%rip), %rcx      # 0x7c7b
movl $0x20b, %edx            # imm = 0x20B
callq 0x10d0
leaq 0x2b16(%rip), %rdi      # 0x7b8b
leaq 0x2a2f(%rip), %rsi      # 0x7aab
leaq 0x2b27(%rip), %rcx      # 0x7baa
movl $0x373, %edx            # imm = 0x373
callq 0x10d0
callq 0x1379