// File: /workspace/github_cpp_makefile_star2_O3/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 0x450c5(%rip), %rsi     # 0xb59d0
movq %r13, %rdi
callq 0x3ce6c
testb %al, %al
je 0x70ac9
movq %rbx, %rdi
callq 0x40b5a
cmpl $-0x8, %eax
jne 0x7094a
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x40a9e
leaq 0x45092(%rip), %rsi     # 0xb59d0
movq %rax, %rdi
callq 0x3ce6c
testb %al, %al
je 0x7095d
leaq 0x10(%rsp), %rdi
callq 0x40b5a
cmpl $-0x8, %eax
jne 0x70ac9
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x8(%r15), %r12
leaq 0x45060(%rip), %rsi     # 0xb59d0
movq %r13, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x3ced2
movq %rax, %r13
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x3fdf4
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3fdf4
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x436ac
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r13, %rsi
movq %r12, %rcx
movq %r14, %r8
callq 0x40f14
leaq 0x70(%rsp), %r13
movq -0x8(%r13), %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x8(%rdi)
movq %r13, %rsi
callq 0x3775e
movq (%r13), %rdi
testq %rdi, %rdi
je 0x709f6
callq 0x1e5bc
leaq 0x50(%rsp), %rdi
callq 0x20952
movl $0x10, %r13d
leaq (%rsp,%r13), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %r13
cmpq $-0x10, %r13
jne 0x70a06
cmpq $0x0, 0x20(%rsp)
je 0x70aba
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x3fdf4
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3fdf4
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x68(%rsp), %rcx
movl $0x2, %edx
callq 0x436ac
leaq 0x78(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x2489a
leaq 0x78(%rsp), %rdi
callq 0x3fe06
leaq 0x50(%rsp), %rdi
callq 0x20952
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x70a92
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x70ae0
callq 0x1e5bc
jmp 0x70ae0
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x70ac9
callq 0x1e5bc
addq $0x8, %r15
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3ff88
leaq 0x10(%rsp), %rdi
callq 0x3fe06
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 0x20952
jmp 0x70b11
movq %rax, %r13
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x70b17
jmp 0x70b42
movq %rax, %r13
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x70b42
movq %rax, %r13
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x70bd5
callq 0x1e5bc
jmp 0x70bd5
movq %rdx, 0x8(%rsp)
movq %rax, %r13
leaq 0x50(%rsp), %rdi
callq 0x20952
jmp 0x70b73
movq %rdx, 0x8(%rsp)
movq %rax, %r13
movl $0x10, %ebp
leaq (%rsp,%rbp), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x70b78
jmp 0x70baf
movq %rdx, 0x8(%rsp)
movq %rax, %r13
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x70baf
jmp 0x70ba7
movq %rdx, 0x8(%rsp)
movq %rax, %r13
cmpl $0x1, 0x8(%rsp)
jne 0x70b42
movq %r13, %rdi
callq 0x101a0
callq 0x10690
jmp 0x70a1d
jmp 0x70b3f
movq %rax, %r13
jmp 0x70bdf
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rdi
callq 0x3fe06
movq %r13, %rdi
callq 0x106f0
nop