//
// pugi::xpath_query::xpath_query from 0xddaafc to 0xddabf8 (252 bytes)
//
// 4 xrefs:
// > pugi::xml_node::select_single_node @ 0xddb2c8
// > pugi::xml_node::select_nodes @ 0xddb3b8
// > ??> @ 0x5c3f8
// > ??> @ 0x8d670
//
// 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:05 +0000
//
// Alternative name is '_ZN4pugi11xpath_queryC1EPKcPNS_18xpath_variable_setE'
void __fastcall pugi::xpath_query::xpath_query(pugi::xpath_query *this, char *a2, pugi::xpath_variable_set *a3)
{
_QWORD *v4; // x0
_QWORD *v5; // x20
_QWORD *v6; // x0
_QWORD *v7; // x0
_QWORD *v8; // x19
char *v11; // [xsp+48h] [xbp+48h]
*(_QWORD *)this = 0;
v11 = (char *)this + 8;
pugi::xpath_parse_result::xpath_parse_result((_QWORD *)this + 1);
v4 = off_154A348(0x1028u);
v5 = v4;
if ( v4 )
{
*v4 = 0;
v4[1] = v4 + 4;
v4[2] = 0;
v4[3] = 0;
v4[4] = 0;
v6 = sub_DD8D34((unsigned __int8 *)a2, (__int64)a3, (__int64)(v4 + 1), (__int64)v11);
*v5 = v6;
if ( v6 )
{
*(_QWORD *)this = v5;
*((_QWORD *)this + 1) = 0;
}
else
{
v7 = (_QWORD *)v5[1];
v8 = (_QWORD *)*v7;
if ( *v7 )
{
do
{
off_154A340(v7);
v7 = v8;
v8 = (_QWORD *)*v8;
}
while ( v8 );
}
off_154A340(v5);
}
}
else
{
*((_QWORD *)this + 1) = "Out of memory";
}
}