//
// pugi::xpath_variable::set from 0xdd6d90 to 0xdd6e30 (160 bytes)
//
// 2 xrefs:
// > pugi::xpath_variable_set::set @ 0xdd7278
// > ??> @ 0xc6df0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:03 +0000
//
__int64 __fastcall pugi::xpath_variable::set(pugi::xpath_variable *this, const char *a2)
{
size_t v5; // x21
void *v6; // x0
void *v7; // x20
void *v8; // x0
if ( *(_DWORD *)this != 3 )
return 0;
v5 = strlen(a2) + 1;
v6 = off_154A348(v5);
v7 = v6;
if ( !v6 )
return 0;
memcpy(v6, a2, v5);
v8 = *((void **)this + 2);
if ( v8 )
off_154A340(v8);
*((_QWORD *)this + 2) = v7;
return 1;
}