// File: /workspace/github_c_makefile_star2_O3/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 0x860c
movq %rdi, %rbx
leaq 0x20(%rdi), %rax
movq %rax, (%rsp)
leaq 0x4413(%rip), %r14      # 0xc764
jmp 0x85e9
movq %rbx, %rdi
movl $0x1e, %esi
callq 0x8a85
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9b62
movq (%rbx), %rdi
cmpl $0x1, 0x30(%rdi)
je 0x8388
leaq 0x4a52(%rip), %rsi      # 0xcdd0
xorl %eax, %eax
callq 0x96c6
movq (%rbx), %rdi
movq 0x38(%rdi), %rbp
movq %rbp, %rdi
callq 0x10b0
leaq 0x1(%rax), %rdi
callq 0x1180
movq %rax, %r13
movq %rax, 0x10(%r12)
movq %rax, %rdi
movq %rbp, %rsi
callq 0x1050
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x8661
movq %rax, %rbp
testq %rax, %rax
jne 0x83d8
movq (%rbx), %rdi
leaq 0x4a25(%rip), %rsi      # 0xcdf3
movq %r13, %rdx
xorl %eax, %eax
callq 0x96c6
movq %r12, %r15
addq $0x10, %r15
movl $0x8, 0x8(%rbp)
movq %r15, 0x18(%rbp)
movq (%rbx), %rdi
callq 0x9b62
movq (%rbx), %r13
cmpl $0x27, 0x30(%r13)
je 0x8413
movq (%r15), %rdx
movq %r13, %rdi
leaq 0x4a04(%rip), %rsi      # 0xce0d
xorl %eax, %eax
callq 0x96c6
movq (%rbx), %r13
movl $0x1, %edi
movl $0x80, %esi
callq 0x1130
movq %rax, 0x20(%r12)
xorl %ebp, %ebp
movl $0x10, %r14d
movq %r13, %rdi
callq 0x9b62
movq (%rbx), %r13
movl 0x30(%r13), %eax
cmpl $0x28, %eax
je 0x849f
cmpl $0x40, %eax
je 0x849f
cmpl %r14d, %ebp
jne 0x8480
movq 0x20(%r12), %rdi
addl $0x40, %r14d
leaq (,%r14,8), %rsi
callq 0x11a0
movq %rax, 0x20(%r12)
testq %rax, %rax
jne 0x8480
leaq 0x311c(%rip), %rdi      # 0xb590
leaq 0x49b3(%rip), %rsi      # 0xce2e
callq 0x97b3
movq %rbx, %rdi
callq 0x8729
movq 0x20(%r12), %rcx
movl %ebp, %edx
movq %rax, (%rcx,%rdx,8)
incl %ebp
movq (%rbx), %r13
cmpl $0x23, 0x30(%r13)
jne 0x842f
movq %r13, %rdi
callq 0x9b62
movq (%rbx), %rdi
cmpl $0x2a, 0x30(%rdi)
je 0x84c1
movq (%r15), %rdx
leaq 0x4985(%rip), %rsi      # 0xce3f
xorl %eax, %eax
callq 0x96c6
movl %ebp, 0x18(%r12)
leaq 0x4297(%rip), %r14      # 0xc764
jmp 0x859b
cmpl $0x1, %eax
jne 0x84e7
movq %rbx, %rdi
callq 0x8729
movq %rax, %r12
jmp 0x859b
movq 0x38(%rdi), %rdx
leaq 0x4385(%rip), %rsi      # 0xc877
xorl %eax, %eax
callq 0x96c6
xorl %r12d, %r12d
jmp 0x859b
movq %rbx, %rdi
movl $0x14, %esi
callq 0x8a85
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9b62
movq (%rbx), %rdi
cmpl $0x5, 0x30(%rdi)
je 0x8533
leaq 0x4859(%rip), %rsi      # 0xcd82
xorl %eax, %eax
callq 0x96c6
movq (%rbx), %rdi
movq 0x38(%rdi), %rsi
movq %rbx, %rdi
callq 0x1737
movq (%rbx), %rdi
callq 0x9b62
movq (%rbx), %rdi
cmpl $0x2a, 0x30(%rdi)
je 0x859b
leaq 0x4855(%rip), %rsi      # 0xcdac
jmp 0x8594
movq %rbx, %rdi
movl $0x18, %esi
callq 0x8a85
movq %rax, %r12
movq (%rbx), %rdi
callq 0x9b62
movq %rbx, %rdi
callq 0x8729
movq %rax, 0x10(%r12)
cmpl $0x16, (%rax)
jne 0x859b
cmpq $0x0, 0x28(%rax)
je 0x859b
movq (%rbx), %rdi
leaq 0x47bf(%rip), %rsi      # 0xcd53
xorl %eax, %eax
callq 0x96c6
movl 0x18(%rbx), %ecx
movq 0x8(%rbx), %rax
cmpq %rcx, 0x10(%rbx)
jne 0x85e0
leaq 0x200(,%rcx,8), %rsi
movq %rax, %rdi
callq 0x11a0
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0x85d8
leaq 0x2fc8(%rip), %rdi      # 0xb590
leaq 0x4245(%rip), %rsi      # 0xc814
callq 0x97b3
movq 0x8(%rbx), %rax
addq $0x40, 0x10(%rbx)
movl 0x18(%rbx), %ecx
movq %r12, (%rax,%rcx,8)
incl %ecx
movl %ecx, 0x18(%rbx)
movq (%rbx), %rdi
callq 0x9b62
movq (%rbx), %rdi
movl 0x30(%rdi), %eax
leal -0x38(%rax), %ecx
cmpl $0x8, %ecx
ja 0x84d2
movslq (%r14,%rcx,4), %rax
addq %r14, %rax
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq