//
// FriendsProfilePage::updateCountLabel from 0x5f3788 to 0x5f386c (228 bytes)
//
// 1 xrefs:
// > FriendsProfilePage::rebuildList @ 0x5f3890
//
// 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 FriendsProfilePage::updateCountLabel(cocos2d::CCArray **this)
{
cocos2d::CCArray *ActiveUserList; // r0
const char *v3; // r5
int v4; // r4
int (__fastcall *v5)(int, const char *); // r6
cocos2d::CCString *v6; // r0
const char *CString; // r0
int (__fastcall *v8)(int, const char *); // r3
const char *v9; // r1
int v10; // r0
cocos2d::CCArray *v11; // r0
int v12; // r3
const char *v13; // r7
int v14; // r3
int v15; // r6
int v16; // r3
int (__fastcall *v17)(int, const char *); // r5
int v18; // r0
cocos2d::CCString *v19; // r0
const char *v20; // r0
int (__fastcall *v21)(int, const char *); // r7
int v22; // r0
cocos2d::CCString *v23; // r0
ActiveUserList = (cocos2d::CCArray *)FriendsProfilePage::getActiveUserList((FriendsProfilePage *)this);
v3 = (const char *)ActiveUserList;
if ( ActiveUserList )
v3 = (const char *)cocos2d::CCArray::count(ActiveUserList);
if ( *((_BYTE *)this + 668) )
{
v4 = (int)*(this + 155);
v5 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v4 + 464);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Found: %i users", v3);
CString = (const char *)cocos2d::CCString::getCString(v6);
v8 = v5;
v9 = CString;
v10 = v4;
}
else
{
v11 = *(this + 159);
if ( v11 && cocos2d::CCArray::count(v11) )
{
v12 = (int)*(this + 154);
switch ( v12 )
{
case 1:
v13 = "Total blocked";
break;
case 3:
v13 = "Total following";
break;
case 4:
v13 = "Total muted";
break;
default:
v13 = "Total friends";
break;
}
v14 = *((unsigned __int8 *)this + 648);
v15 = (int)*(this + 155);
if ( (v14 & 1) != 0 )
v16 = (int)*(this + 163);
else
v16 = v14 >> 1;
if ( v16 )
{
v21 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v15 + 464);
v22 = cocos2d::CCArray::count(*(this + 159));
v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Found: %i / %i", v3, v22);
v20 = (const char *)cocos2d::CCString::getCString(v23);
v8 = v21;
}
else
{
v17 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v15 + 464);
v18 = cocos2d::CCArray::count(*(this + 159));
v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s: %i", v13, v18);
v20 = (const char *)cocos2d::CCString::getCString(v19);
v8 = v17;
}
v9 = v20;
v10 = v15;
}
else
{
v10 = (int)*(this + 155);
v9 = " ";
v8 = *(int (__fastcall **)(int, const char *))(*(_DWORD *)v10 + 464);
}
}
return v8(v10, v9);
}