//
// FriendPickerPopup::updateCountLabel from 0x747884 to 0x7478f6 (114 bytes)
//
// 2 xrefs:
// > FriendPickerPopup::init @ 0x74a2f0
// > FriendPickerPopup::buildRows @ 0x758808
//
// 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:58:43 +0000
//
_DWORD *__fastcall FriendPickerPopup::updateCountLabel(_DWORD *this)
{
_DWORD *v1; // r4
const char *v2; // r0
int v3; // r5
const char *v4; // r6
int (__fastcall *v5)(int, int); // r7
int v6; // r0
cocos2d::CCString *v7; // r0
int CString; // r0
int (__fastcall *v9)(int, int); // r4
cocos2d::CCString *v10; // r0
int v11; // r0
v1 = this;
if ( *(this + 162) )
{
this = (_DWORD *)*(this + 151);
if ( this )
{
v2 = (const char *)(*(int (__fastcall **)(_DWORD *))(*this + 8))(this);
v3 = v1[162];
v4 = v2;
if ( *((_BYTE *)v1 + 624) )
{
v5 = *(int (__fastcall **)(int, int))(*(_DWORD *)v3 + 464);
v6 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)v1[151] + 28))(v1[151]);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", &v4[v6], 10);
CString = cocos2d::CCString::getCString(v7);
return (_DWORD *)v5(v3, CString);
}
else
{
v9 = *(int (__fastcall **)(int, int))(*(_DWORD *)v3 + 464);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i/%i", v2, 9);
v11 = cocos2d::CCString::getCString(v10);
return (_DWORD *)v9(v3, v11);
}
}
}
return this;
}