// // FollowRewardPage::onSpecialItem from 0x63026c to 0x6305b8 (844 bytes) // // 0 xrefs: // // 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:55:16 +0000 // int __fastcall FollowRewardPage::onSpecialItem(FollowRewardPage *this, cocos2d::CCObject *a2) { CCMenuItemSpriteExtra *v3; // r10 int v4; // r0 int v5; // r11 int *v6; // r0 GameManager *v7; // r0 int UGV; // r8 char *v9; // r1 int *v10; // r0 GameManager *v11; // r0 int *v12; // r0 GameManager *v13; // r0 int *v14; // r0 GameManager *v15; // r0 int *v16; // r0 GameManager *v17; // r0 int *v18; // r0 GameManager *v19; // r0 int *v20; // r0 GameManager *v21; // r0 int *v22; // r0 char *v23; // r9 ButtonSprite *v24; // r3 char **v25; // r9 int v26; // r0 int *v27; // r11 int v28; // r3 int v29; // r2 RewardUnlockLayer **v30; // r11 RewardsPage *v31; // r2 FLAlertLayer *v32; // r8 int v34; // [sp+14h] [bp-50h] BYREF size_t v35; // [sp+18h] [bp-4Ch] const void *v36; // [sp+1Ch] [bp-48h] int v37[2]; // [sp+20h] [bp-44h] BYREF int v38; // [sp+28h] [bp-3Ch] int v39; // [sp+2Ch] [bp-38h] BYREF size_t v40; // [sp+30h] [bp-34h] const void *v41; // [sp+34h] [bp-30h] int v42[2]; // [sp+38h] [bp-2Ch] BYREF int v43; // [sp+40h] [bp-24h] int v44; // [sp+44h] [bp-20h] BYREF size_t v45; // [sp+48h] [bp-1Ch] const void *v46; // [sp+4Ch] [bp-18h] int v47; // [sp+50h] [bp-14h] BYREF size_t v48; // [sp+54h] [bp-10h] const void *v49; // [sp+58h] [bp-Ch] v3 = a2; v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); v34 = 0; v35 = 0; v36 = nullptr; v37[0] = 0; v37[1] = 0; v38 = 0; v5 = v4; std::string::__init(v37, &unk_B6B226, 0); v39 = 0; v40 = 0; v41 = nullptr; std::string::__init(&v39, &unk_B6B226, 0); v42[0] = 0; v42[1] = 0; v43 = 0; std::string::__init(v42, &unk_B6B226, 0); switch ( v5 ) { case 1: v6 = std::string::assign(&v34, "0007"); v7 = (GameManager *)GameManager::sharedState((GameManager *)v6); UGV = GameManager::getUGV(v7, "22"); std::string::assign(v37, "YouTube"); std::string::assign(&v39, "Subscribe to RobTop Games on YouTube\nto unlock this chest!"); v9 = "Sub!"; goto LABEL_9; case 2: v10 = std::string::assign(&v34, "0008"); v11 = (GameManager *)GameManager::sharedState((GameManager *)v10); UGV = GameManager::getUGV(v11, "24"); std::string::assign(v37, "Twitter"); std::string::assign(&v39, "Follow RobTop Games on Twitter\nto unlock this chest!"); v9 = "Follow!"; goto LABEL_9; case 3: v12 = std::string::assign(&v34, "0009"); v13 = (GameManager *)GameManager::sharedState((GameManager *)v12); UGV = GameManager::getUGV(v13, "23"); std::string::assign(v37, "Facebook"); std::string::assign(&v39, "Like Geometry Dash on Facebook\nto unlock this chest!"); v9 = "Like!"; goto LABEL_9; case 4: v14 = std::string::assign(&v34, "0010"); v15 = (GameManager *)GameManager::sharedState((GameManager *)v14); UGV = GameManager::getUGV(v15, "26"); std::string::assign(v37, "Twitch"); std::string::assign(&v39, "Follow Geometry Dash on Twitch\nto unlock this chest!"); v9 = "Follow!"; goto LABEL_9; case 5: v16 = std::string::assign(&v34, "0011"); v17 = (GameManager *)GameManager::sharedState((GameManager *)v16); UGV = GameManager::getUGV(v17, "27"); std::string::assign(v37, "Discord"); std::string::assign(&v39, "Join Geometry Dash on Discord\nto unlock this chest!"); v9 = "Join!"; goto LABEL_9; case 6: v18 = std::string::assign(&v34, "0024"); v19 = (GameManager *)GameManager::sharedState((GameManager *)v18); UGV = GameManager::getUGV(v19, "32"); std::string::assign(v37, "Reddit"); std::string::assign(&v39, "Join Geometry Dash on Reddit\nto unlock this chest!"); v9 = "Join!"; goto LABEL_9; case 7: v20 = std::string::assign(&v34, "0025"); v21 = (GameManager *)GameManager::sharedState((GameManager *)v20); UGV = GameManager::getUGV(v21, "39"); std::string::assign(v37, "Spotlight"); std::string::assign( &v39, "Subscribe to Geometry Dash Spotlight on YouTube\nto unlock this chest!"); v9 = "Sub!"; LABEL_9: v22 = std::string::assign(v42, v9); if ( UGV ) { v26 = GameStatsManager::sharedState((GameStatsManager *)v22); v47 = 0; v48 = 0; v27 = (int *)v26; v49 = nullptr; v28 = (unsigned __int8)v34; if ( (v34 & 1) != 0 ) { std::string::__init(&v47, v36, v35); } else { v29 = (int)v36; v47 = v34; v48 = v35; v49 = v36; } v30 = (RewardUnlockLayer **)GameStatsManager::unlockSpecialChest(v27, (int)&v47, v29, v28); std::string::~string((int)&v47); if ( v30 ) { FollowRewardPage::switchToOpenedState(this, v3); v32 = RewardUnlockLayer::create(v30[15], nullptr, v31); (*(void (__fastcall **)(FollowRewardPage *, FLAlertLayer *, int))(*(_DWORD *)this + 232))(this, v32, 100); RewardUnlockLayer::showCollectReward(v32, (GJRewardItem *)v30); } } else { v23 = (char *)this + 520; v44 = 0; if ( (v37[0] & 1) == 0 ) v3 = (CCMenuItemSpriteExtra *)((char *)v37 + 1); v45 = 0; v46 = nullptr; if ( (v37[0] & 1) != 0 ) v3 = (CCMenuItemSpriteExtra *)v38; if ( (v39 & 1) != 0 ) { std::string::__init(&v44, v41, v40); } else { v44 = v39; v45 = v40; v46 = v41; } if ( (v42[0] & 1) != 0 ) v24 = (ButtonSprite *)v43; else v24 = (ButtonSprite *)((char *)v42 + 1); v25 = (char **)FLAlertLayer::create((int)v23, v3, (int)&v44, (ButtonSprite *)"Cancel", v24, 380.0); std::string::~string((int)&v44); (*((void (__fastcall **)(char **, int))*v25 + 9))(v25, v5); ButtonSprite::updateBGImage(v25[121], "GJ_button_02.png"); (*((void (__fastcall **)(char **))*v25 + 164))(v25); } break; default: break; } std::string::~string((int)v42); std::string::~string((int)&v39); std::string::~string((int)v37); return std::string::~string((int)&v34); }
GD Web Decomp Icon

GD Web Decomp

Raw Source