// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rbx
cmpq $0x9, %rax
ja 0x5325
movq %rdi, %r14
leaq 0x2e09(%rip), %rcx      # 0x78d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r14), %rdi
movq 0x8(%rdi), %rax
movq %r14, %r12
movl 0x4(%rax), %r14d
callq 0x4a9a
movl %eax, %r15d
movq 0x18(%r12), %rdi
callq 0x4a9a
movl 0x20(%r12), %edx
cmpl $0x3, %edx
ja 0x5325
cmpl $0x1, %r14d
leaq 0x2df2(%rip), %rcx      # 0x78fc
leaq 0x2de7(%rip), %rsi      # 0x78f8
cmoveq %rcx, %rsi
cmpl $0x3, %r14d
leaq 0x328e(%rip), %rcx      # 0x7dae
leaq 0x328c(%rip), %rdi      # 0x7db3
cmoveq %rcx, %rdi
leaq 0x326f(%rip), %rcx      # 0x7da1
leaq 0x326d(%rip), %r9       # 0x7da6
cmoveq %rcx, %r9
leaq 0x3250(%rip), %rcx      # 0x7d94
leaq 0x324e(%rip), %r10      # 0x7d99
cmoveq %rcx, %r10
leaq 0x3239(%rip), %r8       # 0x7d8f
leaq 0x3233(%rip), %rcx      # 0x7d90
cmoveq %r8, %rcx
leaq 0x2d97(%rip), %r8       # 0x78ff
cmovneq %rsi, %r8
cmpl $0x1, %edx
cmoveq %r10, %rcx
cmpl $0x2, %edx
cmoveq %r9, %rcx
cmpl $0x3, %edx
cmoveq %rdi, %rcx
movl 0x5629(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %edx
movl %edx, 0x5620(%rip)      # 0xa1b0
movq 0x5609(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x3217(%rip), %rsi      # 0x7db8
movl %ebx, %edx
movl %r15d, %r9d
jmp 0x5129
movq 0x10(%r14), %rdi
movq 0x8(%rdi), %rax
movq %r14, %r12
movl 0x4(%rax), %r14d
cmpl $0x1, %r14d
leaq 0x2d37(%rip), %rax      # 0x78fc
leaq 0x2d2c(%rip), %r15      # 0x78f8
cmoveq %rax, %r15
callq 0x4a9a
movl %eax, %ebx
movq 0x18(%r12), %rdi
callq 0x4a9a
cmpl $0x3, %r14d
leaq 0x2d13(%rip), %r8       # 0x78ff
cmovneq %r15, %r8
leaq 0x31de(%rip), %rcx      # 0x7dd5
leaq 0x31e0(%rip), %rdx      # 0x7dde
cmoveq %rcx, %rdx
leaq 0x31dd(%rip), %rsi      # 0x7de6
leaq 0x31df(%rip), %rcx      # 0x7def
cmoveq %rsi, %rcx
leaq 0x31dc(%rip), %rsi      # 0x7df7
leaq 0x31de(%rip), %rdi      # 0x7e00
cmoveq %rsi, %rdi
leaq 0x31dc(%rip), %rsi      # 0x7e09
leaq 0x31de(%rip), %r9       # 0x7e12
cmoveq %rsi, %r9
leaq 0x31dc(%rip), %rsi      # 0x7e1b
leaq 0x31de(%rip), %r10      # 0x7e24
cmovneq %r10, %rsi
leaq 0x31dc(%rip), %r11      # 0x7e2d
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 0x5527(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %edx
movl %edx, 0x551d(%rip)      # 0xa1b0
movq 0x5506(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x3114(%rip), %rsi      # 0x7db8
movl %r14d, %edx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x1110
movl 0x54f9(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x54f0(%rip)      # 0xa1b0
movq 0x54d9(%rip), %rdi      # 0xa1a0
leaq 0x2f81(%rip), %rsi      # 0x7c4f
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x5325
movq 0x10(%r14), %r14
movl (%r14), %eax
cmpl $0x1, %eax
je 0x50b1
testl %eax, %eax
jne 0x5325
movq 0x8(%r14), %rdi
callq 0x4145
movl 0x54aa(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x54a1(%rip)      # 0xa1b0
cmpl $0x0, 0x18(%r14)
movq 0x5485(%rip), %rdi      # 0xa1a0
movq 0x20(%r14), %rcx
movl 0x10(%rcx), %r9d
leaq 0x2fde(%rip), %rcx      # 0x7d08
leaq 0x2ff3(%rip), %rsi      # 0x7d24
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 0x5325
movl 0x5457(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x544d(%rip)      # 0xa1b0
movq 0x5436(%rip), %rdi      # 0xa1a0
leaq 0x2fd0(%rip), %rsi      # 0x7d41
jmp 0x505c
movq 0x10(%r14), %rdi
callq 0x4a9a
movl 0x542a(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %ecx
movl %ecx, 0x5420(%rip)      # 0xa1b0
leaq 0x309f(%rip), %rdi      # 0x7e36
xorl %ebx, %ebx
movl %r14d, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x10c0
movl 0x5419(%rip), %edx      # 0xa1c4
leal 0x1(%rdx), %ecx
leal 0x2(%rdx), %eax
movl %eax, 0x540d(%rip)      # 0xa1c4
leaq 0x3096(%rip), %rdi      # 0x7e54
movl %r14d, %esi
xorl %eax, %eax
callq 0x10c0
jmp 0x5325
leaq 0x10(%r14), %r15
movq %r14, -0x30(%rbp)
movq 0x20(%r14), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x100(%rbp), %rbx
movl $0xc8, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10e0
leaq 0x2b66(%rip), %r14      # 0x7963
movq (%r15), %r15
testq %r15, %r15
je 0x4e4b
movq (%r15), %rdi
callq 0x4a9a
movl %eax, %r12d
movq (%r15), %rax
movq 0x8(%rax), %rdi
cmpq $0x0, 0x8(%r15)
leaq 0x8(%r15), %r15
movq %r14, %r13
leaq 0x2b2e(%rip), %rax      # 0x7958
cmoveq %rax, %r13
callq 0x4145
movq %rbx, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %rax, %rcx
movl %r12d, %r8d
xorl %eax, %eax
callq 0x11b0
jmp 0x4dfd
movq -0x38(%rbp), %rdi
cmpl $0x0, 0x4(%rdi)
je 0x5070
movl 0x5351(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x5348(%rip)      # 0xa1b0
movq 0x5331(%rip), %r12      # 0xa1a0
callq 0x4145
movq -0x30(%rbp), %rcx
movq 0x18(%rcx), %r8
leaq 0x3006(%rip), %rsi      # 0x7e89
movq %r12, %rdi
movl %ebx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
jmp 0x5090
movq 0x10(%r14), %rdi
callq 0x4a9a
movl 0x5309(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %ecx
movl %ecx, 0x52ff(%rip)      # 0xa1b0
movq 0x8(%r14), %rcx
xorl %edx, %edx
cmpl $0x1, 0x4(%rcx)
setne %dl
leal 0x1(%rdx,%rdx,2), %r8d
movq 0x52d6(%rip), %rdi      # 0xa1a0
leaq 0x2fd3(%rip), %rsi      # 0x7ea4
movl %r15d, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x52cd(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x52c4(%rip)      # 0xa1b0
movq 0x52ad(%rip), %rdi      # 0xa1a0
leaq 0x2fcb(%rip), %rsi      # 0x7ec5
movl %ebx, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1110
movq 0x8(%r14), %rax
cmpl $0x1, 0x4(%rax)
je 0x5325
movl 0x5295(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x528b(%rip)      # 0xa1b0
movq 0x5274(%rip), %rdi      # 0xa1a0
leaq 0x2fb8(%rip), %rsi      # 0x7eeb
jmp 0x505c
movq 0x10(%r14), %rdi
callq 0x4a9a
movl 0x18(%r14), %ecx
cmpl $0x1, %ecx
je 0x5135
testl %ecx, %ecx
jne 0x5325
movq 0x10(%r14), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x5339
cmpl $0x2, %ecx
jne 0x5325
movl 0x5237(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x522e(%rip)      # 0xa1b0
movq 0x5217(%rip), %rdi      # 0xa1a0
leaq 0x2c83(%rip), %rsi      # 0x7c13
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x520e(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x5204(%rip)      # 0xa1b0
movq 0x51ed(%rip), %rdi      # 0xa1a0
leaq 0x2c78(%rip), %rsi      # 0x7c32
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x4cb1
movq 0x10(%r14), %rax
movl (%rax), %ecx
cmpl $0x2, %ecx
je 0x51a4
cmpl $0x1, %ecx
je 0x5174
testl %ecx, %ecx
jne 0x5325
movl 0x51bf(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x51b6(%rip)      # 0xa1b0
movq 0x519f(%rip), %rdi      # 0xa1a0
movl 0x8(%rax), %ecx
leaq 0x2b32(%rip), %rsi      # 0x7b3d
movl %ebx, %edx
jmp 0x4cd3
movq 0x10(%r14), %rdi
callq 0x4a9a
movl %eax, %ebx
movq 0x10(%r14), %rax
movq 0x8(%rax), %rax
cmpl $0x2, 0x4(%rax)
jne 0x5325
movq 0x8(%r14), %rax
cmpl $0x3, 0x4(%rax)
jne 0x5325
movl 0x516c(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x5162(%rip)      # 0xa1b0
movq 0x514b(%rip), %rdi      # 0xa1a0
leaq 0x2c3f(%rip), %rsi      # 0x7c9b
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl %r14d, %ebx
jmp 0x5325
movq 0x5129(%rip), %rdi      # 0xa1a0
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x2df3(%rip), %rsi      # 0x7e79
xorl %eax, %eax
callq 0x1110
pushq $-0x1
popq %rbx
movq 0x5109(%rip), %rdi      # 0xa1a0
leaq 0x2e01(%rip), %rsi      # 0x7e9f
leaq -0x100(%rbp), %rdx
xorl %eax, %eax
callq 0x1110
jmp 0x5325
movq 0x10(%r14), %rbx
movq 0x18(%r14), %r15
movq 0x8(%rbx), %rdi
movl 0x4(%rdi), %eax
cmpl $0x1, %eax
leaq 0x2832(%rip), %rcx      # 0x78fc
leaq 0x2827(%rip), %rdx      # 0x78f8
cmoveq %rcx, %rdx
cmpl $0x3, %eax
leaq 0x2820(%rip), %r14      # 0x78ff
cmovneq %rdx, %r14
callq 0x4145
movq %rax, %r12
movq %rbx, %rdi
callq 0x4a9a
movl %eax, %r13d
movq %r15, %rdi
callq 0x4a9a
movl 0x50ac(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x50a3(%rip)      # 0xa1b0
movq 0x508c(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x2c42(%rip), %rsi      # 0x7d60
movl %ebx, %edx
movq %r14, %rcx
movq %r12, %r8
movl %r13d, %r9d
xorl %eax, %eax
callq 0x1110
jmp 0x5325
movq 0x10(%r14), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x53df
cmpl $0x2, %ecx
jne 0x5325
movl 0x5058(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x504f(%rip)      # 0xa1b0
movq 0x5038(%rip), %rdi      # 0xa1a0
leaq 0x2b50(%rip), %rsi      # 0x7cbf
jmp 0x53fc
movl 0x5036(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x502d(%rip)      # 0xa1b0
movq 0x5016(%rip), %rdi      # 0xa1a0
cvtss2sd 0x8(%rax), %xmm0
leaq 0x29bf(%rip), %rsi      # 0x7b55
movl %ebx, %edx
movb $0x1, %al
callq 0x1110
jmp 0x5325
movl 0x5016(%rip), %ebx      # 0xa1c0
leal 0x1(%rbx), %ecx
movl %ecx, 0x500d(%rip)      # 0xa1c0
movq 0x8(%rax), %r12
movq %r12, %rdi
callq 0x10b0
movq %rax, %r14
movabsq $0x300000000, %rax      # imm = 0x300000000
imulq %r14, %rax
movabsq $0x100000000, %rdi      # imm = 0x100000000
addq %rax, %rdi
sarq $0x20, %rdi
callq 0x1160
testq %rax, %rax
je 0x5405
movq %rax, %r15
xorl %eax, %eax
testl %r14d, %r14d
cmovlel %eax, %r14d
pushq $0x3
popq %rcx
pushq $0x1
popq %rdx
xorl %esi, %esi
movl %esi, %edi
cmpq %rax, %r14
je 0x525d
movzbl (%r12,%rax), %r8d
cmpl $0x9, %r8d
je 0x523f
cmpl $0x5c, %r8d
je 0x5230
cmpl $0xa, %r8d
jne 0x5250
movw $0x305c, (%r15,%rdi)    # imm = 0x305C
movb $0x41, 0x2(%r15,%rdi)
jmp 0x524c
movw $0x355c, (%r15,%rdi)    # imm = 0x355C
movb $0x43, 0x2(%r15,%rdi)
jmp 0x524c
movw $0x305c, (%r15,%rdi)    # imm = 0x305C
movb $0x39, 0x2(%r15,%rdi)
movl %ecx, %edi
jmp 0x5256
movb %r8b, (%r15,%rdi)
movl %edx, %edi
addl %edi, %esi
incq %rax
jmp 0x5203
movb $0x0, (%r15,%rdi)
incl %r14d
leaq 0x2906(%rip), %rsi      # 0x7b72
leaq -0x100(%rbp), %r13
movq %r13, %rdi
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x11b0
movq %r13, %rdi
callq 0x10b0
movq %rax, %r12
movq %r15, %rdi
callq 0x10b0
leaq (%r12,%rax), %rdi
addq $0x4, %rdi
callq 0x1160
movq %rax, %r12
leaq 0x28f9(%rip), %rsi      # 0x7ba5
movq %rax, %rdi
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x11b0
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x5405
movq %r12, (%rax)
movq 0x4ed1(%rip), %rcx      # 0xa1a8
movq %rcx, 0x8(%rax)
movq %rax, 0x4ec6(%rip)      # 0xa1a8
movl $0xc8, %edi
callq 0x1160
testq %rax, %rax
je 0x5405
movq %rax, %r15
leaq 0x28af(%rip), %rsi      # 0x7bae
movq %rax, %rdi
movl %r14d, %edx
movl %r14d, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x11b0
movq 0x4e9f(%rip), %rdi      # 0xa1b8
callq 0x1030
movq %r15, 0x4e93(%rip)      # 0xa1b8
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x4e71(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4e68(%rip)      # 0xa1b0
movq 0x4e51(%rip), %rdi      # 0xa1a0
leaq 0x2918(%rip), %rsi      # 0x7c6e
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4e48(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4e3e(%rip)      # 0xa1b0
movq 0x4e27(%rip), %rdi      # 0xa1a0
leaq 0x28b2(%rip), %rsi      # 0x7c32
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4e1d(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %eax
movl %eax, 0x4e13(%rip)      # 0xa1b0
movq 0x4dfc(%rip), %rdi      # 0xa1a0
leaq 0x28a4(%rip), %rsi      # 0x7c4f
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4df2(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4de9(%rip)      # 0xa1b0
movq 0x4dd2(%rip), %rdi      # 0xa1a0
leaq 0x28c6(%rip), %rsi      # 0x7c9b
movl %ebx, %edx
movl %r15d, %ecx
jmp 0x4cd3
movl 0x4dcb(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4dc2(%rip)      # 0xa1b0
movq 0x4dab(%rip), %rdi      # 0xa1a0
leaq 0x28e2(%rip), %rsi      # 0x7cde
movl %ebx, %edx
movl %eax, %ecx
jmp 0x4cd3
leaq 0x2c8a(%rip), %rdi      # 0x8096
callq 0x1070
pushq $0x1
popq %rdi
callq 0x11c0