// File: Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: ExternI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t ExternI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	auto evalA = a->evaluate(scope, stack_trace);
	std::vector<mediator_t> mv;
	for (auto &e : evalA.getVector(&token, stack_trace))
	{
		mv.push_back(global::convertToMediator(e, &token, stack_trace));
	}
	try
	{
		return global::convertToSymbol(f(mv));
	}
	catch (const library_error_t &e)
	{
		throw rossa_error_t(e.what(), token, stack_trace);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x100(%rbp)
movq %rdi, %rax
movq %rax, -0xf8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
addq $0x90, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x30(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq *%rax
leaq -0x48(%rbp), %rdi
callq 0xca0d0
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
callq 0x87fe0
movq %rax, -0xe0(%rbp)
jmp 0x12d12e
movq -0xe0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x24ba0
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rdi
callq 0x24bd0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x24c00
testb $0x1, %al
jne 0x12d169
jmp 0x12d1ee
leaq -0x68(%rbp), %rdi
callq 0x24c40
movq -0xf0(%rbp), %rdx
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rsi
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x90(%rbp), %rdi
callq 0xc8b50
jmp 0x12d197
leaq -0x48(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xca0f0
jmp 0x12d1a9
leaq -0x90(%rbp), %rdi
callq 0xca160
leaq -0x68(%rbp), %rdi
callq 0x24e20
jmp 0x12d153
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x12d38b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xca160
jmp 0x12d38b
movq -0xf0(%rbp), %rax
movq 0xe0(%rax), %rax
leaq -0xa8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq *%rax
jmp 0x12d20b
movq -0x100(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xc9430
jmp 0x12d220
leaq -0xa8(%rbp), %rdi
callq 0xca160
leaq -0x48(%rbp), %rdi
callq 0xca240
leaq -0x30(%rbp), %rdi
callq 0x86dc0
movq -0xf8(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x12d274
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0xca160
movl -0x5c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x12d38b
movq -0x58(%rbp), %rdi
callq 0x11220
movq %rax, -0xb0(%rbp)
movb $0x1, -0xd2(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x118(%rbp)
movq -0xb0(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq %rax, -0x110(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x119d0
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
callq 0x24740
jmp 0x12d2f2
movq -0x118(%rbp), %rdi
movq -0xf0(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0xd0(%rbp), %rsi
callq 0x9c360
jmp 0x12d316
movq -0x118(%rbp), %rdi
movb $0x0, -0xd2(%rbp)
leaq 0xb3955(%rip), %rsi     # 0x1e0c80
leaq -0xd2992(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x12d3ae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x12d35f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xd0(%rbp), %rdi
callq 0x11360
leaq -0xd1(%rbp), %rdi
callq 0x11600
testb $0x1, -0xd2(%rbp)
jne 0x12d376
jmp 0x12d382
movq -0x118(%rbp), %rdi
callq 0x11420
callq 0x11910
jmp 0x12d389
jmp 0x12d38b
leaq -0x48(%rbp), %rdi
callq 0xca240
leaq -0x30(%rbp), %rdi
callq 0x86dc0
movq -0x58(%rbp), %rdi
callq 0x119c0
movq %rax, %rdi
callq 0x24b70
nop