// File: /workspace/github_c_makefile_star2_O1/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 0x3009(%rip), %rdi      # 0x7916
leaq 0x2134(%rip), %rsi      # 0x6a48
callq 0x1180
movq %rax, 0x5880(%rip)      # 0xa1a0
movq $0x0, 0x587d(%rip) # 0xa1a8
testq %rax, %rax
je 0x4c76
leaq 0x361b(%rip), %rdi      # 0x7f56
movl $0x25, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x11d0
movq 0x584c(%rip), %rcx      # 0xa1a0
leaq 0x3621(%rip), %rdi      # 0x7f7c
movl $0x19, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x582f(%rip), %rcx      # 0xa1a0
leaq 0x361e(%rip), %rdi      # 0x7f96
movl $0x31, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x5812(%rip), %rcx      # 0xa1a0
leaq 0x3633(%rip), %rdi      # 0x7fc8
movl $0x2a, %esi
movl $0x1, %edx
callq 0x11d0
movq 0x57f5(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq 0x57e4(%rip), %rdi      # 0xa1a0
leaq 0x3630(%rip), %rsi      # 0x7ff3
xorl %eax, %eax
callq 0x1110
movq 0x57cf(%rip), %rdi      # 0xa1a0
leaq 0x365d(%rip), %rsi      # 0x8035
xorl %eax, %eax
callq 0x1110
movq 0x57ba(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq (%rbx), %r15
testq %r15, %r15
je 0x4a62
leaq 0x2f20(%rip), %r12      # 0x791f
leaq 0x2f3f(%rip), %r13      # 0x7945
cmpl $0x1, (%r15)
jne 0x4a59
movl 0x579d(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x5793(%rip)      # 0xa1b0
movq 0x8(%r15), %rax
movq 0x8(%rax), %rdi
callq 0x4809
movq 0x8(%r15), %rcx
movl %r14d, 0x10(%rcx)
movq 0x8(%r15), %rcx
movq 0x8(%rcx), %rcx
cmpl $0x3, 0x4(%rcx)
movq 0x575b(%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 0x4a06
movq 0x5737(%rip), %rsi      # 0xa1a0
movl $0xa, %edi
callq 0x10f0
movq (%rbx), %r15
testq %r15, %r15
je 0x4c1c
leaq -0x1d0(%rbp), %r12
cmpl $0x0, (%r15)
jne 0x4c0f
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 0x4bb3
movq %rbx, %r15
movq %r12, %r13
leaq 0x2ea6(%rip), %r12      # 0x796b
movl 0x56e4(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x56da(%rip)      # 0xa1b0
movq (%r15), %rdi
callq 0x4809
movl %r14d, 0x10(%r15)
cmpq $0x0, 0x18(%r15)
movq %r12, %rsi
leaq 0x2e6f(%rip), %rcx      # 0x7960
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 0x4ac5
movq -0x30(%rbp), %r14
movq (%r14), %rdi
callq 0x4809
movq 0x567c(%rip), %rdi      # 0xa1a0
movq 0x8(%r14), %rcx
leaq 0x2e49(%rip), %rsi      # 0x7978
movq %rax, %rdx
movq %r13, %r8
xorl %eax, %eax
callq 0x1110
testq %rbx, %rbx
leaq 0x2e5b(%rip), %r13      # 0x79a1
je 0x4bda
movl 0x565d(%rip), %r14d     # 0xa1b0
leal 0x1(%r14), %eax
movl %eax, 0x5653(%rip)      # 0xa1b0
movq (%rbx), %rdi
callq 0x4809
movq %rax, %r15
movl 0x10(%rbx), %r12d
movl %r14d, 0x10(%rbx)
movq 0x5629(%rip), %rdi      # 0xa1a0
leaq 0x2e0f(%rip), %rsi      # 0x798d
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1110
movq 0x560e(%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 0x4b4c
jmp 0x4bda
movq (%r14), %rdi
callq 0x4809
movq 0x55de(%rip), %rdi      # 0xa1a0
movq 0x8(%r14), %rcx
leaq 0x2dab(%rip), %rsi      # 0x7978
movq %rax, %rdx
movq %r12, %r8
xorl %eax, %eax
callq 0x1110
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x4c8c
movq 0x55b2(%rip), %rcx      # 0xa1a0
movl $0x3, %esi
movl $0x1, %edx
leaq 0x2dbe(%rip), %rdi      # 0x79bd
callq 0x11d0
leaq -0x1d0(%rbp), %r12
movq -0x38(%rbp), %r15
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x4a86
movl $0xa, %edi
callq 0x1040
movq 0x557b(%rip), %rax      # 0xa1a8
testq %rax, %rax
je 0x4c64
leaq 0x2598(%rip), %rbx      # 0x71d1
movq 0x5560(%rip), %rdi      # 0xa1a0
movq (%rax), %rdx
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1110
movq 0x5554(%rip), %rax      # 0xa1a8
movq 0x8(%rax), %rax
movq %rax, 0x5549(%rip)      # 0xa1a8
testq %rax, %rax
jne 0x4c39
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33fc(%rip), %rdi      # 0x8079
callq 0x1070
movl $0x1, %edi
callq 0x11c0