// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %r12
movq (%rdx), %rsi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x6470e
movq (%rbx), %rsi
movq (%rsi), %rax
leaq 0x38(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x18(%rsp), %rdi
callq 0x1d786
leaq 0x38(%rsp), %rdi
callq 0x39ca6
cmpl $-0x8, %eax
jne 0x6dcce
movq (%rbp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x64798
movq 0x28(%rsp), %r13
leaq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x39c02
movq (%r13), %r8
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq *(%r8)
leaq 0x30(%rsp), %rdi
callq 0x1d786
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
movq %r14, %r8
callq 0x3aa8c
leaq 0x10(%rsp), %rdi
jmp 0x6ddbd
movq (%rbp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x64798
movq 0x10(%rsp), %rsi
movq (%rsi), %rax
leaq 0x28(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x1d786
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%rbx)
andq $0x0, 0x8(%rbx)
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x1f00a
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rsi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
callq 0x758a2
leaq 0x28(%rsp), %rdi
callq 0x39ca6
cmpl $-0x8, %eax
jne 0x6dd94
leaq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x39c02
movq %rax, %r13
leaq 0x48c8f(%rip), %rsi     # 0xb69e8
movq %rax, %rdi
callq 0x366b2
testb %al, %al
je 0x6dd94
leaq 0x48c7c(%rip), %rsi     # 0xb69e8
movq %r13, %rdi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x366ec
movq %r12, %rdi
movq %rax, %rsi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
movq %r14, %r8
callq 0x3aa8c
jmp 0x6ddae
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
movq 0x8(%rsp), %rcx
movq %r14, %r8
callq 0x3aa8c
leaq 0x10(%rsp), %rdi
callq 0x1f0b8
leaq 0x28(%rsp), %rdi
callq 0x39102
leaq 0x38(%rsp), %rdi
callq 0x39102
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6de1f
jmp 0x6de1f
jmp 0x6de1f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x6de31
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
jmp 0x6de04
jmp 0x6de0b
jmp 0x6de0b
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x1d786
jmp 0x6de36
movq %rax, %rbx
jmp 0x6de36
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1d786
jmp 0x6de40
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1f0b8
leaq 0x28(%rsp), %rdi
callq 0x39102
leaq 0x38(%rsp), %rdi
callq 0x39102
movq %rbx, %rdi
callq 0x106f0