// File: Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: InnerI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t InnerI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const symbol_t evalA = a->evaluate(scope, stack_trace);
	switch (evalA.getValueType())
	{
	case value_type_enum::OBJECT:
	{
		const auto &o = evalA.getObject(&token, stack_trace);
		if (o->getType() != scope_type_enum::SCOPE_STATIC && o->getType() != scope_type_enum::SCOPE_INSTANCE)
			throw rossa_error_t(_CANNOT_INDEX_OBJECT_, token, stack_trace);
		return b->evaluate(o, stack_trace);
	}
	default:
		throw rossa_error_t(_CANNOT_INDEX_VALUE_, token, stack_trace);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0xc0(%rbp)
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
addq $0x90, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x30(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq *%rax
movq -0xa8(%rbp), %rdi
callq 0x883e0
movl %eax, -0xa0(%rbp)
jmp 0x12a325
movl -0xa0(%rbp), %eax
subl $-0x8, %eax
je 0x12a346
jmp 0x12a4d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x12a5ab
movq -0xb0(%rbp), %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x882f0
movq %rax, -0xc8(%rbp)
jmp 0x12a367
movq -0xc8(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0x7df00
movl %eax, -0xcc(%rbp)
jmp 0x12a38e
movl -0xcc(%rbp), %eax
cmpl $0x2, %eax
je 0x12a487
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0x7df00
movl %eax, -0xd0(%rbp)
jmp 0x12a3b1
movl -0xd0(%rbp), %eax
cmpl $0x3, %eax
je 0x12a487
movb $0x1, -0x72(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0xe0(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x119d0
movq -0xd8(%rbp), %rdx
leaq 0x2ad42(%rip), %rsi     # 0x155135
leaq -0x70(%rbp), %rdi
callq 0x24740
jmp 0x12a3fe
movq -0xe0(%rbp), %rdi
movq -0xb0(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x70(%rbp), %rsi
callq 0x9c360
jmp 0x12a41f
movq -0xe0(%rbp), %rdi
movb $0x0, -0x72(%rbp)
leaq 0xb684f(%rip), %rsi     # 0x1e0c80
leaq -0xcfa98(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x12a5bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x12a465
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x11360
leaq -0x71(%rbp), %rdi
callq 0x11600
testb $0x1, -0x72(%rbp)
jne 0x12a476
jmp 0x12a482
movq -0xe0(%rbp), %rdi
callq 0x11420
jmp 0x12a5ab
movq -0xb0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x2d300
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
movq -0x48(%rbp), %rax
movq (%rax), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
callq *%rax
jmp 0x12a4b9
leaq -0x30(%rbp), %rdi
callq 0x86dc0
movq -0xb8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movb $0x1, -0x9a(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0xf0(%rbp)
leaq -0x99(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x119d0
movq -0xe8(%rbp), %rdx
leaq 0x2ac5d(%rip), %rsi     # 0x155168
leaq -0x98(%rbp), %rdi
callq 0x24740
jmp 0x12a519
movq -0xf0(%rbp), %rdi
movq -0xb0(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x98(%rbp), %rsi
callq 0x9c360
jmp 0x12a53d
movq -0xf0(%rbp), %rdi
movb $0x0, -0x9a(%rbp)
leaq 0xb672e(%rip), %rsi     # 0x1e0c80
leaq -0xcfbb9(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x12a5bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x12a586
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x11360
leaq -0x99(%rbp), %rdi
callq 0x11600
testb $0x1, -0x9a(%rbp)
jne 0x12a59d
jmp 0x12a5a9
movq -0xf0(%rbp), %rdi
callq 0x11420
jmp 0x12a5ab
leaq -0x30(%rbp), %rdi
callq 0x86dc0
movq -0x38(%rbp), %rdi
callq 0x119c0
nopl (%rax)