//
// sub_B65778 from 0xb65778 to 0xb65844 (204 bytes)
//
// 1 xrefs:
// > pugi::xpath_query::xpath_query @ 0xb666c4
//
// 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
//
_QWORD *__fastcall sub_B65778(unsigned __int8 *a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v5; // x0
_QWORD *result; // x0
__int64 v9; // [xsp+30h] [xbp+30h] BYREF
unsigned __int8 *v10[4]; // [xsp+38h] [xbp+38h] BYREF
int v11; // [xsp+58h] [xbp+58h]
unsigned __int8 *v12; // [xsp+60h] [xbp+60h]
__int64 v13; // [xsp+68h] [xbp+68h]
__int64 v14; // [xsp+70h] [xbp+70h]
struct __jmp_buf_tag v15; // [xsp+98h] [xbp+98h] BYREF
v9 = a3;
v10[0] = a1;
v10[2] = nullptr;
v10[3] = nullptr;
sub_B4A57C(v10);
v12 = a1;
v13 = a2;
v14 = a4;
if ( setjmp(&v15) )
return nullptr;
v5 = (_QWORD *)sub_B63D0C((__int64)&v9);
result = sub_B653E4((__int64)&v9, v5, 0);
if ( v11 != 26 )
sub_B4AD00((__int64)&v9, (__int64)"Incorrect query");
return result;
}