//
// sub_818BE0 from 0x818be0 to 0x818c54 (116 bytes)
//
// 2 xrefs:
// > pugi::xpath_query::evaluate_string @ 0x81a68a
// > pugi::xpath_query::evaluate_string @ 0x81a98c
//
// 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
//
int __fastcall sub_818BE0(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_B6B226;
*(_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_8183A0(a1, *a2, v11, (int **)(a4 + 8224));
}
return a1;
}