//
// friendSinceCompare from 0x5f4b24 to 0x5f4bb2 (142 bytes)
//
// 0 xrefs:
//
// 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:30 +0000
//
int __fastcall friendSinceCompare(const void *a1, int *a2)
{
int v2; // r8
int v3; // r4
int v4; // r1
int v5; // r4
char *v6; // r4
unsigned __int8 *v7; // r1
int v9[3]; // [sp+4h] [bp-1Ch] BYREF
int v10[3]; // [sp+10h] [bp-10h] BYREF
v2 = *a2;
v3 = *(_DWORD *)(*a2 + 376);
v4 = *(_DWORD *)(*(_DWORD *)a1 + 376);
if ( v4 != v3 )
return v3 - v4;
std::string::basic_string(v9, *(_DWORD *)a1 + 264);
if ( (v9[0] & 1) != 0 )
v6 = (char *)v9[2];
else
v6 = (char *)v9 + 1;
std::string::basic_string(v10, v2 + 264);
if ( (v10[0] & 1) != 0 )
v7 = (unsigned __int8 *)v10[2];
else
v7 = (unsigned __int8 *)v10 + 1;
v5 = sub_5F324C((int)v6, v7);
std::string::~string((int)v10);
std::string::~string((int)v9);
return v5;
}