// File: 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
movq %rsp, %rbp
subq $0x1f0, %rsp            # imm = 0x1F0
movq %rdi, -0x140(%rbp)
movq %rdi, %rax
movq %rax, -0x148(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdx
movq %rdx, -0x138(%rbp)
movb $0x0, -0x21(%rbp)
movq -0x18(%rbp), %rdi
movq %rdx, %rsi
addq $0x90, %rsi
addq $0x8, %rdx
callq 0x7de10
movq -0x140(%rbp), %rdi
movq %rax, %rsi
callq 0x86d80
movq -0x138(%rbp), %rdi
addq $0x98, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x38(%rbp), %rdi
callq *%rax
jmp 0x129b5d
movq -0x18(%rbp), %rdi
leaq 0xbc008(%rip), %rsi     # 0x1e5b70
callq 0x7dd00
movb %al, -0x149(%rbp)
jmp 0x129b75
movb -0x149(%rbp), %al
testb $0x1, %al
jne 0x129b84
jmp 0x12a07f
leaq -0x38(%rbp), %rdi
callq 0x883e0
movl %eax, -0x150(%rbp)
jmp 0x129b95
movl -0x150(%rbp), %eax
cmpl $-0x8, %eax
jne 0x12a07f
xorl %eax, %eax
movl %eax, %esi
leaq -0x58(%rbp), %rdi
callq 0x8be00
movq -0x138(%rbp), %rdx
movq -0x18(%rbp), %rdi
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq 0xbbfa5(%rip), %rsi     # 0x1e5b70
callq 0x7ddd0
movq %rax, -0x158(%rbp)
jmp 0x129bd9
movq -0x140(%rbp), %rsi
leaq -0xb0(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x86d80
jmp 0x129bf5
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x86d80
jmp 0x129c0e
leaq -0xb0(%rbp), %rax
movq %rax, -0x90(%rbp)
movq $0x2, -0x88(%rbp)
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x2e2f0
movq -0x160(%rbp), %rcx
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x8c330
jmp 0x129c5a
movq -0x158(%rbp), %rsi
movq -0x138(%rbp), %rcx
addq $0x8, %rcx
movq -0x20(%rbp), %r8
leaq -0x68(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x88920
jmp 0x129c7f
leaq -0x58(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x8be20
leaq -0x68(%rbp), %rdi
callq 0x85eb0
leaq -0x80(%rbp), %rdi
callq 0x2cf10
leaq -0xb9(%rbp), %rdi
callq 0x304d0
leaq -0xb0(%rbp), %rax
movq %rax, -0x170(%rbp)
addq $0x20, %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x178(%rbp)
callq 0x86dc0
movq -0x170(%rbp), %rcx
movq -0x178(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x168(%rbp)
jne 0x129cc3
jmp 0x129e29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x12a0e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x12a0bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x129e00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movq -0xb8(%rbp), %rax
leaq -0xb0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x180(%rbp)
je 0x129d83
movq -0x180(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x188(%rbp)
callq 0x86dc0
movq -0x188(%rbp), %rax
leaq -0xb0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x180(%rbp)
jne 0x129d52
jmp 0x129e00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x129da8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x2cf10
leaq -0xb9(%rbp), %rdi
callq 0x304d0
leaq -0xb0(%rbp), %rax
movq %rax, -0x198(%rbp)
addq $0x20, %rax
movq %rax, -0x190(%rbp)
movq -0x190(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x86dc0
movq -0x198(%rbp), %rcx
movq -0x1a0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x190(%rbp)
jne 0x129dcd
jmp 0x129e00
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x12a074
movq -0x40(%rbp), %rdi
callq 0x11220
movq %rax, -0xc8(%rbp)
callq 0x11910
jmp 0x129e27
jmp 0x129e29
leaq -0x58(%rbp), %rdi
callq 0x8c3b0
testb $0x1, %al
jne 0x129e3b
jmp 0x12a053
movq -0x140(%rbp), %rsi
leaq -0x120(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x86d80
jmp 0x129e57
leaq -0x110(%rbp), %rdi
movq %rdi, -0x128(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x86d80
jmp 0x129e70
leaq -0x120(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x2, -0xf8(%rbp)
leaq -0x129(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x2e2f0
movq -0x1a8(%rbp), %rcx
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
leaq -0xf0(%rbp), %rdi
callq 0x8c330
jmp 0x129ebf
movq -0x138(%rbp), %rcx
addq $0x8, %rcx
movq -0x20(%rbp), %r8
leaq -0xd8(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x37a30
jmp 0x129ee7
leaq -0xd8(%rbp), %rdi
callq 0x86dc0
leaq -0xf0(%rbp), %rdi
callq 0x2cf10
leaq -0x129(%rbp), %rdi
callq 0x304d0
leaq -0x120(%rbp), %rax
movq %rax, -0x1b8(%rbp)
addq $0x20, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x86dc0
movq -0x1b8(%rbp), %rcx
movq -0x1c0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1b0(%rbp)
jne 0x129f24
movb $0x1, -0x21(%rbp)
movl $0x1, -0x130(%rbp)
jmp 0x12a05d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x12a074
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movq -0x128(%rbp), %rax
leaq -0x120(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x1c8(%rbp)
je 0x129fd0
movq -0x1c8(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x1d0(%rbp)
callq 0x86dc0
movq -0x1d0(%rbp), %rax
leaq -0x120(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x1c8(%rbp)
jne 0x129f9f
jmp 0x12a074
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x129ffb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x2cf10
leaq -0x129(%rbp), %rdi
callq 0x304d0
leaq -0x120(%rbp), %rax
movq %rax, -0x1e0(%rbp)
addq $0x20, %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x86dc0
movq -0x1e0(%rbp), %rcx
movq -0x1e8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1d8(%rbp)
jne 0x12a020
jmp 0x12a074
movl $0x0, -0x130(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x85eb0
movl -0x130(%rbp), %eax
testl %eax, %eax
jne 0x12a0ae
jmp 0x12a072
jmp 0x12a07f
leaq -0x58(%rbp), %rdi
callq 0x85eb0
jmp 0x12a0bf
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x38(%rbp), %rsi
callq 0x870e0
jmp 0x12a0a0
movb $0x1, -0x21(%rbp)
movl $0x1, -0x130(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x86dc0
testb $0x1, -0x21(%rbp)
jne 0x12a0d6
jmp 0x12a0ca
leaq -0x38(%rbp), %rdi
callq 0x86dc0
jmp 0x12a0e6
movq -0x140(%rbp), %rdi
callq 0x86dc0
movq -0x148(%rbp), %rax
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbp
retq
movq -0x140(%rbp), %rdi
callq 0x86dc0
movq -0x40(%rbp), %rdi
callq 0x119c0
nopl (%rax,%rax)