// File: /workspace/github_cpp_makefile_star2_O3/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 $0x178, %rsp            # imm = 0x178
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 0x1069e
incl 0x18(%rbx)
jmp 0x106a2
movb $0x1, 0x20(%rbx)
leaq 0xb0(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0xe8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x6dfe
leaq 0xe8(%rsp), %rsi
movq %rbx, %rdi
callq 0xef56
movq %rax, %r15
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x106f9
callq 0x3230
leaq 0x8(%r14), %r12
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x1070f
callq 0x3230
addq $0x8, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x3150
cmpb $0x1, 0x20(%rbx)
jne 0x10729
incl 0x18(%rbx)
jmp 0x1072d
movb $0x1, 0x20(%rbx)
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x28, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xc0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x6d4c
leaq 0xc0(%rsp), %rsi
movq %rbx, %rdi
callq 0xef56
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10782
callq 0x3230
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x10794
callq 0x3230
leaq 0x18(%rsp), %r13
movq %r14, %rax
addq $0x50, %rax
movq %rax, 0x48(%rsp)
leaq 0x150(%rsp), %r15
leaq 0x110(%rsp), %r12
leaq 0x160(%rsp), %rbp
movq %r13, 0x8(%rsp)
movw $0x29, 0x18(%rsp)
movq $0x1, 0x10(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x6d4c
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movw $0x2c, 0x38(%rsp)
movq $0x1, 0x30(%rsp)
leaq 0x138(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x6d4c
movl $0x2, %edx
movq %rbp, %rdi
movq %r12, %rsi
leaq 0x7(%rsp), %rcx
callq 0x111aa
leaq 0x68(%rsp), %r13
movq %r13, %rdi
movq 0x48(%rsp), %rsi
callq 0x450e
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe02a
movq 0x50(%r14), %rdi
movaps 0x50(%rsp), %xmm0
movups %xmm0, 0x50(%r14)
movq 0x60(%rsp), %rax
movq %rax, 0x60(%r14)
testq %rdi, %rdi
je 0x10866
callq 0x3230
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x10875
callq 0x3230
movq %rbp, %rdi
callq 0x111ec
xorl %r13d, %r13d
movq 0x140(%rsp,%r13), %rdi
leaq (%r15,%r13), %rax
cmpq %rdi, %rax
je 0x10896
callq 0x3230
addq $-0x28, %r13
cmpq $-0x50, %r13
jne 0x10880
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x108b4
callq 0x3230
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0x108c8
callq 0x3230
movslq 0x18(%rbx), %rax
movq (%rbx), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
je 0x107bd
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xe220
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1091a
callq 0x3230
jmp 0x1091a
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1095b
jmp 0x10a25
movq %rax, %rbx
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1094a
callq 0x3230
jmp 0x1094a
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r13, %rdi
je 0x10a25
callq 0x3230
jmp 0x10a25
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0x109df
movq %rax, %rbx
xorl %ebp, %ebp
jmp 0x109be
movq %rax, %rbx
jmp 0x1099c
movq %rax, %rbx
jmp 0x1098f
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x1098f
callq 0x3230
leaq 0x160(%rsp), %rdi
callq 0x111ec
movq $-0x50, %r14
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x109b1
callq 0x3230
addq $-0x28, %r15
addq $0x28, %r14
jne 0x109a3
movb $0x1, %bpl
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x109d2
callq 0x3230
leaq 0x138(%rsp), %r12
leaq 0x18(%rsp), %r13
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x109ee
callq 0x3230
leaq 0x110(%rsp), %r14
cmpq %r12, %r14
sete %al
orb %al, %bpl
jne 0x10a25
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x10a14
callq 0x3230
leaq -0x28(%r12), %rax
addq $-0x18, %r12
cmpq %r14, %r12
movq %rax, %r12
jne 0x10a05
movq %rbx, %rdi
callq 0x33c0
nop