// File: /workspace/github_cpp_makefile_star2_O2/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: DeclareI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t DeclareI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const symbol_t v = scope->createVariable(key, &token);
	const symbol_t evalA = a->evaluate(scope, stack_trace);
	if (scope->hasValue(parser_t::HASH_SET) && evalA.getValueType() == value_type_enum::OBJECT)
	{
		ptr_function_t f = nullptr;
		try
		{
			f = scope->getVariable(parser_t::HASH_SET, &token, stack_trace).getFunction({v, evalA}, &token, stack_trace);
		}
		catch (const rossa_error_t &e)
		{
		}
		if (f)
		{
			function_evaluate(f, {v, evalA}, &token, stack_trace);
			return v;
		}
	}
	v.set(&evalA, &token, stack_trace);
	return v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
addq $0x90, %rsi
leaq 0x8(%r13), %r15
movq %rdx, %rdi
movq %r15, %rdx
callq 0x366f4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x390f0
movq 0x98(%r13), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
movq %r12, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x51316(%rip), %rsi     # 0xb69e0
movq %r12, %rdi
callq 0x366b2
testb %al, %al
je 0x65834
leaq 0x10(%rsp), %rdi
callq 0x39ca6
cmpl $-0x8, %eax
jne 0x65834
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x512e4(%rip), %rsi     # 0xb69e0
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x366ec
movq %rax, %r12
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 0xf(%rsp), %rcx
callq 0x3ba84
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r12, %rsi
movq %r15, %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 %r12
leaq (%rsp,%r12), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %r12
cmpq $-0x10, %r12
jne 0x6577f
cmpq $0x0, 0x20(%rsp)
je 0x6582a
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 %r15, %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 0x65807
leaq 0x28(%rsp), %rdi
callq 0x1d786
jmp 0x65847
leaq 0x28(%rsp), %rdi
callq 0x1d786
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, %r12
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
jmp 0x65878
movq %rax, %r12
pushq $0x10
popq %r14
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x6587c
jmp 0x658a7
movq %rax, %r12
leaq 0x30(%rsp), %rdi
callq 0x39102
jmp 0x658a7
movq %rax, %r12
leaq 0x28(%rsp), %rdi
callq 0x1d786
jmp 0x65923
movq %rdx, %r13
movq %rax, %r12
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
jmp 0x658cb
movq %rdx, %r13
movq %rax, %r12
pushq $0x10
popq %rbp
leaq (%rsp,%rbp), %rdi
addq $0x30, %rdi
callq 0x39102
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x658ce
jmp 0x65901
movq %rdx, %r13
movq %rax, %r12
leaq 0x30(%rsp), %rdi
callq 0x39102
jmp 0x65901
jmp 0x658fb
movq %rdx, %r13
movq %rax, %r12
cmpl $0x1, %r13d
jne 0x658a7
movq %r12, %rdi
callq 0x10190
callq 0x10680
jmp 0x65796
jmp 0x658a4
movq %rax, %r12
jmp 0x6592d
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0x39102
movq %rbx, %rdi
callq 0x39102
movq %r12, %rdi
callq 0x106f0
nop