//
// NotificationFilterPopup::init from 0x744004 to 0x744590 (1420 bytes)
//
// 1 xrefs:
// > NotificationFilterPopup::create @ 0x744714
//
// 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 NotificationFilterPopup::init(const cocos2d::CCPoint **this, NotificationsPage *a2)
{
GameManager *v4; // r0
GameLevelManager *v5; // r0
cocos2d::CCDirector *v6; // r0
float v7; // s17
float v8; // s16
const char *v9; // r1
int v10; // r5
int v11; // r7
const cocos2d::CCPoint *v12; // r9
void (__fastcall *v13)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)); // r8
char v14; // r0
int v15; // r11
const cocos2d::CCPoint *v16; // r9
void (__fastcall *v17)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)); // r8
float v18; // s18
float v19; // s17
float v20; // s16
const char *v21; // r2
int v22; // r8
void (__fastcall *v23)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)); // r9
const char *v24; // r2
int v25; // r8
void (__fastcall *v26)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)); // r9
GameManager *v27; // r0
GameManager *v28; // r0
unsigned __int8 v29; // r6
GameManager *v31; // [sp+18h] [bp-DCh]
float v32[2]; // [sp+24h] [bp-D0h] BYREF
_BYTE v33[8]; // [sp+2Ch] [bp-C8h] BYREF
int v34; // [sp+34h] [bp-C0h]
int v35; // [sp+38h] [bp-BCh]
int (__fastcall *v36)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+3Ch] [bp-B8h]
int v37; // [sp+40h] [bp-B4h]
int (__fastcall *v38)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+44h] [bp-B0h]
int v39; // [sp+48h] [bp-ACh]
int (__fastcall *v40)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+4Ch] [bp-A8h]
int v41; // [sp+50h] [bp-A4h]
int (__fastcall *v42)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+54h] [bp-A0h]
int v43; // [sp+58h] [bp-9Ch]
int (__fastcall *v44)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+5Ch] [bp-98h]
int v45; // [sp+60h] [bp-94h]
int (__fastcall *v46)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+64h] [bp-90h] BYREF
int v47; // [sp+68h] [bp-8Ch]
int (__fastcall *v48)(NotificationFilterPopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-88h] BYREF
int v49; // [sp+70h] [bp-84h]
int v50[3]; // [sp+74h] [bp-80h] BYREF
int v51[3]; // [sp+80h] [bp-74h] BYREF
int v52[3]; // [sp+8Ch] [bp-68h] BYREF
int v53[3]; // [sp+98h] [bp-5Ch] BYREF
int v54[3]; // [sp+A4h] [bp-50h] BYREF
int v55[3]; // [sp+B0h] [bp-44h] BYREF
int v56[3]; // [sp+BCh] [bp-38h] BYREF
int v57[3]; // [sp+C8h] [bp-2Ch] BYREF
int v58[3]; // [sp+D4h] [bp-20h] BYREF
int v59; // [sp+E0h] [bp-14h] BYREF
int v60; // [sp+E4h] [bp-10h]
int v61; // [sp+E8h] [bp-Ch]
v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 360.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
v31 = v4;
if ( v4 )
{
*(this + 178) = a2;
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
v6 = (cocos2d::CCDirector *)GameLevelManager::notificationMask(v5);
*(this + 179) = v6;
cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v32);
v59 = 0;
v60 = 0;
v61 = 0;
v7 = v32[0] * 0.5;
v8 = (float)(v32[1] * 0.5) + 120.0;
std::string::__init(&v59, "Notifications", 0xDu);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v59);
std::string::~string((int)&v59);
v10 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v9);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1061997773);
v34 = 684;
v35 = 1;
v11 = CCMenuItemSpriteExtra::create(v10, 0, (int)this, 684, 1);
CCMenuItemSpriteExtra::setSizeMult(v11, 1.5);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v11);
v12 = *(this + 111);
v13 = *(void (__fastcall **)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, (float)(v7 - 180.0) + 8.0, v8 - 12.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v48, v12);
v13(v11, &v48);
v14 = NotificationFilterPopup::savedMask((NotificationFilterPopup *)this);
memset(v50, 0, sizeof(v50));
LOBYTE(v11) = v14;
std::string::__init(
v50,
"Public: what friends and creators you follow do.\n"
"Personal: milestones for your own levels and profile.\n"
"Public Alerts: show the red indicator on your profile button for new Public notifications too.",
0xDDu);
memset(v51, 0, sizeof(v51));
std::string::__init(v51, "Notifications", 0xDu);
std::string::basic_string(v52, (int)v50);
v15 = InfoAlertButton::create((char *)v51, (int)v52, 1060320051);
std::string::~string((int)v52);
std::string::~string((int)v51);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v15);
v16 = *(this + 111);
v17 = *(void (__fastcall **)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)))(*(_DWORD *)v15 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v46, (float)(v7 + 180.0) - 18.0, v8 - 18.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v48, v16);
v17(v15, &v48);
v18 = v7 - 140.0;
v19 = v7 + 25.0;
v20 = v8 - 80.0;
v22 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Public", "goldFont.fnt", v21);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1058642330);
v23 = *(void (__fastcall **)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)))(*(_DWORD *)v22 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v18 + 57.0, v20 + 28.0);
v23(v22, &v48);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v22);
v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Personal", "goldFont.fnt", v24);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1058642330);
v26 = *(void (__fastcall **)(int, int (__fastcall **)(NotificationFilterPopup *, cocos2d::CCObject *)))(*(_DWORD *)v25 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v19 + 50.0, v20 + 28.0);
v26(v25, &v48);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v25);
memset(v53, 0, sizeof(v53));
std::string::__init(v53, "Friend Uploads", 0xEu);
v37 = 0;
v36 = NotificationFilterPopup::onFriendUploads;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v18, v20);
SetupTriggerPopup::createToggleButton((int)this, (int)v53, (int)v36, v37, v11 & 1, (const cocos2d::CCPoint *)&v48);
std::string::~string((int)v53);
memset(v54, 0, sizeof(v54));
std::string::__init(v54, "Followed Uploads", 0x10u);
v39 = 0;
v38 = NotificationFilterPopup::onFollowUploads;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v18, v20 - 36.0);
SetupTriggerPopup::createToggleButton(
(int)this,
(int)v54,
(int)v38,
v39,
(v11 & 2) != 0,
(const cocos2d::CCPoint *)&v48);
std::string::~string((int)v54);
memset(v55, 0, sizeof(v55));
std::string::__init(v55, "Downloads", 9u);
v41 = 0;
v40 = NotificationFilterPopup::onDownloadMilestones;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v19, v20);
SetupTriggerPopup::createToggleButton(
(int)this,
(int)v55,
(int)v40,
v41,
(v11 & 4) != 0,
(const cocos2d::CCPoint *)&v48);
std::string::~string((int)v55);
memset(v56, 0, sizeof(v56));
std::string::__init(v56, "Followers", 9u);
v43 = 0;
v42 = NotificationFilterPopup::onFollowerMilestones;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v19, v20 - 36.0);
SetupTriggerPopup::createToggleButton(
(int)this,
(int)v56,
(int)v42,
v43,
(v11 & 0x10) != 0,
(const cocos2d::CCPoint *)&v48);
std::string::~string((int)v56);
memset(v57, 0, sizeof(v57));
std::string::__init(v57, "Friend Rates", 0xCu);
v45 = 0;
v44 = NotificationFilterPopup::onFriendRated;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v18, v20 - 72.0);
SetupTriggerPopup::createToggleButton(
(int)this,
(int)v57,
(int)v44,
v45,
(v11 & 0x40) != 0,
(const cocos2d::CCPoint *)&v48);
std::string::~string((int)v57);
memset(v58, 0, sizeof(v58));
std::string::__init(v58, "Friend Accepts", 0xEu);
v47 = 0;
v46 = NotificationFilterPopup::onFriendAccepts;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v19, v20 - 72.0);
SetupTriggerPopup::createToggleButton(
(int)this,
(int)v58,
(int)v46,
v47,
(v11 & 0x20) != 0,
(const cocos2d::CCPoint *)&v48);
std::string::~string((int)v58);
v59 = 0;
v60 = 0;
v61 = 0;
v27 = (GameManager *)std::string::__init(&v59, "Public Alerts", 0xDu);
v49 = 0;
v48 = NotificationFilterPopup::onSocialAlerts;
v28 = (GameManager *)GameManager::sharedState(v27);
v29 = GameManager::getGameVariable(v28, "0240") ^ 1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v18, v20 - 108.0);
SetupTriggerPopup::createToggleButton((int)this, (int)&v59, (int)v48, v49, v29, (const cocos2d::CCPoint *)v33);
std::string::~string((int)&v59);
std::string::~string((int)v50);
}
return v31;
}