// File: 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
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movq %rdi, -0x250(%rbp)
movq %rdi, %rax
movq %rax, -0x248(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x38fd0
leaq -0x30(%rbp), %rdi
callq 0x57390
leaq -0x48(%rbp), %rdi
callq 0x57390
movb $0x0, -0x49(%rbp)
movl $0x0, -0x50(%rbp)
movq -0x240(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0xd0(%rcx)
movb %al, -0x251(%rbp)
je 0x49554
movq -0x240(%rbp), %rax
cmpl $0x5d, 0xd0(%rax)
setne %al
movb %al, -0x251(%rbp)
movb -0x251(%rbp), %al
testb $0x1, %al
jne 0x49563
jmp 0x49d53
movl $0x2c, -0x54(%rbp)
cmpl $0x0, -0x50(%rbp)
jle 0x498c9
movq -0x240(%rbp), %rax
cmpl $0x2c, 0xd0(%rax)
je 0x49899
movq -0x240(%rbp), %rax
cmpl $0x3b, 0xd0(%rax)
je 0x49899
leaq -0x99(%rbp), %rdi
movq %rdi, -0x260(%rbp)
callq 0x119d0
movq -0x260(%rbp), %rdx
leaq 0x107bd3(%rip), %rsi    # 0x151190
leaq -0x98(%rbp), %rdi
callq 0x24740
jmp 0x495cb
movb $0x1, -0x102(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0x270(%rbp)
movq %rax, -0x100(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x268(%rbp)
callq 0x119d0
movq -0x270(%rbp), %rdi
movq -0x268(%rbp), %rdx
leaq 0x107cd6(%rip), %rsi    # 0x1512e5
callq 0x24740
jmp 0x49616
movb $0x0, -0x102(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq $0x1, -0xd0(%rbp)
leaq -0x103(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x26e30
movq -0x278(%rbp), %rcx
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0x2d6a0
jmp 0x4966c
leaq -0x78(%rbp), %rdi
leaq -0x98(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0x9e250
jmp 0x49685
movq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x78(%rbp), %rdx
callq 0x3f820
jmp 0x496a5
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0xc8(%rbp), %rdi
callq 0x25b00
leaq -0x103(%rbp), %rdi
callq 0x279c0
leaq -0xf8(%rbp), %rax
movq %rax, -0x288(%rbp)
addq $0x20, %rax
movq %rax, -0x280(%rbp)
movq -0x280(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x290(%rbp)
callq 0x11360
movq -0x288(%rbp), %rcx
movq -0x290(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x280(%rbp)
jne 0x496df
leaq -0x101(%rbp), %rdi
callq 0x11600
leaq -0x98(%rbp), %rdi
callq 0x11360
leaq -0x99(%rbp), %rdi
callq 0x11600
movl $0x1, -0x108(%rbp)
jmp 0x49ebf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49888
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49818
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x497c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x497b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0xc8(%rbp), %rdi
callq 0x25b00
leaq -0x103(%rbp), %rdi
callq 0x279c0
leaq -0xf8(%rbp), %rax
movq %rax, -0x2a0(%rbp)
addq $0x20, %rax
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x11360
movq -0x2a0(%rbp), %rcx
movq -0x2a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x298(%rbp)
jne 0x497e5
jmp 0x49818
leaq -0x101(%rbp), %rdi
callq 0x11600
testb $0x1, -0x102(%rbp)
jne 0x4982f
jmp 0x4987c
movq -0x100(%rbp), %rax
leaq -0xf8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x2b0(%rbp)
je 0x4987a
movq -0x2b0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x11360
movq -0x2b8(%rbp), %rax
leaq -0xf8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x2b0(%rbp)
jne 0x49849
jmp 0x4987c
leaq -0x98(%rbp), %rdi
callq 0x11360
leaq -0x99(%rbp), %rdi
callq 0x11600
jmp 0x49ee1
movq -0x240(%rbp), %rdi
movl 0xd0(%rdi), %eax
movl %eax, -0x54(%rbp)
callq 0x38fd0
jmp 0x498b0
jmp 0x498c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49ee1
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
cmpl $0x3b, -0x54(%rbp)
jne 0x4998d
movq -0x240(%rbp), %r8
movb $0x1, -0x49(%rbp)
movq -0x18(%rbp), %rsi
movb $0x0, -0x129(%rbp)
addq $0x58, %r8
leaq -0x128(%rbp), %rdi
leaq -0x48(%rbp), %rdx
leaq -0x129(%rbp), %rcx
callq 0x573e0
jmp 0x4990f
leaq -0x118(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
leaq -0x128(%rbp), %rsi
callq 0x57470
movq -0x2c0(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x573b0
jmp 0x4993b
leaq -0x118(%rbp), %rdi
callq 0x24b20
leaq -0x128(%rbp), %rdi
callq 0x574a0
leaq -0x48(%rbp), %rdi
callq 0x59150
jmp 0x4998d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x24b20
leaq -0x128(%rbp), %rdi
callq 0x574a0
jmp 0x49ee1
movq -0x240(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0x140(%rbp), %rdi
callq 0x3f500
jmp 0x499a6
leaq -0x140(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x499b8
jmp 0x499ef
leaq -0x48(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x57650
jmp 0x499ca
jmp 0x49a0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x24b20
jmp 0x49ee1
movq -0x250(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x58bf0
movl $0x1, -0x108(%rbp)
jmp 0x49a15
movl $0x0, -0x108(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x24b20
movl -0x108(%rbp), %eax
testl %eax, %eax
jne 0x49ebf
jmp 0x49a31
movq -0x240(%rbp), %rax
cmpl $0x0, 0xd0(%rax)
jne 0x49d4e
leaq -0x181(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x119d0
movq -0x2c8(%rbp), %rdx
leaq 0x10772a(%rip), %rsi    # 0x151190
leaq -0x180(%rbp), %rdi
callq 0x24740
jmp 0x49a74
movb $0x1, -0x1da(%rbp)
leaq -0x1d0(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq %rax, -0x1d8(%rbp)
leaq -0x1d9(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x119d0
movq -0x2d8(%rbp), %rdi
movq -0x2d0(%rbp), %rdx
leaq 0x10654d(%rip), %rsi    # 0x150005
callq 0x24740
jmp 0x49abf
movb $0x0, -0x1da(%rbp)
leaq -0x1d0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq $0x1, -0x1a8(%rbp)
leaq -0x1db(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x26e30
movq -0x2e0(%rbp), %rcx
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
leaq -0x1a0(%rbp), %rdi
callq 0x2d6a0
jmp 0x49b15
leaq -0x160(%rbp), %rdi
leaq -0x180(%rbp), %rsi
leaq -0x1a0(%rbp), %rdx
callq 0x9e250
jmp 0x49b31
movq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x160(%rbp), %rdx
callq 0x3f820
jmp 0x49b54
leaq -0x160(%rbp), %rdi
callq 0x11360
leaq -0x1a0(%rbp), %rdi
callq 0x25b00
leaq -0x1db(%rbp), %rdi
callq 0x279c0
leaq -0x1d0(%rbp), %rax
movq %rax, -0x2f0(%rbp)
addq $0x20, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2f8(%rbp)
callq 0x11360
movq -0x2f0(%rbp), %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2e8(%rbp)
jne 0x49b91
leaq -0x1d9(%rbp), %rdi
callq 0x11600
leaq -0x180(%rbp), %rdi
callq 0x11360
leaq -0x181(%rbp), %rdi
callq 0x11600
movl $0x1, -0x108(%rbp)
jmp 0x49ebf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49d3d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49ccd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49c75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
jmp 0x49c69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x160(%rbp), %rdi
callq 0x11360
leaq -0x1a0(%rbp), %rdi
callq 0x25b00
leaq -0x1db(%rbp), %rdi
callq 0x279c0
leaq -0x1d0(%rbp), %rax
movq %rax, -0x308(%rbp)
addq $0x20, %rax
movq %rax, -0x300(%rbp)
movq -0x300(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x310(%rbp)
callq 0x11360
movq -0x308(%rbp), %rcx
movq -0x310(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x300(%rbp)
jne 0x49c9a
jmp 0x49ccd
leaq -0x1d9(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1da(%rbp)
jne 0x49ce4
jmp 0x49d31
movq -0x1d8(%rbp), %rax
leaq -0x1d0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x318(%rbp)
je 0x49d2f
movq -0x318(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x320(%rbp)
callq 0x11360
movq -0x320(%rbp), %rax
leaq -0x1d0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x318(%rbp)
jne 0x49cfe
jmp 0x49d31
leaq -0x180(%rbp), %rdi
callq 0x11360
leaq -0x181(%rbp), %rdi
callq 0x11600
jmp 0x49ee1
jmp 0x49525
movq -0x240(%rbp), %rdi
callq 0x38fd0
jmp 0x49d61
testb $0x1, -0x49(%rbp)
je 0x49e67
movq -0x240(%rbp), %r8
movq -0x18(%rbp), %rsi
movb $0x0, -0x201(%rbp)
addq $0x58, %r8
leaq -0x200(%rbp), %rdi
leaq -0x48(%rbp), %rdx
leaq -0x201(%rbp), %rcx
callq 0x573e0
jmp 0x49d9a
leaq -0x1f0(%rbp), %rdi
movq %rdi, -0x328(%rbp)
leaq -0x200(%rbp), %rsi
callq 0x57470
movq -0x328(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x573b0
jmp 0x49dc6
leaq -0x1f0(%rbp), %rdi
callq 0x24b20
leaq -0x200(%rbp), %rdi
callq 0x574a0
movq -0x240(%rbp), %r8
movq -0x18(%rbp), %rsi
movb $0x0, -0x219(%rbp)
addq $0x58, %r8
leaq -0x218(%rbp), %rdi
leaq -0x30(%rbp), %rdx
leaq -0x219(%rbp), %rcx
callq 0x573e0
jmp 0x49e0d
movq -0x250(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x57470
leaq -0x218(%rbp), %rdi
callq 0x574a0
movl $0x1, -0x108(%rbp)
jmp 0x49ebf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa8(%rbp)
movl %eax, -0xac(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x24b20
leaq -0x200(%rbp), %rdi
callq 0x574a0
jmp 0x49ee1
movq -0x240(%rbp), %r8
movq -0x18(%rbp), %rsi
movb $0x0, -0x231(%rbp)
addq $0x58, %r8
leaq -0x230(%rbp), %rdi
leaq -0x48(%rbp), %rdx
leaq -0x231(%rbp), %rcx
callq 0x573e0
jmp 0x49e96
movq -0x250(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq 0x57470
leaq -0x230(%rbp), %rdi
callq 0x574a0
movl $0x1, -0x108(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x574c0
leaq -0x30(%rbp), %rdi
callq 0x574c0
movq -0x248(%rbp), %rax
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
leaq -0x48(%rbp), %rdi
callq 0x574c0
leaq -0x30(%rbp), %rdi
callq 0x574c0
movq -0xa8(%rbp), %rdi
callq 0x119c0
nop