// File: /workspace/github_cpp_makefile_star2_O3/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 0xa6e6f(%rip), %rsi     # 0xbe004
leaq 0xa6e74(%rip), %rdx     # 0xbe010
leaq 0x28(%rsp), %rdi
callq 0x1a464
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa6e5a(%rip), %rsi     # 0xbe011
leaq 0xa6e6b(%rip), %rdx     # 0xbe029
leaq 0x8(%rsp), %rdi
callq 0x1a464
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa6e52(%rip), %rsi     # 0xbe02a
leaq 0xa6e60(%rip), %rdx     # 0xbe03f
leaq 0x48(%rsp), %rdi
callq 0x1a464
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x17478
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x17211
callq 0x1a790
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x17220
callq 0x1a790
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x1722f
callq 0x1a790
leaq 0x28(%rsp), %rdi
movl $0x1c3fa8af, %esi       # imm = 0x1C3FA8AF
callq 0x1767a
movq 0x28(%rsp), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testl %eax, %eax
je 0x17293
leaq 0xe510c(%rip), %rbx     # 0xfc360
leaq 0xa6de5(%rip), %rsi     # 0xbe040
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x86a10
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x67b60
movsbl %al, %esi
leaq 0xe50da(%rip), %rdi     # 0xfc360
callq 0x86510
movq %rax, %rdi
callq 0x85ae0
leaq 0x8(%rsp), %rdi
movl $0x8536f915, %esi       # imm = 0x8536F915
callq 0x179c1
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
testl %eax, %eax
je 0x172f7
leaq 0xe50a8(%rip), %rbx     # 0xfc360
leaq 0xa6d9f(%rip), %rsi     # 0xbe05e
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x86a10
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x67b60
movsbl %al, %esi
leaq 0xe5076(%rip), %rdi     # 0xfc360
callq 0x86510
movq %rax, %rdi
callq 0x85ae0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x17307
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x17317
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x17d08
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x17336
movq %rax, %rdi
callq 0x17dd9
jmp 0x173af
movq %rdx, %r14
movq %rax, %rbx
jmp 0x173c5
movq %rdx, %r14
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x17365
callq 0x1a790
jmp 0x17365
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x1737c
callq 0x1a790
jmp 0x1737c
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x173cf
callq 0x1a790
jmp 0x173cf
movq %rdx, %r14
movq %rax, %rbx
jmp 0x173cf
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x173b5
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x173b5
jmp 0x17336
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x173c5
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x17d08
cmpl $0x1, %r14d
jne 0x1742f
movq %rbx, %rdi
callq 0x1abe0
movq %rax, %rbx
leaq 0xe4f79(%rip), %rdi     # 0xfc360
leaq 0xa6c8e(%rip), %rsi     # 0xbe07c
movl $0x7, %edx
callq 0x86a10
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe4f58(%rip), %rdi     # 0xfc360
movq %rax, %rsi
callq 0x86f40
movq %rax, %rdi
callq 0x86820
callq 0x1ac50
jmp 0x17321
jmp 0x17336
movq %rax, %rbx
callq 0x1ac50
movq %rbx, %rdi
callq 0xbb3e0
jmp 0x17336