// File: Nallantli[P]Rossa/main/rossa/symbol/symbol.cpp
// Function: symbol_t::indexVector(unsigned long const&, token_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t &symbol_t::indexVector(const size_t &i, const token_t *token, trace_t &stack_trace) const
{
	auto &v = std::get<std::vector<symbol_t>>(d->value);
	if (i >= v.size())
	{
		throw rossa_error_t(util::format(_INDEX_OUT_OF_BOUNDS_, {std::to_string(v.size()), std::to_string(i)}), *token, stack_trace);
	}
	return v.at(i);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
addq $0x8, %rdi
callq 0x8bcd0
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x100(%rbp)
movq -0x28(%rbp), %rdi
callq 0x30a90
movq %rax, %rcx
movq -0x100(%rbp), %rax
cmpq %rcx, %rax
jb 0x87fb7
movb $0x1, -0xf2(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x110(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x119d0
movq -0x108(%rbp), %rdx
leaq 0xca290(%rip), %rsi     # 0x15201f
leaq -0x68(%rbp), %rdi
callq 0x24740
jmp 0x87d9a
leaq -0xe8(%rbp), %rax
movq %rax, -0x118(%rbp)
movq %rax, -0xf0(%rbp)
movq -0x28(%rbp), %rdi
callq 0x30a90
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x2d470
jmp 0x87dc9
leaq -0xc8(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x2d470
jmp 0x87de5
leaq -0xe8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq $0x2, -0xa0(%rbp)
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x26e30
movq -0x120(%rbp), %rcx
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
leaq -0x98(%rbp), %rdi
callq 0x2d6a0
jmp 0x87e34
leaq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x9e250
jmp 0x87e4a
movq -0x110(%rbp), %rdi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
leaq -0x48(%rbp), %rsi
callq 0x9c360
jmp 0x87e64
movq -0x110(%rbp), %rdi
movb $0x0, -0xf2(%rbp)
leaq 0x158e07(%rip), %rsi    # 0x1e0c80
leaq -0x2d4e0(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x87fd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x87f95
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
movq -0xf0(%rbp), %rax
leaq -0xe8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x128(%rbp)
je 0x87ef2
movq -0x128(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x130(%rbp)
callq 0x11360
movq -0x130(%rbp), %rax
leaq -0xe8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x128(%rbp)
jne 0x87ec1
jmp 0x87f8c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x87f34
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x87f28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x11360
leaq -0x98(%rbp), %rdi
callq 0x25b00
leaq -0xf1(%rbp), %rdi
callq 0x279c0
leaq -0xe8(%rbp), %rax
movq %rax, -0x140(%rbp)
addq $0x40, %rax
movq %rax, -0x138(%rbp)
movq -0x138(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x148(%rbp)
callq 0x11360
movq -0x140(%rbp), %rcx
movq -0x148(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x138(%rbp)
jne 0x87f59
jmp 0x87f8c
leaq -0x68(%rbp), %rdi
callq 0x11360
leaq -0x69(%rbp), %rdi
callq 0x11600
testb $0x1, -0xf2(%rbp)
jne 0x87fa9
jmp 0x87fb5
movq -0x110(%rbp), %rdi
callq 0x11420
jmp 0x87fd0
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x8bcf0
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x119c0
nopl (%rax)