// File: /workspace/github_c_makefile_star2_O2/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 0x3e10
movq %rsi, %rbx
movl (%rsi), %eax
cmpq $0x9, %rax
ja 0x3e10
movq %rdi, %r14
leaq 0x3a9b(%rip), %rcx      # 0x752c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
movq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
movq 0x10(%rbx), %rsi
movq 0x8(%rsi), %r15
cmpl $0x0, (%r15)
jne 0x3f01
movq 0x18(%rbx), %rdi
movq 0x8(%rdi), %r13
cmpl $0x0, (%r13)
jne 0x3f01
movl 0x4(%r15), %r14d
testl %r14d, %r14d
je 0x3f0a
movl 0x4(%r13), %edx
testl %edx, %edx
je 0x3f0a
movl 0x20(%rbx), %eax
cmpl $0xb, %eax
ja 0x3e10
movl $0x3f0, %ecx            # imm = 0x3F0
btl %eax, %ecx
jae 0x3b61
movq %rsi, -0x40(%rbp)
movl %edx, -0x34(%rbp)
movq %rdi, -0x30(%rbp)
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f13
movq %rax, %r12
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, (%r12)
andq $0x0, 0x8(%r12)
movq %r15, %rdi
movq %r13, %rsi
callq 0x4021
testl %eax, %eax
jle 0x3da9
movq -0x30(%rbp), %rdi
movl %r14d, %esi
callq 0x4056
movq %rax, 0x18(%rbx)
jmp 0x3dbb
pushq $0xf
popq %rcx
btl %eax, %ecx
jae 0x3dc1
cmpl $0x3, %r14d
je 0x3e1f
cmpl $0x2, %r14d
jne 0x3e3d
cmpl $0x3, %edx
jne 0x3e3d
pushq $0x3
popq %rsi
callq 0x4056
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rax
jmp 0x3bf8
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f13
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rcx
movl (%rcx), %ecx
testl %ecx, %ecx
je 0x3ebb
cmpl $0x2, %ecx
je 0x3eb1
cmpl $0x1, %ecx
jne 0x3e10
pushq $0x3
jmp 0x3ebd
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rax
jmp 0x3e0c
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0x3e0c
cmpl $0x0, 0x4(%rax)
je 0x3e0c
leaq 0x3c4d(%rip), %rdi      # 0x787c
jmp 0x3f1a
movq 0x18(%rbx), %r15
movq %r14, %r12
testq %r12, %r12
je 0x3ec6
cmpl $0x1, (%r12)
jne 0x3c64
movq 0x8(%r12), %r13
movq 0x8(%r13), %rdi
movq %r15, %rsi
callq 0x1100
testl %eax, %eax
je 0x3cf5
movq 0x20(%r12), %r12
jmp 0x3c3b
movq 0x10(%rbx), %rsi
movl (%rsi), %eax
cmpl $0x1, %eax
je 0x3e43
testl %eax, %eax
jne 0x3e10
movq %r14, %rdi
callq 0x3f53
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f13
andq $0x0, 0x8(%rax)
andl $0x0, (%rax)
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
cmpl $0x1, %ecx
pushq $0x2
popq %rdx
cmovnel %ecx, %edx
movl %edx, 0x4(%rax)
jmp 0x3e0c
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f13
movl $0x1, (%rax)
movq 0x18(%rbx), %rcx
movl 0x4(%rcx), %edx
movl %edx, 0x4(%rax)
movq %rcx, 0x8(%rax)
jmp 0x3e0c
movq %rbx, %rcx
addq $0x10, %rbx
movq %r13, 0x20(%rcx)
movq 0x8(%r12), %rax
movq (%rax), %rax
movq %rcx, -0x30(%rbp)
movq %rax, 0x8(%rcx)
addq $0x10, %r13
movq (%rbx), %rbx
movq (%r13), %r13
testq %rbx, %rbx
je 0x3d90
testq %r13, %r13
je 0x3ee3
movq (%rbx), %rsi
movq %r14, %rdi
callq 0x3a5e
movq (%rbx), %r15
movq 0x8(%r15), %rdi
movl (%rdi), %eax
movq (%r13), %r12
cmpl (%r12), %eax
jne 0x3ed2
testl %eax, %eax
je 0x3d5b
movq %r12, %rsi
callq 0x40c0
testl %eax, %eax
jmp 0x3d67
movq %r12, %rsi
callq 0x4021
testl %eax, %eax
js 0x3d77
jne 0x3ed2
addq $0x8, %rbx
addq $0x18, %r13
jmp 0x3d14
movl 0x4(%r12), %esi
movq %r15, %rdi
callq 0x4056
movq (%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, (%rbx)
jmp 0x3d6d
testq %r13, %r13
movq -0x30(%rbp), %rax
je 0x3e10
movq 0x18(%rax), %rsi
leaq 0x3a34(%rip), %rdi      # 0x77d8
jmp 0x3ef2
jns 0x3dbb
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x4056
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
jmp 0x3e10
cmpl $0x2, %r14d
jne 0x3f2f
cmpl $0x2, %edx
je 0x3de9
movq %r13, %rdi
callq 0x2e8c
leaq 0x3906(%rip), %rdi      # 0x76e5
movq %rax, %rsi
xorl %eax, %eax
callq 0x10c0
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f13
movabsq $0x200000000, %rcx      # imm = 0x200000000
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x2, %edx
jne 0x3e3d
pushq $0x3
popq %rsi
callq 0x4056
movq 0x18(%rbx), %rcx
movq %rcx, 0x10(%rax)
movq %rax, 0x18(%rbx)
jmp 0x3bf4
movq %r15, 0x8(%rbx)
jmp 0x3e10
movq 0x10(%rsi), %rsi
movq %r14, %rdi
callq 0x3a5e
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rsi
movq %r14, %rdi
callq 0x3a5e
movq %rbx, %r14
movq 0x10(%rbx), %rbx
movq 0x18(%rbx), %rax
movq 0x8(%rax), %rdi
cmpl $0x1, (%rdi)
je 0x3f21
cmpl $0x2, 0x4(%rdi)
jne 0x3f21
pushq $0x10
popq %rdi
callq 0x1160
testq %rax, %rax
je 0x3f43
andl $0x0, (%rax)
movq 0x10(%rbx), %rcx
movq 0x8(%rcx), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, 0x4(%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x8(%r14)
jmp 0x3e10
movl $0x1, (%rax)
pushq $0x1
jmp 0x3ebd
pushq $0x2
popq %rcx
movl %ecx, 0x4(%rax)
jmp 0x3e10
leaq 0x387f(%rip), %rdi      # 0x774c
movq %r15, %rsi
jmp 0x3ef2
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x38b8(%rip), %rdi      # 0x7799
jmp 0x3ef2
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rsi
leaq 0x387a(%rip), %rdi      # 0x776c
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x11c0
leaq 0x3957(%rip), %rdi      # 0x785f
jmp 0x3f1a
leaq 0x391d(%rip), %rdi      # 0x782e
jmp 0x3f1a
leaq 0x31e4(%rip), %rdi      # 0x70fe
callq 0x1070
jmp 0x3ef9
callq 0x2e8c
leaq 0x37eb(%rip), %rdi      # 0x7718
jmp 0x3f3e
movq %r15, %rdi
callq 0x2e8c
leaq 0x37a7(%rip), %rdi      # 0x76e5
movq %rax, %rsi
jmp 0x3ef2
leaq 0x38cf(%rip), %rdi      # 0x7819
xorl %eax, %eax
callq 0x10c0
jmp 0x3ef9