// File: /workspace/github_cpp_makefile_star2_O1/kram[P]kram/./src/parser/parser.cpp
// Function: Parser::call(Instruction*, ON)
Instruction* Parser::call(Instruction* prev, ON on) {
	Instruction* ins = new Instruction(Ins::CALL);
	ins->left = std::vector<Instruction*>{ prev };

	// 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 $0xf8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl $0x80, %edi
callq 0x3260
movq %rax, %r15
movl $0x8, (%rax)
addq $0x18, %rax
movq %rax, 0x8(%r15)
xorl %r12d, %r12d
movq %r12, 0x10(%r15)
movb $0x0, 0x18(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r15)
movups %xmm0, 0x48(%r15)
movups %xmm0, 0x58(%r15)
movups %xmm0, 0x68(%r15)
movq %r12, 0x78(%r15)
movl $0x2, 0x30(%r15)
leaq 0x10(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x90(%rsp), %rbx
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x11798
movq 0x38(%r15), %rdi
movaps (%rbx), %xmm0
movq 0x10(%rbx), %rax
movq %rdi, (%rbx)
movups 0x40(%r15), %xmm1
movups %xmm0, 0x38(%r15)
movq %rax, 0x48(%r15)
movups %xmm1, 0x8(%rbx)
movq %r12, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
testq %rdi, %rdi
je 0xe76f
callq 0x3230
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xe781
callq 0x3230
leaq 0x40(%rsp), %r13
movq %r15, %rax
addq $0x50, %rax
movq %rax, 0x70(%rsp)
leaq 0xd0(%rsp), %rbx
leaq 0x90(%rsp), %r12
leaq 0xe0(%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 0xb8(%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 %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe21a
movq 0x50(%r15), %rdi
movaps 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
movq %rdi, 0x10(%rsp)
movups 0x58(%r15), %xmm1
movups %xmm0, 0x50(%r15)
movq %rax, 0x60(%r15)
movups %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
testq %rdi, %rdi
je 0xe873
callq 0x3230
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xe882
callq 0x3230
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xe891
callq 0x3230
movq %rbp, %rdi
callq 0x116c2
xorl %r13d, %r13d
movq 0xc0(%rsp,%r13), %rdi
leaq (%rbx,%r13), %rax
cmpq %rdi, %rax
je 0xe8b2
callq 0x3230
addq $-0x28, %r13
cmpq $-0x50, %r13
jne 0xe89c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xe8d0
callq 0x3230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %r13
cmpq %r13, %rdi
je 0xe8e4
callq 0x3230
movslq 0x18(%r14), %rax
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
je 0xe7aa
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xe410
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
xorl %ebx, %ebx
jmp 0xe991
movq %rax, %r14
xorl %ebx, %ebx
jmp 0xe970
movq %rax, %r14
jmp 0xe94f
movq %rax, %r14
jmp 0xe942
movq %rax, %r14
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xe942
callq 0x3230
leaq 0xe0(%rsp), %rdi
callq 0x116c2
movq $-0x50, %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0xe964
callq 0x3230
addq $-0x28, %rbx
addq $0x28, %r15
jne 0xe956
movb $0x1, %bl
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xe984
callq 0x3230
leaq 0xb8(%rsp), %r12
leaq 0x40(%rsp), %r13
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0xe9a0
callq 0x3230
leaq 0x90(%rsp), %r15
cmpq %r12, %r15
sete %al
orb %al, %bl
jne 0xe9d6
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xe9c5
callq 0x3230
leaq -0x28(%r12), %rax
addq $-0x18, %r12
cmpq %r15, %r12
movq %rax, %r12
jne 0xe9b6
movq %r14, %rdi
callq 0x33c0