// File: /workspace/github_cpp_makefile_star2_O3/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 0x3ceda
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3fdf4
movq 0x98(%r13), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %rdi
movq %r12, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x46b24(%rip), %rsi     # 0xb59d0
movq %r12, %rdi
callq 0x3ce6c
testb %al, %al
je 0x6f038
leaq 0x10(%rsp), %rdi
callq 0x40b5a
cmpl $-0x8, %eax
jne 0x6f038
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
leaq 0x46af2(%rip), %rsi     # 0xb59d0
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3ced2
movq %rax, %r12
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 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0x436ac
leaq 0x68(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %r12, %rsi
movq %r15, %rcx
movq %r14, %r8
callq 0x40f14
leaq 0x70(%rsp), %r12
movq -0x8(%r12), %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x8(%rdi)
movq %r12, %rsi
callq 0x3775e
movq (%r12), %rdi
testq %rdi, %rdi
je 0x6ef65
callq 0x1e5bc
leaq 0x50(%rsp), %rdi
callq 0x20952
movl $0x10, %r12d
leaq (%rsp,%r12), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %r12
cmpq $-0x10, %r12
jne 0x6ef75
cmpq $0x0, 0x20(%rsp)
je 0x6f029
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 %r15, %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 0x6f001
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6f04b
callq 0x1e5bc
jmp 0x6f04b
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6f038
callq 0x1e5bc
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, %r12
leaq 0x50(%rsp), %rdi
callq 0x20952
jmp 0x6f07c
movq %rax, %r12
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x6f082
jmp 0x6f0ad
movq %rax, %r12
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x6f0ad
movq %rax, %r12
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x6f130
callq 0x1e5bc
jmp 0x6f130
movq %rdx, %r13
movq %rax, %r12
leaq 0x50(%rsp), %rdi
callq 0x20952
jmp 0x6f0d6
movq %rdx, %r13
movq %rax, %r12
movl $0x10, %ebp
leaq (%rsp,%rbp), %rdi
addq $0x30, %rdi
callq 0x3fe06
addq $-0x10, %rbp
cmpq $-0x10, %rbp
jne 0x6f0db
jmp 0x6f10e
movq %rdx, %r13
movq %rax, %r12
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x6f10e
jmp 0x6f108
movq %rdx, %r13
movq %rax, %r12
cmpl $0x1, %r13d
jne 0x6f0ad
movq %r12, %rdi
callq 0x101a0
callq 0x10690
jmp 0x6ef8c
jmp 0x6f0aa
movq %rax, %r12
jmp 0x6f13a
movq %rax, %r12
leaq 0x10(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rdi
callq 0x3fe06
movq %r12, %rdi
callq 0x106f0