//
// NotificationsPage::loadNotificationsFinished from 0x10098c140 to 0x10098c274 (308 bytes)
//
// 2 xrefs:
// > sub_10098C3A0 @ 0x10098c3ac
// > ??> @ 0x100bd4810
//
// This function is hookable on this platform (idp: pc, 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 12:39:06 +0000
//
void __fastcall NotificationsPage::loadNotificationsFinished(__int64 a1, __int64 a2, int a3, int a4, int a5)
{
_DWORD *v8; // rdi
int v9; // eax
int v10; // r15d
int v11; // eax
int v12; // r14d
if ( *(_DWORD *)(a1 + 736) == a3 )
{
cocos2d::CCObject::retain(a2);
v8 = *(_DWORD **)(a1 + 728);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = 10;
if ( a5 > 0 )
v9 = a5;
*(_QWORD *)(a1 + 728) = a2;
*(_DWORD *)(a1 + 740) = a4;
*(_DWORD *)(a1 + 744) = v9;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 696) + 344LL))(*(_QWORD *)(a1 + 696), 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 720) + 344LL))(*(_QWORD *)(a1 + 720), 1);
v10 = sub_1007FEF90(a2);
if ( v10 )
{
NotificationsPage::setupBrowser(a1, a2);
}
else
{
NotificationsPage::setupBrowser(a1, 0);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 680) + 928LL))(
*(_QWORD *)(a1 + 680),
"No notifications yet");
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 680) + 344LL))(*(_QWORD *)(a1 + 680), v10 == 0);
v11 = *(_DWORD *)(a1 + 736);
v12 = v11 * *(_DWORD *)(a1 + 744);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 712) + 344LL))(*(_QWORD *)(a1 + 712), v11 > 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 704) + 344LL))(
*(_QWORD *)(a1 + 704),
*(_DWORD *)(a1 + 744) + v12 < *(_DWORD *)(a1 + 740));
NotificationsPage::updateCountLabel(a1);
}
}