// File: /workspace/github_c_makefile_star2_O1/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
testq %rdi, %rdi
je 0x2a73
movl (%rdi), %eax
testl %eax, %eax
jne 0x2111
movq 0x8(%rdi), %r12
testq %r12, %r12
je 0x2a8f
movl (%r12), %eax
cmpl $0x3, %eax
jne 0x216f
movq 0x8(%r12), %rdi
jmp 0x20e5
decl %eax
cmpl $0x4, %eax
ja 0x2aab
leaq 0x3f29(%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 0x20d7
testq %rax, %rax
je 0x2b2a
movq %rax, %rbx
movl (%r15), %eax
cmpq $0x4, %rax
ja 0x2c1c
leaq 0x3f38(%rip), %rcx      # 0x6094
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x6, %edi
jmp 0x2824
cmpl $0x4, %eax
ja 0x2ae3
movl %eax, %eax
leaq 0x3f27(%rip), %rcx      # 0x60a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x2efc
movq %rax, %rbx
movslq 0x8(%r12), %rsi
movl $0x1, %edi
movl $0x1, %edx
callq 0x2029
jmp 0x282e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2efc
movq 0x8(%rdi), %r13
callq 0x2efc
movq %rax, %rbx
leaq 0x40db(%rip), %rdi      # 0x62ac
callq 0x174f
movq %rax, %r12
leaq 0x40c2(%rip), %rdi      # 0x62a2
callq 0x174f
movq %rax, %r15
movq (%r13), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x15, %edi
movq %r12, %rsi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl $0x14, %edi
movq %r15, %rsi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
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 0x2f67
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r15, 0x8(%rax)
movl %r12d, 0x10(%rax)
jmp 0x282e
movq 0x8(%rdi), %r15
movq (%r15), %rax
cmpl $0x0, (%rax)
jne 0x2b0e
movq 0x8(%rax), %rax
cmpl $0x2, (%rax)
jne 0x2b0e
callq 0x2efc
movq %rax, %rbx
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movq (%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e87
testq %rax, %rax
je 0x2b81
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 0x2816
movq 0x8(%rdi), %r13
testq %r13, %r13
je 0x2b46
movq 0x8(%r13), %rdi
movq %r14, %rsi
callq 0x20d7
testq %rax, %rax
je 0x2b62
movq %rax, %rbx
movl (%r13), %eax
cmpl $0xa, %eax
je 0x25ba
cmpl $0xb, %eax
jne 0x26c4
leaq 0x41e3(%rip), %rdi      # 0x656d
callq 0x174f
movq %rax, %r12
leaq 0x41e5(%rip), %rdi      # 0x657e
callq 0x174f
movq %rax, %r15
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x15, %edi
movq %r12, %rsi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %esi
movl $0x1, %edi
movl $0x1, %edx
callq 0x2029
jmp 0x2606
callq 0x2efc
movq %rax, %rbx
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x2e87
testq %rax, %rax
je 0x2ba0
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 0x282e
movq 0x8(%r12), %rax
movq 0x8(%rax), %r15
callq 0x2efc
movq %rax, %rbx
movl $0x8, %edi
movl $0xb, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x8, %edi
movl $0xc, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
xorl %ebp, %ebp
leaq 0x3c24(%rip), %r13      # 0x60c0
movl (%rbp,%r13), %esi
movl $0x8, %edi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
addq $0x4, %rbp
cmpq $0x18, %rbp
jne 0x249c
testq %r15, %r15
je 0x2525
movl 0x18(%r15), %eax
testl %eax, %eax
je 0x2525
cmpl $0x7, %eax
jge 0x2bbf
movq %r15, %rdi
callq 0x2ffb
testq %rax, %rax
je 0x2525
movq %rax, %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl (%r13), %edx
movl $0x1, %edi
movl $0x1, %esi
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movq %r15, %rdi
callq 0x2ffb
addq $0x4, %r13
jmp 0x24de
movq 0x8(%r12), %rax
movq (%rax), %rsi
movl $0x17, %edi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x5, %r15d
callq 0x2efc
movq %rax, %r14
leaq 0x3b69(%rip), %r12      # 0x60c0
movl (%r12,%r15,4), %esi
movl $0x9, %edi
callq 0x1ee4
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f67
addq $-0x1, %r15
jb 0x2557
movl $0x9, %edi
movl $0xc, %esi
callq 0x1ee4
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x9, %edi
movl $0xb, %esi
callq 0x1ee4
movq %r14, %rdi
movq %rax, %rsi
callq 0x2f67
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2fad
jmp 0x2839
leaq 0x3fc4(%rip), %rdi      # 0x6585
callq 0x174f
movq %rax, %r12
leaq 0x3fc7(%rip), %rdi      # 0x6597
callq 0x174f
movq %rax, %r15
movl $0x1, %ebp
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x16, %edi
movq %r12, %rsi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x14, %edi
movq %r15, %rsi
callq 0x2c5a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
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 0x2f67
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl $0x40, %edi
callq 0x10e0
movl %ebp, (%rax)
movq %r15, 0x8(%rax)
movl %r12d, 0x10(%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0xf, %edi
jmp 0x27b7
movl $0x8, %edi
movl $0x1, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x20d7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2fad
movl $0x9, %edi
movl $0x3, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl (%r13), %eax
cmpq $0xc, %rax
ja 0x2c3b
leaq 0x393c(%rip), %rcx      # 0x6060
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x2, %edi
jmp 0x2a1a
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e87
testq %rax, %rax
je 0x2bde
movl 0x8(%rax), %ebp
movq 0x10(%rax), %r14
movl $0x40, %edi
callq 0x10e0
movl $0x0, (%rax)
movabsq $0x20000000a, %rcx      # imm = 0x20000000A
jmp 0x27fc
movl $0x4, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x5, %edi
movl $0x11, %esi
jmp 0x2829
movq 0x8(%r15), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x2e87
testq %rax, %rax
je 0x2bfd
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 0x282e
movl $0x7, %edi
movl $0x1, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
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 0x1f81
jmp 0x2693
movl $0xd, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0xe, %edi
callq 0x1e5e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0xc, %edi
movl $0x3, %esi
callq 0x1ee4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
movl $0x4, %esi
jmp 0x2a1f
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
jmp 0x278b
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x10, %edi
jmp 0x27b7
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x12, %edi
jmp 0x27b7
movl $0xb, %edi
jmp 0x2a1a
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x13, %edi
jmp 0x27b7
movl $0xd, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0xe, %edi
callq 0x1e5e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0xc, %edi
movl $0x3, %esi
jmp 0x2829
movl $0xa, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
movl $0x3, %esi
movl $0x1, %edx
callq 0x1f81
jmp 0x282e
movl $0x4, %edi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1f81
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x1, %edi
xorl %esi, %esi
movl $0x1, %edx
callq 0x2029
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2f67
movl $0x11, %edi
jmp 0x27b7
leaq 0x36ba(%rip), %rdi      # 0x6134
leaq 0x36ed(%rip), %rsi      # 0x616e
leaq 0x38eb(%rip), %rcx      # 0x6373
movl $0x252, %edx            # imm = 0x252
jmp 0x2afd
leaq 0x369e(%rip), %rdi      # 0x6134
leaq 0x36d1(%rip), %rsi      # 0x616e
leaq 0x3906(%rip), %rcx      # 0x63aa
movl $0x13e, %edx            # imm = 0x13E
jmp 0x2afd
leaq 0x3682(%rip), %rdi      # 0x6134
leaq 0x36b5(%rip), %rsi      # 0x616e
leaq 0x38d4(%rip), %rcx      # 0x6394
movl $0x26e, %edx            # imm = 0x26E
jmp 0x2afd
leaq 0x3666(%rip), %rdi      # 0x6134
leaq 0x3699(%rip), %rsi      # 0x616e
leaq 0x3905(%rip), %rcx      # 0x63e1
movl $0x14b, %edx            # imm = 0x14B
jmp 0x2afd
leaq 0x364a(%rip), %rdi      # 0x6134
leaq 0x367d(%rip), %rsi      # 0x616e
leaq 0x3946(%rip), %rcx      # 0x643e
movl $0x16a, %edx            # imm = 0x16A
xorl %eax, %eax
callq 0x1080
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1110
leaq 0x361f(%rip), %rdi      # 0x6134
leaq 0x3652(%rip), %rsi      # 0x616e
leaq 0x3a8f(%rip), %rcx      # 0x65b2
movl $0x241, %edx            # imm = 0x241
jmp 0x2afd
leaq 0x3603(%rip), %rdi      # 0x6134
leaq 0x3636(%rip), %rsi      # 0x616e
leaq 0x3954(%rip), %rcx      # 0x6493
movl $0x171, %edx            # imm = 0x171
jmp 0x2afd
leaq 0x35e7(%rip), %rdi      # 0x6134
leaq 0x361a(%rip), %rsi      # 0x616e
leaq 0x39b9(%rip), %rcx      # 0x6514
movl $0x1a5, %edx            # imm = 0x1A5
jmp 0x2afd
leaq 0x35cb(%rip), %rdi      # 0x6134
leaq 0x35fe(%rip), %rsi      # 0x616e
leaq 0x39cd(%rip), %rcx      # 0x6544
movl $0x1aa, %edx            # imm = 0x1AA
jmp 0x2afd
leaq 0x35ac(%rip), %rdi      # 0x6134
leaq 0x35df(%rip), %rsi      # 0x616e
leaq 0x3931(%rip), %rcx      # 0x64c7
movl $0x248, %edx            # imm = 0x248
jmp 0x2afd
leaq 0x358d(%rip), %rdi      # 0x6134
leaq 0x35c0(%rip), %rsi      # 0x616e
leaq 0x384e(%rip), %rcx      # 0x6403
movl $0x159, %edx            # imm = 0x159
jmp 0x2afd
leaq 0x356e(%rip), %rdi      # 0x6134
leaq 0x35a1(%rip), %rsi      # 0x616e
leaq 0x3883(%rip), %rcx      # 0x6457
movl $0xf2, %edx
jmp 0x2afd
leaq 0x354f(%rip), %rdi      # 0x6134
leaq 0x3582(%rip), %rsi      # 0x616e
leaq 0x38d4(%rip), %rcx      # 0x64c7
movl $0x197, %edx            # imm = 0x197
jmp 0x2afd
leaq 0x3530(%rip), %rdi      # 0x6134
leaq 0x3563(%rip), %rsi      # 0x616e
leaq 0x38b5(%rip), %rcx      # 0x64c7
movl $0x189, %edx            # imm = 0x189
jmp 0x2afd
leaq 0x3511(%rip), %rdi      # 0x6134
leaq 0x3544(%rip), %rsi      # 0x616e
leaq 0x38cc(%rip), %rcx      # 0x64fd
movl $0x19f, %edx            # imm = 0x19F
jmp 0x2afd
leaq 0x34f2(%rip), %rdi      # 0x6134
leaq 0x3525(%rip), %rsi      # 0x616e
leaq 0x394f(%rip), %rcx      # 0x659f
movl $0x222, %edx            # imm = 0x222
jmp 0x2afd