//
// sub_5F324C from 0x5f324c to 0x5f3288 (60 bytes)
//
// 2 xrefs:
// > friendNameCompare @ 0x5f4af0
// > friendSinceCompare @ 0x5f4b82
//
// 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:29 +0000
//
int __fastcall sub_5F324C(int a1, unsigned __int8 *a2)
{
int v2; // r7
int v4; // r0
int v5; // t1
unsigned __int8 *v6; // r8
int v7; // r6
int v8; // t1
int v9; // r4
int result; // r0
int v11; // r4
v2 = a1 - 1;
while ( 1 )
{
v5 = *(unsigned __int8 *)++v2;
v4 = v5;
v6 = a2;
if ( !v5 )
break;
v8 = *a2++;
v7 = v8;
if ( !v8 )
break;
v9 = tolower(v4);
result = v9 - tolower(v7);
if ( result )
return result;
}
v11 = tolower(v4);
return v11 - tolower(*v6);
}