// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/xml_property_bag.h
// Function: Boss::XmlPropertyBag::DeserializeItem(rapidxml::xml_node<char> const*) const
IBasePtr DeserializeItem(rapidxml::xml_node<> const *node) const
    {
      auto const *TypeAttr = node->first_attribute(Tags::TypeTag);
      if (!TypeAttr)
        throw std::runtime_error("Failed to get item type attribute.");
      std::string Type(TypeAttr->value(), TypeAttr->value_size());
      if (Type.empty())
        throw std::runtime_error("Failed to get item type.");
      if (Type == Tags::EntityIdTag)
      {
        std::string Id(node->value(), node->value_size());
        if (Id.empty())
          throw std::runtime_error("Empty EntityId value.");
        return Base<EntityId>::Create(FromString<UInt>(Id));
      }
      if (Type == Tags::StringTag)
      {
        std::string Str(node->value(), node->value_size());
        if (Str.empty())
          throw std::runtime_error("Empty string value.");
        return Base<String>::Create(Str);
      }
      if (Type == Tags::EnumTag)
      {
        auto NewEnum = Base<Enum>::Create();
        for (auto const *i = node->first_node(Tags::ItemTag) ; i ; i = i->next_sibling(Tags::ItemTag))
          NewEnum->AddItem(DeserializeItem(i));
        return NewEnum;
      }
      if (Type == Tags::PropertyBagTag)
      {
        auto NewPropBag = Base<XmlPropertyBag>::Create(std::string(node->name(), node->name_size()));
        for (auto const *i = node->first_node() ; i ; i = i->next_sibling())
        {
          std::string Name(i->name(), i->name_size());
          if (Name.empty())
            throw std::runtime_error("Failed to get node name.");
          NewPropBag->Props[Name] = DeserializeItem(i);
        }
        return IBasePtr(RefObjQIPtr<IBase>(NewPropBag).Get());
      }
      throw std::runtime_error("Unknown type.");
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r13
leaq 0xb6691(%rip), %rsi     # 0xd88ca
movq %rdx, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x22d02
testq %rax, %rax
je 0x226c2
movq 0x8(%rax), %rdx
testq %rdx, %rdx
je 0x22263
movq %rdx, %rsi
movq 0x18(%rax), %rdx
jmp 0x2226a
leaq 0xfe297(%rip), %rsi     # 0x120501
leaq 0x50(%rsp), %r12
movq %r12, -0x10(%r12)
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x1ff5e
cmpq $0x0, 0x48(%rsp)
je 0x226f4
leaq 0xb661c(%rip), %rsi     # 0xd88b0
leaq 0x40(%rsp), %rdi
callq 0xa8ed0
testl %eax, %eax
je 0x22301
leaq 0xb660a(%rip), %rsi     # 0xd88b3
leaq 0x40(%rsp), %rdi
callq 0xa8ed0
testl %eax, %eax
je 0x22313
leaq 0xb65fc(%rip), %rsi     # 0xd88ba
leaq 0x40(%rsp), %rdi
callq 0xa8ed0
testl %eax, %eax
je 0x223d6
leaq 0xb65ed(%rip), %rsi     # 0xd88c4
leaq 0x40(%rsp), %rdi
callq 0xa8ed0
testl %eax, %eax
jne 0x2275a
movq (%r15), %rdx
testq %rdx, %rdx
je 0x22479
movq %rdx, %rsi
movq 0x10(%r15), %rdx
jmp 0x22480
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x2232c
movq %rdx, %rsi
movq 0x18(%r15), %rdx
jmp 0x22333
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x225d6
movq %rdx, %rsi
movq 0x18(%r15), %rdx
jmp 0x225dd
leaq 0xfe1ce(%rip), %rsi     # 0x120501
leaq 0x30(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x1ff5e
cmpq $0x0, 0x28(%rsp)
je 0x22726
leaq 0x70(%rsp), %rdi
callq 0x9ff30
leaq 0x80(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x964b0
leaq 0x70(%rsp), %rdi
leaq 0x1c(%rsp), %rsi
callq 0x7c9a0
movl 0x1c(%rsp), %ebp
leaq 0xfc020(%rip), %rsi     # 0x11e3b0
leaq 0x70(%rsp), %rdi
callq 0xa09d0
leaq 0xf0(%rsp), %rdi
callq 0x78a20
leaq 0x6c(%rsp), %rsi
movl %ebp, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x1e3f2
movq 0x10(%rsp), %rax
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rcx, (%r13)
movq 0x20(%rsp), %rdi
jmp 0x2262a
movq %r13, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1e282
leaq 0xb64d5(%rip), %rsi     # 0xd88bf
movq %r15, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x22132
movq %rax, %r15
testq %rax, %rax
je 0x2245e
leaq 0x8(%rsp), %r12
leaq 0xb64b2(%rip), %r13     # 0xd88bf
movq 0x70(%rsp), %rbp
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22218
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2414e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2243b
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x22930
movq %rax, %r15
testq %rax, %rax
jne 0x2240d
movq 0x70(%rsp), %rax
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rbx, %r13
movq %rcx, (%rbx)
jmp 0x22643
leaq 0xfe081(%rip), %rsi     # 0x120501
leaq 0x80(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x1ff5e
movq %r13, 0x60(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x241b6
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x224bc
callq 0x29fe0
movq 0x30(%r15), %r15
testq %r15, %r15
je 0x2256f
leaq 0x70(%rsp), %r12
leaq 0x10(%rsp), %r13
movq (%r15), %rdx
testq %rdx, %rdx
je 0x224e4
movq %rdx, %rsi
movq 0x10(%r15), %rdx
jmp 0x224eb
leaq 0xfe016(%rip), %rsi     # 0x120501
movq %rbx, 0x70(%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x1ff5e
cmpq $0x0, 0x78(%rsp)
je 0x2266c
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22218
movq 0x20(%rsp), %rdi
addq $0x48, %rdi
movq %r12, %rsi
callq 0x24288
movq %rax, %rbp
movq (%rax), %rdi
testq %rdi, %rdi
je 0x22537
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, (%rbp)
movq 0x10(%rsp), %rax
movq %rax, (%rbp)
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x22557
callq 0x29fe0
cmpq $0x0, 0x20(%r15)
je 0x226a3
movq 0x58(%r15), %r15
testq %r15, %r15
jne 0x224d3
movq $0x0, 0x70(%rsp)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x22636
movq (%rdi), %rax
leaq 0x70(%rsp), %rdx
movl $0x2cc77d66, %esi       # imm = 0x2CC77D66
leaq 0x50(%rsp), %r12
callq *0x28(%rax)
movq 0x60(%rsp), %r13
movq 0x70(%rsp), %rdi
movq %rdi, (%r13)
testq %rdi, %rdi
je 0x225c4
movq (%rdi), %rax
callq *0x10(%rax)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x225c4
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x22648
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x22648
leaq 0xfdf24(%rip), %rsi     # 0x120501
leaq 0x80(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x1ff5e
cmpq $0x0, 0x78(%rsp)
je 0x22778
leaq 0x20(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x20b20
movq 0x20(%rsp), %rax
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
movq %rcx, (%r13)
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x22648
callq 0x29fe0
jmp 0x22648
movq 0x60(%rsp), %r13
movq $0x0, (%r13)
leaq 0x50(%rsp), %r12
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x22657
callq 0x29fe0
movq %r13, %rax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb512c(%rip), %rsi     # 0xd77ac
movq %rax, %rdi
callq 0x3dae0
leaq 0xf79e1(%rip), %rsi     # 0x11a070
leaq 0x11aca(%rip), %rdx     # 0x34160
movq %r14, %rdi
callq 0x2b330
jmp 0x227aa
leaq 0xb5129(%rip), %rdi     # 0xd77d3
leaq 0xb4e27(%rip), %rsi     # 0xd74d8
leaq 0xb512a(%rip), %rcx     # 0xd77e2
movl $0x3ee, %edx            # imm = 0x3EE
callq 0x19150
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb5070(%rip), %rsi     # 0xd7746
movq %rax, %rdi
callq 0x3dae0
leaq 0xf798b(%rip), %rsi     # 0x11a070
leaq 0x11a74(%rip), %rdx     # 0x34160
movq %r14, %rdi
callq 0x2b330
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb5061(%rip), %rsi     # 0xd7769
movq %rax, %rdi
callq 0x3dae0
leaq 0xf7959(%rip), %rsi     # 0x11a070
leaq 0x11a42(%rip), %rdx     # 0x34160
movq %r14, %rdi
callq 0x2b330
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb5048(%rip), %rsi     # 0xd7782
movq %rax, %rdi
callq 0x3dae0
leaq 0xf7927(%rip), %rsi     # 0x11a070
leaq 0x11a10(%rip), %rdx     # 0x34160
movq %r14, %rdi
callq 0x2b330
jmp 0x227aa
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb5057(%rip), %rsi     # 0xd77c5
movq %rax, %rdi
callq 0x3dae0
jmp 0x22710
movl $0x10, %edi
callq 0x2a2e0
movq %rax, %r14
leaq 0xb500c(%rip), %rsi     # 0xd7798
movq %rax, %rdi
callq 0x3dae0
leaq 0xf78d5(%rip), %rsi     # 0x11a070
leaq 0x119be(%rip), %rdx     # 0x34160
movq %r14, %rdi
callq 0x2b330
jmp 0x22928
jmp 0x22928
movq %rax, %r15
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x228fa
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x228fa
jmp 0x22928
jmp 0x22805
movq %rax, %r15
movq %r14, %rdi
callq 0x2a340
jmp 0x22808
jmp 0x22838
jmp 0x22897
jmp 0x22858
jmp 0x228ce
jmp 0x22860
movq %rax, %r15
movq %r14, %rdi
callq 0x2a340
jmp 0x22863
jmp 0x22805
jmp 0x22858
movq %rax, %r15
movq 0x70(%rsp), %rdi
jmp 0x22868
jmp 0x22858
jmp 0x22813
movq %rax, %r15
leaq 0xfbb93(%rip), %rsi     # 0x11e3b0
leaq 0x70(%rsp), %rdi
callq 0xa09d0
leaq 0xf0(%rsp), %rdi
callq 0x78a20
jmp 0x22863
jmp 0x22858
movq %rax, %r15
movq %r14, %rdi
callq 0x2a340
jmp 0x2290a
movq %rax, %r15
movq %r14, %rdi
callq 0x2a340
jmp 0x2291e
movq %rax, %r15
jmp 0x2290a
movq %rax, %r15
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2290a
callq 0x29fe0
jmp 0x2290a
movq %rax, %r15
jmp 0x2291e
jmp 0x22928
jmp 0x228d3
movq %rax, %r15
movq %r14, %rdi
callq 0x2a340
jmp 0x228eb
movq %rax, %r15
jmp 0x228b8
movq %rax, %r15
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x228af
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x8(%rsp)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2290a
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x2290a
jmp 0x22928
jmp 0x22928
movq %rax, %r15
jmp 0x228fa
movq %rax, %r15
jmp 0x228eb
movq %rax, %r15
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x228eb
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x228fa
callq 0x29fe0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x2290a
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x2291e
callq 0x29fe0
movq %r15, %rdi
callq 0xd47f0
jmp 0x22928
movq %rax, %rdi
callq 0x1e4f5