// File: /workspace/github_c_makefile_star2_O3/thiagok00[P]INF1715-Compilers/TabelaSimbolos.c
// Function: tipa_expressao
static void tipa_expressao(Simbolo *s, Exp *e, int nivelEscopo) {
  //Simbolo *aux = NULL;
  if (e == NULL)
    return;

  switch (e->tag) {

    case EXP_ARITH:
    case EXP_OR:
    case EXP_AND:
    case EXP_CMP:
      tipa_expbin(s,e,nivelEscopo);
    break;
    case EXP_UNARIA:
      tipa_expunaria(s,e,nivelEscopo);
    break;
    case EXP_VAR:
      tipa_expvar(s,e,nivelEscopo);
    break;
    case EXP_CHAMADA:
      tipa_expchamada(s,e,nivelEscopo);
    break;
    case EXP_AS:
      tipa_expas(s,e,nivelEscopo);
    break;
    case EXP_NEW:
      tipa_expnew(s,e,nivelEscopo);
    break;
    case EXP_CTE:
      tipa_expconstante(s,e,nivelEscopo);
    break;
  }
  return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x42bf
movq %rsi, %rbx
movl (%rsi), %eax
cmpq $0x9, %rax
ja 0x42bf
movq %rdi, %r14
leaq 0x36b5(%rip), %rcx      # 0x752c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3e47
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x3e47
movq 0x10(%rbx), %rsi
movq 0x8(%rsi), %rdi
cmpl $0x0, (%rdi)
jne 0x4304
movq 0x18(%rbx), %r12
movq 0x8(%r12), %rax
cmpl $0x0, (%rax)
jne 0x4304
movl 0x4(%rdi), %r13d
testl %r13d, %r13d
je 0x430d
movl 0x4(%rax), %r14d
testl %r14d, %r14d
je 0x430d
movl 0x20(%rbx), %ecx
cmpl $0xb, %ecx
ja 0x42bf
movl $0x3f0, %edx            # imm = 0x3F0
btl %ecx, %edx
jae 0x3f3d
movq %rsi, -0x30(%rbp)
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4316
movq %rax, %r15
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
cmpl $0x2, %r13d
je 0x4218
cmpl $0x1, %r13d
jne 0x421e
cmpl $0x2, %r14d
jne 0x421e
jmp 0x4261
movl $0xf, %edx
btl %ecx, %edx
jae 0x41be
cmpl $0x3, %r13d
je 0x4267
cmpl $0x2, %r13d
jne 0x428b
cmpl $0x3, %r14d
jne 0x428b
movq %r12, %rdi
movl $0x3, %esi
callq 0x4406
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rax
jmp 0x3fe7
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4316
movl $0x0, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rcx
movl (%rcx), %ecx
testl %ecx, %ecx
je 0x42b7
cmpl $0x2, %ecx
je 0x42aa
cmpl $0x1, %ecx
jne 0x42bf
movl $0x3, %ecx
jmp 0x42bc
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3e47
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rax
jmp 0x420f
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3e47
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0x420f
cmpl $0x0, 0x4(%rax)
je 0x420f
leaq 0x385e(%rip), %rdi      # 0x787c
jmp 0x431d
movq 0x18(%rbx), %r15
testq %r14, %r14
je 0x4059
movq %r14, %r12
cmpl $0x1, (%r12)
jne 0x404f
movq 0x8(%r12), %r13
movq 0x8(%r13), %rdi
movq %r15, %rsi
callq 0x1100
testl %eax, %eax
je 0x40fe
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x402f
leaq 0x36ec(%rip), %rdi      # 0x774c
movq %r15, %rsi
jmp 0x42f3
movq 0x10(%rbx), %rsi
movl (%rsi), %eax
cmpl $0x1, %eax
je 0x4291
testl %eax, %eax
jne 0x42bf
movq %r14, %rdi
callq 0x4335
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4316
movq $0x0, 0x8(%rax)
movl $0x0, (%rax)
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x1, %ecx
movl $0x2, %edx
cmovnel %ecx, %edx
movl %edx, 0x4(%rax)
jmp 0x420f
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3e47
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4316
movl $0x1, (%rax)
movq 0x18(%rbx), %rcx
movl 0x4(%rcx), %edx
movl %edx, 0x4(%rax)
movq %rcx, 0x8(%rax)
jmp 0x420f
movq %r13, 0x20(%rbx)
movq 0x8(%r12), %rax
movq (%rax), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %r12
movq 0x10(%r13), %r15
testq %r12, %r12
je 0x41a5
testq %r15, %r15
je 0x42e8
movq (%r12), %rsi
movq %r14, %rdi
callq 0x3e47
movq (%r12), %rdi
movq 0x8(%rdi), %rax
movl (%rax), %ecx
movq (%r15), %rsi
cmpl (%rsi), %ecx
jne 0x4195
testl %ecx, %ecx
je 0x4160
movq %rax, %rdi
callq 0x447c
testl %eax, %eax
jne 0x4195
movq 0x8(%r12), %r12
movq 0x18(%r15), %r15
jmp 0x4116
movl 0x4(%rax), %eax
movl 0x4(%rsi), %esi
cmpl $0x2, %eax
je 0x4177
cmpl $0x1, %eax
jne 0x417c
cmpl $0x2, %esi
je 0x4155
jmp 0x417c
cmpl $0x1, %esi
je 0x4155
cmpl %eax, %esi
jbe 0x4193
callq 0x4406
movq (%r12), %rcx
movq %rcx, 0x10(%rax)
movq %rax, (%r12)
jmp 0x4155
jae 0x4155
movq 0x18(%rbx), %rsi
leaq 0x35f9(%rip), %rdi      # 0x7799
jmp 0x42f3
testq %r15, %r15
je 0x42bf
movq 0x18(%rbx), %rsi
leaq 0x361f(%rip), %rdi      # 0x77d8
jmp 0x42f3
cmpl $0x2, %r13d
jne 0x4324
cmpl $0x2, %r14d
je 0x41e7
movq %rax, %rdi
callq 0x31d0
leaq 0x3508(%rip), %rdi      # 0x76e5
movq %rax, %rsi
xorl %eax, %eax
callq 0x10c0
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4316
movabsq $0x200000000, %rcx      # imm = 0x200000000
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x8(%rbx)
jmp 0x42bf
cmpl $0x1, %r14d
je 0x4261
cmpl %r13d, %r14d
jae 0x4234
movq %r12, %rdi
movl %r13d, %esi
callq 0x4406
movq %rax, 0x18(%rbx)
jmp 0x4261
cmpl $0x2, %r13d
je 0x42ce
cmpl $0x1, %r13d
jne 0x42da
leal -0x3(%r14), %eax
cmpl $-0x2, %eax
jae 0x4261
movq -0x30(%rbp), %rdi
movl %r14d, %esi
callq 0x4406
movq %rax, 0x10(%rbx)
movq %r15, 0x8(%rbx)
jmp 0x42bf
cmpl $0x2, %r14d
jne 0x428b
movq %r12, %rdi
movl $0x3, %esi
callq 0x4406
movq 0x18(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x18(%rbx)
jmp 0x3fe3
movq %rdi, 0x8(%rbx)
jmp 0x42bf
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x44d8
movl $0x1, (%rax)
movl $0x1, %ecx
jmp 0x42bc
movl $0x2, %ecx
movl %ecx, 0x4(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %r14d
ja 0x4251
jmp 0x4261
cmpl %r13d, %r14d
ja 0x4251
jmp 0x4261
movq 0x18(%rbx), %rsi
leaq 0x3479(%rip), %rdi      # 0x776c
xorl %eax, %eax
callq 0x10c0
movl $0x1, %edi
callq 0x11c0
leaq 0x3554(%rip), %rdi      # 0x785f
jmp 0x431d
leaq 0x351a(%rip), %rdi      # 0x782e
jmp 0x431d
leaq 0x2de1(%rip), %rdi      # 0x70fe
callq 0x1070
jmp 0x42fa
callq 0x31d0
leaq 0x33b5(%rip), %rdi      # 0x76e5
movq %rax, %rsi
jmp 0x42f3