// // FollowRewardPage::onSpecialItem from 0xaaaca8 to 0xaab250 (1448 bytes) // // 3 xrefs: // > @ 0xe0578 // > FollowRewardPage::init @ 0xaab824 // > @ 0x1546bd0 // // This function is hookable on this platform (idp: arm, 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 13:00:53 +0000 // __int64 __fastcall FollowRewardPage::onSpecialItem(FollowRewardPage *this, cocos2d::CCObject *a2) { unsigned int v4; // w26 __int64 *v5; // x0 GameManager *v6; // x0 int UGV; // w27 __int64 *v8; // x0 char *v9; // x23 cocos2d::CCLabelBMFont *v10; // x20 ButtonSprite *v11; // x4 ButtonSprite **v12; // x19 __int64 *v14; // x0 GameManager *v15; // x0 int v16; // w27 GameStatsManager *v17; // x20 unsigned int *v18; // x19 RewardsPage *v19; // x2 RewardUnlockLayer *v20; // x20 __int64 *v21; // x0 GameManager *v22; // x0 __int64 *v23; // x0 GameManager *v24; // x0 __int64 *v25; // x0 GameManager *v26; // x0 __int64 *v27; // x0 GameManager *v28; // x0 __int64 *v29; // x0 GameManager *v30; // x0 __int64 v31; // [xsp+68h] [xbp+68h] BYREF size_t v32; // [xsp+70h] [xbp+70h] void *v33; // [xsp+78h] [xbp+78h] __int64 v34[2]; // [xsp+80h] [xbp+80h] BYREF void *v35; // [xsp+90h] [xbp+90h] __int64 v36; // [xsp+98h] [xbp+98h] BYREF size_t v37; // [xsp+A0h] [xbp+A0h] void *v38; // [xsp+A8h] [xbp+A8h] __int64 v39[2]; // [xsp+B0h] [xbp+B0h] BYREF void *v40; // [xsp+C0h] [xbp+C0h] __int64 v41; // [xsp+C8h] [xbp+C8h] BYREF size_t v42; // [xsp+D0h] [xbp+D0h] void *v43; // [xsp+D8h] [xbp+D8h] __int64 v44; // [xsp+E0h] [xbp+E0h] BYREF size_t v45; // [xsp+E8h] [xbp+E8h] void *v46; // [xsp+F0h] [xbp+F0h] v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); v31 = 0; v32 = 0; v33 = nullptr; v34[0] = 0; v34[1] = 0; v35 = nullptr; std::string::__init(v34, &byte_11B8890, 0); v36 = 0; v37 = 0; v38 = nullptr; std::string::__init(&v36, &byte_11B8890, 0); v39[0] = 0; v39[1] = 0; v40 = nullptr; std::string::__init(v39, &byte_11B8890, 0); switch ( v4 ) { case 1u: v29 = std::string::assign(&v31, "0007"); v30 = (GameManager *)GameManager::sharedState((GameManager *)v29); UGV = (unsigned __int8)GameManager::getUGV(v30, "22"); std::string::assign(v34, "YouTube"); std::string::assign(&v36, "Subscribe to RobTop Games on YouTube\nto unlock this chest!"); goto LABEL_3; case 2u: v21 = std::string::assign(&v31, "0008"); v22 = (GameManager *)GameManager::sharedState((GameManager *)v21); UGV = (unsigned __int8)GameManager::getUGV(v22, "24"); std::string::assign(v34, "Twitter"); std::string::assign(&v36, "Follow RobTop Games on Twitter\nto unlock this chest!"); goto LABEL_32; case 3u: v23 = std::string::assign(&v31, "0009"); v24 = (GameManager *)GameManager::sharedState((GameManager *)v23); UGV = (unsigned __int8)GameManager::getUGV(v24, "23"); std::string::assign(v34, "Facebook"); std::string::assign(&v36, "Like Geometry Dash on Facebook\nto unlock this chest!"); v8 = std::string::assign(v39, "Like!"); goto LABEL_4; case 4u: v25 = std::string::assign(&v31, "0010"); v26 = (GameManager *)GameManager::sharedState((GameManager *)v25); UGV = (unsigned __int8)GameManager::getUGV(v26, "26"); std::string::assign(v34, "Twitch"); std::string::assign(&v36, "Follow Geometry Dash on Twitch\nto unlock this chest!"); LABEL_32: v8 = std::string::assign(v39, "Follow!"); goto LABEL_4; case 5u: v27 = std::string::assign(&v31, "0011"); v28 = (GameManager *)GameManager::sharedState((GameManager *)v27); v16 = (unsigned __int8)GameManager::getUGV(v28, "27"); std::string::assign(v34, "Discord"); std::string::assign(&v36, "Join Geometry Dash on Discord\nto unlock this chest!"); goto LABEL_24; case 6u: v14 = std::string::assign(&v31, "0024"); v15 = (GameManager *)GameManager::sharedState((GameManager *)v14); v16 = (unsigned __int8)GameManager::getUGV(v15, "32"); std::string::assign(v34, "Reddit"); std::string::assign(&v36, "Join Geometry Dash on Reddit\nto unlock this chest!"); LABEL_24: v8 = std::string::assign(v39, "Join!"); if ( v16 ) goto LABEL_25; goto LABEL_5; case 7u: v5 = std::string::assign(&v31, "0025"); v6 = (GameManager *)GameManager::sharedState((GameManager *)v5); UGV = (unsigned __int8)GameManager::getUGV(v6, "39"); std::string::assign(v34, "Spotlight"); std::string::assign( &v36, "Subscribe to Geometry Dash Spotlight on YouTube\nto unlock this chest!"); LABEL_3: v8 = std::string::assign(v39, "Sub!"); LABEL_4: if ( UGV ) { LABEL_25: v17 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)v8); v44 = 0; v45 = 0; v46 = nullptr; if ( (v31 & 1) != 0 ) { std::string::__init(&v44, v33, v32); } else { v46 = v33; v44 = v31; v45 = v32; } v18 = (unsigned int *)GameStatsManager::unlockSpecialChest(v17, (char *)&v44); if ( (v44 & 1) != 0 ) operator delete(v46); if ( v18 ) { FollowRewardPage::switchToOpenedState(this, a2); v20 = (RewardUnlockLayer *)RewardUnlockLayer::create((RewardUnlockLayer *)v18[16], nullptr, v19); (*(void (__fastcall **)(FollowRewardPage *, RewardUnlockLayer *, __int64))(*(_QWORD *)this + 464LL))( this, v20, 100); RewardUnlockLayer::showCollectReward(v20, (GJRewardItem *)v18); } } else { LABEL_5: v9 = (char *)this + 664; v10 = (cocos2d::CCLabelBMFont *)((char *)v34 + 1); if ( (v34[0] & 1) != 0 ) v10 = (cocos2d::CCLabelBMFont *)v35; v41 = 0; v42 = 0; v43 = nullptr; if ( (v36 & 1) != 0 ) { std::string::__init(&v41, v38, v37); } else { v43 = v38; v41 = v36; v42 = v37; } v11 = (ButtonSprite *)((char *)v39 + 1); if ( (v39[0] & 1) != 0 ) v11 = (ButtonSprite *)v40; v12 = (ButtonSprite **)FLAlertLayer::create( (__int64)v9, v10, (char *)&v41, (ButtonSprite *)"Cancel", v11, 380.0); if ( (v41 & 1) != 0 ) operator delete(v43); (*((void (__fastcall **)(ButtonSprite **, _QWORD))*v12 + 9))(v12, v4); ButtonSprite::updateBGImage(v12[77], "GJ_button_02.png"); (*((void (__fastcall **)(ButtonSprite **))*v12 + 164))(v12); } break; default: break; } if ( (v39[0] & 1) != 0 ) operator delete(v40); if ( (v36 & 1) != 0 ) operator delete(v38); if ( (v34[0] & 1) != 0 ) operator delete(v35); if ( (v31 & 1) != 0 ) operator delete(v33); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source