// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseIndexNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*, std::shared_ptr<Node> const&)
ptr_node_t node_parser_t::parseIndexNode(std::vector<node_scope_t> *scopes, const ptr_node_t &a)
{
	auto marker = tokens.at(index - 2);
	nextToken();
	if (auto b = parseEquNode(scopes))
	{
		if (currentToken.type != ']')
			return logErrorN(util::format(_EXPECTED_ERROR_, {"]"}), currentToken);
		nextToken();
		auto ret = std::make_shared<BinOpNode>(*scopes, "[]", a, b, marker);
		return parseTrailingNode(scopes, ret, true);
	}
	return nullptr;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, 0x58(%rsp)
movq %rdx, %r15
movl 0x50(%rsi), %r13d
addl $-0x2, %r13d
movq 0x10(%rsi), %rbx
movq 0x18(%rsi), %rdx
subq %rbx, %rdx
sarq $0x7, %rdx
cmpq %r13, %rdx
jbe 0x28ff9
movq %rsi, %r14
movq %rdi, %r12
shlq $0x7, %r13
leaq (%rbx,%r13), %rbp
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x1e698
leaq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%rbx,%r13), %rsi
movq 0x30(%rbx,%r13), %rdx
addq %rsi, %rdx
callq 0x1e014
movups 0x48(%rbp), %xmm0
leaq 0xd8(%rsp), %rdi
movups %xmm0, -0x10(%rdi)
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x58(%rbp), %rsi
movq 0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0x1e014
movl 0x78(%rbp), %eax
movl %eax, 0xf8(%rsp)
movq %r14, %rdi
callq 0x2565a
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x296b0
cmpq $0x0, 0x48(%rsp)
je 0x28f27
cmpl $0x5d, 0xd0(%r14)
jne 0x2900a
movq %r14, %rdi
callq 0x2565a
leaq 0x30(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x5b988(%rip), %r8      # 0x84860
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r15, %rcx
movq 0x58(%rsp), %r9
leaq 0x80(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x3a498
addq $0x10, %rsp
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x28f4c
movq 0x8e073(%rip), %rcx     # 0xb6f90
cmpb $0x0, (%rcx)
je 0x28f48
incl 0x8(%rax)
jmp 0x28f4c
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28f36
callq 0x1e6ee
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
leaq 0xb8(%rsp), %rbx
jmp 0x28f9d
lock
incl 0x8(%rax)
leaq 0x60(%rsp), %r8
movb $0x1, (%r8)
leaq 0x8(%rsp), %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x28276
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
leaq 0xb8(%rsp), %rbx
je 0x28f7f
callq 0x1e6ee
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28f8e
callq 0x1e6ee
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28f9d
callq 0x1e6ee
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x28fba
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xa8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x28fd7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x80(%rsp), %rdi
callq 0x1d736
movq %r12, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5bace(%rip), %rdi     # 0x84ace
movq %r13, %rsi
xorl %eax, %eax
callq 0x105d0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r15)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r15)
movq $0xe, -0x8(%r15)
movb $0x0, 0xe(%r15)
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
movw $0x5d, (%r12)
movq $0x1, -0x8(%r12)
leaq 0x100(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x48694
leaq 0x58(%r14), %rcx
leaq 0x28(%rsp), %rdx
movq %r14, %rsi
callq 0x29894
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x290bc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x290bc
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x1dca2
jmp 0x290ce
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x290e5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x29126
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x29126
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x29110
callq 0x1e6ee
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x29126
callq 0x1e6ee
jmp 0x29126
jmp 0x29123
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2913c
callq 0x1e6ee
jmp 0x2913c
jmp 0x29139
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x211f6
jmp 0x29185
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x29178
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x29178
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1d736
movq %rbx, %rdi
callq 0x106f0
nop