//
// NotificationsPage::loadNotificationsFinished from 0x743d24 to 0x743dca (166 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NotificationsPage::loadNotificationsFinished @ 0x743dd4
//
// 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:40 +0000
//
int __fastcall NotificationsPage::loadNotificationsFinished(int this, cocos2d::CCArray *a2, int a3, int a4, int a5)
{
int v6; // r4
int v8; // r6
cocos2d::CCObject *v9; // r0
int v10; // r0
v6 = this;
v8 = a5;
if ( a3 == *(_DWORD *)(this + 556) )
{
cocos2d::CCObject::retain(a2);
v9 = *(cocos2d::CCObject **)(v6 + 552);
if ( v9 )
cocos2d::CCObject::release(v9);
v10 = *(_DWORD *)(v6 + 536);
*(_DWORD *)(v6 + 552) = a2;
if ( a5 <= 0 )
v8 = 10;
*(_DWORD *)(v6 + 560) = a4;
*(_DWORD *)(v6 + 564) = v8;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10 + 172))(v10, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v6 + 548) + 172))(*(_DWORD *)(v6 + 548), 1);
if ( cocos2d::CCArray::count(a2) )
{
NotificationsPage::setupBrowser((NotificationsPage *)v6, a2);
}
else
{
NotificationsPage::setupBrowser((NotificationsPage *)v6, nullptr);
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(v6 + 528) + 464))(
*(_DWORD *)(v6 + 528),
"No notifications yet");
}
(*(void (**)(void))(**(_DWORD **)(v6 + 528) + 172))();
NotificationsPage::updatePageArrows((NotificationsPage *)v6);
return NotificationsPage::updateCountLabel((NotificationsPage *)v6);
}
return this;
}