//
// tinyxml2::StrPair::SetStr from 0x5ed52a to 0x5ed562 (56 bytes)
//
// 8 xrefs:
// > tinyxml2::XMLNode::SetValue @ 0x5edc32
// > tinyxml2::XMLAttribute::SetName @ 0x5ee084
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee10e
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee138
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee174
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee1b0
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee1ee
// > tinyxml2::XMLAttribute::SetAttribute @ 0x5ee22c
//
// 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
//
void *__fastcall tinyxml2::StrPair::SetStr(tinyxml2::StrPair *this, const char *a2, int a3)
{
size_t v6; // r0
size_t v7; // r7
size_t v8; // r5
void *v9; // r0
void *result; // r0
int v11; // r3
tinyxml2::StrPair::Reset(this);
v6 = strlen(a2);
v7 = v6 + 1;
v8 = v6;
v9 = (void *)operator new[](v6 + 1);
*((_DWORD *)this + 1) = v9;
result = memcpy(v9, a2, v7);
v11 = *((_DWORD *)this + 1);
*(_DWORD *)this = a3 | 0x200;
*((_DWORD *)this + 2) = v8 + v11;
return result;
}