// File: /workspace/github_cpp_makefile_star2_O3/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 0x69d4
cmpl $0x1a, %eax
jne 0x894b
movq %rbx, %rdi
callq 0x69fe
movl $0x20, %edi
callq 0x5380
movq %rax, %rbx
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x18215(%rip), %rax     # 0x20b38
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
callq 0x9eb0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8a55
movq 0x30(%rsp), %rsi
jmp 0x8a4d
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x8262
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0xa198
movq %rbx, %rdi
callq 0x69fe
movq %rax, %r14
movq %rdx, %r13
movq %rsp, %r15
leaq 0x18(%rsp), %r12
cmpl $0x1e, %r14d
jne 0x89d2
movq %rbx, %rdi
callq 0x69d4
cmpl $0x1a, %eax
je 0x89c4
movq %rbx, %rdi
callq 0x8262
movq %rax, 0x18(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0xa198
movq %rbx, %rdi
callq 0x69fe
movq %rax, %r14
movq %rdx, %r13
jmp 0x8989
movq %rbx, %rdi
callq 0x69fe
movq %rax, %r14
movq %rdx, %r13
cmpl $0x1a, %r14d
jne 0x8a66
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 0x18123(%rip), %rax     # 0x20b38
addq $0x10, %rax
movq %rax, (%rbx)
movq %rbx, %rdi
addq $0x8, %rdi
callq 0x9eb0
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8a3f
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8a55
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 0xee26(%rip), %rsi      # 0x178a0
movq %rax, %rdi
movq %r14, %rdx
movq %r13, %rcx
callq 0xa896
leaq 0x17ae9(%rip), %rsi     # 0x20578
leaq 0x13ea(%rip), %rdx      # 0x9e80
movq %rbx, %rdi
callq 0x55d0
jmp 0x8b02
movq %rax, %r14
movq %rbx, %rdi
callq 0x5280
jmp 0x8b05
movq %rax, %r14
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x8ac7
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movl $0x20, %esi
movq %rbx, %rdi
callq 0x5390
jmp 0x8b05
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8af0
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movl $0x20, %esi
movq %rbx, %rdi
jmp 0x8b16
jmp 0x8b02
jmp 0x8b02
jmp 0x8b02
jmp 0x8b02
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x8b1b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq %r14, %rdi
callq 0x55e0
nop