// File: /workspace/github_cpp_makefile_star2_O3/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 $0xe8, %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 0x50(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x80(%rsp), %rbx
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
movq %rbx, %rdi
callq 0x112c8
movq 0x38(%r15), %rdi
movaps (%rbx), %xmm0
movups %xmm0, 0x38(%r15)
movq 0x10(%rbx), %rax
movq %rax, 0x48(%r15)
movq %r12, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
testq %rdi, %rdi
je 0xe561
callq 0x3230
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xe561
callq 0x3230
leaq 0x18(%rsp), %r13
movq %r15, %rax
addq $0x50, %rax
movq %rax, 0x48(%rsp)
leaq 0xc0(%rsp), %rbx
leaq 0x80(%rsp), %r12
leaq 0xd0(%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 0xa8(%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 %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0xe02a
movq 0x50(%r15), %rdi
movaps 0x50(%rsp), %xmm0
movups %xmm0, 0x50(%r15)
movq 0x60(%rsp), %rax
movq %rax, 0x60(%r15)
testq %rdi, %rdi
je 0xe633
callq 0x3230
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xe642
callq 0x3230
movq %rbp, %rdi
callq 0x111ec
xorl %r13d, %r13d
movq 0xb0(%rsp,%r13), %rdi
leaq (%rbx,%r13), %rax
cmpq %rdi, %rax
je 0xe663
callq 0x3230
addq $-0x28, %r13
cmpq $-0x50, %r13
jne 0xe64d
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xe681
callq 0x3230
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r13
cmpq %r13, %rdi
je 0xe695
callq 0x3230
movslq 0x18(%r14), %rax
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
cmpl $0x12, 0x4(%rax)
je 0xe58a
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xe220
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
xorl %ebx, %ebx
jmp 0xe742
movq %rax, %r14
xorl %ebx, %ebx
jmp 0xe721
movq %rax, %r14
jmp 0xe700
movq %rax, %r14
jmp 0xe6f3
movq %rax, %r14
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0xe6f3
callq 0x3230
leaq 0xd0(%rsp), %rdi
callq 0x111ec
movq $-0x50, %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0xe715
callq 0x3230
addq $-0x28, %rbx
addq $0x28, %r15
jne 0xe707
movb $0x1, %bl
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xe735
callq 0x3230
leaq 0xa8(%rsp), %r12
leaq 0x18(%rsp), %r13
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xe751
callq 0x3230
leaq 0x80(%rsp), %r15
cmpq %r12, %r15
sete %al
orb %al, %bl
jne 0xe787
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xe776
callq 0x3230
leaq -0x28(%r12), %rax
addq $-0x18, %r12
cmpq %r15, %r12
movq %rax, %r12
jne 0xe767
movq %r14, %rdi
callq 0x33c0
nop