// File: /workspace/github_c_makefile_star2_O3/thiagok00[P]INF1715-Compilers/GeraCodigo.c
// Function: geracodigo_arvore
void geracodigo_arvore(Programa *p){
  output = fopen("monga.ll","w");
  strLst = NULL;
  if (output == NULL){
    printf("Nao conseguiu abrir arquivo de saida\n");
    exit(1);
  }
  gera_declaracoes_iniciais();
  gera_codigo_varglobais(p->defs);
  gera_codigo_funcoes(p->defs);

  gera_codigo_strings();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, %rbx
leaq 0x3261(%rip), %rdi      # 0x790e
leaq 0x2394(%rip), %rsi      # 0x6a48
callq 0x1180
movq %rax, 0x5ae0(%rip)      # 0xa1a0
movq $0x0, 0x5add(%rip) # 0xa1a8
testq %rax, %rax
je 0x4a0d
leaq 0x3873(%rip), %rdi      # 0x7f4e
movl $0x25, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x11d0
movq 0x5aac(%rip), %rcx      # 0xa1a0
leaq 0x3879(%rip), %rdi      # 0x7f74
movl $0x19, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x5a8f(%rip), %rcx      # 0xa1a0
leaq 0x3876(%rip), %rdi      # 0x7f8e
movl $0x31, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x5a72(%rip), %rcx      # 0xa1a0
leaq 0x388b(%rip), %rdi      # 0x7fc0
movl $0x2a, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x5a55(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq 0x5a44(%rip), %rdi      # 0xa1a0
leaq 0x3888(%rip), %rsi      # 0x7feb
xorl %eax, %eax
callq 0x1110
movq 0x5a2f(%rip), %rdi      # 0xa1a0
leaq 0x38b5(%rip), %rsi      # 0x802d
xorl %eax, %eax
callq 0x1110
movq 0x5a1a(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq (%rbx), %r15
testq %r15, %r15
je 0x4802
leaq 0x3178(%rip), %r12      # 0x7917
leaq 0x3197(%rip), %r13      # 0x793d
cmpl $0x1, (%r15)
jne 0x47f9
movl 0x59fd(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x59f3(%rip)      # 0xa1b0
movq 0x8(%r15), %rax
movq 0x8(%rax), %rdi
callq 0x45a9
movq 0x8(%r15), %rcx
movl %r14d, 0x10(%rcx)
movq 0x8(%r15), %rcx
movq 0x8(%rcx), %rcx
cmpl $0x3, 0x4(%rcx)
movq 0x59bb(%rip), %rdi      # 0xa1a0
movq %r13, %rsi
cmoveq %r12, %rsi
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x47a6
movq 0x5997(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq (%rbx), %r15
testq %r15, %r15
je 0x49b3
leaq -0x1d0(%rbp), %r12
cmpl $0x0, (%r15)
jne 0x49a6
movq 0x8(%r15), %r14
movq 0x10(%r14), %rbx
movl $0x190, %edx            # imm = 0x190
movq %r12, %rdi
xorl %esi, %esi
callq 0x10e0
testq %rbx, %rbx
movq %r14, -0x30(%rbp)
movq %r15, -0x38(%rbp)
je 0x494a
movq %rbx, %r15
movq %r12, %r13
leaq 0x30fe(%rip), %r12      # 0x7963
movl 0x5944(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x593a(%rip)      # 0xa1b0
movq (%r15), %rdi
callq 0x45a9
movl %r14d, 0x10(%r15)
cmpq $0x0, 0x18(%r15)
movq %r12, %rsi
leaq 0x30c7(%rip), %rcx      # 0x7958
cmoveq %rcx, %rsi
movq %r13, %rdi
movq %r13, %rdx
movq %rax, %rcx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x11b0
movq 0x18(%r15), %r15
testq %r15, %r15
jne 0x4865
movq -0x30(%rbp), %r14
movq (%r14), %rdi
callq 0x45a9
movq 0x58dc(%rip), %rdi      # 0xa1a0
movq 0x8(%r14), %rcx
leaq 0x30a1(%rip), %rsi      # 0x7970
movq %rax, %rdx
movq %r13, %r8
xorl %eax, %eax
callq 0x1110
leaq 0x30b6(%rip), %r13      # 0x7999
movl 0x58c6(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x58bc(%rip)      # 0xa1b0
movq (%rbx), %rdi
callq 0x45a9
movq %rax, %r15
movl 0x10(%rbx), %r12d
movl %r14d, 0x10(%rbx)
movq 0x5892(%rip), %rdi      # 0xa1a0
leaq 0x3070(%rip), %rsi      # 0x7985
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
movq 0x5877(%rip), %rdi      # 0xa1a0
movq %r13, %rsi
movq %r15, %rdx
movl %r12d, %ecx
movq %r15, %r8
movl %r14d, %r9d
xorl %eax, %eax
callq 0x1110
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x48e3
jmp 0x4971
movq (%r14), %rdi
callq 0x45a9
movq 0x5847(%rip), %rdi      # 0xa1a0
movq 0x8(%r14), %rcx
leaq 0x300c(%rip), %rsi      # 0x7970
movq %rax, %rdx
movq %r12, %r8
xorl %eax, %eax
callq 0x1110
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x4a23
movq 0x581b(%rip), %rcx      # 0xa1a0
movl $0x3, %esi
movl $0x1, %edx
leaq 0x301f(%rip), %rdi      # 0x79b5
callq 0x11d0
leaq -0x1d0(%rbp), %r12
movq -0x38(%rbp), %r15
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x4826
movl $0xa, %edi
callq 0x1040
movq 0x57e4(%rip), %rax      # 0xa1a8
testq %rax, %rax
je 0x49fb
leaq 0x27f7(%rip), %rbx      # 0x71c7
movq 0x57c9(%rip), %rdi      # 0xa1a0
movq (%rax), %rdx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x57bd(%rip), %rax      # 0xa1a8
movq 0x8(%rax), %rax
movq %rax, 0x57b2(%rip)      # 0xa1a8
testq %rax, %rax
jne 0x49d0
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x365d(%rip), %rdi      # 0x8071
callq 0x1070
movl $0x1, %edi
callq 0x11c0