//
// NotificationsPage::updateCountLabel from 0xc5fa64 to 0xc5fb18 (180 bytes)
//
// 2 xrefs:
// > NotificationsPage::loadNotificationsFinished @ 0xc5fbf8
// > ??> @ 0x5e2b8
//
// 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 13:05:21 +0000
//
__int64 __fastcall NotificationsPage::updateCountLabel(NotificationsPage *this)
{
cocos2d::CCArray *v2; // x0
__int64 v4; // x21
int v5; // w20
__int64 (__fastcall *v6)(__int64, __int64); // x22
int v7; // w0
cocos2d::CCString *v8; // x0
__int64 CString; // x0
if ( *((int *)this + 185) <= 0 )
return (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 84) + 928LL))(
*((_QWORD *)this + 84),
&byte_11E1A70);
v2 = *((cocos2d::CCArray **)this + 91);
if ( !v2 || !(unsigned int)cocos2d::CCArray::count(v2) )
return (*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 84) + 928LL))(
*((_QWORD *)this + 84),
&byte_11E1A70);
v4 = *((_QWORD *)this + 84);
v5 = *((_DWORD *)this + 184) * *((_DWORD *)this + 186);
v6 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL);
v7 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 91));
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i to %i of %i",
(const char *)(unsigned int)(v5 + 1),
(unsigned int)(v5 + v7),
*((unsigned int *)this + 185));
CString = cocos2d::CCString::getCString(v8);
return v6(v4, CString);
}