//
// sub_819E18 from 0x819e18 to 0x819e7a (98 bytes)
//
// 1 xrefs:
// > pugi::xpath_query::xpath_query @ 0x81a3ee
//
// 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_819E18(unsigned __int8 *a1, unsigned __int8 *a2, int *a3, unsigned __int8 *a4)
{
int result; // r0
int *v8; // [sp+0h] [bp-14Ch] BYREF
unsigned __int8 *v9[16]; // [sp+4h] [bp-148h] BYREF
jmp_buf env; // [sp+44h] [bp-108h] BYREF
v8 = a3;
v9[0] = a1;
v9[2] = nullptr;
v9[3] = nullptr;
sub_80F84C(v9);
v9[5] = a1;
v9[6] = a2;
v9[7] = a4;
if ( setjmp(env) )
return 0;
result = sub_819E00(&v8);
if ( v9[4] != (_BYTE *)&dword_18 + 2 )
sub_810198((int)&v8, (int)"Incorrect query");
return result;
}