//
// pugi::xpath_query::xpath_query from 0x81a398 to 0x81a422 (138 bytes)
//
// 2 xrefs:
// > pugi::xml_node::select_single_node @ 0x81a864
// > pugi::xml_node::select_nodes @ 0x81a8e4
//
// 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:44 +0000
//
// Alternative name is '_ZN4pugi11xpath_queryC1EPKcPNS_18xpath_variable_setE'
pugi::xpath_query *__fastcall pugi::xpath_query::xpath_query(
pugi::xpath_query *this,
char *a2,
pugi::xpath_variable_set *a3)
{
int v6; // r3
unsigned __int8 *v7; // r7
int *v8; // r0
int *v9; // r4
int v10; // r0
char *v11; // r3
char *v13; // [sp+4h] [bp-Ch] BYREF
int (__fastcall *v14)(int); // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v13 = a2;
v14 = (int (__fastcall *)(int))a3;
v6 = _stack_chk_guard;
*(_DWORD *)this = 0;
v7 = (unsigned __int8 *)this + 4;
v15 = v6;
pugi::xpath_parse_result::xpath_parse_result((_DWORD *)this + 1);
v8 = (int *)off_D2006C(4116);
v9 = v8;
if ( v8 )
{
*v8 = 0;
v8[1] = (int)(v8 + 4);
v8[2] = 0;
v8[3] = 0;
v8[4] = 0;
v13 = (char *)v8;
v14 = sub_810AD0;
v10 = sub_819E18((unsigned __int8 *)a2, (unsigned __int8 *)a3, v8 + 1, v7);
*v9 = v10;
if ( v10 )
{
v11 = v13;
v13 = nullptr;
*(_DWORD *)this = v11;
*((_DWORD *)this + 1) = 0;
}
sub_80F574((int)&v13);
}
else
{
*((_DWORD *)this + 1) = "Out of memory";
}
return this;
}