// File: /workspace/github_c_makefile_star2_O3/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 0x3b7d
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
xorl %r12d, %r12d
movabsq $0x100000000, %r13      # imm = 0x100000000
movq %r15, 0x8(%rsp)
movq 0x8(%rax), %rax
movq (%rax,%r12,8), %r14
movl (%r14), %eax
cmpl $0x13, %eax
je 0x3b60
cmpl $0x18, %eax
je 0x3b0b
cmpl $0x16, %eax
jne 0x3b6b
movq %r13, 0x20(%rbx)
movups 0x10(%r14), %xmm0
movups %xmm0, (%r15)
movq %rbx, %rdi
callq 0x37d7
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)
movq 0x28(%r14), %rsi
testq %rsi, %rsi
je 0x3b6b
cmpl $0x0, 0x30(%r14)
je 0x3adf
movq %r12, 0x10(%rsp)
xorl %ebp, %ebp
movl $0x28, %r13d
movl $0x0, 0x4(%rsp)
movl $0x0, (%rsp)
movq %rbx, %rdi
callq 0x37d7
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 0x3820
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 0x3a88
movl 0x4(%rsp), %ecx
movl %ecx, 0x4(%rax)
incl %ecx
movl %ecx, 0x4(%rsp)
jmp 0x3a9b
addl $-0xb, %ecx
cmpl $0x2, %ecx
jae 0x3a9b
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 0x3a29
movq 0x28(%r14), %rsi
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %r12
movabsq $0x100000000, %r13      # imm = 0x100000000
movq %rbx, %rdi
callq 0x4bd0
movq %rbx, %rdi
callq 0x37d7
movq 0x48(%rbx), %rax
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,4), %rdx
movl $0x11, (%rcx,%rdx,8)
incq %rax
movq %rax, 0x48(%rbx)
jmp 0x3b6b
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3b8c
movq %rbx, %rdi
callq 0x37d7
movq 0x10(%r14), %rax
cmpl $0x16, (%rax)
jne 0x3b5a
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 0x3b6b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4f89
incq %r12
movq (%rbx), %rax
movl 0x18(%rax), %ecx
cmpq %rcx, %r12
jb 0x3986
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8436(%rip), %rdi      # 0xbfc9
leaq 0x8458(%rip), %rsi      # 0xbff2
leaq 0x8469(%rip), %rcx      # 0xc00a
movl $0x11b, %edx            # imm = 0x11B
callq 0x1100
nop