// File: tdv[P]boss/boss/include/common/xml_property_bag.h
// Function: Boss::XmlPropertyBag::Load(Boss::IIStream*)
virtual RetCode BOSS_CALL Load(IIStream *stream)
    {
      if (!stream)
        return Status::InvalidArgument;
      try
      {
        std::lock_guard<std::recursive_mutex> Lock(Mtx);
        RefObjPtr<IBuffer> Buffer;
        if (stream->Read(Buffer.GetPPtr()) != Status::Ok)
          return Status::Fail;
        void const *Data = 0;
        UInt DataSize = 0;
        if (Buffer->GetSize(&DataSize) != Status::Ok || !DataSize ||
            Buffer->GetData(&Data) != Status::Ok)
        {
          return Status::Fail;
        }
        std::vector<char> Xml(reinterpret_cast<char const *>(Data),
                              reinterpret_cast<char const *>(Data) + DataSize);
        Xml.push_back(0);
        std::string NewRootName;
        PropPool NewProps;
        rapidxml::xml_document<> Doc;
        Doc.parse<rapidxml::parse_full>(&Xml[0]);
        auto const *RootNode = Doc.first_node();
        if (!RootNode)
          return Status::Fail;
        NewRootName.assign(RootNode->name(), RootNode->name_size());
        if (NewRootName.empty())
          return Status::Fail;
        for (auto const *i = RootNode->first_node() ; i ; i = i->next_sibling())
        {
          std::string Name(i->name(), i->name_size());
          if (Name.empty())
            return Status::Fail;
          NewProps[Name] = DeserializeItem(i);
        }
        std::swap(NewProps, Props);
        std::swap(NewRootName, RootName);
        return Status::Ok;
      }
      catch (...)
      {
        return Status::Fail;
      }
    }

// Assembly:
subq $0x10218, %rsp          # imm = 0x10218
movq %rdi, 0x10208(%rsp)
movq %rsi, 0x10200(%rsp)
movq 0x10208(%rsp), %rax
movq %rax, 0x80(%rsp)
cmpq $0x0, 0x10200(%rsp)
jne 0x2a532
movl $0x5, 0x10214(%rsp)
jmp 0x2aba3
movq 0x80(%rsp), %rsi
addq $0x20, %rsi
leaq 0x101f8(%rsp), %rdi
callq 0x22340
jmp 0x2a54d
xorl %eax, %eax
movl %eax, %esi
leaq 0x101e0(%rsp), %rdi
callq 0x31e70
jmp 0x2a560
movq 0x10200(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x101e0(%rsp), %rdi
callq 0x31eb0
movq 0x70(%rsp), %rdi
movq %rax, %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movl %eax, 0x7c(%rsp)
jmp 0x2a591
movl 0x7c(%rsp), %eax
cmpl $0x0, %eax
je 0x2a600
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
jmp 0x2ab45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab61
movq $0x0, 0x101d0(%rsp)
movl $0x0, 0x101cc(%rsp)
leaq 0x101e0(%rsp), %rdi
callq 0x31ec0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
leaq 0x101cc(%rsp), %rsi
callq *%rax
movl %eax, 0x6c(%rsp)
jmp 0x2a63e
movl 0x6c(%rsp), %eax
cmpl $0x0, %eax
jne 0x2a681
cmpl $0x0, 0x101cc(%rsp)
je 0x2a681
leaq 0x101e0(%rsp), %rdi
callq 0x31ec0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x28(%rax), %rax
leaq 0x101d0(%rsp), %rsi
callq *%rax
movl %eax, 0x68(%rsp)
jmp 0x2a678
movl 0x68(%rsp), %eax
cmpl $0x0, %eax
je 0x2a69c
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
jmp 0x2ab45
movq 0x101d0(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x101cc(%rsp), %ecx
addq %rcx, %rax
movq %rax, 0x58(%rsp)
leaq 0x101af(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x4a200
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x60(%rsp), %rcx
leaq 0x101b0(%rsp), %rdi
callq 0x30b50
jmp 0x2a6e8
leaq 0x101af(%rsp), %rdi
callq 0x4a220
movb $0x0, 0x101ae(%rsp)
leaq 0x101b0(%rsp), %rdi
leaq 0x101ae(%rsp), %rsi
callq 0x32d90
jmp 0x2a714
leaq 0x10188(%rsp), %rdi
callq 0xc48b0
leaq 0x10150(%rsp), %rdi
callq 0x2b240
leaq 0xc8(%rsp), %rdi
callq 0x32dc0
jmp 0x2a73d
xorl %eax, %eax
movl %eax, %esi
leaq 0x101b0(%rsp), %rdi
callq 0x32f30
movq %rax, %rsi
leaq 0xc8(%rsp), %rdi
callq 0x32df0
jmp 0x2a760
xorl %eax, %eax
movl %eax, %edx
leaq 0xc8(%rsp), %rdi
movl $0x1, %ecx
movq %rdx, %rsi
callq 0x32f50
movq %rax, 0x48(%rsp)
jmp 0x2a780
movq 0x48(%rsp), %rax
movq %rax, 0xc0(%rsp)
cmpq $0x0, 0xc0(%rsp)
jne 0x2a828
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
jmp 0x2aad9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
leaq 0x101af(%rsp), %rdi
callq 0x4a220
jmp 0x2ab61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab36
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab1c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2ab0f
movq 0xc0(%rsp), %rdi
callq 0x33040
movq %rax, 0x40(%rsp)
jmp 0x2a83c
movq 0xc0(%rsp), %rdi
callq 0x33080
movq %rax, 0x38(%rsp)
jmp 0x2a850
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rsi
leaq 0x10188(%rsp), %rdi
callq 0xc5930
jmp 0x2a869
leaq 0x10188(%rsp), %rdi
callq 0xc4ee0
testb $0x1, %al
jne 0x2a87c
jmp 0x2a897
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
jmp 0x2aad9
movq 0xc0(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x1, %ecx
movq %rdx, %rsi
callq 0x32f50
movq %rax, 0x30(%rsp)
jmp 0x2a8b7
movq 0x30(%rsp), %rax
movq %rax, 0xb8(%rsp)
cmpq $0x0, 0xb8(%rsp)
je 0x2aa8e
movq 0xb8(%rsp), %rdi
callq 0x33040
movq %rax, 0x28(%rsp)
jmp 0x2a8e7
movq 0xb8(%rsp), %rdi
callq 0x33080
movq %rax, 0x20(%rsp)
jmp 0x2a8fb
leaq 0x97(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x4a200
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x98(%rsp), %rdi
callq 0xc72f0
jmp 0x2a92b
leaq 0x97(%rsp), %rdi
callq 0x4a220
leaq 0x98(%rsp), %rdi
callq 0xc4ee0
testb $0x1, %al
jne 0x2a94b
jmp 0x2a98c
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
jmp 0x2a9f3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
leaq 0x97(%rsp), %rdi
callq 0x4a220
jmp 0x2ab0f
movq 0x80(%rsp), %rsi
movq 0xb8(%rsp), %rdx
leaq 0x88(%rsp), %rdi
callq 0x330c0
jmp 0x2a9ab
leaq 0x10150(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x33cc0
movq %rax, 0x10(%rsp)
jmp 0x2a9c7
movq 0x10(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x280b0
jmp 0x2a9db
leaq 0x88(%rsp), %rdi
callq 0x23860
movl $0x0, 0x101dc(%rsp)
leaq 0x98(%rsp), %rdi
callq 0xc49c0
movl 0x101dc(%rsp), %eax
testl %eax, %eax
jne 0x2aad9
jmp 0x2aa11
jmp 0x2aa13
movq 0xb8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x1, %ecx
movq %rdx, %rsi
callq 0x33cf0
movq %rax, 0x8(%rsp)
jmp 0x2aa33
movq 0x8(%rsp), %rax
movq %rax, 0xb8(%rsp)
jmp 0x2a8c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
jmp 0x2aa7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x101f0(%rsp)
movl %eax, 0x101ec(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x23860
leaq 0x98(%rsp), %rdi
callq 0xc49c0
jmp 0x2ab0f
movq 0x80(%rsp), %rsi
addq $0x48, %rsi
leaq 0x10150(%rsp), %rdi
callq 0x33e00
movq 0x80(%rsp), %rsi
addq $0x80, %rsi
leaq 0x10188(%rsp), %rdi
callq 0x33e30
movl $0x0, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x33e60
leaq 0x10150(%rsp), %rdi
callq 0x2b250
leaq 0x10188(%rsp), %rdi
callq 0xc49c0
leaq 0x101b0(%rsp), %rdi
callq 0x30c10
jmp 0x2ab45
leaq 0xc8(%rsp), %rdi
callq 0x33e60
leaq 0x10150(%rsp), %rdi
callq 0x2b250
leaq 0x10188(%rsp), %rdi
callq 0xc49c0
leaq 0x101b0(%rsp), %rdi
callq 0x30c10
jmp 0x2ab61
leaq 0x101e0(%rsp), %rdi
callq 0x31a60
leaq 0x101f8(%rsp), %rdi
callq 0x22460
jmp 0x2aba3
leaq 0x101e0(%rsp), %rdi
callq 0x31a60
leaq 0x101f8(%rsp), %rdi
callq 0x22460
movq 0x101f0(%rsp), %rdi
callq 0x480e0
movl $0x2, 0x10214(%rsp)
movl $0x1, 0x101dc(%rsp)
callq 0x48150
movl 0x10214(%rsp), %eax
addq $0x10218, %rsp          # imm = 0x10218
retq
nopw %cs:(%rax,%rax)
nopl (%rax)