//
// sub_F811A4 from 0xf811a4 to 0xf81230 (140 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:50 +0000
//
__int64 __fastcall sub_F811A4(unsigned __int8 *a1, unsigned __int8 *a2)
{
unsigned __int64 v2; // x8
int v3; // w9
size_t v4; // x19
unsigned __int64 v5; // x8
size_t v6; // x20
const wchar_t *v7; // x0
size_t v8; // x2
const wchar_t *v9; // x1
__int64 result; // x0
v2 = *a1;
v3 = v2 & 1;
if ( (v2 & 1) != 0 )
v4 = *((_QWORD *)a1 + 1);
else
v4 = v2 >> 1;
v5 = *a2;
if ( (v5 & 1) != 0 )
v6 = *((_QWORD *)a2 + 1);
else
v6 = v5 >> 1;
if ( v3 )
v7 = *((const wchar_t **)a1 + 2);
else
v7 = (const wchar_t *)(a1 + 4);
if ( v6 >= v4 )
v8 = v4;
else
v8 = v6;
if ( !v8
|| ((v5 & 1) != 0 ? (v9 = *((const wchar_t **)a2 + 2)) : (v9 = (const wchar_t *)(a2 + 4)),
result = wmemcmp(v7, v9, v8),
!(_DWORD)result) )
{
if ( v4 < v6 )
return 0xFFFFFFFFLL;
else
return v6 < v4;
}
return result;
}