//
// sub_1002726C0 from 0x1002726c0 to 0x1002727fc (316 bytes)
//
// 8 xrefs:
// > sub_1002723E0 @ 0x10027247c
// > sub_1002724B8 @ 0x10027254c
// > sub_100272564 @ 0x10027263c
// > FriendsProfilePage::getUserListFinished @ 0x1002734d0
// > FriendsProfilePage::getUserListFinished @ 0x1002735c8
// > FriendsProfilePage::getUserListFailed @ 0x10027376c
// > FriendsProfilePage::forceReloadList @ 0x100273888
// > FriendsProfilePage::textChanged @ 0x100273c10
//
// 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
//
__int64 __fastcall sub_1002726C0(__int64 a1)
{
int v2; // w8
__int64 v3; // x9
__int64 v4; // x0
int v5; // w20
__int64 v6; // x19
__int64 v7; // x0
__int64 CString; // x1
__int64 v10; // x0
__int64 v11; // x23
__int64 v12; // x21
__int64 v13; // x0
__int64 v14; // x1
v2 = *(unsigned __int8 *)(a1 + 920);
if ( (v2 & 1) != 0 )
{
v3 = 872;
}
else
{
v4 = *(_QWORD *)(a1 + 864);
if ( v4 )
goto LABEL_6;
v3 = 856;
}
v4 = *(_QWORD *)(a1 + v3);
if ( !v4 )
{
v5 = 0;
if ( v2 )
goto LABEL_7;
goto LABEL_9;
}
LABEL_6:
v5 = sub_1002E757C(v4);
if ( (*(_BYTE *)(a1 + 920) & 1) != 0 )
{
LABEL_7:
v6 = *(_QWORD *)(a1 + 824);
v7 = sub_1003065B0("Found: %i users", v5);
CString = cocos2d::CCString::getCString(v7);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, CString);
}
LABEL_9:
v10 = *(_QWORD *)(a1 + 856);
if ( !v10 || !(unsigned int)sub_1002E757C(v10) )
return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 824) + 928LL))(
*(_QWORD *)(a1 + 824),
" ");
v11 = *(char *)(a1 + 903);
if ( v11 < 0 )
v11 = *(_QWORD *)(a1 + 888);
v12 = *(_QWORD *)(a1 + 824);
sub_1002E757C(*(_QWORD *)(a1 + 856));
if ( v11 )
v13 = sub_1003065B0("Found: %i / %i");
else
v13 = sub_1003065B0("%s: %i");
v14 = cocos2d::CCString::getCString(v13);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 928LL))(v12, v14);
}