// File: /workspace/github_c_makefile_star2_O3/johnvtan[P]ccccc/asm.c
// Function: expr_to_instrs
static list_t *expr_to_instrs(expr_t *expr, env_t *env) {
    if (!expr) {
        UNREACHABLE("expr_to_instrs: expr is invalid\n");
    }

    debug("expr to instrs\n");
    if (expr->type == PRIMARY) {
        return primary_to_instrs(expr->primary, env);
    }

    if (expr->type == UNARY_OP) {
        return unary_to_instrs(expr->unary, env);
    }

    if (expr->type == BIN_OP) {
        return binop_to_instrs(expr->bin, env);
    }

    if (expr->type == TERNARY) {
        return ternary_to_instrs(expr->ternary, env);
    }

    if (expr->type == ASSIGN) {
        return assign_to_instrs(expr->assign, env);
    }

    if (expr->type == NULL_EXPR) {
        return list_new();
    }

    UNREACHABLE("unhandled expression\n");
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x20f9
movq %rsi, %r14
movl (%rdi), %eax
testl %eax, %eax
jne 0x2118
movq 0x8(%rdi), %r12
testq %r12, %r12
je 0x2a7a
movl (%r12), %eax
cmpl $0x3, %eax
jne 0x2176
movq 0x8(%r12), %rdi
testq %rdi, %rdi
jne 0x20cf
leaq 0x4034(%rip), %rdi      # 0x6134
leaq 0x4067(%rip), %rsi      # 0x616e
leaq 0x4265(%rip), %rcx      # 0x6373
movl $0x252, %edx            # imm = 0x252
jmp 0x2ae8
decl %eax
cmpl $0x4, %eax
ja 0x2a96
leaq 0x3f22(%rip), %rcx      # 0x604c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rdi), %r15
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x20bc
testq %rax, %rax
je 0x2b15
movq %rax, %rbx
movl (%r15), %eax
cmpq $0x4, %rax
ja 0x2c07
leaq 0x3f31(%rip), %rcx      # 0x6094
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, %edi
jmp 0x282b
cmpl $0x4, %eax
ja 0x2ace
movl %eax, %eax
leaq 0x3f20(%rip), %rcx      # 0x60a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2ea0
movq %rax, %rbx
movslq 0x8(%r12), %rsi
movl $0x1, %edi
movl $0x1, %edx
callq 0x200e
jmp 0x2835
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2ea0
movq 0x8(%rdi), %r13
callq 0x2ea0
movq %rax, %rbx
leaq 0x40d4(%rip), %rdi      # 0x62ac
callq 0x1734
movq %rax, %r12
leaq 0x40bb(%rip), %rdi      # 0x62a2
callq 0x1734
movq %rax, %r15
movq (%r13), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x15, %edi
movq %r12, %rsi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl $0x14, %edi
movq %r15, %rsi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r12, 0x8(%rax)
xorl %ecx, %ecx
movl %ecx, 0x10(%rax)
xorl %r12d, %r12d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r15, 0x8(%rax)
movl %r12d, 0x10(%rax)
jmp 0x2835
movq 0x8(%rdi), %r15
movq (%r15), %rax
cmpl $0x0, (%rax)
jne 0x2af9
movq 0x8(%rax), %rax
cmpl $0x2, (%rax)
jne 0x2af9
callq 0x2ea0
movq %rax, %rbx
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movq (%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e2b
testq %rax, %rax
je 0x2b6c
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
movl $0x40, %edi
callq 0x10e0
xorl %ecx, %ecx
movl %ecx, (%rax)
movabsq $0x200000001, %rdx      # imm = 0x200000001
movq %rdx, 0x8(%rax)
movl %ecx, 0x10(%rax)
movl $0x1, %ecx
movl %ecx, 0x18(%rax)
movl %ecx, 0x28(%rax)
jmp 0x281d
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x2b31
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x20bc
testq %rax, %rax
je 0x2b4d
movq %rax, %rbx
movl (%r13), %eax
cmpl $0xa, %eax
je 0x25c1
cmpl $0xb, %eax
jne 0x26cb
leaq 0x41dc(%rip), %rdi      # 0x656d
callq 0x1734
movq %rax, %r12
leaq 0x41de(%rip), %rdi      # 0x657e
callq 0x1734
movq %rax, %r15
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x15, %edi
movq %r12, %rsi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %esi
movl $0x1, %edi
movl $0x1, %edx
callq 0x200e
jmp 0x260d
callq 0x2ea0
movq %rax, %rbx
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x2e2b
testq %rax, %rax
je 0x2b8b
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
movl $0x40, %edi
callq 0x10e0
xorl %ecx, %ecx
movl %ecx, (%rax)
movabsq $0x200000001, %rdx      # imm = 0x200000001
movq %rdx, 0x8(%rax)
movl $0x1, %edx
movl %edx, 0x10(%rax)
movl %ebp, 0x18(%rax)
movq %r14, 0x20(%rax)
movl %ecx, 0x28(%rax)
movl %edx, 0x30(%rax)
jmp 0x2835
movq 0x8(%r12), %rax
movq 0x8(%rax), %r15
callq 0x2ea0
movq %rax, %rbx
movl $0x8, %edi
movl $0xb, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x8, %edi
movl $0xc, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
xorl %ebp, %ebp
leaq 0x3c1d(%rip), %r13      # 0x60c0
movl (%rbp,%r13), %esi
movl $0x8, %edi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
addq $0x4, %rbp
cmpq $0x18, %rbp
jne 0x24a3
testq %r15, %r15
je 0x252c
movl 0x18(%r15), %eax
testl %eax, %eax
je 0x252c
cmpl $0x7, %eax
jge 0x2baa
movq %r15, %rdi
callq 0x2f9f
testq %rax, %rax
je 0x252c
movq %rax, %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl (%r13), %edx
movl $0x1, %edi
movl $0x1, %esi
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq %r15, %rdi
callq 0x2f9f
addq $0x4, %r13
jmp 0x24e5
movq 0x8(%r12), %rax
movq (%rax), %rsi
movl $0x17, %edi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x5, %r15d
callq 0x2ea0
movq %rax, %r14
leaq 0x3b62(%rip), %r12      # 0x60c0
movl (%r12,%r15,4), %esi
movl $0x9, %edi
callq 0x1ec9
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f0b
addq $-0x1, %r15
jb 0x255e
movl $0x9, %edi
movl $0xc, %esi
callq 0x1ec9
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x9, %edi
movl $0xb, %esi
callq 0x1ec9
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f0b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2f51
jmp 0x2840
leaq 0x3fbd(%rip), %rdi      # 0x6585
callq 0x1734
movq %rax, %r12
leaq 0x3fc0(%rip), %rdi      # 0x6597
callq 0x1734
movq %rax, %r15
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x16, %edi
movq %r12, %rsi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x14, %edi
movq %r15, %rsi
callq 0x2c45
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r12, 0x8(%rax)
xorl %ecx, %ecx
movl %ecx, 0x10(%rax)
xorl %r12d, %r12d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r15, 0x8(%rax)
movl %r12d, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0xf, %edi
jmp 0x27be
movl $0x8, %edi
movl $0x1, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20bc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f51
movl $0x9, %edi
movl $0x3, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl (%r13), %eax
cmpq $0xc, %rax
ja 0x2c26
leaq 0x3935(%rip), %rcx      # 0x6060
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x2, %edi
jmp 0x2a21
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e2b
testq %rax, %rax
je 0x2bc9
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
movl $0x40, %edi
callq 0x10e0
movl $0x0, (%rax)
movabsq $0x20000000a, %rcx      # imm = 0x20000000A
jmp 0x2803
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x5, %edi
movl $0x11, %esi
jmp 0x2830
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e2b
testq %rax, %rax
je 0x2be8
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
movl $0x40, %edi
callq 0x10e0
movl $0x0, (%rax)
movabsq $0x200000002, %rcx      # imm = 0x200000002
movq %rcx, 0x8(%rax)
movl $0x3, 0x10(%rax)
movq $0x1, 0x18(%rax)
movl $0x1, 0x28(%rax)
movl %ebp, 0x30(%rax)
movq %r14, 0x38(%rax)
jmp 0x2835
movl $0x7, %edi
movl $0x1, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
jmp 0x269a
movl $0xd, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0xe, %edi
callq 0x1e43
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0xc, %edi
movl $0x3, %esi
callq 0x1ec9
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
movl $0x4, %esi
jmp 0x2a26
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
jmp 0x2792
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x10, %edi
jmp 0x27be
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x12, %edi
jmp 0x27be
movl $0xb, %edi
jmp 0x2a21
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x13, %edi
jmp 0x27be
movl $0xd, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0xe, %edi
callq 0x1e43
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0xc, %edi
movl $0x3, %esi
jmp 0x2830
movl $0xa, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
movl $0x3, %esi
movl $0x1, %edx
callq 0x1f66
jmp 0x2835
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f66
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x200e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f0b
movl $0x11, %edi
jmp 0x27be
leaq 0x36b3(%rip), %rdi      # 0x6134
leaq 0x36e6(%rip), %rsi      # 0x616e
leaq 0x391b(%rip), %rcx      # 0x63aa
movl $0x13e, %edx            # imm = 0x13E
jmp 0x2ae8
leaq 0x3697(%rip), %rdi      # 0x6134
leaq 0x36ca(%rip), %rsi      # 0x616e
leaq 0x38e9(%rip), %rcx      # 0x6394
movl $0x26e, %edx            # imm = 0x26E
jmp 0x2ae8
leaq 0x367b(%rip), %rdi      # 0x6134
leaq 0x36ae(%rip), %rsi      # 0x616e
leaq 0x391a(%rip), %rcx      # 0x63e1
movl $0x14b, %edx            # imm = 0x14B
jmp 0x2ae8
leaq 0x365f(%rip), %rdi      # 0x6134
leaq 0x3692(%rip), %rsi      # 0x616e
leaq 0x395b(%rip), %rcx      # 0x643e
movl $0x16a, %edx            # imm = 0x16A
xorl %eax, %eax
callq 0x1080
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1110
leaq 0x3634(%rip), %rdi      # 0x6134
leaq 0x3667(%rip), %rsi      # 0x616e
leaq 0x3aa4(%rip), %rcx      # 0x65b2
movl $0x241, %edx            # imm = 0x241
jmp 0x2ae8
leaq 0x3618(%rip), %rdi      # 0x6134
leaq 0x364b(%rip), %rsi      # 0x616e
leaq 0x3969(%rip), %rcx      # 0x6493
movl $0x171, %edx            # imm = 0x171
jmp 0x2ae8
leaq 0x35fc(%rip), %rdi      # 0x6134
leaq 0x362f(%rip), %rsi      # 0x616e
leaq 0x39ce(%rip), %rcx      # 0x6514
movl $0x1a5, %edx            # imm = 0x1A5
jmp 0x2ae8
leaq 0x35e0(%rip), %rdi      # 0x6134
leaq 0x3613(%rip), %rsi      # 0x616e
leaq 0x39e2(%rip), %rcx      # 0x6544
movl $0x1aa, %edx            # imm = 0x1AA
jmp 0x2ae8
leaq 0x35c1(%rip), %rdi      # 0x6134
leaq 0x35f4(%rip), %rsi      # 0x616e
leaq 0x3946(%rip), %rcx      # 0x64c7
movl $0x248, %edx            # imm = 0x248
jmp 0x2ae8
leaq 0x35a2(%rip), %rdi      # 0x6134
leaq 0x35d5(%rip), %rsi      # 0x616e
leaq 0x3863(%rip), %rcx      # 0x6403
movl $0x159, %edx            # imm = 0x159
jmp 0x2ae8
leaq 0x3583(%rip), %rdi      # 0x6134
leaq 0x35b6(%rip), %rsi      # 0x616e
leaq 0x3898(%rip), %rcx      # 0x6457
movl $0xf2, %edx
jmp 0x2ae8
leaq 0x3564(%rip), %rdi      # 0x6134
leaq 0x3597(%rip), %rsi      # 0x616e
leaq 0x38e9(%rip), %rcx      # 0x64c7
movl $0x197, %edx            # imm = 0x197
jmp 0x2ae8
leaq 0x3545(%rip), %rdi      # 0x6134
leaq 0x3578(%rip), %rsi      # 0x616e
leaq 0x38ca(%rip), %rcx      # 0x64c7
movl $0x189, %edx            # imm = 0x189
jmp 0x2ae8
leaq 0x3526(%rip), %rdi      # 0x6134
leaq 0x3559(%rip), %rsi      # 0x616e
leaq 0x38e1(%rip), %rcx      # 0x64fd
movl $0x19f, %edx            # imm = 0x19F
jmp 0x2ae8
leaq 0x3507(%rip), %rdi      # 0x6134
leaq 0x353a(%rip), %rsi      # 0x616e
leaq 0x3964(%rip), %rcx      # 0x659f
movl $0x222, %edx            # imm = 0x222
jmp 0x2ae8