//
// NotificationsPage::setupBrowser from 0x1404788b0 to 0x140478a38 (392 bytes)
//
// 4 xrefs:
// > NotificationsPage::loadPage @ 0x140478839
// > NotificationsPage::loadNotificationsFinished @ 0x140478acc
// > NotificationsPage::loadNotificationsFinished @ 0x140478ad7
// > ??> @ 0x140928514
//
// 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
//
__int64 __fastcall NotificationsPage::setupBrowser(_QWORD *a1, cocos2d::CCObject *a2)
{
int v2; // ebp
__int64 v5; // rax
struct cocos2d::CCObject *v6; // rbx
cocos2d::CCTouchDispatcher *v7; // rax
__int64 v8; // rax
int v9; // edx
cocos2d::CCLayerColor *v10; // rax
__int64 v11; // rcx
__int64 *v12; // rdi
__int64 v13; // rbx
__int64 v14; // rax
__int64 result; // rax
__int64 v16; // rcx
__int64 *v17; // rdi
__int64 v18; // rbx
int v19; // eax
__int64 v20; // [rsp+20h] [rbp-48h]
int v21; // [rsp+30h] [rbp-38h]
float v22; // [rsp+70h] [rbp+8h] BYREF
float v23; // [rsp+74h] [rbp+Ch]
char v24; // [rsp+78h] [rbp+10h] BYREF
v2 = 0;
if ( a1[86] )
{
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (struct cocos2d::CCObject *)a1[86];
v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, v6);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[86] + 528LL))(a1[86]);
a1[86] = 0;
}
v8 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v8, &v22);
if ( a2 )
{
v21 = 0;
v2 = (unsigned int)CustomListView::create(a2, 0, 196.0, 340.0, v20, 40);
}
v10 = GJCommentListLayer::create(v2, v9, -12684609, 340.0, 1128529920, 0, v21);
v11 = a1[73];
a1[86] = v10;
(*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *))(*(_QWORD *)v11 + 464LL))(v11, v10);
v12 = (__int64 *)a1[86];
v13 = *v12;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v24,
(float)(v22 - 340.0) * 0.5,
(float)((float)((float)(v23 - 196.0) * 0.5) - 10.0) + 5.0);
(*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v12, v14);
result = a1[86];
v16 = *(_QWORD *)(result + 544);
if ( v16 )
{
v17 = (__int64 *)a1[69];
v18 = *v17;
v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 952LL))(v16);
return (*(__int64 (__fastcall **)(__int64 *, _QWORD))(v18 + 944))(v17, (unsigned int)(v19 - 2));
}
return result;
}