// File: /workspace/github_cpp_makefile_star2_O1/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 0x18ad8
movq (%r13), %rax
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rcx, (%rbx)
leaq 0x18(%rsp), %rsi
movq %r14, (%rsi)
movq %r12, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x18bc0
leaq 0x8(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x18de4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x184e6
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x8(%rsp), %rdi
movq $0x0, 0x8(%rdi)
callq 0x19e2c
leaq 0x18(%rsp), %rsi
movq %r15, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x18e62
leaq 0x18(%rbx), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x19048
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1852f
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x8(%rsp), %rdi
movq $0x0, 0x8(%rdi)
callq 0x19e2c
movq (%rbx), %r12
movq $0x0, 0x8(%rsp)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x18566
movq (%rdi), %rax
leaq 0x8(%rsp), %rdx
movl $0x2cc77d66, %esi       # imm = 0x2CC77D66
callq *0x20(%rax)
movq 0x8(%rsp), %rdx
movq (%r12), %rax
movq %r12, %rdi
movl $0x16d1a76d, %esi       # imm = 0x16D1A76D
callq *0x30(%rax)
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1858c
movq (%rdi), %rax
callq *0x18(%rax)
testl %ebp, %ebp
jne 0x185b6
movq (%rbx), %r12
callq 0x18166
leaq 0xe3f71(%rip), %rdi     # 0xfc510
movq %r12, %rsi
callq 0x1843a
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b950
movq %rax, %r13
leaq 0xa6a98(%rip), %rsi     # 0xbf062
movq %rax, %rdi
callq 0x2ef10
leaq 0xdd41f(%rip), %rax     # 0xf59f8
movq %rax, (%r13)
leaq 0xdcf9c(%rip), %rsi     # 0xf5580
leaq 0xcfa5(%rip), %rdx      # 0x25590
movq %r13, %rdi
callq 0x1c9a0
movq %rax, %r12
movq %r13, %rdi
callq 0x1b9b0
jmp 0x1865d
jmp 0x1863e
jmp 0x1865a
jmp 0x1863e
jmp 0x1863e
movq %rax, %r12
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1861b
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x1865d
jmp 0x1863e
jmp 0x1863e
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x19096
jmp 0x18665
movq %rax, %r12
jmp 0x18665
movq %rax, %rdi
callq 0x18aa9
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x18e32
jmp 0x1866d
movq %rax, %r12
jmp 0x1866d
movq %rax, %r12
movq %r15, %rdi
callq 0x190c6
movq %r14, %rdi
callq 0x190f6
movq %rbx, %rdi
callq 0x18ab4
movq %r12, %rdi
callq 0xbc2b0