// File: /workspace/github_cpp_makefile_star2_O1/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 0x3d50a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x404c8
movq 0x98(%r13), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
movq %r12, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x47b30(%rip), %rsi     # 0xb79d0
movq %r12, %rdi
callq 0x3d498
testb %al, %al
je 0x7003e
leaq 0x10(%rsp), %rdi
callq 0x41262
cmpl $-0x8, %eax
jne 0x7003e
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x47afe(%rip), %rsi     # 0xb79d0
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3d502
movq %rax, %r12
leaq 0x30(%rsp), %r13
movq %r13, %rbp
movq %r13, %rdi
movq %rbx, %rsi
callq 0x404c8
leaq 0x40(%rsp), %rbp
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x404c8
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x2, %edx
callq 0x43e3c
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r12, %rsi
movq %r15, %rcx
movq %r14, %r8
callq 0x41626
leaq 0x70(%rsp), %r12
movq -0x8(%r12), %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x8(%rdi)
movq %r12, %rsi
callq 0x37c6e
movq (%r12), %rdi
testq %rdi, %rdi
je 0x6ff62
callq 0x1e6ee
leaq 0x50(%rsp), %rdi
callq 0x20a84
movl $0x10, %r12d
leaq (%rsp,%r12), %rdi
addq $0x30, %rdi
callq 0x404da
addq $-0x10, %r12
cmpq $-0x10, %r12
jne 0x6ff72
cmpq $0x0, 0x20(%rsp)
je 0x7002f
leaq 0x30(%rsp), %rbp
movq %rbp, %r13
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x404c8
leaq 0x40(%rsp), %r13
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x404c8
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x68(%rsp), %rcx
movl $0x2, %edx
callq 0x43e3c
leaq 0x78(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x24a66
leaq 0x78(%rsp), %rdi
callq 0x404da
leaq 0x50(%rsp), %rdi
callq 0x20a84
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x404da
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x70007
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x70051
callq 0x1e6ee
jmp 0x70051
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7003e
callq 0x1e6ee
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x40674
leaq 0x10(%rsp), %rdi
callq 0x404da
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 0x20a84
jmp 0x70082
movq %rax, %r12
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x404da
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x70088
jmp 0x70104
movq %rdx, 0x8(%rsp)
movq %rax, %r12
leaq 0x50(%rsp), %rdi
callq 0x20a84
jmp 0x700bd
movq %rdx, 0x8(%rsp)
movq %rax, %r12
movl $0x10, %r13d
leaq (%rsp,%r13), %rdi
addq $0x30, %rdi
callq 0x404da
addq $-0x10, %r13
cmpq $-0x10, %r13
jne 0x700c3
jmp 0x70138
movq %rdx, 0x8(%rsp)
movq %rax, %r12
jmp 0x70138
movq %rax, %r12
cmpq %r13, %rbp
je 0x70104
leaq 0x30(%rsp), %r14
addq $-0x10, %r13
movq %r13, %rdi
callq 0x404da
cmpq %r14, %r13
jne 0x700f3
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7015e
callq 0x1e6ee
jmp 0x7015e
movq %rdx, 0x8(%rsp)
movq %rax, %r12
cmpq %rbp, %r13
je 0x70138
leaq 0x30(%rsp), %r13
addq $-0x10, %rbp
movq %rbp, %rdi
callq 0x404da
cmpq %r13, %rbp
jne 0x70127
cmpl $0x1, 0x8(%rsp)
jne 0x70104
movq %r12, %rdi
callq 0x101a0
callq 0x10690
jmp 0x6ff89
movq %rax, %r12
jmp 0x70104
movq %rax, %r12
jmp 0x70168
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0x404da
movq %rbx, %rdi
callq 0x404da
movq %r12, %rdi
callq 0x106f0