// File: /workspace/github_c_makefile_star2_O2/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, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x8(%rsp)
xorl %r15d, %r15d
movq (%rbx), %rax
movl 0x18(%rax), %ecx
cmpq %rcx, %r15
jae 0x3a8e
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %r14
movl (%r14), %eax
cmpl $0x13, %eax
je 0x3a46
cmpl $0x18, %eax
je 0x39f3
cmpl $0x16, %eax
jne 0x3a86
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x20(%rbx)
movups 0x10(%r14), %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
movq %rbx, %rdi
callq 0x3725
imulq $0x28, 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
movl $0x2, (%rcx,%rax)
movq 0x40(%r14), %rdx
movq (%rdx), %rdx
movq %rdx, 0x8(%rcx,%rax)
movq 0x58(%rbx), %rax
imulq $0x28, 0x48(%rbx), %rcx
movb $0x0, 0x11(%rax,%rcx)
incq 0x48(%rbx)
cmpq $0x0, 0x28(%r14)
je 0x3a86
movq %r15, 0x10(%rsp)
xorl %ebp, %ebp
pushq $0x28
popq %r13
movl $0x0, (%rsp)
movl $0x0, 0x4(%rsp)
movl 0x30(%r14), %eax
cmpq %rax, %rbp
jae 0x3a53
movq %rbx, %rdi
callq 0x3725
imulq $0x28, 0x48(%rbx), %r15
movq 0x58(%rbx), %r12
movl $0x3, (%r12,%r15)
movq 0x38(%r14), %rax
leaq (%rax,%r13), %rdi
addq $-0x18, %rdi
callq 0x3766
movl %eax, 0x8(%r12,%r15)
movq 0x58(%rbx), %rax
imulq $0x28, 0x48(%rbx), %rcx
addq %rcx, %rax
addq $0x8, %rax
movl (%rax), %ecx
leal -0x3(%rcx), %edx
cmpl $0x8, %edx
jae 0x39de
movl 0x4(%rsp), %ecx
movl %ecx, 0x4(%rax)
incl %ecx
movl %ecx, 0x4(%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
addq $0x48, %r13
jmp 0x3957
addl $-0xb, %ecx
cmpl $0x2, %ecx
jae 0x39ba
movl (%rsp), %ecx
movl %ecx, 0x4(%rax)
incl %ecx
movl %ecx, (%rsp)
jmp 0x39ba
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3a9d
movq %rbx, %rdi
callq 0x3725
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3a40
movq 0x58(%rbx), %rax
imulq $0x28, 0x48(%rbx), %rcx
movl $0x2, (%rax,%rcx)
movq 0x10(%r14), %rdx
movq 0x20(%rdx), %rdx
movq 0x18(%rdx), %rdx
movq %rdx, 0x8(%rax,%rcx)
movq 0x58(%rbx), %rax
imulq $0x28, 0x48(%rbx), %rcx
movb $0x1, 0x11(%rax,%rcx)
incq 0x48(%rbx)
jmp 0x3a86
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4d7a
jmp 0x3a86
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x49b8
movq %rbx, %rdi
callq 0x3725
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
imulq $0x28, %rax, %rdx
movl $0x11, (%rcx,%rdx)
incq %rax
movq %rax, 0x48(%rbx)
movq 0x10(%rsp), %r15
incq %r15
jmp 0x38ac
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7525(%rip), %rdi      # 0xafc9
leaq 0x7547(%rip), %rsi      # 0xaff2
leaq 0x7558(%rip), %rcx      # 0xb00a
movl $0x11b, %edx            # imm = 0x11B
callq 0x1100