//
// sub_100051318 from 0x100051318 to 0x100051384 (108 bytes)
//
// 1 xrefs:
// > UILayer::announceLevelControls @ 0x100051270
//
// 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 10:57:43 +0000
//
bool __fastcall sub_100051318(_QWORD *a1, _QWORD *a2)
{
int v2; // w8
size_t v3; // x2
__int64 v4; // x10
int v5; // w9
v2 = *((char *)a1 + 23);
if ( v2 >= 0 )
v3 = *((unsigned __int8 *)a1 + 23);
else
v3 = a1[1];
v4 = *((unsigned __int8 *)a2 + 23);
v5 = (char)v4;
if ( (v4 & 0x80u) != 0LL )
v4 = a2[1];
if ( v3 != v4 )
return 0;
if ( v2 < 0 )
a1 = (_QWORD *)*a1;
if ( v5 < 0 )
a2 = (_QWORD *)*a2;
return memcmp(a1, a2, v3) == 0;
}