// File: /workspace/github_c_makefile_star2_O2/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
movq %rsi, %r14
leaq 0x30f8(%rip), %rax      # 0x504c
leaq 0x3151(%rip), %rcx      # 0x50ac
testq %rdi, %rdi
je 0x277c
movl (%rdi), %edx
cmpq $0x5, %rdx
ja 0x27b4
movslq (%rax,%rdx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movq 0x8(%rdi), %r12
testq %r12, %r12
je 0x2798
movl (%r12), %edx
cmpq $0x4, %rdx
ja 0x27d0
movslq (%rcx,%rdx,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movq 0x8(%r12), %rdi
jmp 0x1f5b
movq %r14, %rsi
movq 0x8(%rdi), %r14
movq 0x8(%r14), %rdi
movq %rsi, %r15
callq 0x1f3f
testq %rax, %rax
je 0x2831
movq %rax, %rbx
movl (%r14), %eax
cmpq $0x4, %rax
ja 0x2920
leaq 0x30c1(%rip), %rcx      # 0x5098
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x6
jmp 0x2581
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x284d
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x1f3f
testq %rax, %rax
je 0x2869
movq %rax, %rbx
movl (%r15), %eax
cmpl $0xa, %eax
je 0x23b2
cmpl $0xb, %eax
jne 0x248b
leaq 0x3571(%rip), %rdi      # 0x5599
callq 0x1653
movq %rax, %r13
leaq 0x3573(%rip), %rdi      # 0x55aa
callq 0x1653
movq %rax, %r12
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x15
popq %rdi
movq %r13, %rsi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x1
popq %rsi
movl %ebp, %edi
movl %ebp, %edx
callq 0x1e60
jmp 0x23f5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2c34
movq 0x8(%rdi), %r13
callq 0x2c34
movq %rax, %rbx
leaq 0x3232(%rip), %rdi      # 0x52d8
callq 0x1653
movq %rax, %r12
leaq 0x3219(%rip), %rdi      # 0x52ce
callq 0x1653
movq %rax, %r15
movq (%r13), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
pushq $0x4
popq %rdi
pushq $0x1
popq %rdx
xorl %esi, %esi
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x15
popq %rdi
movq %r12, %rsi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
pushq $0x14
popq %rdi
movq %r15, %rsi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq %r12, %rdi
xorl %esi, %esi
callq 0x162d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
movq %r15, %rdi
xorl %esi, %esi
callq 0x162d
jmp 0x258a
movq 0x8(%rdi), %r15
movq (%r15), %rax
cmpl $0x0, (%rax)
jne 0x2815
movq 0x8(%rax), %rax
cmpl $0x2, (%rax)
jne 0x2815
callq 0x2c34
movq %rax, %rbx
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
movq (%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2bc8
testq %rax, %rax
je 0x2885
movl 0x8(%rax), %esi
movq 0x10(%rax), %rdx
pushq $0x1
popq %rdi
callq 0x1eff
jmp 0x258a
movq %r14, (%rsp)
movq 0x8(%r12), %rax
movq 0x8(%rax), %r15
callq 0x2c34
movq %rax, %rbx
pushq $0x8
popq %rbp
pushq $0xb
popq %rsi
movl %ebp, %edi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xc
popq %rsi
movl %ebp, %edi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
xorl %r14d, %r14d
leaq 0x2e9e(%rip), %r13      # 0x50c0
cmpq $0x18, %r14
je 0x2244
movl (%r14,%r13), %esi
movl %ebp, %edi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
addq $0x4, %r14
jmp 0x2222
testq %r15, %r15
movq (%rsp), %r14
je 0x2321
movl 0x18(%r15), %eax
testl %eax, %eax
je 0x2321
cmpl $0x6, %eax
jg 0x28c3
pushq $0x1
popq %rbp
movq %r15, %rdi
callq 0x2d0a
testq %rax, %rax
je 0x2321
movq %rax, %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
movl (%r13), %edx
movl %ebp, %edi
movl %ebp, %esi
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
addq $0x4, %r13
jmp 0x2269
callq 0x2c34
movq %rax, %rbx
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x2bc8
testq %rax, %rax
je 0x28a4
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
pushq $0x40
popq %rdi
callq 0x10e0
andl $0x0, (%rax)
movabsq $0x200000001, %rcx      # imm = 0x200000001
movq %rcx, 0x8(%rax)
pushq $0x1
popq %rcx
movl %ecx, 0x10(%rax)
movl %ebp, 0x18(%rax)
movq %r14, 0x20(%rax)
andl $0x0, 0x28(%rax)
movl %ecx, 0x30(%rax)
jmp 0x258a
callq 0x2c34
movq %rax, %rbx
movslq 0x8(%r12), %rsi
pushq $0x1
popq %rdi
movl %edi, %edx
callq 0x1e60
jmp 0x258a
movq 0x8(%r12), %rax
movq (%rax), %rsi
pushq $0x17
popq %rdi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x5
popq %r15
callq 0x2c34
movq %rax, %r14
leaq 0x2d71(%rip), %r12      # 0x50c0
pushq $0x9
popq %rbp
testl %r15d, %r15d
js 0x2375
movl %r15d, %eax
movl (%r12,%rax,4), %esi
movl %ebp, %edi
callq 0x1d33
movq %r14, %rdi
movq %rax, %rsi
callq 0x2c7e
decl %r15d
jmp 0x2352
pushq $0x9
popq %rbp
pushq $0xc
popq %rsi
movl %ebp, %edi
callq 0x1d33
movq %r14, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xb
popq %rsi
movl %ebp, %edi
callq 0x1d33
movq %r14, %rdi
movq %rax, %rsi
callq 0x2c7e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2cbd
jmp 0x2595
leaq 0x31f8(%rip), %rdi      # 0x55b1
callq 0x1653
movq %rax, %r13
leaq 0x31fb(%rip), %rdi      # 0x55c3
callq 0x1653
movq %rax, %r12
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x16
popq %rdi
movq %r13, %rsi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x14
popq %rdi
movq %r12, %rsi
callq 0x295e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq %r13, %rdi
xorl %esi, %esi
callq 0x162d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq 0x10(%r15), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
movq %r12, %rdi
xorl %esi, %esi
callq 0x162d
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x4
popq %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xf
jmp 0x254c
pushq $0x8
popq %rdi
pushq $0x1
popq %rsi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq 0x10(%r15), %rdi
movq %r14, %rsi
callq 0x1f3f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2cbd
pushq $0x9
popq %rdi
pushq $0x3
popq %rsi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl (%r15), %eax
cmpq $0xc, %rax
ja 0x293f
leaq 0x2b82(%rip), %rcx      # 0x5064
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x2
jmp 0x2695
movq 0x8(%r14), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x2bc8
testq %rax, %rax
je 0x28e2
movl 0x8(%rax), %esi
movq 0x10(%rax), %rdx
pushq $0xa
jmp 0x2577
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x5
popq %rdi
pushq $0x11
jmp 0x2584
movq 0x8(%r14), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
callq 0x2bc8
testq %rax, %rax
je 0x2901
movl 0x8(%rax), %esi
movq 0x10(%rax), %rdx
pushq $0x2
popq %rdi
callq 0x2ab9
jmp 0x258a
pushq $0x7
popq %rdi
pushq $0x1
popq %rsi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
jmp 0x2463
pushq $0xd
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %r14
movl %ebp, %esi
movl %r14d, %edx
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xe
popq %rdi
callq 0x1cb1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xc
popq %rdi
movl %r14d, %esi
callq 0x1d33
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x4
popq %rsi
movl %ebp, %edi
jmp 0x2735
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
jmp 0x2529
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x10
jmp 0x254c
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x12
jmp 0x254c
pushq $0xb
popq %rdi
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
jmp 0x2737
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x13
jmp 0x254c
pushq $0xd
popq %rdi
pushq $0x1
popq %rsi
pushq $0x3
popq %rbp
movl %ebp, %edx
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xe
popq %rdi
callq 0x1cb1
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0xc
popq %rdi
movl %ebp, %esi
jmp 0x2585
pushq $0xa
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %r14
movl %ebp, %esi
movl %r14d, %edx
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
movl %r14d, %esi
movl %ebp, %edx
callq 0x1dc7
jmp 0x258a
pushq $0x4
popq %rdi
pushq $0x1
popq %rbp
pushq $0x3
popq %rdx
movl %ebp, %esi
callq 0x1dc7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
movl %ebp, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x1e60
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2c7e
pushq $0x11
popq %rdi
movl %edi, %esi
jmp 0x2585
leaq 0x29b1(%rip), %rdi      # 0x5134
leaq 0x29e4(%rip), %rsi      # 0x516e
leaq 0x2c0e(%rip), %rcx      # 0x539f
movl $0x252, %edx            # imm = 0x252
jmp 0x2806
leaq 0x2995(%rip), %rdi      # 0x5134
leaq 0x29c8(%rip), %rsi      # 0x516e
leaq 0x2c29(%rip), %rcx      # 0x53d6
movl $0x13e, %edx            # imm = 0x13E
jmp 0x2806
leaq 0x2979(%rip), %rdi      # 0x5134
leaq 0x29ac(%rip), %rsi      # 0x516e
leaq 0x2bf7(%rip), %rcx      # 0x53c0
movl $0x26e, %edx            # imm = 0x26E
jmp 0x2806
leaq 0x295d(%rip), %rdi      # 0x5134
leaq 0x2990(%rip), %rsi      # 0x516e
leaq 0x2c85(%rip), %rcx      # 0x546a
movl $0x16a, %edx            # imm = 0x16A
jmp 0x2806
leaq 0x2941(%rip), %rdi      # 0x5134
leaq 0x2974(%rip), %rsi      # 0x516e
leaq 0x2c0c(%rip), %rcx      # 0x540d
movl $0x14b, %edx            # imm = 0x14B
xorl %eax, %eax
callq 0x1080
pushq $-0x1
popq %rdi
callq 0x1110
leaq 0x2918(%rip), %rdi      # 0x5134
leaq 0x294b(%rip), %rsi      # 0x516e
leaq 0x2db4(%rip), %rcx      # 0x55de
movl $0x241, %edx            # imm = 0x241
jmp 0x2806
leaq 0x28fc(%rip), %rdi      # 0x5134
leaq 0x292f(%rip), %rsi      # 0x516e
leaq 0x2c79(%rip), %rcx      # 0x54bf
movl $0x171, %edx            # imm = 0x171
jmp 0x2806
leaq 0x28e0(%rip), %rdi      # 0x5134
leaq 0x2913(%rip), %rsi      # 0x516e
leaq 0x2cde(%rip), %rcx      # 0x5540
movl $0x1a5, %edx            # imm = 0x1A5
jmp 0x2806
leaq 0x28c4(%rip), %rdi      # 0x5134
leaq 0x28f7(%rip), %rsi      # 0x516e
leaq 0x2cf2(%rip), %rcx      # 0x5570
movl $0x1aa, %edx            # imm = 0x1AA
jmp 0x2806
leaq 0x28a8(%rip), %rdi      # 0x5134
leaq 0x28db(%rip), %rsi      # 0x516e
leaq 0x2c59(%rip), %rcx      # 0x54f3
movl $0x248, %edx            # imm = 0x248
jmp 0x2806
leaq 0x2889(%rip), %rdi      # 0x5134
leaq 0x28bc(%rip), %rsi      # 0x516e
leaq 0x2b76(%rip), %rcx      # 0x542f
movl $0x159, %edx            # imm = 0x159
jmp 0x2806
leaq 0x286a(%rip), %rdi      # 0x5134
leaq 0x289d(%rip), %rsi      # 0x516e
leaq 0x2bab(%rip), %rcx      # 0x5483
movl $0xf2, %edx
jmp 0x2806
leaq 0x284b(%rip), %rdi      # 0x5134
leaq 0x287e(%rip), %rsi      # 0x516e
leaq 0x2bfc(%rip), %rcx      # 0x54f3
movl $0x197, %edx            # imm = 0x197
jmp 0x2806
leaq 0x282c(%rip), %rdi      # 0x5134
leaq 0x285f(%rip), %rsi      # 0x516e
leaq 0x2bdd(%rip), %rcx      # 0x54f3
movl $0x189, %edx            # imm = 0x189
jmp 0x2806
leaq 0x280d(%rip), %rdi      # 0x5134
leaq 0x2840(%rip), %rsi      # 0x516e
leaq 0x2bf4(%rip), %rcx      # 0x5529
movl $0x19f, %edx            # imm = 0x19F
jmp 0x2806
leaq 0x27ee(%rip), %rdi      # 0x5134
leaq 0x2821(%rip), %rsi      # 0x516e
leaq 0x2c77(%rip), %rcx      # 0x55cb
movl $0x222, %edx            # imm = 0x222
jmp 0x2806