// File: /workspace/github_cpp_makefile_star2_O3/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 $0x110, %rsp            # imm = 0x110
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 0xfb19
incl 0x18(%r14)
jmp 0xfb1e
movb $0x1, 0x20(%r14)
leaq 0x88(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xe8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x6dfe
leaq 0xe8(%rsp), %rsi
movq %r14, %rdi
callq 0xef56
movq %rax, %r15
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfb72
callq 0x3230
leaq 0x8(%rbx), %r12
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
je 0xfb85
callq 0x3230
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x3150
cmpb $0x1, 0x20(%r14)
jne 0xfba1
incl 0x18(%r14)
jmp 0xfba6
movb $0x1, 0x20(%r14)
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x7b, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xc0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x6d4c
leaq 0xc0(%rsp), %rsi
movq %r14, %rdi
callq 0xef56
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfbf5
callq 0x3230
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xfc04
callq 0x3230
cmpb $0x1, 0x20(%r14)
jne 0xfc11
incl 0x18(%r14)
jmp 0xfc16
movb $0x1, 0x20(%r14)
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x7d, (%r15)
movq $0x1, -0x8(%r15)
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x6d4c
leaq 0x8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
callq 0x111aa
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0xdcd2
movq 0x50(%rbx), %rdi
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x50(%rbx)
movq 0x30(%rsp), %rax
movq %rax, 0x60(%rbx)
testq %rdi, %rdi
je 0xfc8d
callq 0x3230
leaq 0x8(%rsp), %rdi
callq 0x111ec
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfcad
callq 0x3230
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xfcbc
callq 0x3230
movq %rbx, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x111ec
jmp 0xfce2
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfcfd
callq 0x3230
jmp 0xfcfd
movq %rax, %rbx
movq 0x38(%rsp), %rdi
jmp 0xfd27
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd22
callq 0x3230
jmp 0xfd22
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xfd31
callq 0x3230
movq %rbx, %rdi
callq 0x33c0
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd57
callq 0x3230
jmp 0xfd57
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r13, %rdi
jne 0xfd2c
jmp 0xfd31
nop