// File: /workspace/github_cpp_makefile_star2_O2/tdv[P]boss/boss/include/plugin/loader.h
// Function: Boss::Loader::Loader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Loader(std::string const &registryFilePath,
           std::string const &srvRegModulePath,
           std::string const &clsFactoryModulePath)
      : Locator(Base<ServiceLocator>::Create())
      , SrvRegistry([&] ()
          {
            auto SrvRegModule = std::move(ModuleHolder(std::move(DllHolder(srvRegModulePath))));
            auto SrvReg = SrvRegModule.CreateObject<IServiceRegistry>(Service::Id::ServiceRegistry);
            RefObjQIPtr<ISerializable> Serializable(SrvReg);
            if (!Serializable.Get())
              throw LoaderException("Failed to get ISerializable interface from Registry object.");
            if (Serializable->Load(Base<IFileStream>::Create(registryFilePath).Get()) != Status::Ok)
              throw LoaderException("Failed to load Registry.");
            return std::move(std::make_pair(std::move(SrvRegModule), std::move(SrvReg)));
          } ())
      , ClsFactory([&] ()
          {
            auto ClassFactoryModule = std::move(ModuleHolder(std::move(DllHolder(clsFactoryModulePath))));
            auto NewClsFactory = ClassFactoryModule.CreateObject<IClassFactory>(Service::Id::ClassFactory);
            RefObjQIPtr<IClassFactoryCtrl> Ctrl(NewClsFactory);
            if (!Ctrl.Get())
              throw LoaderException("Failed to get ICalssFactoryCtrl interface from ClassFactory object.");
            if (Ctrl->SetRegistry(SrvRegistry.second.Get()) != Status::Ok)
              throw LoaderException("Failed to set Registry into ClassFactory.");
            ClassFactoryModule.SetServiceLocator(Locator.Get());
            return std::move(std::make_pair(std::move(ClassFactoryModule), std::move(NewClsFactory)));
          } ())
    {
      if (Locator->AddService(Service::Locator::Id::ClassFactoryService,
          RefObjQIPtr<IBase>(ClsFactory.second).Get()) != Status::Ok)
      {
        throw LoaderException("Failed to put ClassFactory into ServiceLocator.");
      }
      Private::SetServiceLocator(Locator.Get());
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x177f8
movq (%r13), %rax
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rcx, (%rbx)
andq $0x0, (%r13)
movq %r13, %rdi
callq 0x1786a
leaq 0x18(%rsp), %rsi
movq %r14, (%rsi)
movq %r12, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x1787a
leaq 0x8(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x17a24
leaq 0x8(%rsp), %rdi
callq 0x17a5e
leaq 0x18(%rsp), %rsi
movq %r15, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x17a74
leaq 0x18(%rbx), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x17be6
leaq 0x8(%rsp), %rdi
callq 0x17c20
movq (%rbx), %r12
leaq 0x20(%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x17c36
movq 0x8(%rsp), %rdx
movq (%r12), %rax
movq %r12, %rdi
movl $0x16d1a76d, %esi       # imm = 0x16D1A76D
callq *0x30(%rax)
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
callq 0x17c50
testl %ebp, %ebp
jne 0x1744a
movq (%rbx), %rdi
callq 0x17132
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x1a4f0
movq %rax, %r13
leaq 0xa6c06(%rip), %rsi     # 0xbe062
movq %rax, %rdi
callq 0x17c60
leaq 0xde415(%rip), %rsi     # 0xf5880
leaq 0xccbe(%rip), %rdx      # 0x24130
movq %r13, %rdi
callq 0x1b540
movq %rax, %r12
movq %r13, %rdi
callq 0x1a550
jmp 0x174c3
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x17c50
jmp 0x174c3
jmp 0x174c0
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x17c20
jmp 0x174cb
movq %rax, %r12
jmp 0x174cb
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x17a5e
jmp 0x174d3
movq %rax, %r12
jmp 0x174d3
movq %rax, %r12
movq %r15, %rdi
callq 0x17c76
movq %r14, %rdi
callq 0x17c8c
movq %rbx, %rdi
callq 0x177cc
movq %r12, %rdi
callq 0xbaf20