// File: /workspace/github_cpp_makefile_star2_O3/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 0x28dc3
movq %rsi, %r14
movq %rdi, %r12
shlq $0x7, %r13
leaq (%rbx,%r13), %rbp
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x1e566
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 0x1ded4
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 0x1ded4
movl 0x78(%rbp), %eax
movl %eax, 0xf8(%rsp)
movq %r14, %rdi
callq 0x2549e
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2946a
cmpq $0x0, 0x48(%rsp)
je 0x28cf1
cmpl $0x5d, 0xd0(%r14)
jne 0x28dd4
movq %r14, %rdi
callq 0x2549e
leaq 0x30(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x5abde(%rip), %r8      # 0x83880
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r15, %rcx
movq 0x58(%rsp), %r9
leaq 0x80(%rsp), %rax
pushq %rax
pushq %rbp
callq 0x39ef8
addq $0x10, %rsp
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x28d16
movq 0x8c2a9(%rip), %rcx     # 0xb4f90
cmpb $0x0, (%rcx)
je 0x28d12
incl 0x8(%rax)
jmp 0x28d16
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28d00
callq 0x1e5bc
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
leaq 0xb8(%rsp), %rbx
jmp 0x28d67
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 0x28002
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
leaq 0xb8(%rsp), %rbx
je 0x28d49
callq 0x1e5bc
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28d58
callq 0x1e5bc
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28d67
callq 0x1e5bc
movq 0xd8(%rsp), %rdi
cmpq %r13, %rdi
je 0x28d84
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xa8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x28da1
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x80(%rsp), %rdi
callq 0x1d5ee
movq %r12, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5ad24(%rip), %rdi     # 0x83aee
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 0x20b38
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x47db4
leaq 0x58(%r14), %rcx
leaq 0x28(%rsp), %rdx
movq %r14, %rsi
callq 0x29658
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28e86
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x28e86
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x1db60
jmp 0x28e98
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x28eaf
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x28ef0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x28ef0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x28eda
callq 0x1e5bc
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28ef0
callq 0x1e5bc
jmp 0x28ef0
jmp 0x28eed
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x28f06
callq 0x1e5bc
jmp 0x28f06
jmp 0x28f03
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x2108a
jmp 0x28f4f
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x28f42
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x28f42
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1d5ee
movq %rbx, %rdi
callq 0x106f0
nop