//
// NotificationsPage::setupBrowser from 0x10098bfd0 to 0x10098c13f (367 bytes)
//
// 9 xrefs:
// > NotificationsPage::init @ 0x10098ba04
// > NotificationsPage::onPrevPage @ 0x10098bb7d
// > NotificationsPage::onNextPage @ 0x10098bc3d
// > NotificationsPage::onUpdate @ 0x10098bd38
// > NotificationsPage::loadPage @ 0x10098be07
// > NotificationsPage::loadNotificationsFinished @ 0x10098c1d8
// > NotificationsPage::loadNotificationsFinished @ 0x10098c1e2
// > NotificationsPage::notificationMuteFinished @ 0x10098c8bc
// > NotificationFilterPopup::onClose @ 0x10098d5ed
//
// 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
//
__int64 __fastcall NotificationsPage::setupBrowser(__int64 a1, __int64 a2)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
char *v6; // rdi
_QWORD *v7; // rax
__int64 v8; // r14
__int64 result; // rax
__int64 v10; // rdi
__int64 v11; // rbx
int v12; // eax
float v13; // [rsp+8h] [rbp-28h] BYREF
__int64 v14; // [rsp+10h] [rbp-20h] BYREF
if ( *(_QWORD *)(a1 + 688) )
{
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, *(_QWORD *)(a1 + 688));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 688) + 536LL))(*(_QWORD *)(a1 + 688));
*(_QWORD *)(a1 + 688) = 0;
}
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v14, v5);
if ( a2 )
v6 = CustomListView::create(a2, 0, 0, 0x28u, 196.0, 340.0, 0.0);
else
v6 = nullptr;
v7 = GJCommentListLayer::create((__int64)v6, 340.0, 196.0, (__int64)"Notifications", 0xFF3E72BF, 0);
*(_QWORD *)(a1 + 688) = v7;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v7);
v8 = *(_QWORD *)(a1 + 688);
sub_100278250(
&v13,
(float)(*(float *)&v14 + -340.0) * 0.5,
(float)((float)((float)(*((float *)&v14 + 1) + -196.0) * 0.5) + -10.0) + 5.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v8 + 184LL))(v8, &v13);
result = *(_QWORD *)(a1 + 688);
v10 = *(_QWORD *)(result + 544);
if ( v10 )
{
v11 = *(_QWORD *)(a1 + 552);
v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1032LL))(v10);
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1024LL))(v11, (unsigned int)(v12 - 2));
}
return result;
}