// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseVectorNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseVectorNode(std::vector<node_scope_t> *scopes)
{
	nextToken();
	std::vector<ptr_node_t> args;
	std::vector<ptr_node_t> curr;
	bool flag = false;
	int i = 0;
	while (currentToken.type != NULL_TOK && currentToken.type != ']')
	{
		int delim = ',';

		if (i > 0)
		{
			if (currentToken.type != ',' && currentToken.type != ';')
				return logErrorN(util::format(_EXPECTED_ERROR_, {",` `;"}), currentToken);
			delim = currentToken.type;
			nextToken();
		}
		i++;

		if (delim == ';')
		{
			flag = true;
			args.push_back(std::make_shared<VectorNode>(*scopes, curr, false, currentToken));
			curr.clear();
		}

		if (auto b = parseEquNode(scopes))
			curr.push_back((b));
		else
			return nullptr;
		if (currentToken.type == NULL_TOK)
			return logErrorN(util::format(_EXPECTED_ERROR_, {"]"}), currentToken);
	}
	nextToken();
	if (flag)
	{
		args.push_back(std::make_shared<VectorNode>(*scopes, curr, false, currentToken));
		return std::make_shared<VectorNode>(*scopes, args, false, currentToken);
	}
	else
	{
		return std::make_shared<VectorNode>(*scopes, curr, false, currentToken);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2549e
xorl %r13d, %r13d
leaq 0xc0(%rsp), %rax
movq %r13, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
leaq 0x60(%rsp), %r15
movq %r13, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x58(%r12), %rax
movq %rax, 0x18(%rsp)
movl 0xd0(%r12), %ebp
movq $0x0, 0x80(%rsp)
movq %rbx, 0x78(%rsp)
testl %ebp, %ebp
je 0x2f85f
cmpl $0x5d, %ebp
je 0x2f85f
testl %r13d, %r13d
je 0x2f771
cmpl $0x2c, %ebp
je 0x2f697
cmpl $0x3b, %ebp
jne 0x2f99d
movq %r12, %rdi
callq 0x2549e
cmpl $0x3b, %ebp
jne 0x2f771
movb $0x0, 0xa8(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x88(%rsp), %rdx
movq %rbx, %rcx
movq %r15, %r8
leaq 0xa8(%rsp), %r9
callq 0x37f5a
movaps 0x40(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x37da4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f71a
callq 0x1e5bc
movq %r14, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2f72c
callq 0x1e5bc
movq 0x60(%rsp), %r15
movq 0x68(%rsp), %r14
movb $0x1, %al
movq %rax, 0x80(%rsp)
cmpq %r15, %r14
je 0x2f764
movq %r15, %rbp
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x2f756
callq 0x1e5bc
addq $0x10, %rbp
cmpq %r14, %rbp
jne 0x2f748
movq %r15, 0x68(%rsp)
movq %rbx, %r14
movq 0x78(%rsp), %rbx
leaq 0x60(%rsp), %r15
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x2946a
movq 0x20(%rsp), %rbp
testq %rbp, %rbp
je 0x2f79a
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
callq 0x36d3e
jmp 0x2f7a1
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f7b0
callq 0x1e5bc
testq %rbp, %rbp
je 0x2f971
incl %r13d
movl 0xd0(%r12), %ebp
testl %ebp, %ebp
jne 0x2f66f
leaq 0x50(%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 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x5d, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x17(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x47db4
leaq 0x20(%rsp), %rdx
movq %r12, %rsi
movq 0x18(%rsp), %rcx
callq 0x29658
movq %r12, %rdi
callq 0x2549e
testb $0x1, 0x80(%rsp)
je 0x2f92f
leaq 0xa8(%rsp), %r9
movb $0x0, (%r9)
leaq 0x48(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x40(%rsp), %rsi
leaq 0x88(%rsp), %rdx
leaq 0x60(%rsp), %r8
movq %rbx, %rcx
callq 0x37f5a
movaps 0x40(%rsp), %xmm0
leaq 0x20(%rsp), %rsi
movaps %xmm0, (%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x37da4
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2f8e2
callq 0x1e5bc
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2f8f1
callq 0x1e5bc
leaq 0x88(%rsp), %r9
movb $0x0, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0xc0(%rsp), %r8
movq %rbx, %rcx
callq 0x37f5a
jmp 0x2f968
leaq 0x88(%rsp), %r9
movb $0x0, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x60(%rsp), %r8
movq %rbx, %rcx
callq 0x37f5a
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
leaq 0x60(%rsp), %rdi
callq 0x36cf0
leaq 0xc0(%rsp), %rdi
callq 0x36cf0
movq %r14, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50(%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 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movl $0x6020602c, (%r15)     # imm = 0x6020602C
movw $0x3b, 0x4(%r15)
movq $0x5, -0x8(%r15)
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0x17(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x47db4
leaq 0x20(%rsp), %rdx
movq %r12, %rsi
movq 0x18(%rsp), %rcx
callq 0x29658
jmp 0x2faf0
jmp 0x2fa86
jmp 0x2faf0
jmp 0x2faf0
jmp 0x2faf0
jmp 0x2fa54
jmp 0x2fa74
jmp 0x2faa1
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fa77
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2fa77
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x1db60
jmp 0x2faa4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2fa98
callq 0x1e5bc
movq 0x48(%rsp), %rdi
jmp 0x2fae2
jmp 0x2faf0
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x2fac1
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2faf3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2faf3
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2faf3
callq 0x1e5bc
jmp 0x2faf3
jmp 0x2faf0
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x36cf0
leaq 0xc0(%rsp), %rdi
callq 0x36cf0
movq %rbx, %rdi
callq 0x106f0