//
// NotificationsPage::loadNotificationsFinished from 0x140478a40 to 0x140478bc7 (391 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407b5418
// > ??> @ 0x140928520
//
// 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 11:32:41 +0000
//
void __fastcall NotificationsPage::loadNotificationsFinished(__int64 a1, cocos2d::CCObject *a2, int a3, int a4, int a5)
{
cocos2d::CCObject *v8; // rcx
int v9; // ecx
__int64 v10; // rdx
unsigned int v11; // eax
_QWORD *v12; // rcx
__int64 v13; // rdx
int v14; // ebx
__int64 v15; // rdx
__int64 v16; // rdx
cocos2d::CCArray *v17; // rcx
int v18; // edi
int v19; // ebx
unsigned int v20; // eax
cocos2d::CCString *v21; // rax
const char *CString; // rax
if ( a3 == *(_DWORD *)(a1 + 72) )
{
cocos2d::CCObject::retain(a2);
v8 = *(cocos2d::CCObject **)(a1 + 64);
if ( v8 )
cocos2d::CCObject::release(v8);
v9 = 10;
*(_QWORD *)(a1 + 64) = a2;
*(_DWORD *)(a1 + 76) = a4;
if ( a5 > 0 )
v9 = a5;
*(_DWORD *)(a1 + 80) = v9;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 32) + 336LL))(*(_QWORD *)(a1 + 32), 0);
LOBYTE(v10) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 56) + 336LL))(*(_QWORD *)(a1 + 56), v10);
v11 = cocos2d::CCArray::count(a2);
v12 = (_QWORD *)(a1 - 664);
if ( v11 )
{
NotificationsPage::setupBrowser(v12, a2);
v13 = 0;
}
else
{
NotificationsPage::setupBrowser(v12, nullptr);
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 16) + 360LL))(
*(_QWORD *)(a1 + 16) + 360LL,
"No notifications yet");
LOBYTE(v13) = 1;
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 16) + 336LL))(*(_QWORD *)(a1 + 16), v13);
v14 = *(_DWORD *)(a1 + 80) * *(_DWORD *)(a1 + 72);
LOBYTE(v15) = *(_DWORD *)(a1 + 72) > 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 48) + 336LL))(*(_QWORD *)(a1 + 48), v15);
v16 = (unsigned int)(v14 + *(_DWORD *)(a1 + 80));
LOBYTE(v16) = (int)v16 < *(_DWORD *)(a1 + 76);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 40) + 336LL))(*(_QWORD *)(a1 + 40), v16);
if ( *(int *)(a1 + 76) > 0 && (v17 = *(cocos2d::CCArray **)(a1 + 64)) != nullptr && cocos2d::CCArray::count(v17) )
{
v18 = *(_DWORD *)(a1 + 80) * *(_DWORD *)(a1 + 72);
v19 = *(_DWORD *)(a1 + 76);
v20 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 64));
v21 = cocos2d::CCString::createWithFormat("%i to %i of %i", v18 + 1, v18 + v20, v19);
CString = cocos2d::CCString::getCString(v21);
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 8) + 360LL))(
*(_QWORD *)(a1 + 8) + 360LL,
CString);
}
else
{
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 8) + 360LL))(*(_QWORD *)(a1 + 8) + 360LL, " ");
}
}
}