// File: /workspace/github_cpp_makefile_star2_O1/tdv[P]boss/boss/examples/simple_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 Obj = Boss::CreateObject<MyNs::ISum>(MyNs::Service::Id::Sum);
    int Res = 0;
    if (Obj->CalcSum(10, 20, &Res))
      std::cout << "Failed to calc sum." << std::endl;
    std::cout << "Sum: " << Res << 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 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa6e4f(%rip), %rsi     # 0xbf004
leaq 0xa6e54(%rip), %rdx     # 0xbf010
leaq 0x8(%rsp), %rdi
callq 0x1b338
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa6e3a(%rip), %rsi     # 0xbf011
leaq 0xa6e4b(%rip), %rdx     # 0xbf029
leaq 0x28(%rsp), %rdi
callq 0x1b338
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa6e32(%rip), %rsi     # 0xbf02a
leaq 0xa6e40(%rip), %rdx     # 0xbf03f
leaq 0x48(%rsp), %rdi
callq 0x1b338
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x18476
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x18231
callq 0x1b660
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x18240
callq 0x1b660
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1824f
callq 0x1b660
leaq 0x8(%rsp), %rdi
movl $0xcc46a931, %esi       # imm = 0xCC46A931
callq 0x1867d
leaq 0x28(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
movl $0xa, %esi
movl $0x14, %edx
callq *0x28(%rax)
testl %eax, %eax
je 0x182c8
leaq 0xe51f7(%rip), %rbx     # 0xfd480
leaq 0xa6db0(%rip), %rsi     # 0xbf040
movl $0x13, %edx
movq %rbx, %rdi
callq 0x878e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x68a30
movsbl %al, %esi
leaq 0xe51c5(%rip), %rdi     # 0xfd480
callq 0x873e0
movq %rax, %rdi
callq 0x869b0
leaq 0xe51b1(%rip), %rdi     # 0xfd480
leaq 0xa6d7e(%rip), %rsi     # 0xbf054
movl $0x5, %edx
callq 0x878e0
movl 0x28(%rsp), %esi
leaq 0xe5195(%rip), %rdi     # 0xfd480
callq 0x881b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x68a30
movsbl %al, %esi
movq %rbx, %rdi
callq 0x873e0
movq %rax, %rdi
callq 0x869b0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1832a
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x189d8
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x18aa9
movq %rdx, %r14
movq %rax, %rbx
jmp 0x183c3
movq %rdx, %r14
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x18374
callq 0x1b660
jmp 0x18374
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1838b
callq 0x1b660
jmp 0x1838b
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x183cd
callq 0x1b660
jmp 0x183cd
movq %rdx, %r14
movq %rax, %rbx
jmp 0x183cd
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x183ba
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x189d8
cmpl $0x1, %r14d
jne 0x1842d
movq %rbx, %rdi
callq 0x1bab0
movq %rax, %rbx
leaq 0xe4f7b(%rip), %rdi     # 0xfd360
leaq 0xa6c6e(%rip), %rsi     # 0xbf05a
movl $0x7, %edx
callq 0x878e0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe4f5a(%rip), %rdi     # 0xfd360
movq %rax, %rsi
callq 0x87e10
movq %rax, %rdi
callq 0x876f0
callq 0x1bb20
jmp 0x18334
jmp 0x18347
movq %rax, %rbx
callq 0x1bb20
movq %rbx, %rdi
callq 0xbc2b0
jmp 0x18347