// File: /workspace/github_cpp_makefile_star2_O1/kram[P]kram/./src/parser/parser.cpp
// Function: Parser::keyword_class()
Instruction* Parser::keyword_class() {
	Instruction* ins = new Instruction(Ins::DEFINE_CLASS);

	this->advance();

	lexer::Token* n = this->get_and_expect_token(lexer::Token::NAME(""));
	ins->name = n->value;

	this->advance();
	this->get_and_expect_token(lexer::Token::OPERATOR("{"));

	this->advance();
	ins->right = this->read_until(std::vector<lexer::Token>{
		lexer::Token::OPERATOR("}")
	});

	return ins;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movq %rdi, %r14
movl $0x80, %edi
callq 0x3260
movq %rax, %rbx
movl $0x9, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
movups %xmm0, 0x58(%rbx)
movups %xmm0, 0x68(%rbx)
movq %rax, 0x78(%rbx)
movl $0x2, 0x30(%rbx)
cmpb $0x1, 0x20(%r14)
jne 0xfe53
incl 0x18(%r14)
jmp 0xfe58
movb $0x1, 0x20(%r14)
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xf8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x6e26
leaq 0xf8(%rsp), %rsi
movq %r14, %rdi
callq 0xf232
movq %rax, %r15
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfeaf
callq 0x3230
leaq 0x8(%rbx), %r12
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0xfec5
callq 0x3230
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x3150
cmpb $0x1, 0x20(%r14)
jne 0xfee1
incl 0x18(%r14)
jmp 0xfee6
movb $0x1, 0x20(%r14)
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x7b, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xd0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x6d74
leaq 0xd0(%rsp), %rsi
movq %r14, %rdi
callq 0xf232
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xff35
callq 0x3230
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0xff44
callq 0x3230
cmpb $0x1, 0x20(%r14)
jne 0xff51
incl 0x18(%r14)
jmp 0xff56
movb $0x1, 0x20(%r14)
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x7d, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xa8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x6d74
leaq 0x30(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x11680
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %r14, %rsi
callq 0xde4a
movq 0x50(%rbx), %rdi
movaps 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movq %rdi, 0x10(%rsp)
movups 0x58(%rbx), %xmm1
movups %xmm0, 0x50(%rbx)
movq %rax, 0x60(%rbx)
movups %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rdi, %rdi
je 0xffec
callq 0x3230
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xfffb
callq 0x3230
leaq 0x30(%rsp), %rdi
callq 0x116c2
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1001b
callq 0x3230
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x1002a
callq 0x3230
movq %rbx, %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x116c2
jmp 0x10050
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1006b
callq 0x3230
jmp 0x1006b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
jmp 0x10095
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10090
callq 0x3230
jmp 0x10090
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x1009f
callq 0x3230
movq %rbx, %rdi
callq 0x33c0
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x100c5
callq 0x3230
jmp 0x100c5
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
jne 0x1009a
jmp 0x1009f