// File: /workspace/github_c_makefile_star2_O2/Encryptr[P]O-plus-plus/opp/parser/parser.c
// Function: opp_parse_statement
static struct Opp_Node* opp_parse_statement(struct Opp_Parser* parser)
{
	switch (parser->lex->t.id)
	{
		case TSEMICOLON:
			opp_error(parser->lex, "Trailing ';' found");
			break;

		case TOPENC:
			return opp_parse_block(parser);

		case TRET:
			return opp_parse_return(parser);

		case TWHILE:
			return opp_parse_while(parser);

		case TGOTO:
			return opp_parse_goto(parser);

		case TIF:
			return opp_parse_if(parser);

		case TFOR:
			return opp_parse_for(parser);

		case TSWITCH:
			return opp_parse_switch(parser);

		case TCASE:
			return opp_parse_case(parser);

		case TBREAK:
			return opp_parse_break(parser);

		case TUNSIGNED:
			return opp_parse_type(parser);

		case TIDENT: 
			if (opp_parse_peak(parser, ':'))
				return opp_parse_label(parser);

			if (get_type(&parser->tree, parser->lex->t.buffer.buf) != NULL)
				return opp_parse_type(parser);
			else 
				return opp_parse_expr(parser);

		default:
			return opp_parse_expr(parser);
	}

	return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movl 0x30(%rdi), %ecx
leal -0x27(%rcx), %eax
cmpl $0x18, %eax
ja 0x8843
leaq 0x2f95(%rip), %rcx      # 0xb7c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x907c
cmpl $0x1, %ecx
jne 0x8bbc
movq (%rdi), %rax
cmpb $0x3a, (%rax)
jne 0x8b98
pushq $0xf
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq %rbx, %rdi
callq 0x8658
movq %rax, 0x10(%r14)
jmp 0x8a8c
pushq $0x1a
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x22, 0x30(%rdi)
je 0x88a7
leaq 0x33d3(%rip), %rsi      # 0xbc70
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x87af
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
cmpl $0x23, 0x30(%rdi)
je 0x88d2
leaq 0x33ce(%rip), %rsi      # 0xbc96
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x27, 0x30(%rdi)
je 0x88ee
leaq 0x33d5(%rip), %rsi      # 0xbcbc
xorl %eax, %eax
callq 0x919e
movq %rbx, %rdi
callq 0x907c
jmp 0x8ae2
pushq $0x17
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rax
cmpl $0x2a, 0x30(%rax)
jne 0x8b81
xorl %eax, %eax
jmp 0x8b89
pushq $0x15
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x22, 0x30(%rdi)
je 0x8952
leaq 0x3281(%rip), %rsi      # 0xbbcc
xorl %eax, %eax
callq 0x919e
movq %rbx, %rdi
callq 0x87af
movq %rax, 0x10(%r14)
jmp 0x8ada
leaq 0x320f(%rip), %rsi      # 0xbb79
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x919e
jmp 0x8b8d
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x1, 0x30(%rdi)
je 0x89a6
leaq 0x3246(%rip), %rsi      # 0xbbe5
xorl %eax, %eax
callq 0x919e
movq %rbx, %rdi
callq 0x8658
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rax
cmpl $0x2a, 0x30(%rax)
je 0x8b8d
pushq $0x3b
popq %rsi
movq %rbx, %rdi
callq 0x8bcb
jmp 0x8b8d
pushq $0x11
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x22, 0x30(%rdi)
je 0x8a07
leaq 0x3202(%rip), %rsi      # 0xbbff
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x87af
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
cmpl $0x23, 0x30(%rdi)
je 0x8a32
leaq 0x31ed(%rip), %rsi      # 0xbc15
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x880f
movq %rax, 0x18(%r14)
andq $0x0, 0x20(%r14)
movq (%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x958c
movq (%rbx), %rdi
cmpl $0x35, 0x30(%rdi)
jne 0x8b8d
callq 0x95cd
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x880f
movq %rax, 0x20(%r14)
jmp 0x8b8d
pushq $0x1d
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
jmp 0x8b8d
pushq $0x1c
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x87af
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
cmpl $0x1b, 0x30(%rdi)
je 0x8ad5
leaq 0x323b(%rip), %rsi      # 0xbd06
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x880f
movq %rax, 0x18(%r14)
jmp 0x8b8d
pushq $0x19
popq %rsi
movq %rbx, %rdi
callq 0x8610
movq %rax, %r14
movq (%rbx), %rdi
callq 0x95cd
movq (%rbx), %rdi
cmpl $0x22, 0x30(%rdi)
je 0x8b1b
leaq 0x3124(%rip), %rsi      # 0xbc35
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x880f
movq %rax, 0x10(%r14)
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x913e
movq %rax, 0x18(%r14)
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x87af
movq %rax, 0x20(%r14)
movq (%rbx), %rdi
cmpl $0x23, 0x30(%rdi)
je 0x8b6e
leaq 0x30e9(%rip), %rsi      # 0xbc4d
xorl %eax, %eax
callq 0x919e
movq (%rbx), %rdi
callq 0x95cd
movq %rbx, %rdi
callq 0x880f
movq %rax, 0x28(%r14)
jmp 0x8b8d
movq %rbx, %rdi
callq 0x913e
movq %rax, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x20(%rbx), %rax
movq 0x38(%rdi), %rsi
movq %rax, %rdi
callq 0x81d6
testq %rax, %rax
je 0x8bbc
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x82da
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x913e