// File: tdv[P]boss/boss/examples/simple_enum/main.cpp
// Function: CreateTestCollection()
Boss::RefObjPtr<Boss::IEnum> CreateTestCollection()
{
  auto Collection = Boss::Base<Boss::Enum>::Create();
  // FixPrice
  Collection->AddItem(Boss::Base<MyNs::Impl::FixPrice>::Create(10));
  Collection->AddItem(Boss::Base<MyNs::Impl::FixPrice>::Create(15));
  // BestOffer
  Collection->AddItem(Boss::Base<MyNs::Impl::BestOffer>::Create(7));
  // Auction
  Collection->AddItem(Boss::Base<MyNs::Impl::Auction>::Create(42));
  Collection->AddItem(Boss::Base<MyNs::Impl::Auction>::Create(17));
  Collection->AddItem(Boss::Base<MyNs::Impl::Auction>::Create(55));
  return Collection;
}

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0xc0(%rsp)
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x19bf0
movq 0x38(%rsp), %rdi
callq 0x19ce0
movq %rax, 0x40(%rsp)
jmp 0x183df
movl $0xa, 0x9c(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0x9c(%rsp), %rsi
callq 0x19d90
jmp 0x18401
movq 0x40(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x19cf0
jmp 0x18415
leaq 0xa0(%rsp), %rdi
callq 0x19e90
leaq 0xb8(%rsp), %rdi
callq 0x19ce0
movq %rax, 0x20(%rsp)
jmp 0x18436
movl $0xf, 0x8c(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x8c(%rsp), %rsi
callq 0x19d90
jmp 0x18458
movq 0x20(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x19cf0
jmp 0x1846c
leaq 0x90(%rsp), %rdi
callq 0x19e90
leaq 0xb8(%rsp), %rdi
callq 0x19ce0
movq %rax, 0x18(%rsp)
jmp 0x1848d
movl $0x7, 0x7c(%rsp)
leaq 0x80(%rsp), %rdi
leaq 0x7c(%rsp), %rsi
callq 0x19f50
jmp 0x184a9
movq 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x19eb0
jmp 0x184bd
leaq 0x80(%rsp), %rdi
callq 0x1a050
leaq 0xb8(%rsp), %rdi
callq 0x19ce0
movq %rax, 0x10(%rsp)
jmp 0x184de
movl $0x2a, 0x6c(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x6c(%rsp), %rsi
callq 0x1a110
jmp 0x184f7
movq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x1a070
jmp 0x18508
leaq 0x70(%rsp), %rdi
callq 0x1a210
leaq 0xb8(%rsp), %rdi
callq 0x19ce0
movq %rax, 0x8(%rsp)
jmp 0x18526
movl $0x11, 0x5c(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0x5c(%rsp), %rsi
callq 0x1a110
jmp 0x1853f
movq 0x8(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1a070
jmp 0x18550
leaq 0x60(%rsp), %rdi
callq 0x1a210
leaq 0xb8(%rsp), %rdi
callq 0x19ce0
movq %rax, (%rsp)
jmp 0x1856d
movl $0x37, 0x4c(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x4c(%rsp), %rsi
callq 0x1a110
jmp 0x18586
movq (%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x1a070
jmp 0x18596
leaq 0x50(%rsp), %rdi
callq 0x1a210
movq 0x28(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1a230
jmp 0x185b4
leaq 0xb8(%rsp), %rdi
callq 0x1a290
movq 0x30(%rsp), %rax
addq $0xc8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x19e90
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x19e90
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x1a050
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x1a210
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x1a210
jmp 0x186b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x1a210
leaq 0xb8(%rsp), %rdi
callq 0x1a290
movq 0xb0(%rsp), %rdi
callq 0xc42f0
nop