// File: /workspace/github_cpp_makefile_star2_O1/tdv[P]boss/boss/examples/multy_component/client/main.cpp
// Function: main
int main()
{
  try
  {
    Boss::Loader Ldr("Registry.xml", "./" MAKE_MODULE_NAME("service_registry"),
                     "./" MAKE_MODULE_NAME("class_factory"));
    auto Obj1 = Boss::CreateObject<MyNs::IFace1>(MyNs::Service::Id::Face1);
    if (Obj1->Method() != Boss::Status::Ok)
      std::cerr << "Failed to call IFace1::Method" << std::endl;
    auto Obj2 = Boss::CreateObject<MyNs::IFace2>(MyNs::Service::Id::Face2);
    if (Obj2->Method() != Boss::Status::Ok)
      std::cerr << "Failed to call IFace2::Method" << std::endl;
  }
  catch (std::exception const &e)
  {
    std::cerr << "Error: " << e.what() << std::endl;
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x90, %rsp
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa6e4f(%rip), %rsi     # 0xbf004
leaq 0xa6e54(%rip), %rdx     # 0xbf010
leaq 0x28(%rsp), %rdi
callq 0x1b6cc
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa6e3a(%rip), %rsi     # 0xbf011
leaq 0xa6e4b(%rip), %rdx     # 0xbf029
leaq 0x8(%rsp), %rdi
callq 0x1b6cc
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa6e32(%rip), %rsi     # 0xbf02a
leaq 0xa6e40(%rip), %rdx     # 0xbf03f
leaq 0x48(%rsp), %rdi
callq 0x1b6cc
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x184b0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x18231
callq 0x1b9f0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x18240
callq 0x1b9f0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1824f
callq 0x1b9f0
leaq 0x28(%rsp), %rdi
movl $0x1c3fa8af, %esi       # imm = 0x1C3FA8AF
callq 0x186b7
movq 0x28(%rsp), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testl %eax, %eax
je 0x182b3
leaq 0xe60ec(%rip), %rbx     # 0xfe360
leaq 0xa6dc5(%rip), %rsi     # 0xbf040
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x87c70
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x68dc0
movsbl %al, %esi
leaq 0xe60ba(%rip), %rdi     # 0xfe360
callq 0x87770
movq %rax, %rdi
callq 0x86d40
leaq 0x8(%rsp), %rdi
movl $0x8536f915, %esi       # imm = 0x8536F915
callq 0x18a11
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testl %eax, %eax
je 0x18317
leaq 0xe6088(%rip), %rbx     # 0xfe360
leaq 0xa6d7f(%rip), %rsi     # 0xbf05e
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x87c70
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x68dc0
movsbl %al, %esi
leaq 0xe6056(%rip), %rdi     # 0xfe360
callq 0x87770
movq %rax, %rdi
callq 0x86d40
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x18327
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x18337
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x18d6c
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x18356
movq %rax, %rdi
callq 0x18e3d
jmp 0x183de
movq %rdx, %r14
movq %rax, %rbx
jmp 0x183fd
movq %rdx, %r14
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x18388
callq 0x1b9f0
jmp 0x18388
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1839f
callq 0x1b9f0
jmp 0x1839f
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x18407
callq 0x1b9f0
jmp 0x18407
movq %rdx, %r14
movq %rax, %rbx
jmp 0x18407
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x183ce
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x183e4
jmp 0x18356
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x183f4
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x28(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x18d6c
cmpl $0x1, %r14d
jne 0x18467
movq %rbx, %rdi
callq 0x1be40
movq %rax, %rbx
leaq 0xe5f41(%rip), %rdi     # 0xfe360
leaq 0xa6c56(%rip), %rsi     # 0xbf07c
movl $0x7, %edx
callq 0x87c70
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe5f20(%rip), %rdi     # 0xfe360
movq %rax, %rsi
callq 0x881a0
movq %rax, %rdi
callq 0x87a80
callq 0x1beb0
jmp 0x18341
jmp 0x18356
movq %rax, %rbx
callq 0x1beb0
movq %rbx, %rdi
callq 0xbc640
jmp 0x18356