// File: /workspace/github_cpp_makefile_star2_O3/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 0x17a98
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 0x17b4c
leaq 0x8(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x17d50
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x174be
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x8(%rsp), %rdi
movq $0x0, 0x8(%rdi)
callq 0x18c80
leaq 0x18(%rsp), %rsi
movq %r15, (%rsi)
movq %rbx, 0x8(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x17dce
leaq 0x18(%rbx), %r15
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x17fa0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x17507
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x8(%rsp), %rdi
movq $0x0, 0x8(%rdi)
callq 0x18c80
movq (%rbx), %r12
movq $0x0, 0x8(%rsp)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x17545
movq (%rdi), %rax
leaq 0x8(%rsp), %rdx
movl $0x2cc77d66, %esi       # imm = 0x2CC77D66
callq *0x20(%rax)
movq 0x8(%rsp), %rdx
jmp 0x17547
xorl %edx, %edx
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 0x17568
movq (%rdi), %rax
callq *0x18(%rax)
testl %ebp, %ebp
jne 0x17592
movq (%rbx), %r12
callq 0x17146
leaq 0xe3f95(%rip), %rdi     # 0xfb510
movq %r12, %rsi
callq 0x17412
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a710
movq %rax, %r13
leaq 0xa6abc(%rip), %rsi     # 0xbe062
movq %rax, %rdi
callq 0x2dcd0
leaq 0xdd603(%rip), %rax     # 0xf4bb8
movq %rax, (%r13)
leaq 0xdd2c0(%rip), %rsi     # 0xf4880
leaq 0xcd89(%rip), %rdx      # 0x24350
movq %r13, %rdi
callq 0x1b760
movq %rax, %r12
movq %r13, %rdi
callq 0x1a770
jmp 0x17630
jmp 0x17611
jmp 0x1762d
jmp 0x17611
jmp 0x17611
movq %rax, %r12
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x17630
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x17630
jmp 0x17611
jmp 0x17611
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x17fee
jmp 0x17638
movq %rax, %r12
jmp 0x17638
movq %rax, %rdi
callq 0x17a69
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x17d9e
jmp 0x17640
movq %rax, %r12
jmp 0x17640
movq %rax, %r12
movq %r15, %rdi
callq 0x1801e
movq %r14, %rdi
callq 0x1804e
movq %rbx, %rdi
callq 0x17a74
movq %r12, %rdi
callq 0xbb070