// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::callWithInner(object_t const*, std::shared_ptr<Instruction const> const&, std::vector<symbol_t, std::allocator<symbol_t>> const&, token_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&)
const symbol_t operation::callWithInner(const object_t *scope, const ptr_instruction_t &a, const std::vector<symbol_t> &args, const token_t *token, trace_t &stack_trace)
{
	const symbol_t evalA = reinterpret_cast<const InnerI *>(a.get())->getA()->evaluate(scope, stack_trace);
	if (evalA.getValueType() == value_type_enum::OBJECT)
	{
		const symbol_t evalB = reinterpret_cast<const InnerI *>(a.get())->getB()->evaluate(evalA.getObject(token, stack_trace), stack_trace);
		return evalB.call(args, token, stack_trace);
	}
	else
	{
		const symbol_t evalB = reinterpret_cast<const InnerI *>(a.get())->getB()->evaluate(scope, stack_trace);
		std::vector<symbol_t> params;
		params.push_back(evalA);
		params.insert(params.end(), std::make_move_iterator(args.begin()), std::make_move_iterator(args.end()));

		if (evalB.getValueType() == value_type_enum::OBJECT)
		{
			const auto &o = evalB.getObject(token, stack_trace);
			if (o->hasValue(parser_t::HASH_CALL))
				return o->getVariable(parser_t::HASH_CALL, token, stack_trace).call(args, token, stack_trace);
		}

		return evalB.call(params, token, stack_trace);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, %r14
movq %r8, %r12
movq %rcx, 0x30(%rsp)
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %r15
movq (%rdx), %rsi
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x6dcc0
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x38(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x79135
callq 0x1e5bc
leaq 0x38(%rsp), %rdi
callq 0x40b5a
cmpl $-0x8, %eax
jne 0x791ad
movq (%rbp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x6dd84
movq 0x20(%rsp), %r13
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x40a9e
movq %r15, %rbx
movq (%r13), %r8
movq %rsp, %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq *(%r8)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
movq 0x30(%rsp), %r15
je 0x79191
callq 0x1e5bc
movq %rsp, %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x41ffe
movq %rsp, %rdi
jmp 0x79295
movq (%rbp), %rsi
movq %rsp, %rdi
callq 0x6dd84
movq (%rsp), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
movq %r15, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
movq 0x30(%rsp), %r15
je 0x791e4
callq 0x1e5bc
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x38(%rsp), %rsi
callq 0x2087a
movq %rsp, %rdi
movq 0x8(%rdi), %rsi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
callq 0x81d04
leaq 0x20(%rsp), %rdi
callq 0x40b5a
cmpl $-0x8, %eax
jne 0x79272
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x40a9e
movq %rax, %r13
leaq 0x3c79d(%rip), %rsi     # 0xb59d8
movq %rax, %rdi
callq 0x3ce6c
testb %al, %al
je 0x79272
leaq 0x3c78a(%rip), %rsi     # 0xb59d8
movq %r13, %rdi
movq %r12, %rdx
movq %r14, %rcx
callq 0x3ced2
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x41ffe
jmp 0x79288
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
movq %r12, %rcx
movq %r14, %r8
callq 0x41ffe
movq %rsp, %rdi
callq 0x20952
leaq 0x20(%rsp), %rdi
callq 0x3fe06
leaq 0x38(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x792ff
jmp 0x792ff
jmp 0x792ff
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x7930f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x792da
jmp 0x792e6
jmp 0x792e6
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x79314
callq 0x1e5bc
jmp 0x79314
movq %rax, %rbx
jmp 0x79314
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7931e
callq 0x1e5bc
jmp 0x7931e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20952
leaq 0x20(%rsp), %rdi
callq 0x3fe06
leaq 0x38(%rsp), %rdi
callq 0x3fe06
movq %rbx, %rdi
callq 0x106f0