// File: Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: SetIndexI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t SetIndexI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	auto evalA = a->evaluate(scope, stack_trace);
	auto evalAVector = evalA.getVector(&token, stack_trace);
	auto evalBVector = b->evaluate(scope, stack_trace).getVector(&token, stack_trace);
	if (evalAVector.size() != evalBVector.size())
	{
		throw rossa_error_t(_INCOMPATIBLE_VECTOR_SIZES_, token, stack_trace);
	}
	for (size_t i = 0; i < evalAVector.size(); i++)
	{
		evalAVector[i].set(&evalBVector[i], &token, stack_trace);
	}
	return evalA;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0xb8(%rbp)
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
movb $0x0, -0x21(%rbp)
addq $0x90, %rdi
callq 0x2d300
movq -0xb8(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
callq *%rax
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
callq 0x87fe0
movq %rax, -0xb0(%rbp)
jmp 0x135bb5
movq -0xb0(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x8c650
jmp 0x135bc7
movq -0xc0(%rbp), %rdi
addq $0xa0, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x78(%rbp), %rdi
callq *%rax
jmp 0x135bf3
movq -0xc0(%rbp), %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
leaq -0x78(%rbp), %rdi
callq 0x87fe0
movq %rax, -0xd0(%rbp)
jmp 0x135c14
movq -0xd0(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x8c650
jmp 0x135c26
leaq -0x78(%rbp), %rdi
callq 0x86dc0
leaq -0x40(%rbp), %rdi
callq 0x30a90
movq %rax, -0xd8(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x30a90
movq %rax, %rcx
movq -0xd8(%rbp), %rax
cmpq %rcx, %rax
je 0x135d76
movb $0x1, -0x9a(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0xe8(%rbp)
leaq -0x99(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x119d0
movq -0xe0(%rbp), %rdx
leaq 0x1f5b6(%rip), %rsi     # 0x15524a
leaq -0x98(%rbp), %rdi
callq 0x24740
jmp 0x135ca2
movq -0xe8(%rbp), %rdi
movq -0xc0(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x98(%rbp), %rsi
callq 0x9c360
jmp 0x135cc6
movq -0xe8(%rbp), %rdi
movb $0x0, -0x9a(%rbp)
leaq 0xaafa5(%rip), %rsi     # 0x1e0c80
leaq -0xdb342(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x135e78
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x135e63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x135e3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x86dc0
jmp 0x135e3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x135d4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x11360
leaq -0x99(%rbp), %rdi
callq 0x11600
testb $0x1, -0x9a(%rbp)
jne 0x135d65
jmp 0x135d71
movq -0xe8(%rbp), %rdi
callq 0x11420
jmp 0x135e33
movq $0x0, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x30a90
movq %rax, %rcx
movq -0xf0(%rbp), %rax
cmpq %rcx, %rax
jae 0x135e15
movq -0xa8(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x8c3d0
movq %rax, -0xf8(%rbp)
movq -0xa8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
callq 0x8c3d0
movq -0xc0(%rbp), %rdx
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
callq 0x870e0
jmp 0x135dee
jmp 0x135df0
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x135d81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x135e33
movb $0x1, -0x21(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x2cf10
leaq -0x40(%rbp), %rdi
callq 0x2cf10
testb $0x1, -0x21(%rbp)
jne 0x135e53
jmp 0x135e47
leaq -0x68(%rbp), %rdi
callq 0x2cf10
leaq -0x40(%rbp), %rdi
callq 0x2cf10
jmp 0x135e63
movq -0xb8(%rbp), %rdi
callq 0x86dc0
movq -0xc8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0xb8(%rbp), %rdi
callq 0x86dc0
movq -0x48(%rbp), %rdi
callq 0x119c0
nopl (%rax,%rax)