// File: /workspace/github_cpp_makefile_star2_O2/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, %r13
movl $0x80, %edi
callq 0x3230
movq %rax, %r12
movl $0xc, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%r12)
andq $0x0, 0x10(%r12)
movb $0x0, 0x18(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r12)
movups %xmm0, 0x48(%r12)
movups %xmm0, 0x58(%r12)
andq $0x0, 0x78(%r12)
movups %xmm0, 0x68(%r12)
movl $0x2, 0x30(%r12)
cmpb $0x1, 0x20(%r13)
jne 0xedcb
incl 0x18(%r13)
jmp 0xedd0
movb $0x1, 0x20(%r13)
leaq 0x2a73(%rip), %rsi      # 0x1184a
leaq 0x58(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x30f0
leaq 0xf0(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x6478
leaq 0xf0(%rsp), %rsi
movq %r13, %rdi
callq 0xd9bc
movq %rax, %r14
leaq 0x8(%r12), %r15
leaq 0xf8(%rsp), %rdi
callq 0x3130
leaq 0x58(%rsp), %rdi
callq 0x3130
addq $0x8, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x3160
cmpb $0x1, 0x20(%r13)
jne 0xee43
incl 0x18(%r13)
jmp 0xee48
movb $0x1, 0x20(%r13)
leaq 0x23f6(%rip), %rsi      # 0x11245
leaq 0x38(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x30f0
leaq 0xc8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x63f2
leaq 0xc8(%rsp), %rsi
movq %r13, %rdi
callq 0xd9bc
leaq 0xd0(%rsp), %rdi
callq 0x3130
leaq 0x38(%rsp), %rdi
callq 0x3130
leaq 0xa0(%rsp), %r15
movq %r12, 0x18(%rsp)
addq $0x50, %r12
movq %r12, 0x10(%rsp)
leaq 0x150(%rsp), %r14
leaq 0x78(%rsp), %r12
movq %r14, %rdi
leaq 0x2cff(%rip), %rsi      # 0x11bc3
leaq 0xf(%rsp), %rdx
callq 0x30f0
movq %r12, %rdi
movq %r14, %rbp
movq %r14, %rsi
callq 0x63f2
leaq 0x118(%rsp), %r14
movq %r14, %rdi
leaq 0x2394(%rip), %rsi      # 0x11282
leaq 0xe(%rsp), %rdx
callq 0x30f0
movq %r15, %rdi
movq %r14, %rsi
callq 0x63f2
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
pushq $0x2
popq %rdx
leaq 0xd(%rsp), %rcx
callq 0xf720
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x40b0
leaq 0x170(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdx
movq %r12, %rcx
callq 0xccf2
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x10148
movq %rbx, %rdi
callq 0x42f2
movq %r12, %rdi
callq 0x42f2
movq %r14, %rdi
callq 0xf75a
pushq $0x30
popq %r12
leaq (%rsp,%r12), %rdi
addq $0x78, %rdi
callq 0x3130
addq $-0x28, %r12
cmpq $-0x20, %r12
jne 0xef74
leaq 0x118(%rsp), %rdi
callq 0x3130
movq %rbp, %rdi
callq 0x3130
movq %rbp, %r14
movslq 0x18(%r13), %rax
movq (%r13), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
leaq 0x78(%rsp), %r12
je 0xeeba
movq %r13, %rdi
movq 0x18(%rsp), %rsi
xorl %edx, %edx
callq 0xce8c
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0x3130
jmp 0xeff4
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
jmp 0xf017
jmp 0xf023
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
callq 0x3130
jmp 0xf012
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3130
jmp 0xf0cc
jmp 0xf023
movq %rax, %rbx
jmp 0xf0cc
movq %rax, %rbx
xorl %ebp, %ebp
movq %r12, %r15
jmp 0xf097
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0xf097
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0xf08a
movq %rax, %rbx
jmp 0xf067
movq %rax, %rbx
jmp 0xf05d
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x42f2
leaq 0x20(%rsp), %rdi
callq 0xf75a
pushq $0x30
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x78, %rdi
callq 0x3130
addq $-0x28, %r14
cmpq $-0x20, %r14
jne 0xf06b
movb $0x1, %bpl
leaq 0x78(%rsp), %r12
leaq 0x118(%rsp), %rdi
callq 0x3130
leaq 0x150(%rsp), %rdi
callq 0x3130
cmpq %r15, %r12
sete %al
orb %bpl, %al
jne 0xf0cc
leaq 0x78(%rsp), %r14
leaq -0x28(%r15), %r12
addq $-0x20, %r15
movq %r15, %rdi
callq 0x3130
movq %r12, %r15
cmpq %r14, %r12
jne 0xf0b4
movq %rbx, %rdi
callq 0x3390