// File: /workspace/github_c_makefile_star2_O1/Encryptr[P]O-plus-plus/opp/parser/parser.c
// Function: opp_parser_begin
void opp_parser_begin(struct Opp_Parser* parser)
{
	if (parser == NULL)
		return;

	for (;;) {
		opp_next(parser->lex);
		if (parser->lex->t.id == FEND)
			break;

		struct Opp_Node* stmt = opp_parse_global_def(parser);

		if (parser->nstmts == parser->stmt_size) {
			parser->statments = (struct Opp_Node**)
				realloc(parser->statments, (64+parser->stmt_size) * sizeof(struct Opp_Node*));

			if (parser->statments == NULL)
				INTERNAL_ERROR("Malloc Fail");

			parser->stmt_size += 64;
		}

		parser->statments[parser->nstmts] = stmt;
		parser->nstmts++;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x8727
movq %rdi, %rbx
leaq 0x20(%rdi), %rax
movq %rax, (%rsp)
leaq 0x4309(%rip), %rbp      # 0xc764
jmp 0x8703
movq %rbx, %rdi
movl $0x1e, %esi
callq 0x8b9b
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
cmpl $0x1, 0x30(%rdi)
je 0x848f
leaq 0x4948(%rip), %rsi      # 0xcdd0
xorl %eax, %eax
callq 0x980e
movq (%rbx), %r15
movq 0x38(%r15), %rdi
callq 0x10b0
leaq 0x1(%rax), %rdi
callq 0x1180
movq %rax, %r13
movq %r12, %r14
addq $0x10, %r14
movq %rax, 0x10(%r12)
movq 0x38(%r15), %rsi
movq %rax, %rdi
callq 0x1050
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x877c
movq %rax, %r13
testq %rax, %rax
jne 0x84e7
movq (%rbx), %rdi
movq (%r14), %rdx
leaq 0x4913(%rip), %rsi      # 0xcdf3
xorl %eax, %eax
callq 0x980e
movl $0x8, 0x8(%r13)
movq %r14, 0x18(%r13)
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
cmpl $0x27, 0x30(%rdi)
je 0x8515
movq (%r14), %rdx
leaq 0x48ff(%rip), %rsi      # 0xce0d
xorl %eax, %eax
callq 0x980e
movl $0x80, %edi
callq 0x1180
movq %rax, 0x20(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x50(%rax)
movups %xmm0, 0x60(%rax)
movups %xmm0, 0x70(%rax)
xorl %r13d, %r13d
movl $0x10, %r15d
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rax
movl 0x30(%rax), %eax
cmpl $0x28, %eax
je 0x85bf
cmpl $0x40, %eax
je 0x85bf
cmpl %r15d, %r13d
jne 0x859f
movq 0x20(%r12), %rdi
addl $0x40, %r15d
leaq (,%r15,8), %rsi
callq 0x11a0
movq %rax, 0x20(%r12)
testq %rax, %rax
jne 0x859f
leaq 0x2ffd(%rip), %rdi      # 0xb590
leaq 0x4894(%rip), %rsi      # 0xce2e
callq 0x98fb
movq %rbx, %rdi
callq 0x8843
movq 0x20(%r12), %rcx
movl %r13d, %edx
movq %rax, (%rcx,%rdx,8)
incl %r13d
movq (%rbx), %rax
cmpl $0x23, 0x30(%rax)
jne 0x854f
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
cmpl $0x2a, 0x30(%rdi)
je 0x85e1
movq (%r14), %rdx
leaq 0x4865(%rip), %rsi      # 0xce3f
xorl %eax, %eax
callq 0x980e
movl %r13d, 0x18(%r12)
jmp 0x86b4
cmpl $0x1, %eax
jne 0x8600
movq %rbx, %rdi
callq 0x8843
movq %rax, %r12
jmp 0x86b4
movq 0x38(%rdi), %rdx
leaq 0x426c(%rip), %rsi      # 0xc877
xorl %eax, %eax
callq 0x980e
xorl %r12d, %r12d
jmp 0x86b4
movq %rbx, %rdi
movl $0x14, %esi
callq 0x8b9b
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
cmpl $0x5, 0x30(%rdi)
je 0x8649
leaq 0x4740(%rip), %rsi      # 0xcd82
xorl %eax, %eax
callq 0x980e
movq (%rbx), %rax
movq 0x38(%rax), %rsi
movq %rbx, %rdi
callq 0x1737
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
cmpl $0x2a, 0x30(%rdi)
je 0x86b4
leaq 0x473c(%rip), %rsi      # 0xcdac
jmp 0x86ad
movq %rbx, %rdi
movl $0x18, %esi
callq 0x8b9b
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9cc3
movq %rbx, %rdi
callq 0x8843
movq %rax, 0x10(%r12)
cmpl $0x16, (%rax)
jne 0x86b4
cmpq $0x0, 0x28(%rax)
je 0x86b4
movq (%rbx), %rdi
leaq 0x46a6(%rip), %rsi      # 0xcd53
xorl %eax, %eax
callq 0x980e
movl 0x18(%rbx), %ecx
movq 0x10(%rbx), %rax
cmpq %rcx, %rax
jne 0x86f2
movq 0x8(%rbx), %rdi
leaq 0x200(,%rax,8), %rsi
callq 0x11a0
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0x86ed
leaq 0x2eaf(%rip), %rdi      # 0xb590
leaq 0x412c(%rip), %rsi      # 0xc814
callq 0x98fb
addq $0x40, 0x10(%rbx)
movq 0x8(%rbx), %rax
movl 0x18(%rbx), %ecx
movq %r12, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x18(%rbx)
movq (%rbx), %rdi
callq 0x9cc3
movq (%rbx), %rdi
movl 0x30(%rdi), %eax
leal -0x38(%rax), %ecx
cmpl $0x8, %ecx
ja 0x85eb
movslq (%rbp,%rcx,4), %rax
addq %rbp, %rax
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq