// File: Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseCallBuiltNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseCallBuiltNode(std::vector<node_scope_t> *scopes)
{
	token_type_enum t = static_cast<token_type_enum>(currentToken.type);
	std::string temp = currentToken.valueString;
	auto marker = currentToken;
	nextToken();
	if (currentToken.type != '(')
		return std::make_shared<IDNode>(*scopes, ROSSA_HASH(temp), marker);
	nextToken();
	std::vector<ptr_node_t> args;
	args.push_back(parseEquNode(scopes));
	if (currentToken.type == ',')
	{
		nextToken();
		args.push_back(parseEquNode(scopes));
	}
	if (currentToken.type != ')')
		return logErrorN(util::format(_EXPECTED_ERROR_, {")"}), currentToken);
	nextToken();
	auto ret = std::make_shared<CallBuiltNode>(*scopes, t, args, marker);
	return parseTrailingNode(scopes, ret, true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x290, %rsp            # imm = 0x290
movq %rdi, -0x210(%rbp)
movq %rdi, %rax
movq %rax, -0x208(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0x200(%rbp)
movq %rsi, %rax
addq $0x58, %rax
movq %rax, -0x1f8(%rbp)
movl 0xd0(%rsi), %eax
movl %eax, -0x1c(%rbp)
addq $0xb0, %rsi
leaq -0x40(%rbp), %rdi
callq 0x11250
movq -0x1f8(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
callq 0x2ee00
jmp 0x3eebf
movq -0x200(%rbp), %rdi
callq 0x38fd0
jmp 0x3eecd
movq -0x200(%rbp), %rax
cmpl $0x28, 0xd0(%rax)
je 0x3ef92
movq -0x18(%rbp), %rax
movq %rax, -0x220(%rbp)
leaq 0x1a6ba5(%rip), %rdi    # 0x1e5a98
leaq -0x40(%rbp), %rsi
callq 0x2cb10
movq %rax, -0x218(%rbp)
jmp 0x3ef05
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0xe8(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
callq 0x571f0
jmp 0x3ef36
movq -0x210(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x57270
leaq -0xe0(%rbp), %rdi
callq 0x572a0
movl $0x1, -0xec(%rbp)
jmp 0x3f4b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f4e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f4d7
movq -0x200(%rbp), %rdi
callq 0x38fd0
jmp 0x3efa0
leaq -0x108(%rbp), %rdi
callq 0x57390
movq -0x200(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x118(%rbp), %rdi
callq 0x3f500
jmp 0x3efc5
leaq -0x108(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x573b0
jmp 0x3efda
leaq -0x118(%rbp), %rdi
callq 0x24b20
movq -0x200(%rbp), %rax
cmpl $0x2c, 0xd0(%rax)
jne 0x3f0a1
movq -0x200(%rbp), %rdi
callq 0x38fd0
jmp 0x3f008
movq -0x200(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x128(%rbp), %rdi
callq 0x3f500
jmp 0x3f021
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x573b0
jmp 0x3f036
leaq -0x128(%rbp), %rdi
callq 0x24b20
jmp 0x3f0a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f4a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x24b20
jmp 0x3f4a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x24b20
jmp 0x3f4a4
movq -0x200(%rbp), %rax
cmpl $0x29, 0xd0(%rax)
je 0x3f3be
leaq -0x169(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x119d0
movq -0x228(%rbp), %rdx
leaq 0x1120ba(%rip), %rsi    # 0x151190
leaq -0x168(%rbp), %rdi
callq 0x24740
jmp 0x3f0e4
movb $0x1, -0x1c2(%rbp)
leaq -0x1b8(%rbp), %rax
movq %rax, -0x238(%rbp)
movq %rax, -0x1c0(%rbp)
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x230(%rbp)
callq 0x119d0
movq -0x238(%rbp), %rdi
movq -0x230(%rbp), %rdx
leaq 0x113bc1(%rip), %rsi    # 0x152ce9
callq 0x24740
jmp 0x3f12f
movb $0x0, -0x1c2(%rbp)
leaq -0x1b8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x1, -0x190(%rbp)
leaq -0x1c3(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x26e30
movq -0x240(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0x188(%rbp), %rdi
callq 0x2d6a0
jmp 0x3f185
leaq -0x148(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0x9e250
jmp 0x3f1a1
movq -0x200(%rbp), %rsi
movq -0x210(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x148(%rbp), %rdx
callq 0x3f820
jmp 0x3f1c4
leaq -0x148(%rbp), %rdi
callq 0x11360
leaq -0x188(%rbp), %rdi
callq 0x25b00
leaq -0x1c3(%rbp), %rdi
callq 0x279c0
leaq -0x1b8(%rbp), %rax
movq %rax, -0x250(%rbp)
addq $0x20, %rax
movq %rax, -0x248(%rbp)
movq -0x248(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x258(%rbp)
callq 0x11360
movq -0x250(%rbp), %rcx
movq -0x258(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x248(%rbp)
jne 0x3f201
leaq -0x1c1(%rbp), %rdi
callq 0x11600
leaq -0x168(%rbp), %rdi
callq 0x11360
leaq -0x169(%rbp), %rdi
callq 0x11600
movl $0x1, -0xec(%rbp)
jmp 0x3f496
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f3ad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f33d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f2e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
jmp 0x3f2d9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x11360
leaq -0x188(%rbp), %rdi
callq 0x25b00
leaq -0x1c3(%rbp), %rdi
callq 0x279c0
leaq -0x1b8(%rbp), %rax
movq %rax, -0x268(%rbp)
addq $0x20, %rax
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x270(%rbp)
callq 0x11360
movq -0x268(%rbp), %rcx
movq -0x270(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x260(%rbp)
jne 0x3f30a
jmp 0x3f33d
leaq -0x1c1(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1c2(%rbp)
jne 0x3f354
jmp 0x3f3a1
movq -0x1c0(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x278(%rbp)
je 0x3f39f
movq -0x278(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x280(%rbp)
callq 0x11360
movq -0x280(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x278(%rbp)
jne 0x3f36e
jmp 0x3f3a1
leaq -0x168(%rbp), %rdi
callq 0x11360
leaq -0x169(%rbp), %rdi
callq 0x11600
jmp 0x3f4a4
movq -0x200(%rbp), %rdi
callq 0x38fd0
jmp 0x3f3cc
movq -0x18(%rbp), %rsi
leaq -0x1d8(%rbp), %rdi
leaq -0x1c(%rbp), %rdx
leaq -0x108(%rbp), %rcx
leaq -0xc0(%rbp), %r8
callq 0x57550
jmp 0x3f3f0
movq -0x18(%rbp), %rax
movq %rax, -0x290(%rbp)
leaq -0x1e8(%rbp), %rdi
movq %rdi, -0x288(%rbp)
leaq -0x1d8(%rbp), %rsi
callq 0x575e0
movq -0x210(%rbp), %rdi
movq -0x200(%rbp), %rsi
movq -0x290(%rbp), %rdx
movq -0x288(%rbp), %rcx
movb $0x1, -0x1e9(%rbp)
leaq -0x1e9(%rbp), %r8
callq 0x3d860
jmp 0x3f446
leaq -0x1e8(%rbp), %rdi
callq 0x24b20
movl $0x1, -0xec(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x57610
jmp 0x3f496
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc8(%rbp)
movl %eax, -0xcc(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x24b20
leaq -0x1d8(%rbp), %rdi
callq 0x57610
jmp 0x3f4a4
leaq -0x108(%rbp), %rdi
callq 0x574c0
jmp 0x3f4b2
leaq -0x108(%rbp), %rdi
callq 0x574c0
jmp 0x3f4d7
leaq -0xc0(%rbp), %rdi
callq 0x2a480
leaq -0x40(%rbp), %rdi
callq 0x11360
movq -0x208(%rbp), %rax
addq $0x290, %rsp            # imm = 0x290
popq %rbp
retq
leaq -0xc0(%rbp), %rdi
callq 0x2a480
leaq -0x40(%rbp), %rdi
callq 0x11360
movq -0xc8(%rbp), %rdi
callq 0x119c0
nopl (%rax,%rax)