// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
testq %rsi, %rsi
je 0x44d8
movq %rsi, %r13
movl (%rsi), %eax
cmpq $0x9, %rax
ja 0x44d8
movq %rdi, %r14
leaq 0x3476(%rip), %rcx      # 0x7534
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x408b
movq 0x18(%r13), %rsi
movq %r14, %rdi
callq 0x408b
movq 0x10(%r13), %r15
movq 0x8(%r15), %r14
cmpl $0x0, (%r14)
jne 0x4516
leaq 0x18(%r13), %rbx
movq (%rbx), %rdi
movq 0x8(%rdi), %r12
cmpl $0x0, (%r12)
jne 0x4516
cmpl $0x0, 0x4(%r14)
je 0x451f
cmpl $0x0, 0x4(%r12)
je 0x451f
movl 0x20(%r13), %eax
cmpl $0xb, %eax
ja 0x44d8
movl $0x3f0, %ecx            # imm = 0x3F0
btl %eax, %ecx
jae 0x419d
movq %rdi, -0x40(%rbp)
movq %r13, -0x30(%rbp)
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4528
movq %rax, %r13
movq -0x30(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x38(%rbp)
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, (%r13)
movq $0x0, 0x8(%r13)
movq %r14, %rdi
movq %r12, %rsi
callq 0x462f
testl %eax, %eax
movq -0x40(%rbp), %rdi
jle 0x4405
movl 0x4(%r14), %esi
callq 0x4667
movq %rax, (%rbx)
jmp 0x4415
movl $0xf, %ecx
btl %eax, %ecx
jae 0x4422
movl 0x4(%r14), %eax
cmpl $0x3, %eax
je 0x44ae
cmpl $0x2, %eax
jne 0x44e7
cmpl $0x3, 0x4(%r12)
jne 0x44a9
movl $0x3, %esi
callq 0x4667
movq 0x10(%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x10(%r13)
movq 0x18(%r13), %rax
jmp 0x44d0
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4528
movl $0x0, (%rax)
movq $0x0, 0x8(%rax)
movq %rax, 0x8(%r13)
movq 0x10(%r13), %rcx
movl (%rcx), %ecx
cmpl $0x2, %ecx
je 0x449a
cmpl $0x1, %ecx
je 0x4491
testl %ecx, %ecx
jne 0x44d8
movl $0x2, 0x4(%rax)
jmp 0x44d8
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x408b
jmp 0x44cc
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x408b
movq 0x10(%r13), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0x44d4
cmpl $0x0, 0x4(%rax)
je 0x44d4
leaq 0x3608(%rip), %rdi      # 0x7884
jmp 0x452f
movq 0x18(%r13), %r15
testq %r14, %r14
je 0x42af
movq %r14, %rbx
cmpl $0x1, (%rbx)
jne 0x42a6
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x1100
testl %eax, %eax
je 0x42b1
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
jne 0x428d
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x453e
movq 0x8(%rbx), %rax
movq %rax, 0x20(%r13)
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movq %rcx, 0x8(%r13)
movq %r13, -0x30(%rbp)
movq 0x10(%r13), %rbx
movq 0x10(%rax), %r13
testq %rbx, %rbx
je 0x43e8
testq %r13, %r13
je 0x44fe
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x408b
movq (%rbx), %r15
movq 0x8(%r15), %rdi
movl (%rdi), %eax
movq (%r13), %r12
cmpl (%r12), %eax
jne 0x44ed
testl %eax, %eax
je 0x431d
movq %r12, %rsi
callq 0x46dd
testl %eax, %eax
jmp 0x4329
movq %r12, %rsi
callq 0x462f
testl %eax, %eax
js 0x4339
jne 0x44ed
movq 0x8(%rbx), %rbx
movq 0x18(%r13), %r13
jmp 0x42d9
movl 0x4(%r12), %esi
movq %r15, %rdi
callq 0x4667
movq (%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, (%rbx)
jmp 0x432f
movq 0x10(%r13), %rsi
movl (%rsi), %eax
cmpl $0x1, %eax
je 0x4478
testl %eax, %eax
jne 0x44d8
movq %r14, %rdi
callq 0x455e
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4528
movq $0x0, 0x8(%rax)
movl $0x0, (%rax)
movq 0x10(%r13), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x1, %ecx
movl $0x2, %edx
cmovnel %ecx, %edx
movl %edx, 0x4(%rax)
jmp 0x44d4
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq 0x408b
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4528
movl $0x1, (%rax)
movq 0x18(%r13), %rcx
movl 0x4(%rcx), %edx
movl %edx, 0x4(%rax)
movq %rcx, 0x8(%rax)
jmp 0x44d4
testq %r13, %r13
movq -0x30(%rbp), %rax
je 0x44d8
movq 0x18(%rax), %rsi
leaq 0x33e0(%rip), %rdi      # 0x77e0
jmp 0x450d
movq %r12, %r14
movq %r15, %rdi
movq -0x38(%rbp), %rbx
js 0x418c
movq -0x30(%rbp), %rax
movq %r13, 0x8(%rax)
jmp 0x44d8
cmpl $0x2, 0x4(%r14)
jne 0x454a
cmpl $0x2, 0x4(%r12)
je 0x444e
movq %r12, %rdi
callq 0x3404
leaq 0x32a9(%rip), %rdi      # 0x76ed
movq %rax, %rsi
xorl %eax, %eax
callq 0x10c0
movl $0x10, %edi
callq 0x1160
testq %rax, %rax
je 0x4528
movabsq $0x200000000, %rcx      # imm = 0x200000000
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
jmp 0x44d4
movq %r14, %rdi
movq %r13, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4738
movl $0x3, 0x4(%rax)
jmp 0x44d8
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, (%rax)
jmp 0x44d8
cmpl $0x3, %eax
jne 0x44e7
cmpl $0x2, 0x4(%r12)
jne 0x44e7
movl $0x3, %esi
callq 0x4667
movq 0x18(%r13), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x18(%r13)
movq 0x10(%r13), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%r13)
jmp 0x44d8
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x32a5(%rip), %rdi      # 0x77a1
jmp 0x450d
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x3267(%rip), %rdi      # 0x7774
xorl %eax, %eax
callq 0x10c0
jmp 0x4534
leaq 0x334a(%rip), %rdi      # 0x7867
jmp 0x452f
leaq 0x3310(%rip), %rdi      # 0x7836
jmp 0x452f
leaq 0x2bd9(%rip), %rdi      # 0x7108
callq 0x1070
movl $0x1, %edi
callq 0x11c0
leaq 0x320f(%rip), %rdi      # 0x7754
movq %r15, %rsi
jmp 0x450d
movq %r14, %rdi
callq 0x3404
leaq 0x3194(%rip), %rdi      # 0x76ed
movq %rax, %rsi
jmp 0x450d