//
// NotificationsPage::init from 0x743590 to 0x743b74 (1508 bytes)
//
// 1 xrefs:
// > NotificationsPage::create @ 0x74339e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:40 +0000
//
GameManager *__fastcall NotificationsPage::init(NotificationsPage *this)
{
GameManager *v2; // r0
GameManager *v3; // r9
int v4; // r6
void (__fastcall *v5)(int, _BYTE *); // r7
void (__fastcall *v6)(int, _BYTE *); // r7
const char *v7; // r2
cocos2d::CCLabelBMFont *v8; // r6
void (__fastcall *v9)(cocos2d::CCLabelBMFont *, _BYTE *); // r7
const char *v10; // r2
int v11; // r0
int v12; // r6
void (__fastcall *v13)(int, _BYTE *); // r11
int v14; // r6
void (__fastcall *v15)(int, _BYTE *); // r11
const char *v16; // r1
int v17; // r0
cocos2d::CCMenu *v18; // r11
int v19; // r0
float v20; // s14
float v21; // s13
void (__fastcall *v22)(int, _BYTE *); // r11
LoadingCircle *v23; // r0
cocos2d::CCLayerColor *v24; // r0
int v25; // r3
void (__fastcall *v26)(int, _BYTE *); // r11
const char *v27; // r2
int v28; // r0
int v29; // r7
void (__fastcall *v30)(int, _BYTE *); // r11
const char *v31; // r1
float v32; // s20
int v33; // r7
int v34; // r0
const char *v35; // r1
cocos2d::CCSprite *v36; // r11
int v37; // r0
const cocos2d::CCPoint *v38; // r11
void (__fastcall *v39)(int, _BYTE *); // r10
const char *v40; // r1
int v41; // r0
int v42; // r0
const cocos2d::CCPoint *v43; // r11
void (__fastcall *v44)(int, _BYTE *); // r10
const char *v45; // r1
int v46; // r10
int v47; // r8
const cocos2d::CCPoint *v48; // r11
void (__fastcall *v49)(int, _BYTE *); // r10
int v51; // [sp+8h] [bp-64h]
int v52; // [sp+8h] [bp-64h]
void (__fastcall *v53)(int, _BYTE *); // [sp+8h] [bp-64h]
int v54; // [sp+8h] [bp-64h]
int v55; // [sp+8h] [bp-64h]
cocos2d::CCPoint *v56; // [sp+Ch] [bp-60h]
int v57; // [sp+14h] [bp-58h]
float v58; // [sp+1Ch] [bp-50h] BYREF
float v59; // [sp+20h] [bp-4Ch]
int (__fastcall *v60)(cocos2d::CCObject **, cocos2d::CCObject *); // [sp+24h] [bp-48h]
int v61; // [sp+28h] [bp-44h]
_DWORD (*v62)(NotificationsPage *__hidden, cocos2d::CCObject *); // [sp+2Ch] [bp-40h]
int v63; // [sp+30h] [bp-3Ch]
_DWORD (*v64)(NotificationsPage *__hidden, cocos2d::CCObject *); // [sp+34h] [bp-38h]
int v65; // [sp+38h] [bp-34h]
_DWORD (*v66)(NotificationsPage *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-30h]
int v67; // [sp+40h] [bp-2Ch]
_DWORD (*v68)(NotificationsPage *__hidden, cocos2d::CCObject *); // [sp+44h] [bp-28h]
int v69; // [sp+48h] [bp-24h]
_BYTE v70[8]; // [sp+4Ch] [bp-20h] BYREF
_BYTE v71[16]; // [sp+54h] [bp-18h] BYREF
v2 = FLAlertLayer::init(this, 150);
v3 = v2;
if ( v2 )
{
*((_BYTE *)this + 468) = 1;
cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v58);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v71, 0.0, 0.0, 80.0, 80.0);
v4 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v71);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 456))(v4, 255);
v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v71, 440.0, 290.0);
v5(v4, v71);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v4, -1);
v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v58 * 0.5, v59 * 0.5);
v6(v4, v71);
v8 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(
(cocos2d::CCLabelBMFont *)"Notifications",
"bigFont.fnt",
v7);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v8,
20);
v9 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v8 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v58 * 0.5, (float)((float)(v59 * 0.5) + 145.0) - 20.0);
v9(v8, v71);
cocos2d::CCLabelBMFont::limitLabelWidth(v8, 185.0, 0.8, 0.0);
v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v10);
*((_DWORD *)this + 131) = v11;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v11, 20);
v12 = *((_DWORD *)this + 131);
v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 1.0, 0.5);
v13(v12, v71);
(*(void (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 131) + 80))(*((_DWORD *)this + 131), 0.5);
v14 = *((_DWORD *)this + 131);
v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v71,
(float)((float)(v58 * 0.5) + 220.0) - 10.0,
(float)((float)(v59 * 0.5) + 145.0) - 20.0);
v15(v14, v71);
v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_backBtn_001.png", v16);
v61 = 0;
v60 = NotificationsPage::onClose;
v18 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v17, 0, (int)this, (int)NotificationsPage::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v18, 1.6);
v19 = cocos2d::CCMenu::create(v18, nullptr);
v20 = (float)(v58 * 0.5) - 220.0;
v21 = (float)(v59 * 0.5) + 145.0;
*((_DWORD *)this + 111) = v19;
v51 = v19;
v22 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v19 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v20 + 10.0, v21 - 10.0);
v22(v51, v71);
v23 = (LoadingCircle *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 111),
10);
v24 = LoadingCircle::create(v23);
v25 = *((_DWORD *)this + 115);
*((_DWORD *)this + 134) = v24;
*((_DWORD *)v24 + 111) = v25;
*(_BYTE *)(*((_DWORD *)this + 134) + 448) = 0;
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 134));
LoadingCircle::show(*((cocos2d::CCNode ***)this + 134));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0);
v52 = *(_DWORD *)(*((_DWORD *)this + 134) + 440);
v26 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v52 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v58 * 0.5, v59 * 0.5);
v26(v52, v71);
v28 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Something went wrong...", "goldFont.fnt", v27);
*((_DWORD *)this + 132) = v28;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v28, 10);
v29 = *((_DWORD *)this + 132);
v30 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v29 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v58 * 0.5, v59 * 0.5);
v30(v29, v71);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 132) + 80))(*((_DWORD *)this + 132), 1058642330);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 132) + 172))(*((_DWORD *)this + 132), 0);
v32 = v59 * 0.5;
v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v31);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v33 + 80))(v33, 1061997773);
v63 = 0;
v62 = NotificationsPage::onPrevPage;
v34 = CCMenuItemSpriteExtra::create(v33, 0, (int)this, (int)NotificationsPage::onPrevPage, 0);
*((_DWORD *)this + 136) = v34;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v34);
v57 = *((_DWORD *)this + 136);
v53 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v57 + 92);
v56 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (float)(v58 * 0.5) - 195.0, v32);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v70, v56);
v53(v57, v70);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 136), 2.0);
v36 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v35);
cocos2d::CCSprite::setFlipX(v36, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v36 + 80))(v36, 1061997773);
v65 = 0;
v64 = NotificationsPage::onNextPage;
v37 = CCMenuItemSpriteExtra::create((int)v36, 0, (int)this, (int)NotificationsPage::onNextPage, 0);
*((_DWORD *)this + 135) = v37;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v37);
v38 = *((const cocos2d::CCPoint **)this + 111);
v54 = *((_DWORD *)this + 135);
v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v54 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (float)(v58 * 0.5) + 195.0, v32);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v70, v38);
v39(v54, v70);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 135), 2.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 136) + 172))(*((_DWORD *)this + 136), 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 135) + 172))(*((_DWORD *)this + 135), 0);
v41 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v40);
v67 = 0;
v66 = NotificationsPage::onUpdate;
v42 = CCMenuItemSpriteExtra::create(v41, 0, (int)this, (int)NotificationsPage::onUpdate, 0);
*((_DWORD *)this + 137) = v42;
CCMenuItemSpriteExtra::setSizeMult(v42, 1.5);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
*((_DWORD *)this + 137));
v43 = *((const cocos2d::CCPoint **)this + 111);
v55 = *((_DWORD *)this + 137);
v44 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v55 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v71,
(float)((float)(v58 * 0.5) + 220.0) - 10.0,
(float)((float)((float)(v59 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v70, v43);
v44(v55, v70);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 137) + 172))(*((_DWORD *)this + 137), 0);
v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v45);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 80))(v46, 1061997773);
v69 = 0;
v68 = NotificationsPage::onFilter;
v47 = CCMenuItemSpriteExtra::create(v46, 0, (int)this, (int)NotificationsPage::onFilter, 0);
CCMenuItemSpriteExtra::setSizeMult(v47, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v47);
v48 = *((const cocos2d::CCPoint **)this + 111);
v49 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v47 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v71,
(float)((float)(v58 * 0.5) - 220.0) + 10.0,
(float)((float)((float)(v59 * 0.5) - 145.0) + 10.0) + 1.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v70, v48);
v49(v47, v70);
NotificationsPage::loadPage(this, nullptr);
}
return v3;
}