//
// pugi::xpath_query::evaluate_node_set from 0x60b604 to 0x60b6f0 (236 bytes)
//
// 2 xrefs:
// > pugi::xml_node::select_single_node @ 0x60b73a
// > pugi::xml_node::select_nodes @ 0x60b7d8
//
// 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
//
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
pugi::xml_attribute_struct *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_607BBC(v10, v8, v9, (int)v15);
pugi::xpath_node_set::xpath_node_set(this, v10[1], v10[2], (int)v10[0]);
}
sub_6014F0((int)v11);
}
else
{
pugi::xpath_node_set::xpath_node_set(this);
}
return this;
}