// File: /workspace/github_cpp_makefile_star2_O1/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 $0xe8, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, 0x68(%rsp)
movq %rsi, %rdi
callq 0x2565a
xorl %r13d, %r13d
leaq 0xd0(%rsp), %rax
movq %r13, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
leaq 0x70(%rsp), %rbx
movq %r13, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x58(%r15), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %r14
movq $0x0, 0x90(%rsp)
movq %r15, 0x60(%rsp)
movl 0xd0(%r15), %ebp
testl %ebp, %ebp
je 0x2fd40
cmpl $0x5d, %ebp
je 0x2fd40
testl %r13d, %r13d
je 0x2fb71
cmpl $0x2c, %ebp
je 0x2fb67
cmpl $0x3b, %ebp
jne 0x2fe98
movq %r15, %rdi
callq 0x2565a
jmp 0x2fb76
movl $0x2c, %ebp
cmpl $0x3b, %ebp
jne 0x2fc52
movb $0x0, 0xb8(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x98(%rsp), %rdx
movq %r12, %r15
movq %r12, %rcx
movq %rbx, %r8
leaq 0xb8(%rsp), %r9
callq 0x38494
movups 0x40(%rsp), %xmm0
movups %xmm0, 0x20(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rsp)
leaq 0xd0(%rsp), %rdi
movq %r14, %r12
movq %r14, %rsi
callq 0x382ca
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2fbf5
callq 0x1e6ee
movq %r15, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc07
callq 0x1e6ee
movq 0x70(%rsp), %r15
movq 0x78(%rsp), %r14
movb $0x1, %al
movq %rax, 0x90(%rsp)
cmpq %r15, %r14
je 0x2fc3f
movq %r15, %rbp
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x2fc31
callq 0x1e6ee
addq $0x10, %rbp
cmpq %r14, %rbp
jne 0x2fc23
movq %r15, 0x78(%rsp)
movq %rbx, %rax
leaq 0x70(%rsp), %rbx
movq 0x60(%rsp), %r15
movq %r12, %r14
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x296b0
movq 0x20(%rsp), %rbp
testq %rbp, %rbp
je 0x2fc77
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3725c
jmp 0x2fc82
movq 0x68(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc91
callq 0x1e6ee
testq %rbp, %rbp
je 0x2fe6a
incl %r13d
cmpl $0x0, 0xd0(%r15)
jne 0x2fb3c
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 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x5d, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x17(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x48694
leaq 0x20(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x18(%rsp), %rcx
callq 0x29894
movq %r15, %rdi
callq 0x2565a
testb $0x1, 0x90(%rsp)
je 0x2fe10
leaq 0xb8(%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 0x98(%rsp), %rdx
leaq 0x70(%rsp), %r8
movq %r12, %rcx
callq 0x38494
movups 0x40(%rsp), %xmm0
leaq 0x20(%rsp), %rsi
movups %xmm0, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x382ca
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2fdc3
callq 0x1e6ee
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2fdd2
callq 0x1e6ee
leaq 0x98(%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 0xd0(%rsp), %r8
movq %r12, %rcx
callq 0x38494
jmp 0x2fe49
leaq 0x98(%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 0x70(%rsp), %r8
movq %r12, %rcx
callq 0x38494
movq 0x20(%rsp), %rax
movq 0x68(%rsp), %rdx
movq %rax, (%rdx)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq 0x28(%rsp), %rcx
movq %rax, 0x28(%rsp)
movq %rcx, 0x8(%rdx)
leaq 0x70(%rsp), %rdi
callq 0x37214
leaq 0xd0(%rsp), %rdi
callq 0x37214
movq 0x68(%rsp), %rax
addq $0xe8, %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 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
movl $0x6020602c, (%r15)     # imm = 0x6020602C
movw $0x3b, 0x4(%r15)
movq $0x5, -0x8(%r15)
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x17(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x48694
leaq 0x20(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq 0x18(%rsp), %rcx
callq 0x29894
jmp 0x2fff0
jmp 0x2ffbf
jmp 0x2fff0
jmp 0x2fff0
jmp 0x2fff0
jmp 0x2ff54
jmp 0x2ff74
jmp 0x2ff86
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ff77
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2ff77
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x1dca2
jmp 0x2ff89
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ffa6
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2fff3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2fff3
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2ffd1
callq 0x1e6ee
movq 0x48(%rsp), %rdi
jmp 0x2ffe2
jmp 0x2fff0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2fff3
callq 0x1e6ee
jmp 0x2fff3
jmp 0x2fff0
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x37214
leaq 0xd0(%rsp), %rdi
callq 0x37214
movq %rbx, %rdi
callq 0x106f0