// File: tdv[P]boss/boss/include/common/xml_property_bag.h
// Function: Boss::XmlPropertyBag::GetString[abi:cxx11](Boss::IString*) const
std::string GetString(IString *str) const
    {
      RefObjPtr<IBuffer> StrBuffer;
      if (str->GetString(IString::AnsiString, StrBuffer.GetPPtr()) != Status::Ok)
        throw std::runtime_error("Failed to get string.");
      UInt StrLen = 0;
      if (StrBuffer->GetSize(&StrLen) != Status::Ok)
        throw std::runtime_error("Failed to get string length.");
      void const *StrData = 0;
      if (StrLen && StrBuffer->GetData(&StrData) != Status::Ok)
        throw std::runtime_error("Failed to get string data.");
      return std::move(std::string(reinterpret_cast<char const *>(StrData), StrLen));
    }

// Assembly:
subq $0xc8, %rsp
movq %rdi, 0x48(%rsp)
movq %rdi, %rax
movq %rax, 0x50(%rsp)
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq %rdx, 0xb0(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x31e70
movq 0x58(%rsp), %rdi
movq 0xb0(%rsp), %rax
movq %rax, 0x60(%rsp)
callq 0x31eb0
movq 0x60(%rsp), %rdi
movq %rax, %rdx
movq (%rdi), %rax
movq 0x38(%rax), %rax
movl $0x1, %esi
callq *%rax
movl %eax, 0x68(%rsp)
jmp 0x399f5
movl 0x68(%rsp), %eax
cmpl $0x0, %eax
je 0x39a7a
movl $0x10, %edi
callq 0x47f80
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x40(%rsp)
leaq 0xbd162(%rip), %rsi     # 0xf6b7c
callq 0x5b7e0
jmp 0x39a21
movq 0x40(%rsp), %rdi
leaq 0x109643(%rip), %rsi    # 0x143070
leaq 0x1842c(%rip), %rdx     # 0x51e60
callq 0x48fd0
jmp 0x39c7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0x39c63
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
callq 0x47fe0
jmp 0x39c63
movl $0x0, 0x98(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x31ec0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
leaq 0x98(%rsp), %rsi
callq *%rax
movl %eax, 0x3c(%rsp)
jmp 0x39aac
movl 0x3c(%rsp), %eax
cmpl $0x0, %eax
je 0x39b18
movl $0x10, %edi
callq 0x47f80
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x30(%rsp)
leaq 0xbd0c1(%rip), %rsi     # 0xf6b92
callq 0x5b7e0
jmp 0x39ad8
movq 0x30(%rsp), %rdi
leaq 0x10958c(%rip), %rsi    # 0x143070
leaq 0x18375(%rip), %rdx     # 0x51e60
callq 0x48fd0
jmp 0x39c7d
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
callq 0x47fe0
jmp 0x39c63
movq $0x0, 0x90(%rsp)
cmpl $0x0, 0x98(%rsp)
je 0x39bc5
leaq 0xa8(%rsp), %rdi
callq 0x31ec0
movq %rax, %rdi
movq (%rdi), %rax
movq 0x28(%rax), %rax
leaq 0x90(%rsp), %rsi
callq *%rax
movl %eax, 0x2c(%rsp)
jmp 0x39b59
movl 0x2c(%rsp), %eax
cmpl $0x0, %eax
je 0x39bc5
movl $0x10, %edi
callq 0x47f80
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x20(%rsp)
leaq 0xbd031(%rip), %rsi     # 0xf6baf
callq 0x5b7e0
jmp 0x39b85
movq 0x20(%rsp), %rdi
leaq 0x1094df(%rip), %rsi    # 0x143070
leaq 0x182c8(%rip), %rdx     # 0x51e60
callq 0x48fd0
jmp 0x39c7d
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
callq 0x47fe0
jmp 0x39c63
movq 0x90(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x98(%rsp), %eax
movq %rax, 0x10(%rsp)
leaq 0x6f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x4a200
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x70(%rsp), %rdi
callq 0xc72f0
jmp 0x39c08
movq 0x48(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xc4910
leaq 0x70(%rsp), %rdi
callq 0xc49c0
leaq 0x6f(%rsp), %rdi
callq 0x4a220
leaq 0xa8(%rsp), %rdi
callq 0x31a60
movq 0x50(%rsp), %rax
addq $0xc8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0x6f(%rsp), %rdi
callq 0x4a220
leaq 0xa8(%rsp), %rdi
callq 0x31a60
movq 0xa0(%rsp), %rdi
callq 0xf31f0
nopl (%rax)