// File: /workspace/github_cpp_makefile_star2_O2/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 $0xc8, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, 0x18(%rsp)
movq %rsi, %rdi
callq 0x22e24
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rax
andq $0x0, 0x10(%rax)
leaq 0xb0(%rsp), %rbp
andq $0x0, 0x10(%rbp)
movaps %xmm0, (%rax)
movaps %xmm0, (%rbp)
leaq 0x58(%r14), %rax
movq %rax, 0x8(%rsp)
movl 0xd0(%r14), %ebx
xorl %r15d, %r15d
leaq 0x20(%rsp), %r13
movl $0x0, 0x14(%rsp)
testl %ebx, %ebx
je 0x29c3c
cmpl $0x5d, %ebx
je 0x29c3c
subl $0x1, %r15d
jb 0x29b7b
cmpl $0x2c, %ebx
je 0x29b0b
cmpl $0x3b, %ebx
jne 0x29d43
movq %r14, %rdi
callq 0x22e24
cmpl $0x3b, %ebx
jne 0x29b7b
movb $0x0, 0x60(%rsp)
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x60(%rsp), %rcx
movq 0x8(%rsp), %r8
callq 0x2e811
movaps 0x40(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
leaq 0x80(%rsp), %rdi
movq %r13, %rsi
callq 0x30406
leaq 0x28(%rsp), %rdi
callq 0x1d786
leaq 0x48(%rsp), %rdi
callq 0x1d786
movq %rbp, %rdi
callq 0x2ef32
movb $0x1, %al
movl %eax, 0x14(%rsp)
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x25798
movq 0x20(%rsp), %rbx
testq %rbx, %rbx
je 0x29ba0
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2e880
jmp 0x29bab
movq 0x18(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x28(%rsp), %rdi
callq 0x1d786
testq %rbx, %rbx
je 0x29d12
movl 0xd0(%r14), %ebx
testl %ebx, %ebx
jne 0x29ae6
leaq 0x4ccd0(%rip), %rsi     # 0x768a4
leaq 0x40(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1c814
leaq 0x4c437(%rip), %rsi     # 0x76021
leaq 0x60(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x1c814
leaq 0x98(%rsp), %rdi
leaq 0x60(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0x5(%rsp), %rcx
callq 0x1f298
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x3f724
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
movq 0x8(%rsp), %rcx
callq 0x25932
movq %r14, %rdi
callq 0x22e24
testb $0x1, 0x14(%rsp)
je 0x29cd1
leaq 0x60(%rsp), %rcx
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
movq %r12, %rsi
movq 0x8(%rsp), %r8
callq 0x2e811
leaq 0x28(%rsp), %r13
leaq 0x48(%rsp), %rbx
movaps -0x8(%rbx), %xmm0
movaps %xmm0, -0x8(%r13)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rbx)
leaq 0x80(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x30406
movq %r13, %rdi
callq 0x1d786
movq %rbx, %rdi
callq 0x1d786
leaq 0x40(%rsp), %rcx
movb $0x0, (%rcx)
leaq 0x20(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movq %r12, %rsi
movq 0x8(%rsp), %r8
callq 0x2e811
jmp 0x29cf3
leaq 0x40(%rsp), %rcx
movb $0x0, (%rcx)
leaq 0x20(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
movq %r12, %rsi
movq 0x8(%rsp), %r8
callq 0x2e811
leaq 0x28(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movq 0x18(%rsp), %rax
movups %xmm0, (%rax)
andq $0x0, -0x8(%rdi)
callq 0x1d786
leaq 0xb0(%rsp), %rdi
callq 0x2e838
leaq 0x80(%rsp), %rdi
callq 0x2e838
movq 0x18(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4cb5a(%rip), %rsi     # 0x768a4
leaq 0x40(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1c814
leaq 0x4cc99(%rip), %rsi     # 0x769f9
leaq 0x60(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x1c814
leaq 0x98(%rsp), %rdi
leaq 0x60(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0x5(%rsp), %rcx
callq 0x1f298
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x3f724
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
movq 0x8(%rsp), %rcx
callq 0x25932
jmp 0x29dd1
jmp 0x29de0
jmp 0x29df6
jmp 0x29e3f
movq %rax, %r14
movq %r13, %rdi
callq 0x1d786
movq %rbx, %rdi
jmp 0x29e38
jmp 0x29e3f
jmp 0x29e3f
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x101d0
jmp 0x29de3
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x1cea0
jmp 0x29df9
jmp 0x29e07
jmp 0x29e3f
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x101d0
jmp 0x29e0a
jmp 0x29e3f
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x101d0
jmp 0x29e42
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x1d786
leaq 0x48(%rsp), %rdi
jmp 0x29e38
jmp 0x29e3f
jmp 0x29e3f
jmp 0x29e3f
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x1d786
jmp 0x29e42
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x2e838
leaq 0x80(%rsp), %rdi
callq 0x2e838
movq %r14, %rdi
callq 0x106f0