//
// NotificationsPage::loadNotificationsFinished from 0xc5fb18 to 0xc5fc40 (296 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NotificationsPage::loadNotificationsFinished @ 0xc5fc44
// > ??> @ 0xf20c8
// > ??> @ 0x14ea540
//
// 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::loadNotificationsFinished(
__int64 this,
cocos2d::CCArray *a2,
int a3,
int a4,
int a5)
{
__int64 v5; // x19
cocos2d::CCObject *v9; // x0
__int64 v10; // x4
if ( *(_DWORD *)(this + 736) == a3 )
{
v5 = this;
cocos2d::CCObject::retain(a2);
v9 = *(cocos2d::CCObject **)(v5 + 728);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *(_QWORD *)(v5 + 696);
*(_QWORD *)(v5 + 728) = a2;
if ( a5 <= 0 )
a5 = 10;
*(_DWORD *)(v5 + 740) = a4;
*(_DWORD *)(v5 + 744) = a5;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 720) + 344LL))(*(_QWORD *)(v5 + 720), 1);
if ( (unsigned int)cocos2d::CCArray::count(a2) )
{
NotificationsPage::setupBrowser((NotificationsPage *)v5, a2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 680) + 344LL))(*(_QWORD *)(v5 + 680), 0);
}
else
{
NotificationsPage::setupBrowser((NotificationsPage *)v5, nullptr);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(v5 + 680) + 928LL))(
*(_QWORD *)(v5 + 680),
"No notifications yet");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v5 + 680) + 344LL))(*(_QWORD *)(v5 + 680), 1);
}
NotificationsPage::updatePageArrows((NotificationsPage *)v5);
return NotificationsPage::updateCountLabel((NotificationsPage *)v5);
}
return this;
}