// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rcx, 0x30(%rsp)
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %r12
movq (%rdx), %rsi
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x6ec34
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 0x7a296
callq 0x1e6ee
leaq 0x38(%rsp), %rdi
callq 0x41262
cmpl $-0x8, %eax
jne 0x7a308
movq (%rbp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x6ecf8
movq 0x20(%rsp), %r13
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x411a4
movq (%r13), %r8
movq %rsp, %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq *(%r8)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7a2ea
callq 0x1e6ee
movq %rsp, %rsi
movq %r12, %rdi
movq 0x30(%rsp), %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x42736
movq %rsp, %rdi
jmp 0x7a3f4
movq (%rbp), %rsi
movq %rsp, %rdi
callq 0x6ecf8
movq (%rsp), %rsi
movq (%rsi), %rax
leaq 0x20(%rsp), %rdi
movq %r13, %rdx
movq %r14, %rcx
callq *(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7a337
callq 0x1e6ee
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x38(%rsp), %rsi
callq 0x209ac
movq %rsp, %rdi
movq 0x8(%rdi), %rsi
movq 0x30(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
callq 0x83306
leaq 0x20(%rsp), %rdi
callq 0x41262
cmpl $-0x8, %eax
jne 0x7a3d1
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x411a4
movq %rax, %r13
leaq 0x3d645(%rip), %rsi     # 0xb79d8
movq %rax, %rdi
callq 0x3d498
movl %eax, %ebp
testb %al, %al
je 0x7a3d1
leaq 0x3d630(%rip), %rsi     # 0xb79d8
movq %r13, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x3d502
movq %r12, %rdi
movq %rax, %rsi
movq 0x30(%rsp), %rdx
movq %r15, %rcx
movq %r14, %r8
callq 0x42736
testb %bpl, %bpl
jne 0x7a3e7
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %r12, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x42736
movq %rsp, %rdi
callq 0x20a84
leaq 0x20(%rsp), %rdi
callq 0x404da
leaq 0x38(%rsp), %rdi
callq 0x404da
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7a45e
jmp 0x7a45e
jmp 0x7a45e
movq %rax, %rbx
movq %rsp, %rdi
jmp 0x7a46e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x7a439
jmp 0x7a445
jmp 0x7a445
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7a473
callq 0x1e6ee
jmp 0x7a473
movq %rax, %rbx
jmp 0x7a473
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7a47d
callq 0x1e6ee
jmp 0x7a47d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20a84
leaq 0x20(%rsp), %rdi
callq 0x404da
leaq 0x38(%rsp), %rdi
callq 0x404da
movq %rbx, %rdi
callq 0x106f0