//
// tinyxml2::StrPair::SetStr from 0x7f8572 to 0x7f85aa (56 bytes)
//
// 8 xrefs:
// > tinyxml2::XMLNode::SetValue @ 0x7f8c7a
// > tinyxml2::XMLAttribute::SetName @ 0x7f90dc
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f9166
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f9190
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f91cc
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f9208
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f9246
// > tinyxml2::XMLAttribute::SetAttribute @ 0x7f9284
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:12 +0000
//
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;
}