// // NotificationFilterPopup::init from 0x1404790f0 to 0x140479a5c (2412 bytes) // // 2 xrefs: // > NotificationsPage::onFilter @ 0x1404785c8 // > @ 0x140928568 // // 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:42 +0000 // // Hidden C++ exception states: #wind=4 char __fastcall NotificationFilterPopup::init(__int64 a1, __int64 a2, __int64 a3, int a4) { char result; // al __int64 v7; // rcx __int64 v8; // rax float v9; // xmm8_4 float v10; // xmm9_4 struct cocos2d::CCSprite *v11; // rax int v12; // ebx cocos2d::CCObject *v13; // rsi __int64 v14; // rdi __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rax char v18; // r14 char *v19; // r13 _QWORD *v20; // rax char *v21; // rsi __int64 v22; // rdi __int64 v23; // rbx __int64 v24; // rax __int64 v25; // rax float v26; // xmm10_4 float v27; // xmm8_4 float v28; // xmm9_4 struct cocos2d::CCLabelBMFont *v29; // rdi __int64 v30; // rbx __int64 v31; // rax struct cocos2d::CCLabelBMFont *v32; // rdi __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rax int v36; // r9d __int64 v37; // rax int v38; // r9d __int64 v39; // rax int v40; // r9d __int64 v41; // rax int v42; // r9d __int64 v43; // rax int v44; // r9d __int64 v45; // rax __int64 v46; // rcx bool GameVariable; // bl __int64 v48; // rax __int128 *v49; // [rsp+48h] [rbp-C0h] BYREF __int128 v50; // [rsp+50h] [rbp-B8h] BYREF __int64 v51; // [rsp+60h] [rbp-A8h] __int64 v52; // [rsp+68h] [rbp-A0h] void *v53; // [rsp+70h] [rbp-98h] BYREF _WORD v54[8]; // [rsp+78h] [rbp-90h] BYREF __int64 v55; // [rsp+88h] [rbp-80h] __int64 v56; // [rsp+90h] [rbp-78h] float v57[2]; // [rsp+98h] [rbp-70h] BYREF void *v58; // [rsp+A0h] [rbp-68h] _BYTE v59[8]; // [rsp+A8h] [rbp-60h] BYREF __int128 v60; // [rsp+B0h] [rbp-58h] __int64 v61; // [rsp+C0h] [rbp-48h] __int64 v62; // [rsp+C8h] [rbp-40h] result = SetupTriggerPopup::init(a1, 0, 0, a4, 1131413504, 1, 0); if ( result ) { *(_QWORD *)(a1 + 1000) = a2; if ( !*(_QWORD *)&qword_14090BFB0 ) { v53 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v53); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } *(_DWORD *)(a1 + 1008) = GameLevelManager::notificationMask(); v8 = cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8, v57); v9 = v57[0] * 0.5; v10 = (float)(v57[1] * 0.5) + 120.0; v54[7] = 0; v55 = 13; v56 = 15; qmemcpy(v54, "Notification", 12); v54[6] = (unsigned __int8)aNotifications[12]; SetupTriggerPopup::addTitle(a1, v54); v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v12 = (int)v11; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11); v13 = CCMenuItemSpriteExtra::create(v12, 0, a1, (__int64)sub_14009D628); *((_DWORD *)v13 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)v13; v15 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, (float)(v9 - 180.0) + 8.0, v10 - 12.0); cocos2d::CCNode::convertToNodeSpace(v15, &v49, v16); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v14 + 184))(v13, v17); v18 = NotificationFilterPopup::savedMask(); v60 = 0; v19 = (char *)sub_14003D460(0xE0u); *(_QWORD *)&v60 = v19; v61 = 221; v62 = 223; strcpy( v19, "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."); v49 = &v50; v50 = 0; v51 = 0; v52 = 0; v20 = sub_14003D460(0xE0u); *(_QWORD *)&v50 = v20; v51 = 221; v52 = 223; *(_OWORD *)v20 = *(_OWORD *)v19; *((_OWORD *)v20 + 1) = *((_OWORD *)v19 + 1); *((_OWORD *)v20 + 2) = *((_OWORD *)v19 + 2); *((_OWORD *)v20 + 3) = *((_OWORD *)v19 + 3); *((_OWORD *)v20 + 4) = *((_OWORD *)v19 + 4); *((_OWORD *)v20 + 5) = *((_OWORD *)v19 + 5); *((_OWORD *)v20 + 6) = *((_OWORD *)v19 + 6); *((_OWORD *)v20 + 7) = *((_OWORD *)v19 + 7); *((_OWORD *)v20 + 8) = *((_OWORD *)v19 + 8); *((_OWORD *)v20 + 9) = *((_OWORD *)v19 + 9); *((_OWORD *)v20 + 10) = *((_OWORD *)v19 + 10); *((_OWORD *)v20 + 11) = *((_OWORD *)v19 + 11); *((_OWORD *)v20 + 12) = *((_OWORD *)v19 + 12); v20[26] = *((_QWORD *)v19 + 26); *((_DWORD *)v20 + 54) = *((_DWORD *)v19 + 54); *((_WORD *)v20 + 110) = *((_WORD *)v19 + 110); v54[7] = 0; v55 = 13; v56 = 15; qmemcpy(v54, "Notification", 12); v54[6] = (unsigned __int8)aNotifications[12]; v21 = InfoAlertButton::create((__int64)v54, (__int64)&v50); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v21); v22 = *(_QWORD *)v21; v23 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (float)(v9 + 180.0) - 18.0, v10 - 18.0); cocos2d::CCNode::convertToNodeSpace(v23, &v53, v24); (*(void (__fastcall **)(char *, __int64))(v22 + 184))(v21, v25); v26 = v9 - 140.0; v27 = v9 + 25.0; v28 = v10 - 80.0; v29 = cocos2d::CCLabelBMFont::create("Public", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v29 + 160LL))(v29); v30 = *(_QWORD *)v29; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v26 + 57.0, v28 + 28.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v30 + 184))(v29, v31); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v29); v32 = cocos2d::CCLabelBMFont::create("Personal", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v32 + 160LL))(v32); v33 = *(_QWORD *)v32; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, v27 + 50.0, v28 + 28.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v33 + 184))(v32, v34); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v32); v49 = (__int128 *)v54; HIBYTE(v54[7]) = 0; v55 = 14; v56 = 15; strcpy((char *)v54, "Friend Uploads"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v26, v28); SetupTriggerPopup::createToggleButton( a1, (unsigned int)v54, (unsigned int)NotificationFilterPopup::onFriendUploads, v18 & 1, v35); v49 = &v50; v50 = 0; v51 = 0; v52 = 0; *(_QWORD *)&v50 = sub_14003D460(0x20u); v51 = 16; v52 = 31; strcpy((char *)v50, "Followed Uploads"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v26, v28 - 36.0); LOBYTE(v36) = (v18 & 2) != 0; SetupTriggerPopup::createToggleButton( a1, (unsigned int)&v50, (unsigned int)NotificationFilterPopup::onFollowUploads, v36, v37); v49 = &v50; v51 = 9; v52 = 15; *(_QWORD *)&v50 = *(_QWORD *)"Downloads"; *((_QWORD *)&v50 + 1) = (unsigned __int8)aDownloads[8]; BYTE9(v50) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v27, v28); LOBYTE(v38) = (v18 & 4) != 0; SetupTriggerPopup::createToggleButton( a1, (unsigned int)&v50, (unsigned int)NotificationFilterPopup::onDownloadMilestones, v38, v39); v49 = &v50; v51 = 9; v52 = 15; *(_QWORD *)&v50 = *(_QWORD *)"Followers"; *((_QWORD *)&v50 + 1) = (unsigned __int8)aFollowers[8]; BYTE9(v50) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v27, v28 - 36.0); LOBYTE(v40) = (v18 & 0x10) != 0; SetupTriggerPopup::createToggleButton( a1, (unsigned int)&v50, (unsigned int)NotificationFilterPopup::onFollowerMilestones, v40, v41); v49 = &v50; v51 = 12; v52 = 15; strcpy((char *)&v50, "Friend Rates"); BYTE13(v50) = 0; HIWORD(v50) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v26, v28 - 72.0); LOBYTE(v42) = (v18 & 0x40) != 0; SetupTriggerPopup::createToggleButton( a1, (unsigned int)&v50, (unsigned int)NotificationFilterPopup::onFriendRated, v42, v43); v49 = (__int128 *)v54; HIBYTE(v54[7]) = 0; v55 = 14; v56 = 15; strcpy((char *)v54, "Friend Accepts"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v27, v28 - 72.0); LOBYTE(v44) = (v18 & 0x20) != 0; SetupTriggerPopup::createToggleButton( a1, (unsigned int)v54, (unsigned int)NotificationFilterPopup::onFriendAccepts, v44, v45); v49 = &v50; v46 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v58 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v58); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v46 = qword_14090BFD0; } GameVariable = GameManager::getGameVariable(v46, "0240"); v51 = 13; v52 = 15; strcpy((char *)&v50, "Public Alerts"); HIWORD(v50) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v26, v28 - 108.0); SetupTriggerPopup::createToggleButton( a1, (unsigned int)&v50, (unsigned int)NotificationFilterPopup::onSocialAlerts, !GameVariable, v48); j_j_free(v19); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source