//
// sub_1002731B0 from 0x1002731b0 to 0x100273230 (128 bytes)
//
// 3 xrefs:
// > sub_1002724B8 @ 0x100272528
// > sub_100272564 @ 0x100272618
// > FriendsProfilePage::getUserListFinished @ 0x100273530
//
// 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 11:01:47 +0000
//
void __fastcall sub_1002731B0(__int64 a1)
{
__int64 v2; // x0
int (__cdecl *v3)(const void *, const void *); // x3
v2 = *(_QWORD *)(a1 + 856);
if ( v2 && (unsigned int)sub_1002E757C(v2) >= 2 )
{
if ( *(_BYTE *)(a1 + 944) )
v3 = (int (__cdecl *)(const void *, const void *))sub_100271314;
else
v3 = (int (__cdecl *)(const void *, const void *))sub_1002711A4;
qsort(
*(void **)(*(_QWORD *)(*(_QWORD *)(a1 + 856) + 56LL) + 16LL),
**(unsigned int **)(*(_QWORD *)(a1 + 856) + 56LL),
8u,
v3);
if ( *(_BYTE *)(a1 + 968) == 1 )
sub_1002E76C0(*(_QWORD *)(a1 + 856));
}
}