//
// pugi::xpath_query::evaluate_node_set from 0x81a6dc to 0x81a7c8 (236 bytes)
//
// 2 xrefs:
// > pugi::xml_node::select_single_node @ 0x81a812
// > pugi::xml_node::select_nodes @ 0x81a8b0
//
// 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:45 +0000
//
pugi::xpath_query *__fastcall pugi::xpath_query::evaluate_node_set(
pugi::xpath_query *this,
pugi::xpath_variable ****a2,
void (**a3)())
{
pugi::xpath_variable ***v3; // r3
void (*v4)(); // r0
void (*v5)(); // r1
pugi::xpath_variable **v8; // [sp+4h] [bp-2158h]
void (*v9[4])(); // [sp+Ch] [bp-2150h] BYREF
void (*v10[4])(); // [sp+1Ch] [bp-2140h] BYREF
_DWORD v11[11]; // [sp+2Ch] [bp-2130h] BYREF
int v12; // [sp+1030h] [bp-112Ch] BYREF
_DWORD v13[3]; // [sp+2034h] [bp-128h] BYREF
_DWORD v14[3]; // [sp+2040h] [bp-11Ch] BYREF
_DWORD v15[2]; // [sp+204Ch] [bp-110h] BYREF
struct __jmp_buf_tag v16; // [sp+2054h] [bp-108h] BYREF
v3 = *a2;
if ( *a2 && (v8 = *v3, *((_BYTE *)*v3 + 1) == 1) )
{
v4 = *a3;
v5 = a3[1];
v9[2] = (void (*)())(&dword_0 + 1);
v9[3] = (void (*)())(&dword_0 + 1);
v9[0] = v4;
v9[1] = v5;
v13[0] = v11;
v13[1] = 0;
v14[0] = &v12;
v14[1] = 0;
v12 = 0;
v11[0] = 0;
v15[0] = v13;
v15[1] = v14;
v14[2] = &v16;
v13[2] = &v16;
if ( setjmp(&v16) )
{
pugi::xpath_node_set::xpath_node_set(this);
}
else
{
sub_816CF0(v10, v8, v9, (int)v15);
pugi::xpath_node_set::xpath_node_set(
this,
(const pugi::xpath_node *)v10[1],
(const pugi::xpath_node *)v10[2],
(int)v10[0]);
}
sub_810AB4((int)v11);
}
else
{
pugi::xpath_node_set::xpath_node_set(this);
}
return this;
}