// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseCallOpNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseCallOpNode(std::vector<node_scope_t> *scopes)
{
	nextToken();
	size_t id = std::stoll(currentToken.valueString);
	auto marker = currentToken;
	nextToken();

	if (currentToken.type != '(')
		return logErrorN(util::format(_EXPECTED_ERROR_, {"("}), currentToken);
	nextToken();

	std::vector<ptr_node_t> args;
	int i = 0;
	while (currentToken.type != ')')
	{
		if (i > 0)
		{
			if (currentToken.type != ',')
				return logErrorN(util::format(_EXPECTED_ERROR_, {","}), currentToken);
			nextToken();
		}
		i++;
		if (auto b = parseEquNode(scopes))
			args.push_back(b);
		else
			return logErrorN(_EXPECTED_FUNCTION_PARAM_, currentToken);
		if (currentToken.type == NULL_TOK)
			return logErrorN(util::format(_EXPECTED_ERROR_, {")"}), currentToken);
	}
	nextToken();
	return std::make_shared<CallOpNode>(*scopes, id, args, marker);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, 0xa8(%rsp)
movq %rsi, %rdi
callq 0x2565a
movq 0xb0(%rbx), %r13
callq 0x10050
movq %rax, %r14
movl (%rax), %r15d
movl $0x0, (%rax)
leaq 0xb8(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
movl $0xa, %edx
callq 0x10080
cmpq %r13, (%rbp)
je 0x2a4cd
movl (%r14), %ecx
testl %ecx, %ecx
je 0x2a17f
cmpl $0x22, %ecx
jne 0x2a182
leaq 0x5a949(%rip), %rdi     # 0x84ac3
callq 0x105a0
movl %r15d, (%r14)
leaq 0x58(%rbx), %r15
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
movq %r15, %rsi
callq 0x1e698
leaq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x1e014
movups 0xa0(%rbx), %xmm0
leaq 0x110(%rsp), %rdi
movups %xmm0, -0x10(%rdi)
leaq 0x120(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
callq 0x1e014
movl 0xd0(%rbx), %eax
movl %eax, 0x130(%rsp)
movq %rbx, %rdi
callq 0x2565a
cmpl $0x28, 0xd0(%rbx)
jne 0x2a4d9
movq %rbx, %rdi
callq 0x2565a
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
xorl %r13d, %r13d
leaq 0x30(%rsp), %r14
movl 0xd0(%rbx), %eax
cmpl $0x29, %eax
je 0x2a334
subl $0x1, %r13d
jb 0x2a269
cmpl $0x2c, %eax
jne 0x2a43f
movq %rbx, %rdi
callq 0x2565a
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x296b0
cmpq $0x0, 0x30(%rsp)
je 0x2a40e
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3725c
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2a29d
callq 0x1e6ee
cmpl $0x0, 0xd0(%rbx)
jne 0x2a243
movq %r15, %r12
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r14)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r14)
movq $0xe, -0x8(%r14)
movb $0x0, 0xe(%r14)
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x29, (%r15)
movq $0x1, -0x8(%r15)
leaq 0x90(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x48694
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rbx, %rdi
callq 0x2565a
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0xb8(%rsp), %rax
movq %rax, (%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0xb0(%rsp), %r8
leaq 0x70(%rsp), %r9
movq %r12, %rcx
callq 0x38ed8
leaq 0xf0(%rsp), %r14
leaq 0x120(%rsp), %r15
movq 0x10(%rsp), %rax
movq 0xa8(%rsp), %rbx
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%rbx)
leaq 0x70(%rsp), %rdi
callq 0x37214
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a3cf
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a3ec
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb8(%rsp), %rdi
callq 0x1d736
movq %rbx, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x5a454(%rip), %rsi     # 0x84872
leaq 0x5a468(%rip), %rdx     # 0x8488d
leaq 0x10(%rsp), %rdi
callq 0x1e7ca
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r15, %rcx
callq 0x29894
movq %r15, %r12
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r14)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r14)
movq $0xe, -0x8(%r14)
movb $0x0, 0xe(%r14)
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x2c, (%r15)
movq $0x1, -0x8(%r15)
leaq 0x90(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x48694
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
leaq 0x5a5ef(%rip), %rdi     # 0x84ac3
callq 0x10240
movq %r15, %r12
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r14)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r14)
movq $0xe, -0x8(%r14)
movb $0x0, 0xe(%r14)
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x28, (%r15)
movq $0x1, -0x8(%r15)
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x90(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x48694
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a587
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a587
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1dca2
jmp 0x2a596
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a5ad
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a6d7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a6d7
jmp 0x2a6b6
jmp 0x2a6b6
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a5fc
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a5fc
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1d736
jmp 0x2a6e4
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x2a6e4
movl %r15d, (%r14)
jmp 0x2a6e4
movq %rax, %rbx
jmp 0x2a6d7
jmp 0x2a631
jmp 0x2a651
jmp 0x2a663
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a654
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a654
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x1dca2
jmp 0x2a666
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a67d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a6cd
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a6cd
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a6be
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a6be
jmp 0x2a6bb
jmp 0x2a6b6
movq %rax, %rbx
jmp 0x2a6cd
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2a6cd
callq 0x1e6ee
leaq 0x70(%rsp), %rdi
callq 0x37214
leaq 0xb8(%rsp), %rdi
callq 0x211f6
movq %rbx, %rdi
callq 0x106f0