// File: /workspace/github_cpp_makefile_star2_O1/iamlouk[P]asbi/src/parser.cc
// Function: asbi::Parser::parse_block()
ast::Block* Parser::parse_block() {
	if (tokenizer.peek().type == tok::RightCurlyBracket) {
		tokenizer.next();
		return new ast::Block(std::vector<ast::Node*>());
	}

	std::vector<ast::Node*> exprs;
	exprs.push_back(parse_expr());
	auto t = tokenizer.next();
	while (t.type == tok::Semicolon) {
		if (tokenizer.peek().type == tok::RightCurlyBracket) {
			t = tokenizer.next();
			break;
		}

		exprs.push_back(parse_expr());
		t = tokenizer.next();
	}

	if (t.type != tok::RightCurlyBracket)
		throw utils::parser_error("expected ';' or '}'", t);

	return new ast::Block(std::move(exprs));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
callq 0x6a1a
cmpl $0x1a, %eax
jne 0x8a57
movq %rbx, %rdi
callq 0x6a44
movl $0x20, %edi
callq 0x5380
movq %rax, %rbx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x18109(%rip), %rax     # 0x20b38
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
callq 0xa00e
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8b61
movq 0x30(%rsp), %rsi
jmp 0x8b59
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x8330
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0xa2f6
movq %rbx, %rdi
callq 0x6a44
movq %rax, %r14
movq %rdx, %r13
movq %rsp, %r15
leaq 0x18(%rsp), %r12
cmpl $0x1e, %r14d
jne 0x8ade
movq %rbx, %rdi
callq 0x6a1a
cmpl $0x1a, %eax
je 0x8ad0
movq %rbx, %rdi
callq 0x8330
movq %rax, 0x18(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xa2f6
movq %rbx, %rdi
callq 0x6a44
movq %rax, %r14
movq %rdx, %r13
jmp 0x8a95
movq %rbx, %rdi
callq 0x6a44
movq %rax, %r14
movq %rdx, %r13
cmpl $0x1a, %r14d
jne 0x8b72
movl $0x20, %edi
callq 0x5380
movq %rax, %rbx
movq (%rsp), %rax
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
movups 0x8(%rsp), %xmm0
movups %xmm0, 0x8(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x18017(%rip), %rax     # 0x20b38
addq $0x10, %rax
movq %rax, (%rbx)
movq %rbx, %rdi
addq $0x8, %rdi
callq 0xa00e
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8b4b
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8b61
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl $0x48, %edi
callq 0x51b0
movq %rax, %rbx
leaq 0xed1a(%rip), %rsi      # 0x178a0
movq %rax, %rdi
movq %r14, %rdx
movq %r13, %rcx
callq 0xa9f6
leaq 0x179dd(%rip), %rsi     # 0x20578
leaq 0x143c(%rip), %rdx      # 0x9fde
movq %rbx, %rdi
callq 0x55d0
jmp 0x8c0e
movq %rax, %r14
movq %rbx, %rdi
callq 0x5280
jmp 0x8c11
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8bd3
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movl $0x20, %esi
movq %rbx, %rdi
callq 0x5390
jmp 0x8c11
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8bfc
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movl $0x20, %esi
movq %rbx, %rdi
jmp 0x8c22
jmp 0x8c0e
jmp 0x8c0e
jmp 0x8c0e
jmp 0x8c0e
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8c27
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq %r14, %rdi
callq 0x55e0
nop