//
// tinyxml2::StrPair::SetStr from 0xb23180 to 0xb231f8 (120 bytes)
//
// 9 xrefs:
// > tinyxml2::XMLNode::SetValue @ 0xb24494
// > tinyxml2::XMLAttribute::SetName @ 0xb2504c
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb2515c
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb251a4
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb25210
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb2527c
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb252e4
// > tinyxml2::XMLAttribute::SetAttribute @ 0xb2534c
// > ??> @ 0x4dfb8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall tinyxml2::StrPair::SetStr(tinyxml2::StrPair *this, const char *a2, int a3)
{
size_t v5; // x20
void *v6; // x0
__int64 result; // x0
tinyxml2::StrPair::Reset(this);
v5 = strlen(a2);
v6 = (void *)operator new[](v5 + 1);
*((_QWORD *)this + 1) = v6;
memcpy(v6, a2, v5 + 1);
*(_DWORD *)this = a3 | 0x200;
result = *((_QWORD *)this + 1);
*((_QWORD *)this + 2) = result + v5;
return result;
}