//
// sub_609A58 from 0x609a58 to 0x609acc (116 bytes)
//
// 2 xrefs:
// > pugi::xpath_query::evaluate_string @ 0x60b4f2
// > pugi::xpath_query::evaluate_string @ 0x60b5b2
//
// 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
//
int __fastcall sub_609A58(int a1, int *a2, void (**a3)(), int a4)
{
void (*v4)(); // r0
void (*v5)(); // r1
void (*v11[4])(); // [sp+14h] [bp-18h] BYREF
if ( !a2 || setjmp((struct __jmp_buf_tag *)(a4 + 8232)) )
{
*(_DWORD *)a1 = &unk_939830;
*(_BYTE *)(a1 + 4) = 0;
}
else
{
v4 = *a3;
v5 = a3[1];
v11[2] = (void (*)())(&dword_0 + 1);
v11[3] = (void (*)())(&dword_0 + 1);
v11[0] = v4;
v11[1] = v5;
sub_609260(a1, *a2, v11, (int **)(a4 + 8224));
}
return a1;
}