//
// sub_5FC8FA from 0x5fc8fa to 0x5fc94c (82 bytes)
//
// 21 xrefs:
// > SecretLayer::textInputOpened @ 0x5fd1ce
// > SecretLayer::updateSearchLabel @ 0x5fd29a
// > SecretLayer::updateSearchLabel @ 0x5fd2dc
// > SecretLayer::onSubmit @ 0x5fe094
// > SecretLayer::onSubmit @ 0x5fe10e
// > SecretLayer::onSubmit @ 0x5fe1dc
// > SecretLayer::onSubmit @ 0x5fe256
// > SecretLayer::onSubmit @ 0x5fe2d0
// > SecretLayer::onSubmit @ 0x5fe34a
// > SecretLayer::onSubmit @ 0x5fe374
// > SecretLayer::onSubmit @ 0x5fe3f8
// > SecretLayer::onSubmit @ 0x5fe472
// > SecretLayer::onSubmit @ 0x5fe4ec
// > SecretLayer::onSubmit @ 0x5fe576
// > SecretLayer::onSubmit @ 0x5fe5e6
// > SecretLayer::onSubmit @ 0x5fe68c
// > SecretLayer::onSubmit @ 0x5fe6ce
// > SecretLayer::onSubmit @ 0x5fe71c
// > SecretLayer::onSubmit @ 0x5fe76a
// > SecretLayer::onSubmit @ 0x5fe7b8
// > SecretLayer::onSubmit @ 0x5fe804
//
// 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 11:54:36 +0000
//
bool __fastcall sub_5FC8FA(unsigned __int8 *a1, unsigned __int8 *a2)
{
int v2; // r5
int v3; // r4
int v4; // r2
unsigned int v5; // r5
int v6; // r3
unsigned int v7; // r4
const void *v8; // r0
const void *v9; // r1
size_t v10; // r2
int v11; // r0
v2 = *a1;
v3 = *a2;
v4 = v2 & 1;
if ( (v2 & 1) != 0 )
v5 = *((_DWORD *)a1 + 1);
else
v5 = v2 >> 1;
v6 = v3 & 1;
if ( (v3 & 1) != 0 )
v7 = *((_DWORD *)a2 + 1);
else
v7 = v3 >> 1;
if ( v4 )
v8 = *((const void **)a1 + 2);
else
v8 = a1 + 1;
if ( v6 )
v9 = *((const void **)a2 + 2);
else
v9 = a2 + 1;
v10 = v7;
if ( v7 >= v5 )
v10 = v5;
if ( !v10 || (v11 = memcmp(v8, v9, v10)) == 0 )
{
if ( v5 < v7 )
v11 = -1;
else
v11 = v5 > v7;
}
return v11 == 0;
}