// File: /workspace/github_c_makefile_star2_O1/Encryptr[P]O-plus-plus/opp/opp.c
// Function: main
int main(int argc, const char** argv) 
{
	struct Opp_Options opts = {0};

	if (!opp_init())
		exit(1);

	if (!allocator_init())
		INTERNAL_ERROR("Allocator init fail");

	if (argc < 2) {
		opp_help();
		return 0;
	}

	opp_args(argc, argv, &opts);
	
	if (opts.live)
		opp_live_compiler(&opts, argv[argc-1]);
	else
		opp_init_module(argv[argc-1], &opts);

	// objdump -b binary -D -m i386:x86-64 -M intel out.bin 

	allocator_free();

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movb $0x0, 0x8(%rsp)
movq $0x0, (%rsp)
xorl %eax, %eax
callq 0x7f24
testb %al, %al
jne 0x1856
leaq 0x9842(%rip), %rdi      # 0xb08c
leaq 0x984f(%rip), %rsi      # 0xb0a0
callq 0x98fb
cmpl $0x1, %r14d
jg 0x1920
leaq 0x99ea(%rip), %rdi      # 0xb251
callq 0x1060
leaq 0x98ec(%rip), %rdi      # 0xb15f
leaq 0x98fb(%rip), %rsi      # 0xb175
xorl %eax, %eax
callq 0x10e0
leaq 0x99eb(%rip), %rdi      # 0xb273
callq 0x1060
leaq 0x9a04(%rip), %rdi      # 0xb298
callq 0x1060
leaq 0x9a27(%rip), %rdi      # 0xb2c7
callq 0x1060
leaq 0x9a4c(%rip), %rdi      # 0xb2f8
callq 0x1060
leaq 0x9a74(%rip), %rdi      # 0xb32c
callq 0x1060
leaq 0x9a8c(%rip), %rdi      # 0xb350
callq 0x1060
leaq 0x9aab(%rip), %rdi      # 0xb37b
callq 0x1060
leaq 0x9acc(%rip), %rdi      # 0xb3a8
callq 0x1060
leaq 0x9ae9(%rip), %rdi      # 0xb3d1
callq 0x1060
leaq 0x9afe(%rip), %rdi      # 0xb3f2
callq 0x1060
leaq 0x9b1f(%rip), %rdi      # 0xb41f
callq 0x1060
leaq 0x9b3e(%rip), %rdi      # 0xb44a
callq 0x1060
movl $0xa, %edi
callq 0x1040
jmp 0x1bbb
movb $0x1, 0x4(%rsp)
leaq 0x984f(%rip), %rax      # 0xb17b
movq %rax, 0xe89d(%rip)      # 0x101d0
movq %r14, 0x10(%rsp)
cmpl $0x2, %r14d
je 0x1ace
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r13d
movl $0x1, %r12d
leaq 0x996b(%rip), %r15      # 0xb2c3
movslq %r12d, %r14
movq (%rbx,%r14,8), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1140
testl %eax, %eax
je 0x1a6d
movq %rbp, %rdi
leaq 0x9809(%rip), %rsi      # 0xb185
callq 0x1140
testl %eax, %eax
je 0x1a74
movq %rbp, %rdi
leaq 0x97f8(%rip), %rsi      # 0xb18b
callq 0x1140
testl %eax, %eax
je 0x1a7b
movq %rbp, %rdi
leaq 0x97e6(%rip), %rsi      # 0xb190
callq 0x1140
testl %eax, %eax
je 0x1a82
movq %rbp, %rdi
leaq 0x97d4(%rip), %rsi      # 0xb195
callq 0x1140
testl %eax, %eax
je 0x1a89
movq %rbp, %rdi
leaq 0x97c0(%rip), %rsi      # 0xb198
callq 0x1140
testl %eax, %eax
je 0x1a8f
movq %rbp, %rdi
leaq 0x97ad(%rip), %rsi      # 0xb19c
callq 0x1140
testl %eax, %eax
je 0x1a96
movq %rbp, %rdi
leaq 0x979d(%rip), %rsi      # 0xb1a3
callq 0x1140
testl %eax, %eax
je 0x1a9d
movq %rbp, %rdi
leaq 0x9789(%rip), %rsi      # 0xb1a6
callq 0x1140
testl %eax, %eax
je 0x1aa4
movq %rbp, %rdi
leaq 0x977d(%rip), %rsi      # 0xb1ad
callq 0x1140
testl %eax, %eax
je 0x1aab
movq %rbp, %rdi
leaq 0x9770(%rip), %rsi      # 0xb1b3
callq 0x1140
testl %eax, %eax
je 0x1ab2
leaq 0x9766(%rip), %rdi      # 0xb1b9
leaq 0x977a(%rip), %rsi      # 0xb1d4
movq %rbp, %rdx
leaq 0x982f(%rip), %rcx      # 0xb293
xorl %eax, %eax
callq 0x10e0
jmp 0x1ac2
movb $0x1, 0x1(%rsp)
jmp 0x1ac2
movb $0x0, 0x1(%rsp)
jmp 0x1ac2
movb $0x1, 0x7(%rsp)
jmp 0x1ac2
movb $0x1, 0x8(%rsp)
jmp 0x1ac2
movb $0x1, (%rsp)
jmp 0x1ac2
movb $0x1, 0x2(%rsp)
jmp 0x1ac2
movb $0x1, 0x3(%rsp)
jmp 0x1ac2
movb $0x0, 0x4(%rsp)
jmp 0x1ac2
movb $0x1, 0x5(%rsp)
jmp 0x1ac2
movb $0x1, 0x6(%rsp)
jmp 0x1ac2
leal 0x1(%r14), %r12d
movq 0x8(%rbx,%r14,8), %rax
movq %rax, 0xe70e(%rip)      # 0x101d0
incl %r12d
cmpl %r13d, %r12d
jl 0x1958
movl 0x10(%rsp), %eax
movq -0x8(%rbx,%rax,8), %rbx
cmpb $0x1, 0x8(%rsp)
jne 0x1ba9
leaq 0x96f1(%rip), %rdi      # 0xb1da
leaq 0x95da(%rip), %rsi      # 0xb0ca
leaq 0x979c(%rip), %rdx      # 0xb293
xorl %eax, %eax
callq 0x10e0
movl $0x50, %edi
callq 0x1180
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x132c
movq %r14, 0x10(%rsp)
movq %r14, %rdi
callq 0x808c
movq %rax, %r14
movq %rax, %rdi
callq 0x8435
movq %rsp, %rsi
movq %r14, %rdi
callq 0x1bd0
movq %rax, %rdi
callq 0x1c3f
leaq 0x18(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1160
movq 0x58(%r12), %rbp
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1160
movq 0x70(%rsp), %r13
cmpq %r13, %rbp
jge 0x1b59
leal 0x1(%r14), %r15d
leaq 0x9680(%rip), %rdi      # 0xb1f9
leaq 0x96a6(%rip), %rsi      # 0xb226
movq %rbx, %rdx
movl %r14d, %ecx
leaq 0x9706(%rip), %r8       # 0xb293
xorl %eax, %eax
callq 0x10e0
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x132c
movq %r13, %rbp
movl %r15d, %r14d
jmp 0x1b59
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1455
xorl %eax, %eax
callq 0x7ff5
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop