// File: /workspace/github_cpp_makefile_star2_O3/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 0x2549e
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 0x2a26c
movl (%r14), %ecx
testl %ecx, %ecx
je 0x29f31
cmpl $0x22, %ecx
jne 0x29f34
leaq 0x59bb7(%rip), %rdi     # 0x83ae3
callq 0x105a0
movl %r15d, (%r14)
leaq 0x58(%rbx), %r15
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
movq %r15, %rsi
callq 0x1e566
leaq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x1ded4
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 0x1ded4
movl 0xd0(%rbx), %eax
movl %eax, 0x130(%rsp)
movq %rbx, %rdi
callq 0x2549e
cmpl $0x28, 0xd0(%rbx)
jne 0x2a278
movq %rbx, %rdi
callq 0x2549e
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
movl 0xd0(%rbx), %eax
xorl %r13d, %r13d
leaq 0x30(%rsp), %r14
cmpl $0x29, %eax
je 0x2a0e7
subl $0x1, %r13d
jb 0x2a01b
cmpl $0x2c, %eax
jne 0x2a1de
movq %rbx, %rdi
callq 0x2549e
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2946a
cmpq $0x0, 0x30(%rsp)
je 0x2a1ad
movq %rbp, %rdi
movq %r14, %rsi
callq 0x36d3e
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2a04f
callq 0x1e5bc
movl 0xd0(%rbx), %eax
testl %eax, %eax
jne 0x29ffb
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 0x20b38
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x47db4
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29658
movq %rbx, %rdi
callq 0x2549e
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 0x3896c
leaq 0xf0(%rsp), %r14
leaq 0x120(%rsp), %r15
movaps 0x10(%rsp), %xmm0
movq 0xa8(%rsp), %rbx
movups %xmm0, (%rbx)
leaq 0x70(%rsp), %rdi
callq 0x36cf0
movq 0x110(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a16e
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a18b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb8(%rsp), %rdi
callq 0x1d5ee
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 0x596d5(%rip), %rsi     # 0x83892
leaq 0x596e9(%rip), %rdx     # 0x838ad
leaq 0x10(%rsp), %rdi
callq 0x1e698
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r15, %rcx
callq 0x29658
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 0x20b38
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x47db4
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29658
leaq 0x59870(%rip), %rdi     # 0x83ae3
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 0x20b38
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x47db4
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29658
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a326
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a326
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1db60
jmp 0x2a335
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a34c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a476
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a476
jmp 0x2a455
jmp 0x2a455
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a39b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a39b
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1d5ee
jmp 0x2a483
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x2a483
movl %r15d, (%r14)
jmp 0x2a483
movq %rax, %rbx
jmp 0x2a476
jmp 0x2a3d0
jmp 0x2a3f0
jmp 0x2a402
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2a3f3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a3f3
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x1db60
jmp 0x2a405
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x2a41c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a46c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a46c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a45d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2a45d
jmp 0x2a45a
jmp 0x2a455
movq %rax, %rbx
jmp 0x2a46c
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2a46c
callq 0x1e5bc
leaq 0x70(%rsp), %rdi
callq 0x36cf0
leaq 0xb8(%rsp), %rdi
callq 0x2108a
movq %rbx, %rdi
callq 0x106f0
nop