//
// NotificationsPage::init from 0x140477cf0 to 0x1404784d5 (2021 bytes)
//
// 5 xrefs:
// > ProfilePage::onNotifications @ 0x140559bb4
// > ProfilePage::onNotifications @ 0x140559bbb
// > ProfilePage::onNotifications @ 0x140559ba5
// > ??> @ 0x1407b54b8
// > ??> @ 0x1409284c0
//
// 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
//
bool __fastcall NotificationsPage::init(__int64 a1)
{
bool result; // al
__int64 v3; // rcx
__int64 v4; // rax
__int64 v5; // rax
__int64 *v6; // rdi
__int64 v7; // rdx
void (__fastcall *v8)(__int64 *, __int64); // r8
__int64 v9; // rbx
__int64 v10; // rax
__int64 v11; // rbx
__int64 v12; // rax
struct cocos2d::CCLabelBMFont *v13; // rdi
__int64 v14; // rbx
__int64 v15; // rax
struct cocos2d::CCLabelBMFont *v16; // rax
__int64 v17; // rcx
__int64 *v18; // rdi
__int64 v19; // rbx
__int64 v20; // rax
__int64 *v21; // rdi
__int64 v22; // rbx
__int64 v23; // rax
int v24; // eax
cocos2d::CCObject *v25; // rax
struct cocos2d::CCMenu *v26; // rax
float v27; // xmm1_4
struct cocos2d::CCMenu *v28; // rdi
float v29; // xmm2_4
__int64 v30; // rbx
__int64 v31; // rax
cocos2d::CCLayerColor *v32; // rax
__int64 v33; // rcx
__int64 *v34; // rdi
__int64 v35; // rbx
__int64 v36; // rax
struct cocos2d::CCLabelBMFont *v37; // rax
__int64 v38; // rcx
__int64 *v39; // rdi
__int64 v40; // rbx
__int64 v41; // rax
float v42; // xmm7_4
struct cocos2d::CCSprite *v43; // rax
cocos2d::CCObject *v44; // rax
__int64 v45; // rcx
__int64 *v46; // rsi
__int64 v47; // rbx
__int64 v48; // rdi
__int64 v49; // rax
__int64 v50; // rax
cocos2d::CCSprite *v51; // rbx
cocos2d::CCObject *v52; // rax
__int64 v53; // rcx
__int64 *v54; // rsi
__int64 v55; // rbx
__int64 v56; // rdi
__int64 v57; // rax
__int64 v58; // rax
int v59; // eax
cocos2d::CCObject *v60; // rax
__int64 *v61; // rsi
__int64 v62; // rbx
__int64 v63; // rdi
__int64 v64; // rax
__int64 v65; // rax
struct cocos2d::CCSprite *v66; // rax
cocos2d::CCObject *v67; // rsi
__int64 v68; // rdi
__int64 v69; // rbx
__int64 v70; // rax
__int64 v71; // rax
_BYTE v72[16]; // [rsp+30h] [rbp-39h] BYREF
float v73; // [rsp+D8h] [rbp+6Fh] BYREF
float v74; // [rsp+DCh] [rbp+73h]
char v75; // [rsp+E0h] [rbp+77h] BYREF
char v76; // [rsp+E8h] [rbp+7Fh] BYREF
result = FLAlertLayer::init_1(a1, 150);
if ( result )
{
*(_BYTE *)(a1 + 596) = 1;
v4 = cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize(v4, &v73);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v72, 0.0, 0.0, 80.0, 80.0);
v6 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v5);
v7 = v6[40];
v8 = *(void (__fastcall **)(__int64 *, __int64))(v7 + 40);
LOBYTE(v7) = -1;
v8(v6 + 40, v7);
v9 = *v6;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v75, 440.0, 290.0);
(*(void (__fastcall **)(__int64 *, __int64))(v9 + 312))(v6, v10);
(*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v6,
0xFFFFFFFFLL);
v11 = *v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, v73 * 0.5, v74 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v11 + 184))(v6, v12);
v13 = cocos2d::CCLabelBMFont::create("Notifications", (const char *)&qword_140704F78);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v13,
20);
v14 = *(_QWORD *)v13;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, v73 * 0.5, (float)((float)(v74 * 0.5) + 145.0) - 20.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v14 + 184))(v13, v15);
cocos2d::CCLabelBMFont::limitLabelWidth(v13, 185.0, 0.80000001, 0.0);
v16 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt");
v17 = *(_QWORD *)(a1 + 584);
*(_QWORD *)(a1 + 672) = v16;
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v17 + 456LL))(v17, v16, 20);
v18 = *(__int64 **)(a1 + 672);
v19 = *v18;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, 1.0, 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v19 + 288))(v18, v20);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 672) + 160LL))(*(_QWORD *)(a1 + 672));
v21 = *(__int64 **)(a1 + 672);
v22 = *v21;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v75,
(float)((float)(v73 * 0.5) + 220.0) - 10.0,
(float)((float)(v74 * 0.5) + 145.0) - 20.0);
(*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23);
v24 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_backBtn_001.png");
v25 = CCMenuItemSpriteExtra::create(v24, 0, a1, (__int64)NotificationsPage::onClose);
*((_DWORD *)v25 + 93) = 1070386381;
v26 = cocos2d::CCMenu::create(v25, 0);
v27 = v73;
v28 = v26;
v29 = v74 * 0.5;
*(_QWORD *)(a1 + 552) = v26;
v30 = *(_QWORD *)v26;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v75,
(float)((float)(v27 * 0.5) - 220.0) + 10.0,
(float)(v29 + 145.0) - 10.0);
(*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v30 + 184))(v28, v31);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
*(_QWORD *)(a1 + 552),
10);
v32 = LoadingCircle::create();
v33 = *(_QWORD *)(a1 + 584);
*(_QWORD *)(a1 + 696) = v32;
*((_QWORD *)v32 + 69) = v33;
*(_BYTE *)(*(_QWORD *)(a1 + 696) + 560LL) = 0;
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 696));
LoadingCircle::show(*(_QWORD *)(a1 + 696));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 696) + 336LL))(*(_QWORD *)(a1 + 696), 0);
v34 = *(__int64 **)(*(_QWORD *)(a1 + 696) + 544LL);
v35 = *v34;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, v73 * 0.5, v74 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v35 + 184))(v34, v36);
v37 = cocos2d::CCLabelBMFont::create((const char *)&xmmword_140726660, "goldFont.fnt");
v38 = *(_QWORD *)(a1 + 584);
*(_QWORD *)(a1 + 680) = v37;
(*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v38 + 456LL))(v38, v37, 10);
v39 = *(__int64 **)(a1 + 680);
v40 = *v39;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, v73 * 0.5, v74 * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v40 + 184))(v39, v41);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 160LL))(*(_QWORD *)(a1 + 680));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 680) + 336LL))(*(_QWORD *)(a1 + 680), 0);
v42 = v74 * 0.5;
v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
LODWORD(v40) = (_DWORD)v43;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v43 + 160LL))(v43);
v44 = CCMenuItemSpriteExtra::create(v40, 0, a1, (__int64)NotificationsPage::onPrevPage);
v45 = *(_QWORD *)(a1 + 552);
*(_QWORD *)(a1 + 712) = v44;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v45 + 464LL))(v45, v44);
v46 = *(__int64 **)(a1 + 712);
v47 = *(_QWORD *)(a1 + 552);
v48 = *v46;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, (float)(v73 * 0.5) - 195.0, v42);
cocos2d::CCNode::convertToNodeSpace(v47, &v76, v49);
(*(void (__fastcall **)(__int64 *, __int64))(v48 + 184))(v46, v50);
*(_DWORD *)(*(_QWORD *)(a1 + 712) + 372LL) = 0x40000000;
v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v51, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v51 + 160LL))(v51);
v52 = CCMenuItemSpriteExtra::create((int)v51, 0, a1, (__int64)NotificationsPage::onNextPage);
v53 = *(_QWORD *)(a1 + 552);
*(_QWORD *)(a1 + 704) = v52;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v53 + 464LL))(v53, v52);
v54 = *(__int64 **)(a1 + 704);
v55 = *(_QWORD *)(a1 + 552);
v56 = *v54;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v75, (float)(v73 * 0.5) + 195.0, v42);
cocos2d::CCNode::convertToNodeSpace(v55, &v76, v57);
(*(void (__fastcall **)(__int64 *, __int64))(v56 + 184))(v54, v58);
*(_DWORD *)(*(_QWORD *)(a1 + 704) + 372LL) = 0x40000000;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 712) + 336LL))(*(_QWORD *)(a1 + 712), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 336LL))(*(_QWORD *)(a1 + 704), 0);
v59 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
v60 = CCMenuItemSpriteExtra::create(v59, 0, a1, (__int64)NotificationsPage::onUpdate);
*(_QWORD *)(a1 + 720) = v60;
*((_DWORD *)v60 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))(
*(_QWORD *)(a1 + 552),
*(_QWORD *)(a1 + 720));
v61 = *(__int64 **)(a1 + 720);
v62 = *(_QWORD *)(a1 + 552);
v63 = *v61;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v75,
(float)((float)(v73 * 0.5) + 220.0) - 10.0,
(float)((float)((float)(v74 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace(v62, &v76, v64);
(*(void (__fastcall **)(__int64 *, __int64))(v63 + 184))(v61, v65);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 720) + 336LL))(*(_QWORD *)(a1 + 720), 0);
v66 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn02_001.png");
LODWORD(v62) = (_DWORD)v66;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v66 + 160LL))(v66);
v67 = CCMenuItemSpriteExtra::create(v62, 0, a1, (__int64)NotificationsPage::onFilter);
*((_DWORD *)v67 + 93) = 1069547520;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v67);
v68 = *(_QWORD *)v67;
v69 = *(_QWORD *)(a1 + 552);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v75,
(float)((float)(v73 * 0.5) - 220.0) + 10.0,
(float)((float)((float)(v74 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace(v69, &v76, v70);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v68 + 184))(v67, v71);
NotificationsPage::loadPage(a1, 0);
return 1;
}
return result;
}