// File: /workspace/github_c_makefile_star2_O3/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 0x58b8
movq %rdi, %r12
leaq 0x2951(%rip), %rcx      # 0x78d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r12), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rax), %r14d
callq 0x4f50
movl %eax, %r15d
movq 0x18(%r12), %rdi
callq 0x4f50
movl 0x20(%r12), %edx
cmpl $0x3, %edx
ja 0x58b8
cmpl $0x1, %r14d
leaq 0x293c(%rip), %rcx      # 0x78fc
leaq 0x2931(%rip), %rsi      # 0x78f8
cmoveq %rcx, %rsi
cmpl $0x3, %r14d
leaq 0x2dd8(%rip), %rcx      # 0x7dae
leaq 0x2dd6(%rip), %rdi      # 0x7db3
cmoveq %rcx, %rdi
leaq 0x2db9(%rip), %rcx      # 0x7da1
leaq 0x2db7(%rip), %r9       # 0x7da6
cmoveq %rcx, %r9
leaq 0x2d9a(%rip), %rcx      # 0x7d94
leaq 0x2d98(%rip), %r10      # 0x7d99
cmoveq %rcx, %r10
leaq 0x2d83(%rip), %r8       # 0x7d8f
leaq 0x2d7d(%rip), %rcx      # 0x7d90
cmoveq %r8, %rcx
leaq 0x28e1(%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 0x5173(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %edx
movl %edx, 0x516a(%rip)      # 0xa1b0
movq 0x5153(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x2d61(%rip), %rsi      # 0x7db8
movl %ebx, %edx
movl %r15d, %r9d
jmp 0x55f1
movq 0x10(%r12), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rax), %r14d
cmpl $0x1, %r14d
leaq 0x2883(%rip), %rax      # 0x78fc
leaq 0x2878(%rip), %r15      # 0x78f8
cmoveq %rax, %r15
callq 0x4f50
movl %eax, %ebx
movq 0x18(%r12), %rdi
callq 0x4f50
cmpl $0x3, %r14d
leaq 0x285f(%rip), %r8       # 0x78ff
cmovneq %r15, %r8
leaq 0x2d2a(%rip), %rcx      # 0x7dd5
leaq 0x2d2c(%rip), %rdx      # 0x7dde
cmoveq %rcx, %rdx
leaq 0x2d29(%rip), %rsi      # 0x7de6
leaq 0x2d2b(%rip), %rcx      # 0x7def
cmoveq %rsi, %rcx
leaq 0x2d28(%rip), %rsi      # 0x7df7
leaq 0x2d2a(%rip), %rdi      # 0x7e00
cmoveq %rsi, %rdi
leaq 0x2d28(%rip), %rsi      # 0x7e09
leaq 0x2d2a(%rip), %r9       # 0x7e12
cmoveq %rsi, %r9
leaq 0x2d28(%rip), %rsi      # 0x7e1b
leaq 0x2d2a(%rip), %r10      # 0x7e24
cmovneq %r10, %rsi
leaq 0x2d28(%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 0x5073(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %edx
movl %edx, 0x5069(%rip)      # 0xa1b0
movq 0x5052(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x2c60(%rip), %rsi      # 0x7db8
movl %r14d, %edx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x1110
movl 0x5045(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x503c(%rip)      # 0xa1b0
movq 0x5025(%rip), %rdi      # 0xa1a0
leaq 0x2acd(%rip), %rsi      # 0x7c4f
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x58b8
movq 0x10(%r12), %r14
movl (%r14), %eax
cmpl $0x1, %eax
je 0x5579
testl %eax, %eax
jne 0x58b8
movq 0x8(%r14), %rdi
callq 0x45a9
movl 0x4ff5(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4fec(%rip)      # 0xa1b0
cmpl $0x0, 0x18(%r14)
movq 0x4fd0(%rip), %rdi      # 0xa1a0
movq 0x20(%r14), %rcx
movl 0x10(%rcx), %r9d
leaq 0x2b29(%rip), %rcx      # 0x7d08
leaq 0x2b3e(%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 0x58b8
movl 0x4fa2(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4f98(%rip)      # 0xa1b0
movq 0x4f81(%rip), %rdi      # 0xa1a0
leaq 0x2b1b(%rip), %rsi      # 0x7d41
jmp 0x5522
movq 0x10(%r12), %rdi
callq 0x4f50
movl 0x4f74(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %ecx
movl %ecx, 0x4f6a(%rip)      # 0xa1b0
leaq 0x2be9(%rip), %rdi      # 0x7e36
xorl %ebx, %ebx
movl %r14d, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x10c0
movl 0x4f63(%rip), %edx      # 0xa1c4
leal 0x1(%rdx), %ecx
leal 0x2(%rdx), %eax
movl %eax, 0x4f57(%rip)      # 0xa1c4
leaq 0x2be0(%rip), %rdi      # 0x7e54
movl %r14d, %esi
xorl %eax, %eax
callq 0x10c0
jmp 0x58b8
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 0x5307
leaq 0x26ac(%rip), %r14      # 0x7963
leaq -0x100(%rbp), %rbx
movq (%r15), %rdi
callq 0x4f50
movl %eax, %r12d
movq (%r15), %rax
cmpq $0x0, 0x8(%r15)
movq 0x8(%rax), %rdi
movq %r14, %r13
leaq 0x2679(%rip), %rax      # 0x7958
cmoveq %rax, %r13
callq 0x45a9
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 0x52be
movq -0x38(%rbp), %rdi
cmpl $0x0, 0x4(%rdi)
je 0x5536
movl 0x4e95(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4e8c(%rip)      # 0xa1b0
movq 0x4e75(%rip), %r12      # 0xa1a0
callq 0x45a9
movq -0x30(%rbp), %rcx
movq 0x18(%rcx), %r8
leaq 0x2b4a(%rip), %rsi      # 0x7e89
movq %r12, %rdi
movl %ebx, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
jmp 0x5558
movq 0x10(%r12), %rdi
callq 0x4f50
movl 0x4e4c(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %ecx
movl %ecx, 0x4e42(%rip)      # 0xa1b0
movq 0x8(%r12), %rcx
xorl %edx, %edx
cmpl $0x1, 0x4(%rcx)
setne %dl
leal 0x1(%rdx,%rdx,2), %r8d
movq 0x4e18(%rip), %rdi      # 0xa1a0
leaq 0x2b15(%rip), %rsi      # 0x7ea4
movl %r15d, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4e0f(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4e06(%rip)      # 0xa1b0
movq 0x4def(%rip), %rdi      # 0xa1a0
leaq 0x2b0d(%rip), %rsi      # 0x7ec5
movl %ebx, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1110
movq 0x8(%r12), %rax
cmpl $0x1, 0x4(%rax)
je 0x58b8
movl 0x4dd6(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4dcc(%rip)      # 0xa1b0
movq 0x4db5(%rip), %rdi      # 0xa1a0
leaq 0x2af9(%rip), %rsi      # 0x7eeb
jmp 0x5522
movq 0x10(%r12), %rdi
callq 0x4f50
movl 0x18(%r12), %ecx
cmpl $0x1, %ecx
je 0x55fd
testl %ecx, %ecx
jne 0x58b8
movq 0x10(%r12), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x5722
cmpl $0x2, %ecx
jne 0x58b8
movl 0x4d75(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4d6c(%rip)      # 0xa1b0
movq 0x4d55(%rip), %rdi      # 0xa1a0
leaq 0x27c1(%rip), %rsi      # 0x7c13
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4d4c(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4d42(%rip)      # 0xa1b0
movq 0x4d2b(%rip), %rdi      # 0xa1a0
leaq 0x27b6(%rip), %rsi      # 0x7c32
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
jmp 0x5165
movq 0x10(%r12), %rax
movl (%rax), %ecx
cmpl $0x2, %ecx
je 0x566d
cmpl $0x1, %ecx
je 0x563d
testl %ecx, %ecx
jne 0x58b8
movl 0x4cfc(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4cf3(%rip)      # 0xa1b0
movq 0x4cdc(%rip), %rdi      # 0xa1a0
movl 0x8(%rax), %ecx
leaq 0x266f(%rip), %rsi      # 0x7b3d
movl %ebx, %edx
jmp 0x5187
movq 0x10(%r12), %rdi
callq 0x4f50
movl %eax, %ebx
movq 0x10(%r12), %rax
movq 0x8(%rax), %rax
cmpl $0x2, 0x4(%rax)
jne 0x58b8
movq 0x8(%r12), %rax
cmpl $0x3, 0x4(%rax)
jne 0x58b8
movl 0x4ca6(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4c9c(%rip)      # 0xa1b0
movq 0x4c85(%rip), %rdi      # 0xa1a0
leaq 0x2779(%rip), %rsi      # 0x7c9b
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl %r14d, %ebx
jmp 0x58b8
movq 0x4c63(%rip), %rdi      # 0xa1a0
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0x292d(%rip), %rsi      # 0x7e79
xorl %eax, %eax
callq 0x1110
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x4c41(%rip), %rdi      # 0xa1a0
leaq 0x2939(%rip), %rsi      # 0x7e9f
leaq -0x100(%rbp), %rdx
xorl %eax, %eax
callq 0x1110
jmp 0x58b8
movq 0x10(%r14), %rbx
movq 0x18(%r14), %r15
movq 0x8(%rbx), %rdi
movl 0x4(%rdi), %eax
cmpl $0x1, %eax
leaq 0x236a(%rip), %rcx      # 0x78fc
leaq 0x235f(%rip), %rdx      # 0x78f8
cmoveq %rcx, %rdx
cmpl $0x3, %eax
leaq 0x2358(%rip), %r14      # 0x78ff
cmovneq %rdx, %r14
callq 0x45a9
movq %rax, %r12
movq %rbx, %rdi
callq 0x4f50
movl %eax, %r13d
movq %r15, %rdi
callq 0x4f50
movl 0x4be4(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4bdb(%rip)      # 0xa1b0
movq 0x4bc4(%rip), %rdi      # 0xa1a0
movl %eax, (%rsp)
leaq 0x277a(%rip), %rsi      # 0x7d60
movl %ebx, %edx
movq %r14, %rcx
movq %r12, %r8
movl %r13d, %r9d
xorl %eax, %eax
callq 0x1110
jmp 0x58b8
movq 0x10(%r12), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x3, %ecx
je 0x57c8
cmpl $0x2, %ecx
jne 0x58b8
movl 0x4b8f(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4b86(%rip)      # 0xa1b0
movq 0x4b6f(%rip), %rdi      # 0xa1a0
leaq 0x2687(%rip), %rsi      # 0x7cbf
jmp 0x57e5
movl 0x4b6d(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4b64(%rip)      # 0xa1b0
movq 0x4b4d(%rip), %rdi      # 0xa1a0
cvtss2sd 0x8(%rax), %xmm0
leaq 0x24f6(%rip), %rsi      # 0x7b55
movl %ebx, %edx
movb $0x1, %al
callq 0x1110
jmp 0x58b8
movl 0x4b4d(%rip), %ebx      # 0xa1c0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4b44(%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 0x58cc
movq %rax, %r14
xorl %eax, %eax
testl %r12d, %r12d
jle 0x57ee
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %edx, %edx
movzbl (%r15,%rdx), %esi
movl %eax, %eax
cmpl $0x9, %esi
je 0x56ef
cmpl $0x5c, %esi
je 0x56e0
cmpl $0xa, %esi
jne 0x5703
movw $0x305c, (%r14,%rax)    # imm = 0x305C
movb $0x41, 0x2(%r14,%rax)
jmp 0x56fc
movw $0x355c, (%r14,%rax)    # imm = 0x355C
movb $0x43, 0x2(%r14,%rax)
jmp 0x56fc
movw $0x305c, (%r14,%rax)    # imm = 0x305C
movb $0x39, 0x2(%r14,%rax)
movl $0x3, %esi
jmp 0x570c
movb %sil, (%r14,%rax)
movl $0x1, %esi
addl %esi, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x56bb
movl %eax, %eax
leal 0x1(%r12), %r15d
jmp 0x57f4
movl 0x4a88(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x4a7f(%rip)      # 0xa1b0
movq 0x4a68(%rip), %rdi      # 0xa1a0
leaq 0x252f(%rip), %rsi      # 0x7c6e
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4a5f(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x4a55(%rip)      # 0xa1b0
movq 0x4a3e(%rip), %rdi      # 0xa1a0
leaq 0x24c9(%rip), %rsi      # 0x7c32
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4a34(%rip), %r15d     # 0xa1b0
leal 0x1(%r15), %eax
movl %eax, 0x4a2a(%rip)      # 0xa1b0
movq 0x4a13(%rip), %rdi      # 0xa1a0
leaq 0x24bb(%rip), %rsi      # 0x7c4f
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1110
movl 0x4a09(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %eax
movl %eax, 0x4a00(%rip)      # 0xa1b0
movq 0x49e9(%rip), %rdi      # 0xa1a0
leaq 0x24dd(%rip), %rsi      # 0x7c9b
movl %ebx, %edx
movl %r15d, %ecx
jmp 0x5187
movl 0x49e2(%rip), %ebx      # 0xa1b0
leal 0x1(%rbx), %ecx
movl %ecx, 0x49d9(%rip)      # 0xa1b0
movq 0x49c2(%rip), %rdi      # 0xa1a0
leaq 0x24f9(%rip), %rsi      # 0x7cde
movl %ebx, %edx
movl %eax, %ecx
jmp 0x5187
movl $0x1, %r15d
movb $0x0, (%r14,%rax)
leaq 0x2372(%rip), %rsi      # 0x7b72
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 0x2365(%rip), %rsi      # 0x7ba5
movq %rax, %rdi
movq %r13, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x11b0
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x58cc
movq %r12, (%rax)
movq 0x493f(%rip), %rcx      # 0xa1a8
movq %rcx, 0x8(%rax)
movq %rax, 0x4934(%rip)      # 0xa1a8
movl $0xc8, %edi
callq 0x1160
testq %rax, %rax
je 0x58cc
movq %rax, %r14
leaq 0x2321(%rip), %rsi      # 0x7bae
movq %rax, %rdi
movl %r15d, %edx
movl %r15d, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x11b0
movq 0x4911(%rip), %rdi      # 0xa1b8
testq %rdi, %rdi
je 0x58b1
callq 0x1030
movq %r14, 0x4900(%rip)      # 0xa1b8
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27c3(%rip), %rdi      # 0x8096
callq 0x1070
movl $0x1, %edi
callq 0x11c0