// File: /workspace/github_cpp_makefile_star2_O2/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: SetI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t SetI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const symbol_t evalA = a->evaluate(scope, stack_trace);
	const symbol_t evalB = b->evaluate(scope, stack_trace);

	if (scope->hasValue(parser_t::HASH_SET) && ((evalA.getValueType() == value_type_enum::OBJECT && !evalA.getObject(&token, stack_trace)->hasValue(parser_t::HASH_SET)) || evalB.getValueType() == value_type_enum::OBJECT))
	{
		ptr_function_t f = nullptr;
		try
		{
			f = scope->getVariable(parser_t::HASH_SET, &token, stack_trace).getFunction({evalA, evalB}, &token, stack_trace);
		}
		catch (const rossa_error_t &e)
		{
		}
		if (f)
		{
			function_evaluate(f, {evalA, evalB}, &token, stack_trace);
			return evalA;
		}
	}
	evalA.set(&evalB, &token, stack_trace);
	return evalA;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rsi), %rsi
movq (%rsi), %rax
callq *(%rax)
movq 0xa0(%r15), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x4f91f(%rip), %rsi     # 0xb69e0
movq %r13, %rdi
callq 0x366b2
testb %al, %al
je 0x6725e
movq %rbx, %rdi
callq 0x39ca6
cmpl $-0x8, %eax
jne 0x67100
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x39c02
leaq 0x4f8ec(%rip), %rsi     # 0xb69e0
movq %rax, %rdi
callq 0x366b2
testb %al, %al
je 0x67113
leaq 0x10(%rsp), %rdi
callq 0x39ca6
cmpl $-0x8, %eax
jne 0x6725e
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x8(%r15), %r12
leaq 0x4f8ba(%rip), %rsi     # 0xb69e0
movq %r13, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x366ec
movq %rax, %r13
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x390f0
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x390f0
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x7(%rsp), %rcx
callq 0x3ba84
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r13, %rsi
movq %r12, %rcx
movq %r14, %r8
callq 0x39fb2
leaq 0x20(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x3bd96
leaq 0x70(%rsp), %rdi
callq 0x1d786
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
pushq $0x10
popq %r13
leaq (%rsp,%r13), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %r13
cmpq $-0x10, %r13
jne 0x671a9
cmpq $0x0, 0x20(%rsp)
je 0x67254
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x390f0
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x390f0
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x68(%rsp), %rcx
callq 0x3ba84
leaq 0x78(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x225a1
leaq 0x78(%rsp), %rdi
callq 0x39102
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
pushq $0x10
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x67231
leaq 0x28(%rsp), %rdi
callq 0x1d786
jmp 0x67275
leaq 0x28(%rsp), %rdi
callq 0x1d786
addq $0x8, %r15
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3927a
leaq 0x10(%rsp), %rdi
callq 0x39102
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
jmp 0x672a6
movq %rax, %r13
pushq $0x10
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x672aa
jmp 0x672d5
movq %rax, %r13
leaq 0x30(%rsp), %rdi
callq 0x39102
jmp 0x672d5
movq %rax, %r13
leaq 0x28(%rsp), %rdi
callq 0x1d786
jmp 0x6735a
movq %rdx, 0x8(%rsp)
movq %rax, %r13
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
jmp 0x672fd
movq %rdx, 0x8(%rsp)
movq %rax, %r13
pushq $0x10
popq %rbp
leaq (%rsp,%rbp), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x67300
jmp 0x67337
movq %rdx, 0x8(%rsp)
movq %rax, %r13
leaq 0x30(%rsp), %rdi
callq 0x39102
jmp 0x67337
jmp 0x6732f
movq %rdx, 0x8(%rsp)
movq %rax, %r13
cmpl $0x1, 0x8(%rsp)
jne 0x672d5
movq %r13, %rdi
callq 0x10190
callq 0x10680
jmp 0x671c0
jmp 0x672d2
movq %rax, %r13
jmp 0x67364
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0x39102
movq %rbx, %rdi
callq 0x39102
movq %r13, %rdi
callq 0x106f0