// File: /workspace/github_cpp_makefile_star2_O1/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 0x18470
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 0x18136
leaq 0xe4253(%rip), %rbx     # 0xfc340
leaq 0xa5f10(%rip), %rsi     # 0xbe004
movl $0x16, %edx
movq %rbx, %rdi
callq 0x86890
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x679e0
movsbl %al, %esi
leaq 0xe4221(%rip), %rdi     # 0xfc340
callq 0x86390
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x85960
jmp 0x18295
movq 0x28(%rsp), %rdi
movq %rdi, 0x10(%rsp)
testq %rdi, %rdi
movq %r14, 0x20(%rsp)
je 0x18150
movq (%rdi), %rax
callq *0x10(%rax)
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x18500
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1816d
movq (%rdi), %rax
callq *0x18(%rax)
movl %ebp, 0x34(%rsp)
movq $0x0, 0x10(%rsp)
movq %rsp, %rdi
callq 0x1a7f8
leaq 0x38(%rsp), %rdi
movq %rsp, %rsi
callq 0x18784
movq 0x38(%rsp), %r14
testq %r14, %r14
je 0x1827b
leaq 0x18(%rsp), %r15
leaq 0x38(%rsp), %r13
leaq 0xe42b2(%rip), %rbp     # 0xfc460
movq %rsp, %rbx
movq %r14, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x185a6
movq %r13, %rdi
movq %r15, %rsi
callq 0x18628
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq %rbp, %rdi
callq 0x86890
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x679e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x86390
movq %rax, %rdi
callq 0x85960
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x18227
callq 0x1ac20
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x18237
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x18250
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x18784
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x38(%rsp), %r14
testq %r14, %r14
jne 0x181b1
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1828a
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 0x182a5
movq (%rdi), %rax
callq *0x18(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
testl %ebp, %ebp
jne 0x182b4
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1831d
jmp 0x1831d
jmp 0x18310
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x182e1
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x183ce
jmp 0x1831d
jmp 0x1831d
movq %rdx, %r12
movq %rax, %r15
jmp 0x183b7
jmp 0x1831d
movq %rdx, %r12
movq %rax, %r15
jmp 0x183e9
movq %r14, 0x20(%rsp)
movq %rdx, %r12
movq %rax, %r15
jmp 0x183ce
jmp 0x1831d
movq %rax, %rdi
callq 0x188b5
jmp 0x18337
movq %rdx, %r12
movq %rax, %r15
jmp 0x18395
movq %rdx, %r12
movq %rax, %r15
jmp 0x1837c
movq %rdx, %r12
movq %rax, %r15
jmp 0x183ae
movq %rdx, %r12
movq %rax, %r15
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x18355
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x38(%rsp)
jmp 0x183ae
jmp 0x1831d
movq %rdx, %r12
movq %rax, %r15
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x1837c
callq 0x1ac20
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1838c
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x183a5
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x183c6
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, (%rsp)
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x183de
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
cmpl $0x1, %r12d
jne 0x18462
movq %r15, %rdi
callq 0x1b070
movq %rax, %rbx
leaq 0xe3f3f(%rip), %rdi     # 0xfc340
leaq 0xa5c13(%rip), %rsi     # 0xbe01b
movl $0x7, %edx
callq 0x86890
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
leaq 0xe3f1e(%rip), %rdi     # 0xfc340
movq %rax, %rsi
callq 0x86dc0
movq %rax, %rdi
callq 0x866a0
callq 0x1b0e0
jmp 0x182b2
jmp 0x1831d
jmp 0x1831d
jmp 0x1831d
jmp 0x1831d
jmp 0x1831d
jmp 0x1831d
movq %rax, %r15
callq 0x1b0e0
movq %r15, %rdi
callq 0xbb570
jmp 0x1831d
nop