// File: /workspace/github_c_makefile_star2_O1/Encryptr[P]O-plus-plus/opp/compiler/compiler.c
// Function: opp_compile
void opp_compile(struct Opp_Context* opp)
{
	for (unsigned int stmt = 0; stmt < opp->parser->nstmts; stmt++) {
		switch (opp->parser->statments[stmt]->type)
		{
			case STMT_FUNC:
				opp_compile_func(opp, opp->parser->statments[stmt]);
				break;

			case STMT_EXTERN:
				opp_compile_extern(opp, opp->parser->statments[stmt]);
				break;

			case STMT_VAR:
				opp_compile_var(opp, opp->parser->statments[stmt]);
				break;

			default: break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %rax
cmpl $0x0, 0x18(%rax)
je 0x3bf7
movq %rdi, %rbx
leaq 0x10(%rdi), %rcx
movq %rcx, 0x8(%rsp)
xorl %r15d, %r15d
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %r14
movl (%r14), %eax
cmpl $0x13, %eax
je 0x3bda
cmpl $0x18, %eax
je 0x3b85
cmpl $0x16, %eax
jne 0x3be5
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x20(%rbx)
movups 0x10(%r14), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
movq %rbx, %rdi
callq 0x385b
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rax
movl $0x2, (%rcx,%rax,8)
movq 0x40(%r14), %rdx
movq (%rdx), %rdx
movq %rdx, 0x8(%rcx,%rax,8)
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rax
movb $0x0, 0x11(%rcx,%rax,8)
incq 0x48(%rbx)
cmpq $0x0, 0x28(%r14)
je 0x3be5
movq %r15, 0x10(%rsp)
cmpl $0x0, 0x30(%r14)
je 0x3b50
xorl %ebp, %ebp
movl $0x28, %r13d
movl $0x0, 0x4(%rsp)
movl $0x0, (%rsp)
movq %rbx, %rdi
callq 0x385b
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %r12
leaq (%rax,%rax,4), %r15
movl $0x3, (%r12,%r15,8)
movq 0x38(%r14), %rax
leaq (%rax,%r13), %rdi
addq $-0x18, %rdi
callq 0x38a4
movl %eax, 0x8(%r12,%r15,8)
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %rax
addq $0x8, %rax
movl (%rax), %ecx
leal -0x3(%rcx), %edx
cmpl $0x8, %edx
jae 0x3b11
movl 0x4(%rsp), %ecx
movl %ecx, 0x4(%rax)
incl %ecx
movl %ecx, 0x4(%rsp)
jmp 0x3b24
addl $-0xb, %ecx
cmpl $0x2, %ecx
jae 0x3b24
movl (%rsp), %ecx
movl %ecx, 0x4(%rax)
incl %ecx
movl %ecx, (%rsp)
incq 0x48(%rbx)
movl 0x20(%rbx), %eax
addl $-0x8, %eax
movl %eax, 0x20(%rbx)
movq 0x38(%r14), %rcx
movq (%rcx,%r13), %rcx
movl %eax, 0x28(%rcx)
incq %rbp
movl 0x30(%r14), %eax
addq $0x48, %r13
cmpq %rax, %rbp
jb 0x3ab2
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x4c64
movq %rbx, %rdi
callq 0x385b
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rdx
movl $0x11, (%rcx,%rdx,8)
incq %rax
movq %rax, 0x48(%rbx)
movq 0x10(%rsp), %r15
jmp 0x3be5
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3c06
movq %rbx, %rdi
callq 0x385b
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3bd4
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rax
movl $0x2, (%rcx,%rax,8)
movq 0x10(%r14), %rdx
movq 0x20(%rdx), %rdx
movq 0x18(%rdx), %rdx
movq %rdx, 0x8(%rcx,%rax,8)
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rax
movb $0x1, 0x11(%rcx,%rax,8)
incq 0x48(%rbx)
jmp 0x3be5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x501b
incq %r15
movq (%rbx), %rax
movl 0x18(%rax), %ecx
cmpq %rcx, %r15
jb 0x3a03
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x83bc(%rip), %rdi      # 0xbfc9
leaq 0x83de(%rip), %rsi      # 0xbff2
leaq 0x83ef(%rip), %rcx      # 0xc00a
movl $0x11b, %edx            # imm = 0x11B
callq 0x1100
nopl (%rax)