// File: /workspace/github_cpp_makefile_star2_O3/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 0xa6e6f(%rip), %rsi     # 0xbe004
leaq 0xa6e74(%rip), %rdx     # 0xbe010
leaq 0x8(%rsp), %rdi
callq 0x1a0f4
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xa6e5a(%rip), %rsi     # 0xbe011
leaq 0xa6e6b(%rip), %rdx     # 0xbe029
leaq 0x28(%rsp), %rdi
callq 0x1a0f4
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xa6e52(%rip), %rsi     # 0xbe02a
leaq 0xa6e60(%rip), %rdx     # 0xbe03f
leaq 0x48(%rsp), %rdi
callq 0x1a0f4
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x48(%rsp), %rcx
callq 0x1744e
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x17211
callq 0x1a420
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x17220
callq 0x1a420
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1722f
callq 0x1a420
leaq 0x8(%rsp), %rdi
movl $0xcc46a931, %esi       # imm = 0xCC46A931
callq 0x17650
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 0x172a8
leaq 0xe5217(%rip), %rbx     # 0xfc480
leaq 0xa6dd0(%rip), %rsi     # 0xbe040
movl $0x13, %edx
movq %rbx, %rdi
callq 0x866a0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x677f0
movsbl %al, %esi
leaq 0xe51e5(%rip), %rdi     # 0xfc480
callq 0x861a0
movq %rax, %rdi
callq 0x85770
leaq 0xe51d1(%rip), %rdi     # 0xfc480
leaq 0xa6d9e(%rip), %rsi     # 0xbe054
movl $0x5, %edx
callq 0x866a0
movl 0x28(%rsp), %esi
leaq 0xe51b5(%rip), %rdi     # 0xfc480
callq 0x86f70
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x677f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x861a0
movq %rax, %rdi
callq 0x85770
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1730a
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x17998
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x17a69
movq %rdx, %r14
movq %rax, %rbx
jmp 0x1739a
movq %rdx, %r14
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x17354
callq 0x1a420
jmp 0x17354
movq %rdx, %r14
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1736b
callq 0x1a420
jmp 0x1736b
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x173a4
callq 0x1a420
jmp 0x173a4
movq %rdx, %r14
movq %rax, %rbx
jmp 0x173a4
movq %rdx, %r14
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1739a
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x68(%rsp), %rdi
callq 0x17998
cmpl $0x1, %r14d
jne 0x17404
movq %rbx, %rdi
callq 0x1a870
movq %rax, %rbx
leaq 0xe4fa4(%rip), %rdi     # 0xfc360
leaq 0xa6c97(%rip), %rsi     # 0xbe05a
movl $0x7, %edx
callq 0x866a0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe4f83(%rip), %rdi     # 0xfc360
movq %rax, %rsi
callq 0x86bd0
movq %rax, %rdi
callq 0x864b0
callq 0x1a8e0
jmp 0x17314
jmp 0x17327
movq %rax, %rbx
callq 0x1a8e0
movq %rbx, %rdi
callq 0xbb070
jmp 0x17327
nop