// File: /workspace/github_cpp_makefile_star2_O3/baziotis[P]minijava-cpp/parse.cpp
// Function: parse_goal()
Goal parse_goal() {
    Goal goal;
    goal.main_class = parse_main_class();
    if (goal.main_class.is_undefined()) {
        fatal_error("Main Class had errors that can't be recovered.");
    }
    while (is_token(TOK::CLASS)) {
        TypeDeclaration *type_decl = parse_type_declaration();
        if (!type_decl->is_undefined()) {
            goal.type_decls.push(type_decl);
        }
    }
    return goal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
movq $0x0, 0x58(%rdi)
movups %xmm0, 0x58(%rsp)
movups %xmm0, 0x48(%rsp)
movups %xmm0, 0x38(%rsp)
leaq 0x14736(%rip), %r12     # 0x1a698
movl (%r12), %esi
cmpl $0x16, %esi
jne 0x5ff8
callq 0x3a62
movq 0x8(%r12), %rax
movq %rax, 0x30(%rsp)
movl (%r12), %esi
cmpl $0x8, %esi
jne 0x6001
callq 0x3a62
leaq 0xc8f5(%rip), %r14      # 0x12888
movl $0x7, %edi
movq %r14, %rsi
callq 0x6606
movl $0xc, %edi
movq %r14, %rsi
callq 0x6606
movl $0xf, %edi
movq %r14, %rsi
callq 0x6606
movl $0x10, %edi
movq %r14, %rsi
callq 0x6606
cmpl $0x8, (%r12)
jne 0x5fe0
movq 0x8(%r12), %rax
cmpq 0x14a6e(%rip), %rax     # 0x1aa48
je 0x646f
leaq 0xc7cc(%rip), %rdi      # 0x127b3
callq 0x675d
movl $0xa, %edi
callq 0x2160
jmp 0x600d
leaq 0xc8e5(%rip), %rdi      # 0x128e4
jmp 0x6008
leaq 0xc8a6(%rip), %rdi      # 0x128ae
callq 0x6ab6
movq $0x0, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups 0x58(%rsp), %xmm2
movups %xmm2, 0x38(%rbp)
movups %xmm1, 0x28(%rbp)
movups %xmm0, 0x18(%rbp)
movq %rax, 0x8(%rbp)
movq %rcx, 0x10(%rbp)
cmpq $0x0, 0x10(%rbp)
je 0x659a
cmpl $0x16, (%r12)
jne 0x645d
leaq 0x48(%rbp), %rax
movq %rax, 0x18(%rsp)
leaq 0xc835(%rip), %r13      # 0x1289e
movq %rbp, 0x8(%rsp)
movl $0x48, %edi
movl $0x1, %esi
callq 0x23ef
movq %rax, %r15
leaq 0x8(%rax), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
leaq 0x145f2(%rip), %rax     # 0x1a690
movl (%rax), %eax
movl %eax, (%r15)
cmpl $0x16, (%r12)
jne 0x610d
callq 0x3a62
movq 0x8(%r12), %rbx
movl $0x8, %edi
leaq 0xcd98(%rip), %rsi      # 0x12e58
callq 0x6606
testb %al, %al
je 0x6125
movq %rbx, (%r14)
movl (%r12), %eax
cmpl $0x17, %eax
jne 0x60fc
callq 0x3a62
movq 0x8(%r12), %rax
movq %rax, 0x10(%r15)
movl $0x8, %edi
leaq 0xcd7b(%rip), %rsi      # 0x12e6a
callq 0x6606
testb %al, %al
je 0x6131
movl (%r12), %eax
cmpl $0x7, %eax
movq %r14, 0x10(%rsp)
jne 0x617d
callq 0x3a62
jmp 0x618c
leaq 0xcd1a(%rip), %rdi      # 0x12e2e
callq 0x675d
movl $0xa, %edi
callq 0x2160
jmp 0x6131
movl $0x16, %edi
xorl %esi, %esi
callq 0x6811
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq 0x10(%r15), %rax
orq 0x8(%r15), %rax
je 0x616d
movq 0x50(%rbp), %rax
leaq 0x1(%rax), %r14
cmpq 0x48(%rbp), %r14
jbe 0x6161
movq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x7f3a
movq 0x50(%rbp), %rax
movq 0x58(%rbp), %rcx
movq %r15, (%rcx,%rax,8)
movq %r14, 0x50(%rbp)
cmpl $0x16, (%r12)
je 0x606e
jmp 0x645d
movq (%r14), %rsi
leaq 0xccfd(%rip), %rdi      # 0x12e84
callq 0x7ac3
callq 0x6903
testb %al, %al
je 0x61b7
leaq 0x18(%r15), %r14
movq %r14, %rdi
callq 0x6938
movl $0x1e, %edi
movq %r13, %rsi
callq 0x6606
callq 0x6903
testb %al, %al
jne 0x6199
movq %r15, %rax
addq $0x30, %rax
movq %rax, 0x20(%rsp)
movl (%r12), %eax
cmpl $0xc, %eax
jne 0x6435
movl $0x70, %edi
movl $0x1, %esi
callq 0x23ef
movq %rax, %r14
movl $0x0, 0x8(%rax)
leaq 0x18(%rax), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movups %xmm0, 0x28(%rax)
movups %xmm0, 0x38(%rax)
movups %xmm0, 0x48(%rax)
movups %xmm0, 0x58(%rax)
movq $0x0, 0x68(%rax)
leaq 0x1447d(%rip), %rax     # 0x1a690
movl (%rax), %eax
movl %eax, (%r14)
movl (%r12), %edi
cmpl $0xc, %edi
jne 0x6262
callq 0x3a62
callq 0x6d40
movl %eax, 0x8(%r14)
movq %rdx, 0x10(%r14)
testl %eax, %eax
je 0x626c
movq 0x8(%r12), %rax
movq %rax, (%rbx)
movl $0x8, %edi
leaq 0xc5d0(%rip), %rsi      # 0x1281b
callq 0x6606
testb %al, %al
je 0x626c
cmpl $0x3, (%r12)
jne 0x6278
callq 0x3a62
jmp 0x6287
movq 0x8(%r12), %rsi
callq 0x6dec
movq $0x0, (%rbx)
jmp 0x61c3
movq (%rbx), %rsi
leaq 0xcc5e(%rip), %rdi      # 0x12ee0
callq 0x7ac3
callq 0x6903
testb %al, %al
je 0x62b1
leaq 0x20(%r14), %rbp
movq %rbp, %rdi
callq 0x6938
cmpl $0x1c, (%r12)
jne 0x62a8
callq 0x3a62
callq 0x6903
testb %al, %al
jne 0x6294
cmpl $0x19, (%r12)
jne 0x62bf
callq 0x3a62
jmp 0x62ce
movq (%rbx), %rsi
leaq 0xcc5a(%rip), %rdi      # 0x12f23
callq 0x7ac3
cmpl $0x7, (%r12)
jne 0x62dc
callq 0x3a62
jmp 0x62eb
movq (%rbx), %rsi
leaq 0xcc7f(%rip), %rdi      # 0x12f65
callq 0x7ac3
callq 0x6903
testb %al, %al
je 0x6329
leaq 0x38(%r14), %rbp
movq %rbp, %rdi
callq 0x6938
movl $0x1e, %edi
movq %r13, %rsi
callq 0x6606
testb %al, %al
jne 0x6320
movl $0x1e, %edi
movl $0x1, %esi
callq 0x6811
callq 0x6903
testb %al, %al
jne 0x62f8
movl (%r12), %eax
leal -0x7(%rax), %ecx
cmpl $0x4, %ecx
ja 0x6350
movq %r14, %rbp
addq $0x50, %rbp
movq %rbp, %rdi
callq 0x6a6b
movl (%r12), %eax
leal -0x7(%rax), %ecx
cmpl $0x5, %ecx
jb 0x633c
cmpl $0xe, %eax
jne 0x635c
callq 0x3a62
jmp 0x636b
movq (%rbx), %rsi
leaq 0xcc31(%rip), %rdi      # 0x12f97
callq 0x7ac3
callq 0x7423
movq %rax, %rbp
cmpl $0x0, 0x4(%rax)
jne 0x6388
movq (%rbx), %rsi
leaq 0xcc45(%rip), %rdi      # 0x12fc8
callq 0x7ac3
movq %rbp, 0x68(%r14)
movl (%r12), %ecx
cmpl $0x1e, %ecx
jne 0x639c
callq 0x3a62
jmp 0x63c6
movq (%rbx), %rsi
movq 0x8(%r12), %r8
leaq 0xcc4b(%rip), %rdi      # 0x12ff6
leaq 0xcc8c(%rip), %rdx      # 0x1303e
callq 0x7b93
movl $0x1e, %edi
movl $0x1, %esi
callq 0x6811
movq 0x8(%rsp), %rbp
movl (%r12), %ecx
cmpl $0x1a, %ecx
jne 0x63db
callq 0x3a62
jmp 0x63f6
movq (%rbx), %rsi
movq 0x8(%r12), %r8
leaq 0xcc5e(%rip), %rdi      # 0x13048
leaq 0xc5d3(%rip), %rdx      # 0x129c4
callq 0x7b93
cmpq $0x0, (%rbx)
je 0x61c3
movq 0x38(%r15), %rax
leaq 0x1(%rax), %rbp
cmpq 0x30(%r15), %rbp
jbe 0x641f
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x7e8a
movq 0x38(%r15), %rax
movq 0x40(%r15), %rcx
movq %r14, (%rcx,%rax,8)
movq %rbp, 0x38(%r15)
movq 0x8(%rsp), %rbp
jmp 0x61c3
cmpl $0x1a, %eax
jne 0x6444
callq 0x3a62
jmp 0x6138
movq 0x10(%rsp), %rax
movq (%rax), %rsi
leaq 0xca5f(%rip), %rdi      # 0x12eb2
callq 0x7ac3
jmp 0x6138
movq %rbp, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3a62
leaq 0xc399(%rip), %rsi      # 0x12814
movl $0x3, %edi
callq 0x6606
cmpl $0x11, (%r12)
je 0x64a2
leaq 0xc39b(%rip), %rdi      # 0x1282e
callq 0x675d
movl $0xa, %edi
callq 0x2160
callq 0x3a62
leaq 0xc3da(%rip), %r14      # 0x12888
movl $0x24, %edi
movq %r14, %rsi
callq 0x6606
movl $0x1b, %edi
movq %r14, %rsi
callq 0x6606
movl $0x8, %edi
movq %r14, %rsi
callq 0x6606
cmpl $0x1c, (%r12)
jne 0x64f9
leaq 0xc34b(%rip), %rdi      # 0x1282e
callq 0x675d
movl $0x19, %edi
movl $0x1, %esi
callq 0x6811
jmp 0x650a
leaq 0xc377(%rip), %rsi      # 0x12877
movl $0x19, %edi
callq 0x6606
leaq 0xc366(%rip), %rsi      # 0x12877
movl $0x7, %edi
callq 0x6606
callq 0x6903
testb %al, %al
je 0x654e
leaq 0x38(%rsp), %r14
leaq 0xc36e(%rip), %r15      # 0x1289e
movq %r14, %rdi
callq 0x6938
movl $0x1e, %edi
movq %r15, %rsi
callq 0x6606
callq 0x6903
testb %al, %al
jne 0x6530
movl (%r12), %eax
addl $-0x7, %eax
cmpl $0x4, %eax
ja 0x6573
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x6a6b
movl (%r12), %eax
addl $-0x7, %eax
cmpl $0x5, %eax
jb 0x655f
leaq 0xc2fd(%rip), %rsi      # 0x12877
movl $0x1a, %edi
callq 0x6606
leaq 0xc2fd(%rip), %rsi      # 0x12888
movl $0x1a, %edi
callq 0x6606
jmp 0x6016
leaq 0xb6ea(%rip), %rdi      # 0x11c8b
xorl %eax, %eax
callq 0x2030
leaq 0xc1c9(%rip), %rdi      # 0x12778
callq 0x6b75
movl $0xa, %edi
callq 0x2160
movl $0x1, %edi
callq 0x2140