// File: /workspace/github_cpp_makefile_star2_O2/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: ClassI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t ClassI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	ptr_instruction_t nbody = body;
	object_t *ex = NULL;
	std::vector<aug_type_t> extensions;
	if (extends)
	{
		const symbol_t e = extends->evaluate(scope, stack_trace);
		if (e.getValueType() == value_type_enum::TYPE_NAME)
			extensions.push_back(e.getTypeName(&token, stack_trace).getBase());
		else
		{
			ex = e.getObject(&token, stack_trace);
			if (ex->getType() == scope_type_enum::SCOPE_STATIC)
				throw rossa_error_t(_FAILURE_EXTEND_, token, stack_trace);
			const ptr_instruction_t eb = ex->getBody();
			std::vector<ptr_instruction_t> temp;
			temp.push_back(body);
			temp.push_back(eb);
			nbody = std::make_shared<ScopeI>(temp, token);
		}
	}
	object_t o(scope, type, nbody, key, ex, extensions);
	if (type == scope_type_enum::SCOPE_STATIC)
		nbody->evaluate(&o, stack_trace);
	return scope->createVariable(key, symbol_t::Object(o), &token);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa0(%rsi), %rbp
leaq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x1f8b2
andq $0x0, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0xb0(%r14), %rsi
testq %rsi, %rsi
movq %r12, 0x68(%rsp)
je 0x67ac3
movq (%rsi), %rax
leaq 0x30(%rsp), %rdi
movq %r15, %rdx
movq %r12, %rcx
callq *(%rax)
leaq 0x30(%rsp), %rdi
callq 0x39ca6
cmpl $-0x9, %eax
jne 0x67ace
leaq 0x8(%r14), %rdx
leaq 0x70(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r12, %rcx
callq 0x39d52
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x371da
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x36826
leaq 0x10(%rsp), %rdi
callq 0x2fa2a
leaq 0x70(%rsp), %rdi
callq 0x2e9f6
xorl %r13d, %r13d
jmp 0x67b76
movq %rbx, %r12
xorl %r13d, %r13d
jmp 0x67b83
leaq 0x8(%r14), %rsi
leaq 0x30(%rsp), %rdi
movq %rsi, 0x28(%rsp)
movq %r12, %rdx
callq 0x39c02
movq %rax, %r13
movq %rax, %rdi
callq 0x36728
cmpl $0x2, %eax
je 0x67c51
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x3672e
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq %rbp, %rsi
callq 0x6bf78
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x6bf78
leaq 0xb8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x58a01
leaq 0x40(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x6d61e
leaq 0xc0(%rsp), %rdi
callq 0x1d786
leaq 0x70(%rsp), %rdi
callq 0x58a44
leaq 0x18(%rsp), %rdi
callq 0x1d786
movq %rbx, %r12
leaq 0x30(%rsp), %rdi
callq 0x39102
leaq 0x98(%r14), %rbx
leaq 0x90(%r14), %rbp
leaq 0x50(%rsp), %rax
movq %rax, (%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x40(%rsp), %rcx
movq %r15, %rsi
movq %rbx, %rdx
movq %rbp, %r8
movq %r13, %r9
callq 0x362ae
cmpl $0x2, (%rbx)
jne 0x67be3
movq 0x40(%rsp), %rsi
movq (%rsi), %rax
leaq 0xc8(%rsp), %rdi
leaq 0x70(%rsp), %rdx
movq 0x68(%rsp), %rcx
callq *(%rax)
leaq 0xc8(%rsp), %rdi
callq 0x39102
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x390aa
addq $0x8, %r14
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rcx
callq 0x366fc
movq %r12, %rdi
movq %rax, %rsi
callq 0x390f0
leaq 0x10(%rsp), %rdi
callq 0x39102
leaq 0x70(%rsp), %rdi
callq 0x363f2
leaq 0x50(%rsp), %rdi
callq 0x2e99e
leaq 0x48(%rsp), %rdi
callq 0x1d786
movq %r12, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101f0
movq %rax, %r14
leaq 0x12af6(%rip), %rsi     # 0x7a75b
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x1c814
movb $0x1, %bpl
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
movq 0x28(%rsp), %rdx
movq %r12, %rcx
callq 0x3ebb8
xorl %ebp, %ebp
leaq 0x4a00b(%rip), %rsi     # 0xb1ca0
leaq -0x3882a(%rip), %rdx    # 0x2f472
movq %r14, %rdi
callq 0x106c0
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x101d0
testb %bpl, %bpl
jne 0x67cbb
jmp 0x67d13
movq %rax, %rbx
movq %r14, %rdi
callq 0x102e0
jmp 0x67d13
jmp 0x67ceb
jmp 0x67d10
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2fa2a
jmp 0x67cdb
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2e9f6
jmp 0x67d13
jmp 0x67d10
jmp 0x67d06
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x58a44
leaq 0x18(%rsp), %rdi
callq 0x1d786
jmp 0x67d13
jmp 0x67d0b
movq %rax, %rbx
jmp 0x67d2c
movq %rax, %rbx
jmp 0x67d36
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x39102
jmp 0x67d36
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x39102
leaq 0x70(%rsp), %rdi
callq 0x363f2
leaq 0x50(%rsp), %rdi
callq 0x2e99e
leaq 0x48(%rsp), %rdi
callq 0x1d786
movq %rbx, %rdi
callq 0x106f0