// File: /workspace/github_cpp_makefile_star2_O2/CobaltXII[P]cxcc/./parser/parser.hpp
// Function: parser_t::parse_statement()
statement_t* parse_statement() {
		token_t peek = input.peek();
		if (peek.type == tk_left_brace) {
			// Compound statement.
			std::vector<statement_t*> statements;
			expect(tk_left_brace);
			while (input.peek().type != tk_right_brace) {
				statements.push_back(parse_statement());
			}
			expect(tk_right_brace);
			return new statement_t({statements});
		} else if (peek.type == tk_if) {
			// Conditional statement.
			expect(tk_if);
			expect(tk_left_parenthesis);
			expression_t* condition = parse_expression();
			expect(tk_right_parenthesis);
			statement_t* body = parse_statement();
			return new statement_t((conditional_statement_t){condition, body});
		} else if (peek.type == tk_while) {
			// While statement.
			expect(tk_while);
			expect(tk_left_parenthesis);
			expression_t* condition = parse_expression();
			expect(tk_right_parenthesis);
			statement_t* body = parse_statement();
			return new statement_t((while_statement_t){condition, body});
		} else if (peek.type == tk_return) {
			// Return statement.
			expect(tk_return);
			expression_t* value = parse_expression();
			expect(tk_semicolon);
			return new statement_t((return_statement_t){value});
		} else if (peek.type == tk_int) {
			// Variable declaration statement.
			type_t type = parse_type();
			identifier_t identifier = parse_identifier();
			expression_t* initializer = nullptr;
			if (input.peek().type == tk_bi_assignment) {
				expect(tk_bi_assignment);
				initializer = parse_expression();
			}
			expect(tk_semicolon);
			return new statement_t({type, identifier, initializer});
		} else if (peek.type == tk_semicolon) {
			// No-op statement.
			expect(tk_semicolon);
			return new statement_t(st_no_op, STATEMENT_DEBUG);
		} else if (peek.type == tk_break) {
			// Break statement.
			expect(tk_break);
			return new statement_t(st_break, STATEMENT_DEBUG);
		} else if (peek.type == tk_continue) {
			// Continue statement.
			expect(tk_continue);
			return new statement_t(st_continue, STATEMENT_DEBUG);
		} else {
			// Expression statement.
			expression_t* expression = parse_expression();
			expect(tk_semicolon);
			return new statement_t((expression_statement_t){expression});
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x458, %rsp            # imm = 0x458
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x5d52
movl (%r15), %eax
addl $-0x5, %eax
cmpl $0xe, %eax
ja 0x6b2a
leaq 0x95ee(%rip), %rcx      # 0x1005c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3b0(%rsp), %rdi
pushq $0x5
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x3b8(%rsp), %rdi
callq 0x2100
leaq 0x378(%rsp), %rdi
pushq $0xc
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x380(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x742e
movq %rax, %r14
leaq 0x340(%rsp), %rdi
pushq $0xd
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x348(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x6a30
movq %rax, %r15
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
andq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
addq $0x60, %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x1, (%rbx)
movq %r14, 0x20(%rbx)
movq %r15, 0x28(%rbx)
jmp 0x6fb5
movq %rbx, %rdi
callq 0x742e
movq %rax, %r14
leaq 0xd8(%rsp), %rdi
pushq $0x13
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0xe0(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
andq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
addq $0x60, %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x6, (%rbx)
movq %r14, 0x78(%rbx)
jmp 0x6fb5
leaq 0x110(%rsp), %rdi
pushq $0xb
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x118(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
movq 0x30(%rsp), %rax
notq %rax
addq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
andq $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rbx, %rdx
addq $0x60, %rdx
movq %rdx, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x8, (%rbx)
jmp 0x6edb
movq %rbx, %rdi
callq 0x5d72
movq %rax, %r15
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x5e00
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x5d52
leaq 0x78(%rsp), %rdi
movl -0x8(%rdi), %ebp
callq 0x2100
cmpl $0x16, %ebp
jne 0x6f49
leaq 0x1f0(%rsp), %rdi
pushq $0x16
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x1f8(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x742e
movq %rax, %r14
jmp 0x6f4c
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x420(%rsp), %rdi
pushq $0x10
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x428(%rsp), %rdi
callq 0x2100
leaq 0x78(%rsp), %r15
leaq 0x70(%rsp), %r12
movq %rsp, %r13
movq %r12, %rdi
movq %r14, %rsi
callq 0x5d52
movl 0x70(%rsp), %ebp
movq %r15, %rdi
callq 0x2100
cmpl $0x11, %ebp
je 0x6eee
movq %rbx, %rdi
callq 0x6a30
movq %rax, 0x70(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x705a
jmp 0x6c9b
leaq 0x180(%rsp), %rdi
pushq $0x13
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x188(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
movq 0x30(%rsp), %rax
notq %rax
addq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
andq $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rbx, %rdx
addq $0x60, %rdx
movq %rdx, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x5, (%rbx)
jmp 0x6edb
leaq 0x308(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x310(%rsp), %rdi
callq 0x2100
leaq 0x2d0(%rsp), %rdi
pushq $0xc
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x2d8(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x742e
movq %rax, %r14
leaq 0x298(%rsp), %rdi
pushq $0xd
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x2a0(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x6a30
movq %rax, %r15
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
andq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
addq $0x60, %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x2, (%rbx)
movq %r14, 0x30(%rbx)
movq %r15, 0x38(%rbx)
jmp 0x6fb5
leaq 0x260(%rsp), %rdi
pushq $0x9
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x268(%rsp), %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x742e
movq %rax, %r14
leaq 0x228(%rsp), %rdi
pushq $0x13
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x230(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
andq $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rax)
addq $0x60, %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x3, (%rbx)
movq %r14, 0x40(%rbx)
jmp 0x6fb5
leaq 0x148(%rsp), %rdi
pushq $0xa
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x150(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
movq 0x30(%rsp), %rax
notq %rax
addq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
andq $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq %rbx, %rdx
addq $0x60, %rdx
movq %rdx, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
movl $0x7, (%rbx)
movq %rcx, 0x80(%rbx)
movq %rax, 0x88(%rbx)
jmp 0x6fb5
leaq 0x3e8(%rsp), %rdi
pushq $0x11
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x3f0(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq %rsp, %rsi
callq 0x71ec
leaq 0x58(%rsp), %rsi
movq %rbx, %rdi
callq 0x723a
leaq 0x58(%rsp), %rdi
callq 0x72ee
movq %rsp, %rdi
callq 0x72ee
jmp 0x6fb5
xorl %r14d, %r14d
leaq 0x1b8(%rsp), %rdi
pushq $0x13
popq %rdx
movq %rbx, %rsi
callq 0x62f0
leaq 0x1c0(%rsp), %rdi
callq 0x2100
movl $0x90, %edi
callq 0x2240
movq %rax, %rbx
leaq 0xb0(%rsp), %r12
movq %r15, -0x8(%r12)
movq %rsp, %rsi
movq %r12, %rdi
callq 0x22e0
leaq 0xa8(%rsp), %rsi
movq %r14, 0x28(%rsi)
movq %rbx, %rdi
callq 0x7290
movq %r12, %rdi
callq 0x2100
movq %rsp, %rdi
callq 0x2100
leaq 0x28(%rsp), %rdi
callq 0x2100
movq %rbx, %rax
addq $0x458, %rsp            # imm = 0x458
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x72ee
jmp 0x6fe6
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x2250
jmp 0x703f
movq %rax, %r14
movq %r12, %rdi
callq 0x2100
jmp 0x7005
movq %rax, %r14
movl $0x90, %esi
movq %rbx, %rdi
callq 0x2250
jmp 0x7027
jmp 0x7024
jmp 0x7035
jmp 0x7035
jmp 0x7035
jmp 0x7035
jmp 0x7035
jmp 0x7035
jmp 0x703c
movq %rax, %r14
movq %rsp, %rdi
callq 0x2100
jmp 0x7047
jmp 0x7035
jmp 0x7035
movq %rax, %r14
jmp 0x7047
jmp 0x703c
movq %rax, %r14
movq %rsp, %rdi
callq 0x72ee
leaq 0x28(%rsp), %rdi
callq 0x2100
movq %r14, %rdi
callq 0x2390
nop