// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/examples/string_enum/main.cpp
// Function: main
int main()
{
  try
  {
    Boss::RefObjPtr<MyNs::ISimpleObject> Obj = Boss::Base<MyNs::SimpleObject>::Create();
    Boss::RefObjPtr<Boss::IEnum> Strings;
    if (Obj->GetStrings(Strings.GetPPtr()) != Boss::Status::Ok)
    {
      std::cerr << "failed to get strings." << std::endl;
      return -1;
    }
    Boss::EnumHelper<Boss::IString> Enum(Strings);
    for (Boss::RefObjPtr<Boss::IString> i = Enum.First() ; i.Get() ; i = Enum.Next())
      std::cout << Boss::StringHelper(i).GetString<Boss::IString::AnsiString>() << std::endl;
  }
  catch (std::exception const &e)
  {
    std::cerr << "Error: " << e.what() << std::endl;
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
leaq 0x38(%rsp), %rdi
callq 0x17442
movq 0x38(%rsp), %rax
leaq 0x8(%rax), %r14
testq %rax, %rax
cmoveq %rax, %r14
leaq 0x28(%rsp), %rsi
movq $0x0, (%rsi)
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movl %eax, %ebp
testl %eax, %eax
je 0x17116
leaq 0xe3273(%rip), %rbx     # 0xfa340
leaq 0xa5f30(%rip), %rsi     # 0xbd004
movl $0x16, %edx
movq %rbx, %rdi
callq 0x85750
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x668a0
movsbl %al, %esi
leaq 0xe3241(%rip), %rdi     # 0xfa340
callq 0x85250
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x84820
jmp 0x17279
movq 0x28(%rsp), %rdi
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
movq %r14, 0x20(%rsp)
je 0x17130
movq (%rdi), %rax
callq *0x10(%rax)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x174d2
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x1714f
movq (%rdi), %rax
callq *0x18(%rax)
movl %ebp, 0x34(%rsp)
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x196aa
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x17756
movq 0x38(%rsp), %r14
testq %r14, %r14
je 0x1725e
leaq 0x18(%rsp), %r15
leaq 0x38(%rsp), %r13
leaq 0xe32cc(%rip), %rbp     # 0xfa460
leaq 0x10(%rsp), %rbx
movq %r14, (%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %r15, %rdi
movq %rsp, %rsi
callq 0x17578
movq %r13, %rdi
movq %r15, %rsi
callq 0x175fa
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rbp, %rdi
callq 0x85750
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x668a0
movsbl %al, %esi
movq %r12, %rdi
callq 0x85250
movq %rax, %rdi
callq 0x84820
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1720c
callq 0x19ae0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1721c
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x18(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x17234
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, (%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x17756
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x38(%rsp), %r14
testq %r14, %r14
jne 0x17199
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1726e
movq (%rdi), %rax
callq *0x18(%rax)
xorl %ebx, %ebx
movq 0x20(%rsp), %r14
movl 0x34(%rsp), %ebp
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x17289
movq (%rdi), %rax
callq *0x18(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
testl %ebp, %ebp
jne 0x17298
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x17301
jmp 0x17301
jmp 0x172f4
movq %rdx, %r12
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x172c5
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x173a0
jmp 0x17301
jmp 0x17301
movq %rdx, %r12
movq %rax, %r15
jmp 0x17390
jmp 0x17301
movq %rdx, %r12
movq %rax, %r15
jmp 0x173bb
movq %r14, 0x20(%rsp)
movq %rdx, %r12
movq %rax, %r15
jmp 0x173a0
jmp 0x17301
movq %rax, %rdi
callq 0x17887
jmp 0x1731b
movq %rdx, %r12
movq %rax, %r15
jmp 0x17370
movq %rdx, %r12
movq %rax, %r15
jmp 0x17357
movq %rdx, %r12
movq %rax, %r15
jmp 0x17387
movq %rdx, %r12
movq %rax, %r15
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x17387
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x17387
jmp 0x17301
movq %rdx, %r12
movq %rax, %r15
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x17357
callq 0x19ae0
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x17367
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x18(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1737f
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, (%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x173a0
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x173b0
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
cmpl $0x1, %r12d
jne 0x17434
movq %r15, %rdi
callq 0x19f30
movq %rax, %rbx
leaq 0xe2f6d(%rip), %rdi     # 0xfa340
leaq 0xa5c41(%rip), %rsi     # 0xbd01b
movl $0x7, %edx
callq 0x85750
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe2f4c(%rip), %rdi     # 0xfa340
movq %rax, %rsi
callq 0x85c80
movq %rax, %rdi
callq 0x85560
callq 0x19fa0
jmp 0x17296
jmp 0x17301
jmp 0x17301
jmp 0x17301
jmp 0x17301
jmp 0x17301
jmp 0x17301
movq %rax, %r15
callq 0x19fa0
movq %r15, %rdi
callq 0xba430
jmp 0x17301
nop