//
// NotificationsPage::loadNotificationsFinished from 0x10053b9bc to 0x10053baf4 (312 bytes)
//
// 2 xrefs:
// > sub_10053BBA0 @ 0x10053bba4
// > ??> @ 0x1009a67e0
//
// 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 11:07:40 +0000
//
__int64 __fastcall NotificationsPage::loadNotificationsFinished(__int64 result, __int64 a2, int a3, int a4, int a5)
{
__int64 v8; // x19
_DWORD *v9; // x0
int v10; // w8
int v11; // w21
int v12; // w20
int v13; // w21
if ( *(_DWORD *)(result + 736) == a3 )
{
v8 = result;
cocos2d::CCObject::retain(a2);
v9 = *(_DWORD **)(v8 + 728);
if ( v9 )
cocos2d::CCObject::release(v9);
*(_QWORD *)(v8 + 728) = a2;
*(_DWORD *)(v8 + 740) = a4;
if ( a5 <= 0 )
v10 = 10;
else
v10 = a5;
*(_DWORD *)(v8 + 744) = v10;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v8 + 696) + 344LL))(*(_QWORD *)(v8 + 696), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v8 + 720) + 344LL))(*(_QWORD *)(v8 + 720), 1);
v11 = sub_1002E757C(a2);
if ( v11 )
{
sub_10053B858(v8, a2);
}
else
{
sub_10053B858(v8, 0);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(v8 + 680) + 928LL))(
*(_QWORD *)(v8 + 680),
"No notifications yet");
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v8 + 680) + 344LL))(*(_QWORD *)(v8 + 680), v11 == 0);
v12 = *(_DWORD *)(v8 + 736);
v13 = *(_DWORD *)(v8 + 744);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v8 + 712) + 344LL))(*(_QWORD *)(v8 + 712), v12 > 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v8 + 704) + 344LL))(
*(_QWORD *)(v8 + 704),
*(_DWORD *)(v8 + 744) + v13 * v12 < *(_DWORD *)(v8 + 740));
return sub_10053BAF4(v8);
}
return result;
}