// File: /workspace/github_cpp_makefile_star2_O1/tdv[P]boss/boss/include/common/xml_property_bag.h
// Function: Boss::XmlPropertyBag::SerializeItem(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Boss::IBase*, rapidxml::xml_document<char>*, rapidxml::xml_node<char>*) const
void SerializeItem(std::string const &name, IBase *prop,
                       rapidxml::xml_document<> *doc,
                       rapidxml::xml_node<> *node) const
    {
      {
        RefObjQIPtr<IEntityId> Id(prop);
        if (Id.Get())
        {
          UInt EntityId = 0;
          if (Id->GetId(&EntityId) != Status::Ok)
            throw std::runtime_error("Failed to get EntityId.");
          auto *StrVal = doc->allocate_string(ToString(EntityId).c_str());
          auto *StrName = doc->allocate_string(name.c_str());
          auto *NewNode = doc->allocate_node(rapidxml::node_element, StrName, StrVal);
          node->append_node(NewNode);
          auto *TypeAttr = doc->allocate_attribute(Tags::TypeTag, Tags::EntityIdTag);
          NewNode->append_attribute(TypeAttr);
          return;
        }
      }
      {
        RefObjQIPtr<IString> String(prop);
        if (String.Get())
        {
          auto *StrVal = doc->allocate_string(GetString(String.Get()).c_str());
          auto *StrName = doc->allocate_string(name.c_str());
          auto *NewNode = doc->allocate_node(rapidxml::node_element, StrName, StrVal);
          node->append_node(NewNode);
          auto *TypeAttr = doc->allocate_attribute(Tags::TypeTag, Tags::StringTag);
          NewNode->append_attribute(TypeAttr);
          return;
        }
      }
      {
        RefObjQIPtr<IEnum> Enum(prop);
        if (Enum.Get())
        {
          auto *StrName = doc->allocate_string(name.c_str());
          auto *NewNode = doc->allocate_node(rapidxml::node_element, StrName);
          node->append_node(NewNode);
          auto *TypeAttr = doc->allocate_attribute(Tags::TypeTag, Tags::EnumTag);
          NewNode->append_attribute(TypeAttr);
          if (Enum->Reset() != Status::Ok)
            throw std::runtime_error("Failed to reset enum position.");
          for (RefObjPtr<IBase> i ; Enum->Next(i.GetPPtr()) == Status::Ok ; i.Release())
            SerializeItem(Tags::ItemTag, i.Get(), doc, NewNode);
          return;
        }
      }
      {
        RefObjQIPtr<IPropertyBag> PropBag(prop);
        if (PropBag.Get())
        {
          auto *StrName = doc->allocate_string(name.c_str());
          auto *NewNode = doc->allocate_node(rapidxml::node_element, StrName);
          node->append_node(NewNode);
          auto *TypeAttr = doc->allocate_attribute(Tags::TypeTag, Tags::PropertyBagTag);
          NewNode->append_attribute(TypeAttr);
          RefObjPtr<IEnum> Enum;
          if (PropBag->EnumProperties(Enum.GetPPtr()) != Status::Ok)
            throw std::runtime_error("Failed to get PropertyBag.");
          if (Enum->Reset() != Status::Ok)
            throw std::runtime_error("Failed to reset enum position.");
          for (RefObjPtr<IBase> i ; Enum->Next(i.GetPPtr()) == Status::Ok ; i.Release())
          {
            RefObjQIPtr<INamedValue> Prop(i);
            if (!Prop.Get())
              throw std::runtime_error("Failed to get PropertyItem.");
            RefObjPtr<IString> Name;
            if (Prop->GetName(Name.GetPPtr()) != Status::Ok)
              throw std::runtime_error("Failed to get property name.");
            RefObjPtr<IBase> Value;
            if (Prop->GetValue(Value.GetPPtr()) != Status::Ok)
              throw std::runtime_error("Failed to get property value.");
            SerializeItem(GetString(Name.Get()), Value.Get(), doc, NewNode);
          }
          return;
        }
      }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %r8, %r13
movq %rcx, 0x10(%rsp)
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq $0x0, (%rsp)
testq %rdx, %rdx
je 0x26b52
movq (%rbx), %rax
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x252230fa, %esi       # imm = 0x252230FA
callq *0x20(%rax)
movq %rbx, 0x50(%rsp)
movq (%rsp), %rbp
testq %rbp, %rbp
je 0x26c58
leaq 0x8(%rsp), %rsi
movl $0x0, (%rsi)
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x28(%rax)
testl %eax, %eax
jne 0x271fd
movl 0x8(%rsp), %ebx
leaq 0x70(%rsp), %rdi
callq 0xa27b0
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x99630
leaq 0x88(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x9f250
movq 0x10(%rsp), %rax
leaq 0x60(%rax), %r15
leaq 0xfc7ef(%rip), %rsi     # 0x1233b0
leaq 0x70(%rsp), %rdi
callq 0xa3250
leaq 0xf0(%rsp), %rdi
callq 0x7b2a0
movq 0x20(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26bfd
callq 0x2c860
movq (%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %r15, %rdi
movl $0x1, %esi
movq %rax, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x258f0
movq %rax, %rbx
movq %r13, %rdi
movq %rax, %rsi
callq 0x251e6
leaq 0xb4c91(%rip), %rsi     # 0xdb8ca
leaq 0xb4c70(%rip), %rdx     # 0xdb8b0
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x25e14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x25e9a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x26c67
movq (%rdi), %rax
callq *0x18(%rax)
testq %rbp, %rbp
jne 0x27149
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x26c93
movq (%rdi), %rax
leaq 0x20(%rsp), %rdx
movl $0xa54e1a87, %esi       # imm = 0xA54E1A87
callq *0x20(%rax)
movq 0x20(%rsp), %rbp
testq %rbp, %rbp
je 0x26d3d
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x2757c
movq 0x10(%rsp), %rax
leaq 0x60(%rax), %r15
movq 0x70(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26ce2
callq 0x2c860
movq (%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %r15, %rdi
movl $0x1, %esi
movq %rax, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x258f0
movq %rax, %rbx
movq %r13, %rdi
movq %rax, %rsi
callq 0x251e6
leaq 0xb4bac(%rip), %rsi     # 0xdb8ca
leaq 0xb4b8e(%rip), %rdx     # 0xdb8b3
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x25e14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x25e9a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x26d4d
movq (%rdi), %rax
callq *0x18(%rax)
testq %rbp, %rbp
jne 0x27149
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x26d79
movq (%rdi), %rax
leaq 0x20(%rsp), %rdx
movl $0xe2cd2d56, %esi       # imm = 0xE2CD2D56
callq *0x20(%rax)
movq 0x20(%rsp), %rbx
testq %rbx, %rbx
je 0x26ee2
movq %rbx, 0x68(%rsp)
movq 0x10(%rsp), %rax
leaq 0x60(%rax), %r15
movq (%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0x25d52
movq %rax, %rbp
xorl %eax, %eax
movq %rax, 0x20(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
movl $0x1, 0x28(%rbp)
movq %rax, 0x30(%rbp)
movq %rax, 0x40(%rbp)
testq %rbx, %rbx
je 0x26df1
movq $-0x1, %rax
cmpb $0x0, 0x1(%rbx,%rax)
leaq 0x1(%rax), %rax
jne 0x26dde
movq %rbx, (%rbp)
movq %rax, 0x10(%rbp)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x251e6
leaq 0xb4ac7(%rip), %rsi     # 0xdb8ca
leaq 0xb4ab0(%rip), %rdx     # 0xdb8ba
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x25e14
movq %rbp, %rdi
movq %rax, %rsi
callq 0x25e9a
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
movq %r12, 0x58(%rsp)
movq %r13, 0x60(%rsp)
testl %eax, %eax
jne 0x27231
movq %r14, %r12
leaq 0x80(%rsp), %r13
movq %rsp, %r15
leaq 0xb4a6f(%rip), %rbx     # 0xdb8c3
leaq 0x70(%rsp), %r14
movq $0x0, (%rsp)
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x28(%rax)
testl %eax, %eax
jne 0x26ec1
movq %r13, 0x70(%rsp)
movq %r14, %rdi
leaq 0xb4a3d(%rip), %rsi     # 0xdb8bf
movq %rbx, %rdx
callq 0x22342
movq (%rsp), %rdx
movq %r12, %rdi
movq %r14, %rsi
movq 0x10(%rsp), %rcx
movq %rbp, %r8
callq 0x26b12
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x26eb0
callq 0x2c860
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x26e59
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x26e59
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x26ed0
movq (%rdi), %rax
callq *0x18(%rax)
movq %r12, %r14
movq 0x60(%rsp), %r13
movq 0x58(%rsp), %r12
movq 0x68(%rsp), %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x26ef2
movq (%rdi), %rax
callq *0x18(%rax)
testq %rbx, %rbx
jne 0x27149
movq $0x0, 0x20(%rsp)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x26f1e
movq (%rdi), %rax
leaq 0x20(%rsp), %rdx
movl $0x6ee4c41a, %esi       # imm = 0x6EE4C41A
callq *0x20(%rax)
cmpq $0x0, 0x20(%rsp)
je 0x27139
movq 0x10(%rsp), %rax
leaq 0x60(%rax), %r15
movq (%r12), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x27508
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0x25d52
movq %rax, %r12
xorl %eax, %eax
movq %rax, 0x20(%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movl $0x1, 0x28(%r12)
movq %rax, 0x30(%r12)
movq %rax, 0x40(%r12)
testq %rbx, %rbx
je 0x26f96
movq $-0x1, %rax
cmpb $0x0, 0x1(%rbx,%rax)
leaq 0x1(%rax), %rax
jne 0x26f82
movq %rbx, (%r12)
movq %rax, 0x10(%r12)
movq %r13, %rdi
movq %r12, %rsi
callq 0x251e6
leaq 0xb4922(%rip), %rsi     # 0xdb8ca
leaq 0xb4915(%rip), %rdx     # 0xdb8c4
movq %r15, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x25e14
movq %r12, %rdi
movq %rax, %rsi
callq 0x25e9a
movq %rsp, %rsi
movq $0x0, (%rsi)
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
testl %eax, %eax
jne 0x27263
movq (%rsp), %rdi
movq (%rdi), %rax
callq *0x30(%rax)
testl %eax, %eax
jne 0x27281
leaq 0x8(%rsp), %r15
leaq 0x40(%rsp), %rbp
leaq 0x70(%rsp), %r13
movq $0x0, 0x8(%rsp)
movq (%rsp), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x28(%rax)
testl %eax, %eax
jne 0x2711a
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x27046
movq (%rdi), %rax
movl $0x4e1c0e57, %esi       # imm = 0x4E1C0E57
leaq 0x18(%rsp), %rdx
callq *0x20(%rax)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x27192
movq $0x0, 0x48(%rsp)
movq (%rdi), %rax
leaq 0x48(%rsp), %rsi
callq *0x28(%rax)
testl %eax, %eax
jne 0x2715b
movq $0x0, 0x40(%rsp)
movq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq %rbp, %rsi
callq *0x30(%rax)
testl %eax, %eax
jne 0x271c9
movq 0x48(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rbx
movq %r14, %rsi
callq 0x2757c
movq 0x40(%rsp), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rcx
movq %r12, %r8
callq 0x26b12
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x270d1
callq 0x2c860
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x270e1
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x270f1
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x27101
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x27005
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x27005
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2712a
movq (%rdi), %rax
callq *0x18(%rax)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x27139
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x27149
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb3743(%rip), %rsi     # 0xda8b2
movq %rax, %rdi
callq 0x40360
leaq 0xf7ef2(%rip), %rsi     # 0x11f070
leaq 0xf85b(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
jmp 0x27263
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb36f0(%rip), %rsi     # 0xda896
movq %rax, %rdi
callq 0x40360
leaq 0xf7ebb(%rip), %rsi     # 0x11f070
leaq 0xf824(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
jmp 0x27263
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb36f2(%rip), %rsi     # 0xda8cf
movq %rax, %rdi
callq 0x40360
leaq 0xf7e84(%rip), %rsi     # 0x11f070
leaq 0xf7ed(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
jmp 0x27263
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb3633(%rip), %rsi     # 0xda844
movq %rax, %rdi
callq 0x40360
leaq 0xf7e50(%rip), %rsi     # 0x11f070
leaq 0xf7b9(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
jmp 0x27263
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb3617(%rip), %rsi     # 0xda85c
movq %rax, %rdi
callq 0x40360
leaq 0xf7e1c(%rip), %rsi     # 0x11f070
leaq 0xf785(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb3604(%rip), %rsi     # 0xda87b
movq %rax, %rdi
callq 0x40360
jmp 0x2729d
movl $0x10, %edi
callq 0x2cb60
movq %rax, %r14
leaq 0xb35c7(%rip), %rsi     # 0xda85c
movq %rax, %rdi
callq 0x40360
leaq 0xf7dcc(%rip), %rsi     # 0x11f070
leaq 0xf735(%rip), %rdx      # 0x369e0
movq %r14, %rdi
callq 0x2dbb0
jmp 0x272b5
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x27495
jmp 0x27500
jmp 0x27500
jmp 0x27500
jmp 0x272ed
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x274e6
jmp 0x27500
jmp 0x272ed
movq %rax, %rbx
jmp 0x274a4
jmp 0x27500
jmp 0x2732a
movq %rax, %rbx
jmp 0x27495
jmp 0x2732a
jmp 0x27500
jmp 0x27344
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27347
callq 0x2c860
jmp 0x27347
jmp 0x27344
movq %rax, %rbx
jmp 0x274e6
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x2746f
jmp 0x27344
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x274f6
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x274f6
jmp 0x27500
jmp 0x273e3
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x273e6
movq %rax, %rbx
jmp 0x27406
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x27406
jmp 0x273de
movq %rax, %rbx
movq %r14, %rdi
callq 0x2cbc0
jmp 0x273f6
jmp 0x27500
jmp 0x27449
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2746f
callq 0x2c860
jmp 0x2746f
jmp 0x27449
jmp 0x27482
jmp 0x27500
jmp 0x27500
jmp 0x27500
jmp 0x27449
jmp 0x273e3
movq %rax, %rbx
jmp 0x273f6
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x273f6
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x27406
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x27416
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x18(%rsp)
jmp 0x27485
jmp 0x27500
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x273e6
callq 0x2c860
jmp 0x273e6
jmp 0x27500
jmp 0x27449
movq %rax, %rbx
jmp 0x2746f
movq %rax, %rbx
leaq 0xfbf58(%rip), %rsi     # 0x1233b0
leaq 0x70(%rsp), %rdi
callq 0xa3250
leaq 0xf0(%rsp), %rdi
callq 0x7b2a0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x274f6
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x274f6
jmp 0x27500
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x27495
movq (%rdi), %rax
callq *0x18(%rax)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x274a4
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x274f6
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x274f6
jmp 0x27500
jmp 0x27500
jmp 0x27500
jmp 0x27500
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r13, %rdi
je 0x274d7
callq 0x2c860
jmp 0x274d7
jmp 0x274d4
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x274e6
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x274f6
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0xd7070
jmp 0x27500
movq %rax, %rdi
callq 0x2087b