//
// pugi::xpath_query::xpath_query from 0x60b210 to 0x60b29a (138 bytes)
//
// 2 xrefs:
// > pugi::xml_node::select_single_node @ 0x60b78c
// > pugi::xml_node::select_nodes @ 0x60b80c
//
// 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
//
// 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_ABAE6C(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_60150C;
v10 = sub_60AC90((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_5FFF4C((int)&v13);
}
else
{
*((_DWORD *)this + 1) = "Out of memory";
}
return this;
}