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

	this->advance();

	// The name of the type/class to push
	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("("));

	// All parameters
	do {
		ins->right = this->read_until(std::vector<lexer::Token>{
			lexer::Token::OPERATOR(")"),
			lexer::Token::OPERATOR(","),
		}, ins->right);
	} while (this->get_token()->sub == lexer::Type::OPERATOR_COMMA);

	return this->lookahead(ins, ON::DEFAULT);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdi, %rbx
movl $0x80, %edi
callq 0x3260
movq %rax, %r14
movl $0xc, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%r14)
xorl %eax, %eax
movq %rax, 0x10(%r14)
movb $0x0, 0x18(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x48(%r14)
movups %xmm0, 0x58(%r14)
movups %xmm0, 0x68(%r14)
movq %rax, 0x78(%r14)
movl $0x2, 0x30(%r14)
cmpb $0x1, 0x20(%rbx)
jne 0x10aec
incl 0x18(%rbx)
jmp 0x10af0
movb $0x1, 0x20(%rbx)
leaq 0xc0(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xf8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x6e26
leaq 0xf8(%rsp), %rsi
movq %rbx, %rdi
callq 0xf232
movq %rax, %r15
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10b47
callq 0x3230
leaq 0x8(%r14), %r12
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x10b5d
callq 0x3230
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x3150
cmpb $0x1, 0x20(%rbx)
jne 0x10b77
incl 0x18(%rbx)
jmp 0x10b7b
movb $0x1, 0x20(%rbx)
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x28, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xd0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x6d74
leaq 0xd0(%rsp), %rsi
movq %rbx, %rdi
callq 0xf232
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10bd0
callq 0x3230
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x10be2
callq 0x3230
leaq 0x40(%rsp), %r13
movq %r14, %rax
addq $0x50, %rax
movq %rax, 0x70(%rsp)
leaq 0x160(%rsp), %r15
leaq 0x120(%rsp), %r12
leaq 0x170(%rsp), %rbp
movq %r13, 0x30(%rsp)
movw $0x29, 0x40(%rsp)
movq $0x1, 0x38(%rsp)
movq %r12, %rdi
leaq 0x30(%rsp), %rsi
callq 0x6d74
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movw $0x2c, 0x60(%rsp)
movq $0x1, 0x58(%rsp)
leaq 0x148(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x6d74
movl $0x2, %edx
movq %rbp, %rdi
movq %r12, %rsi
leaq 0xf(%rsp), %rcx
callq 0x11680
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq 0x70(%rsp), %rsi
callq 0x450e
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe21a
movq 0x50(%r14), %rdi
movaps 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movq %rdi, 0x10(%rsp)
movups 0x58(%r14), %xmm1
movups %xmm0, 0x50(%r14)
movq %rax, 0x60(%r14)
movups %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rdi, %rdi
je 0x10cd4
callq 0x3230
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x10ce3
callq 0x3230
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x10cf2
callq 0x3230
movq %rbp, %rdi
callq 0x116c2
xorl %r13d, %r13d
movq 0x150(%rsp,%r13), %rdi
leaq (%r15,%r13), %rax
cmpq %rdi, %rax
je 0x10d13
callq 0x3230
addq $-0x28, %r13
cmpq $-0x50, %r13
jne 0x10cfd
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x10d31
callq 0x3230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %r13
cmpq %r13, %rdi
je 0x10d45
callq 0x3230
movslq 0x18(%rbx), %rax
movq (%rbx), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
je 0x10c0b
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xe410
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10d97
callq 0x3230
jmp 0x10d97
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
jne 0x10dd8
jmp 0x10ea2
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10dc7
callq 0x3230
jmp 0x10dc7
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r13, %rdi
je 0x10ea2
callq 0x3230
jmp 0x10ea2
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0x10e5c
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0x10e3b
movq %rax, %rbx
jmp 0x10e19
movq %rax, %rbx
jmp 0x10e0c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x10e0c
callq 0x3230
leaq 0x170(%rsp), %rdi
callq 0x116c2
movq $-0x50, %r14
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x10e2e
callq 0x3230
addq $-0x28, %r15
addq $0x28, %r14
jne 0x10e20
movb $0x1, %bpl
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x10e4f
callq 0x3230
leaq 0x148(%rsp), %r12
leaq 0x40(%rsp), %r13
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x10e6b
callq 0x3230
leaq 0x120(%rsp), %r14
cmpq %r12, %r14
sete %al
orb %al, %bpl
jne 0x10ea2
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x10e91
callq 0x3230
leaq -0x28(%r12), %rax
addq $-0x18, %r12
cmpq %r14, %r12
movq %rax, %r12
jne 0x10e82
movq %rbx, %rdi
callq 0x33c0