// File: /workspace/github_c_makefile_star2_O1/thiagok00[P]INF1715-Compilers/GeraCodigo.c
// Function: gera_codigo_expressao
static int gera_codigo_expressao(Exp *e) {

    switch(e->tag) {
      case EXP_CTE:
        return gera_codigo_expcte(e->u.expcte);
      case EXP_UNARIA:
        return gera_codigo_expunaria(e);
      case EXP_VAR:
        return gera_codigo_expvar(e);
      case EXP_ARITH:
        return gera_codigo_exparith(e);
      case EXP_CMP:
        return gera_codigo_expcmp(e);
      case EXP_AS:
        return gera_codigo_expas(e);
      case EXP_OR:
        return gera_codigo_expor(e);
      case EXP_AND:
        return gera_codigo_expand(e);
      case EXP_CHAMADA:
        return gera_codigo_expchamada(e);
      case EXP_NEW:
        return gera_codigo_expnew(e);
      default:
        return -1;
        break;
    }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl (%rdi), %eax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq $0x9, %rax
ja 0x5b24
movq %rdi, %r12
leaq 0x26ed(%rip), %rcx      # 0x78d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r12), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rax), %r14d
callq 0x51bc
movl %eax, %r15d
movq 0x18(%r12), %rdi
callq 0x51bc
movl 0x20(%r12), %edx
cmpl $0x3, %edx
ja 0x5b24
cmpl $0x1, %r14d
leaq 0x26d8(%rip), %rcx      # 0x7904
leaq 0x26cd(%rip), %rsi      # 0x7900
cmoveq %rcx, %rsi
cmpl $0x3, %r14d
leaq 0x2b74(%rip), %rcx      # 0x7db6
leaq 0x2b72(%rip), %rdi      # 0x7dbb
cmoveq %rcx, %rdi
leaq 0x2b55(%rip), %rcx      # 0x7da9
leaq 0x2b53(%rip), %r9       # 0x7dae
cmoveq %rcx, %r9
leaq 0x2b36(%rip), %rcx      # 0x7d9c
leaq 0x2b34(%rip), %r10      # 0x7da1
cmoveq %rcx, %r10
leaq 0x2b1f(%rip), %r8       # 0x7d97
leaq 0x2b19(%rip), %rcx      # 0x7d98
cmoveq %r8, %rcx
leaq 0x267d(%rip), %r8       # 0x7907
cmovneq %rsi, %r8
cmpl $0x1, %edx
cmoveq %r10, %rcx
cmpl $0x2, %edx
cmoveq %r9, %rcx
cmpl $0x3, %edx
cmoveq %rdi, %rcx
movl 0x4f07(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %edx
movl %edx, 0x4efe(%rip)      # 0xa1b0
movq 0x4ee7(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x2afd(%rip), %rsi      # 0x7dc0
movl %ebx, %edx
movl %r15d, %r9d
jmp 0x585d
movq 0x10(%r12), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rax), %r14d
cmpl $0x1, %r14d
leaq 0x261f(%rip), %rax      # 0x7904
leaq 0x2614(%rip), %r15      # 0x7900
cmoveq %rax, %r15
callq 0x51bc
movl %eax, %ebx
movq 0x18(%r12), %rdi
callq 0x51bc
cmpl $0x3, %r14d
leaq 0x25fb(%rip), %r8       # 0x7907
cmovneq %r15, %r8
leaq 0x2ac6(%rip), %rcx      # 0x7ddd
leaq 0x2ac8(%rip), %rdx      # 0x7de6
cmoveq %rcx, %rdx
leaq 0x2ac5(%rip), %rsi      # 0x7dee
leaq 0x2ac7(%rip), %rcx      # 0x7df7
cmoveq %rsi, %rcx
leaq 0x2ac4(%rip), %rsi      # 0x7dff
leaq 0x2ac6(%rip), %rdi      # 0x7e08
cmoveq %rsi, %rdi
leaq 0x2ac4(%rip), %rsi      # 0x7e11
leaq 0x2ac6(%rip), %r9       # 0x7e1a
cmoveq %rsi, %r9
leaq 0x2ac4(%rip), %rsi      # 0x7e23
leaq 0x2ac6(%rip), %r10      # 0x7e2c
cmovneq %r10, %rsi
leaq 0x2ac4(%rip), %r11      # 0x7e35
cmovneq %r10, %r11
movl 0x20(%r12), %r10d
cmpl $0x5, %r10d
cmovneq %rdx, %rcx
cmpl $0x8, %r10d
cmoveq %rdi, %rcx
cmpl $0x6, %r10d
cmoveq %r9, %rcx
cmpl $0x9, %r10d
cmoveq %rsi, %rcx
cmpl $0x7, %r10d
cmoveq %r11, %rcx
movl 0x4e07(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %edx
movl %edx, 0x4dfd(%rip)      # 0xa1b0
movq 0x4de6(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x29fc(%rip), %rsi      # 0x7dc0
movl %r14d, %edx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x1110
movl 0x4dd9(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4dd0(%rip)      # 0xa1b0
movq 0x4db9(%rip), %rdi      # 0xa1a0
leaq 0x2869(%rip), %rsi      # 0x7c57
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x5b24
movq 0x10(%r12), %r14
movl (%r14), %eax
cmpl $0x1, %eax
je 0x57e5
testl %eax, %eax
jne 0x5b24
movq 0x8(%r14), %rdi
callq 0x4809
movl 0x4d89(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4d80(%rip)      # 0xa1b0
cmpl $0x0, 0x18(%r14)
movq 0x4d64(%rip), %rdi      # 0xa1a0
movq 0x20(%r14), %rcx
movl 0x10(%rcx), %r9d
leaq 0x28c5(%rip), %rcx      # 0x7d10
leaq 0x28da(%rip), %rsi      # 0x7d2c
cmoveq %rcx, %rsi
movl %ebx, %edx
movq %rax, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1110
movq 0x8(%r14), %rax
cmpl $0x1, 0x4(%rax)
jne 0x5b24
movl 0x4d36(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4d2c(%rip)      # 0xa1b0
movq 0x4d15(%rip), %rdi      # 0xa1a0
leaq 0x28b7(%rip), %rsi      # 0x7d49
jmp 0x578e
movq 0x10(%r12), %rdi
callq 0x51bc
movl 0x4d08(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %ecx
movl %ecx, 0x4cfe(%rip)      # 0xa1b0
leaq 0x2985(%rip), %rdi      # 0x7e3e
xorl %ebx, %ebx
movl %r14d, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x10c0
movl 0x4cf7(%rip), %edx      # 0xa1c4
leal 0x1(%rdx), %ecx
leal 0x2(%rdx), %eax
movl %eax, 0x4ceb(%rip)      # 0xa1c4
leaq 0x297c(%rip), %rdi      # 0x7e5c
movl %r14d, %esi
xorl %eax, %eax
callq 0x10c0
jmp 0x5b24
movq 0x20(%r12), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x100(%rbp), %rdi
movl $0xc8, %edx
xorl %esi, %esi
callq 0x10e0
movq %r12, -0x30(%rbp)
movq 0x10(%r12), %r15
testq %r15, %r15
je 0x5573
leaq 0x2448(%rip), %r14      # 0x796b
leaq -0x100(%rbp), %rbx
movq (%r15), %rdi
callq 0x51bc
movl %eax, %r12d
movq (%r15), %rax
cmpq $0x0, 0x8(%r15)
movq 0x8(%rax), %rdi
movq %r14, %r13
leaq 0x2415(%rip), %rax      # 0x7960
cmoveq %rax, %r13
callq 0x4809
movq %rbx, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %rax, %rcx
movl %r12d, %r8d
xorl %eax, %eax
callq 0x11b0
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x552a
movq -0x38(%rbp), %rdi
cmpl $0x0, 0x4(%rdi)
je 0x57a2
movl 0x4c29(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4c20(%rip)      # 0xa1b0
movq 0x4c09(%rip), %r12      # 0xa1a0
callq 0x4809
movq -0x30(%rbp), %rcx
movq 0x18(%rcx), %r8
leaq 0x28e6(%rip), %rsi      # 0x7e91
movq %r12, %rdi
movl %ebx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
jmp 0x57c4
movq 0x10(%r12), %rdi
callq 0x51bc
movl 0x4be0(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %ecx
movl %ecx, 0x4bd6(%rip)      # 0xa1b0
movq 0x8(%r12), %rcx
xorl %edx, %edx
cmpl $0x1, 0x4(%rcx)
setne %dl
leal 0x1(%rdx,%rdx,2), %r8d
movq 0x4bac(%rip), %rdi      # 0xa1a0
leaq 0x28b1(%rip), %rsi      # 0x7eac
movl %r15d, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4ba3(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4b9a(%rip)      # 0xa1b0
movq 0x4b83(%rip), %rdi      # 0xa1a0
leaq 0x28a9(%rip), %rsi      # 0x7ecd
movl %ebx, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1110
movq 0x8(%r12), %rax
cmpl $0x1, 0x4(%rax)
je 0x5b24
movl 0x4b6a(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4b60(%rip)      # 0xa1b0
movq 0x4b49(%rip), %rdi      # 0xa1a0
leaq 0x2895(%rip), %rsi      # 0x7ef3
jmp 0x578e
movq 0x10(%r12), %rdi
callq 0x51bc
movl 0x18(%r12), %ecx
cmpl $0x1, %ecx
je 0x5869
testl %ecx, %ecx
jne 0x5b24
movq 0x10(%r12), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x598e
cmpl $0x2, %ecx
jne 0x5b24
movl 0x4b09(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4b00(%rip)      # 0xa1b0
movq 0x4ae9(%rip), %rdi      # 0xa1a0
leaq 0x255d(%rip), %rsi      # 0x7c1b
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4ae0(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4ad6(%rip)      # 0xa1b0
movq 0x4abf(%rip), %rdi      # 0xa1a0
leaq 0x2552(%rip), %rsi      # 0x7c3a
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x53d1
movq 0x10(%r12), %rax
movl (%rax), %ecx
cmpl $0x2, %ecx
je 0x58d9
cmpl $0x1, %ecx
je 0x58a9
testl %ecx, %ecx
jne 0x5b24
movl 0x4a90(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4a87(%rip)      # 0xa1b0
movq 0x4a70(%rip), %rdi      # 0xa1a0
movl 0x8(%rax), %ecx
leaq 0x240b(%rip), %rsi      # 0x7b45
movl %ebx, %edx
jmp 0x53f3
movq 0x10(%r12), %rdi
callq 0x51bc
movl %eax, %ebx
movq 0x10(%r12), %rax
movq 0x8(%rax), %rax
cmpl $0x2, 0x4(%rax)
jne 0x5b24
movq 0x8(%r12), %rax
cmpl $0x3, 0x4(%rax)
jne 0x5b24
movl 0x4a3a(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4a30(%rip)      # 0xa1b0
movq 0x4a19(%rip), %rdi      # 0xa1a0
leaq 0x2515(%rip), %rsi      # 0x7ca3
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl %r14d, %ebx
jmp 0x5b24
movq 0x49f7(%rip), %rdi      # 0xa1a0
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x26c9(%rip), %rsi      # 0x7e81
xorl %eax, %eax
callq 0x1110
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x49d5(%rip), %rdi      # 0xa1a0
leaq 0x26d5(%rip), %rsi      # 0x7ea7
leaq -0x100(%rbp), %rdx
xorl %eax, %eax
callq 0x1110
jmp 0x5b24
movq 0x10(%r14), %rbx
movq 0x18(%r14), %r15
movq 0x8(%rbx), %rdi
movl 0x4(%rdi), %eax
cmpl $0x1, %eax
leaq 0x2106(%rip), %rcx      # 0x7904
leaq 0x20fb(%rip), %rdx      # 0x7900
cmoveq %rcx, %rdx
cmpl $0x3, %eax
leaq 0x20f4(%rip), %r14      # 0x7907
cmovneq %rdx, %r14
callq 0x4809
movq %rax, %r12
movq %rbx, %rdi
callq 0x51bc
movl %eax, %r13d
movq %r15, %rdi
callq 0x51bc
movl 0x4978(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x496f(%rip)      # 0xa1b0
movq 0x4958(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x2516(%rip), %rsi      # 0x7d68
movl %ebx, %edx
movq %r14, %rcx
movq %r12, %r8
movl %r13d, %r9d
xorl %eax, %eax
callq 0x1110
jmp 0x5b24
movq 0x10(%r12), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x5a34
cmpl $0x2, %ecx
jne 0x5b24
movl 0x4923(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x491a(%rip)      # 0xa1b0
movq 0x4903(%rip), %rdi      # 0xa1a0
leaq 0x2423(%rip), %rsi      # 0x7cc7
jmp 0x5a51
movl 0x4901(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x48f8(%rip)      # 0xa1b0
movq 0x48e1(%rip), %rdi      # 0xa1a0
cvtss2sd 0x8(%rax), %xmm0
leaq 0x2292(%rip), %rsi      # 0x7b5d
movl %ebx, %edx
movb $0x1, %al
callq 0x1110
jmp 0x5b24
movl 0x48e1(%rip), %ebx      # 0xa1c0
leal 0x1(%rbx), %ecx
movl %ecx, 0x48d8(%rip)      # 0xa1c0
movq 0x8(%rax), %r15
movq %r15, %rdi
callq 0x10b0
movq %rax, %r12
leaq (%rax,%rax,2), %rax
incl %eax
movslq %eax, %rdi
callq 0x1160
testq %rax, %rax
je 0x5b38
movq %rax, %r14
xorl %eax, %eax
testl %r12d, %r12d
jle 0x5a5a
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %edx, %edx
movzbl (%r15,%rdx), %esi
movl %eax, %eax
cmpl $0x9, %esi
je 0x595b
cmpl $0x5c, %esi
je 0x594c
cmpl $0xa, %esi
jne 0x596f
movw $0x305c, (%r14,%rax)    # imm = 0x305C
movb $0x41, 0x2(%r14,%rax)
jmp 0x5968
movw $0x355c, (%r14,%rax)    # imm = 0x355C
movb $0x43, 0x2(%r14,%rax)
jmp 0x5968
movw $0x305c, (%r14,%rax)    # imm = 0x305C
movb $0x39, 0x2(%r14,%rax)
movl $0x3, %esi
jmp 0x5978
movb %sil, (%r14,%rax)
movl $0x1, %esi
addl %esi, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x5927
movl %eax, %eax
leal 0x1(%r12), %r15d
jmp 0x5a60
movl 0x481c(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4813(%rip)      # 0xa1b0
movq 0x47fc(%rip), %rdi      # 0xa1a0
leaq 0x22cb(%rip), %rsi      # 0x7c76
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x47f3(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x47e9(%rip)      # 0xa1b0
movq 0x47d2(%rip), %rdi      # 0xa1a0
leaq 0x2265(%rip), %rsi      # 0x7c3a
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x47c8(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %eax
movl %eax, 0x47be(%rip)      # 0xa1b0
movq 0x47a7(%rip), %rdi      # 0xa1a0
leaq 0x2257(%rip), %rsi      # 0x7c57
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x479d(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4794(%rip)      # 0xa1b0
movq 0x477d(%rip), %rdi      # 0xa1a0
leaq 0x2279(%rip), %rsi      # 0x7ca3
movl %ebx, %edx
movl %r15d, %ecx
jmp 0x53f3
movl 0x4776(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x476d(%rip)      # 0xa1b0
movq 0x4756(%rip), %rdi      # 0xa1a0
leaq 0x2295(%rip), %rsi      # 0x7ce6
movl %ebx, %edx
movl %eax, %ecx
jmp 0x53f3
movl $0x1, %r15d
movb $0x0, (%r14,%rax)
leaq 0x210e(%rip), %rsi      # 0x7b7a
leaq -0x100(%rbp), %r13
movq %r13, %rdi
movl %ebx, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x11b0
movq %r13, %rdi
callq 0x10b0
movq %rax, %r12
movq %r14, %rdi
callq 0x10b0
leaq (%r12,%rax), %rdi
addq $0x4, %rdi
callq 0x1160
movq %rax, %r12
leaq 0x2101(%rip), %rsi      # 0x7bad
movq %rax, %rdi
movq %r13, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x11b0
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x5b38
movq %r12, (%rax)
movq 0x46d3(%rip), %rcx      # 0xa1a8
movq %rcx, 0x8(%rax)
movq %rax, 0x46c8(%rip)      # 0xa1a8
movl $0xc8, %edi
callq 0x1160
testq %rax, %rax
je 0x5b38
movq %rax, %r14
leaq 0x20bd(%rip), %rsi      # 0x7bb6
movq %rax, %rdi
movl %r15d, %edx
movl %r15d, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x11b0
movq 0x46a5(%rip), %rdi      # 0xa1b8
testq %rdi, %rdi
je 0x5b1d
callq 0x1030
movq %r14, 0x4694(%rip)      # 0xa1b8
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x255f(%rip), %rdi      # 0x809e
callq 0x1070
movl $0x1, %edi
callq 0x11c0