// // FollowRewardPage::init from 0x630660 to 0x6310a6 (2630 bytes) // // 1 xrefs: // > FollowRewardPage::create @ 0x62fcdc // // 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:17 +0000 // GameManager *__fastcall FollowRewardPage::init(const cocos2d::CCPoint **this) { GameManager *v2; // r0 int v3; // r7 void (__fastcall *v4)(int, _DWORD *); // r8 void (__fastcall *v5)(int, _DWORD *); // r8 int v6; // r0 int v7; // r7 const char *v8; // r1 cocos2d::CCSprite *v9; // r8 float v10; // s15 float v11; // s14 void (__fastcall *v12)(cocos2d::CCSprite *, _DWORD *); // r10 const char *v13; // r2 int v14; // r7 void (__fastcall *v15)(int, _DWORD *); // r9 const char *v16; // r2 int v17; // r8 void (__fastcall *v18)(int, _DWORD *); // r9 int v19; // r10 const char *v20; // r1 int v21; // r0 cocos2d::CCMenu *v22; // r8 const cocos2d::CCPoint *v23; // r0 float v24; // s15 float v25; // s18 const cocos2d::CCPoint *v26; // r7 void (__fastcall *v27)(const cocos2d::CCPoint *, _DWORD *); // r8 cocos2d::CCArray *v28; // r0 cocos2d::CCObject *v29; // r0 GameStatsManager *v30; // r0 int v31; // r0 int v32; // r9 GameStatsManager *v33; // r0 int v34; // r5 int RewardForSpecialChest; // r5 int *v36; // r0 GameManager *v37; // r0 int UGV; // r7 float v39; // r1 int v40; // r0 int v41; // r9 GameStatsManager *v42; // r0 int v43; // r5 int *v44; // r0 GameManager *v45; // r0 float v46; // r2 int v47; // r0 int v48; // r9 GameStatsManager *v49; // r0 int v50; // r5 int *v51; // r0 GameManager *v52; // r0 int v53; // r0 int v54; // r9 GameStatsManager *v55; // r0 int v56; // r5 int *v57; // r0 GameManager *v58; // r0 int v59; // r0 int v60; // r9 GameStatsManager *v61; // r0 int v62; // r5 int *v63; // r0 GameManager *v64; // r0 int v65; // r0 int v66; // r9 GameStatsManager *v67; // r0 int v68; // r5 int *v69; // r0 GameManager *v70; // r0 int v71; // r0 int v72; // r9 GameStatsManager *v73; // r0 int v74; // r5 int *v75; // r0 GameManager *v76; // r0 int v77; // r0 int v78; // r1 cocos2d::CCSprite *v79; // r6 int v80; // r0 CCMenuItemSpriteExtra *v81; // r5 void (__fastcall *v82)(CCMenuItemSpriteExtra *, _BYTE *); // r8 char *v83; // r1 size_t v84; // r2 void (__fastcall *v85)(cocos2d::CCSprite *, _BYTE *); // r8 float v86; // s17 int v87; // r0 void (__fastcall *v88)(CCMenuItemSpriteExtra *, _BYTE *); // r10 cocos2d::CCLabelBMFont *v89; // r0 int v90; // r10 const char *v91; // r1 GameManager *v92; // r0 cocos2d::CCSprite *v93; // r0 int v94; // r5 void (__fastcall *v95)(int, _BYTE *); // r7 int isSpecialChestUnlocked; // [sp+Ch] [bp-148h] int i; // [sp+10h] [bp-144h] GameManager *v99; // [sp+14h] [bp-140h] void (__fastcall *v100)(int, _BYTE *); // [sp+1Ch] [bp-138h] float v101; // [sp+38h] [bp-11Ch] BYREF float v102; // [sp+3Ch] [bp-118h] _BYTE v103[8]; // [sp+40h] [bp-114h] BYREF _BYTE v104[8]; // [sp+48h] [bp-10Ch] BYREF _BYTE v105[8]; // [sp+50h] [bp-104h] BYREF _BYTE v106[8]; // [sp+58h] [bp-FCh] BYREF _BYTE v107[8]; // [sp+60h] [bp-F4h] BYREF _DWORD v108[2]; // [sp+68h] [bp-ECh] BYREF int v109[2]; // [sp+70h] [bp-E4h] BYREF cocos2d::CCSprite *v110; // [sp+78h] [bp-DCh] int v111[2]; // [sp+7Ch] [bp-D8h] BYREF cocos2d::CCLabelBMFont *v112; // [sp+84h] [bp-D0h] int v113[3]; // [sp+88h] [bp-CCh] BYREF int v114[3]; // [sp+94h] [bp-C0h] BYREF int v115[3]; // [sp+A0h] [bp-B4h] BYREF int v116[3]; // [sp+ACh] [bp-A8h] BYREF int v117[3]; // [sp+B8h] [bp-9Ch] BYREF int v118[3]; // [sp+C4h] [bp-90h] BYREF int v119[3]; // [sp+D0h] [bp-84h] BYREF int v120[3]; // [sp+DCh] [bp-78h] BYREF int v121[3]; // [sp+E8h] [bp-6Ch] BYREF int v122[3]; // [sp+F4h] [bp-60h] BYREF int v123[3]; // [sp+100h] [bp-54h] BYREF int v124[3]; // [sp+10Ch] [bp-48h] BYREF int v125[3]; // [sp+118h] [bp-3Ch] BYREF int v126[3]; // [sp+124h] [bp-30h] BYREF int v127; // [sp+130h] [bp-24h] BYREF size_t v128; // [sp+134h] [bp-20h] int v129; // [sp+138h] [bp-1Ch] _DWORD v130[4]; // [sp+13Ch] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 150); v99 = v2; if ( !v2 ) return v99; cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v101); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v130, 0.0, 0.0, 80.0, 80.0); v3 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v130); (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 456))(v3, 255); v4 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v130, 420.0, 280.0); v4(v3, v130); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, -1); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v101 * 0.5, v102 * 0.5); v6 = v3; v7 = 0; v5(v6, v130); do { v9 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"dailyLevelCorner_001.png", v8); (*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v9, 8); switch ( v7 ) { case 2: cocos2d::CCSprite::setFlipX(v9, 1); cocos2d::CCSprite::setFlipY(v9, 1); v10 = 115.0; LABEL_9: v11 = 185.0; goto LABEL_12; case 3: cocos2d::CCSprite::setFlipX(v9, 1); v10 = -115.0; goto LABEL_9; case 1: cocos2d::CCSprite::setFlipY(v9, 1); v10 = 115.0; break; default: v10 = -115.0; break; } v11 = -185.0; LABEL_12: ++v7; v12 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v9 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v11 + (float)(v101 * 0.5), v10 + (float)(v102 * 0.5)); v12(v9, v130); } while ( v7 != 4 ); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Follow RobTop Games!", "bigFont.fnt", v13); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1061997773); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v14); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v101 * 0.5, (float)((float)(v102 * 0.5) + 140.0) - 22.0); v15(v14, v130); v17 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Earn rewards!", "bigFont.fnt", v16); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v17); (*(void (__fastcall **)(int, float))(*(_DWORD *)v17 + 80))(v17, 0.5); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); v19 = (*(int (__fastcall **)(int))(*(_DWORD *)v14 + 96))(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 0.0, -26.0); cocos2d::CCPoint::operator+(v130, v19, v108); v18(v17, v130); v21 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v20); v108[0] = FollowRewardPage::onClose; v108[1] = 0; v22 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v21, 0, (int)this, (int)FollowRewardPage::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((int)v22, 1.6); v23 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v22, nullptr); v24 = (float)(v101 * 0.5) - 210.0; v25 = (float)(v102 * 0.5) + 140.0; *(this + 111) = v23; v26 = v23; v27 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v24 + 10.0, v25 - 10.0); v27(v26, v130); v28 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, _DWORD, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), *(this + 111), 10); v29 = (cocos2d::CCObject *)cocos2d::CCArray::create(v28); *(this + 133) = v29; cocos2d::CCObject::retain(v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, v101 * 0.5, (float)(v102 * 0.5) - 30.0); for ( i = 1; i != 8; ++i ) { v109[0] = 0; v109[1] = 0; v110 = nullptr; std::string::__init(v109, &unk_B6B226, 0); v111[0] = 0; v111[1] = 0; v112 = nullptr; std::string::__init(v111, &unk_B6B226, 0); v30 = (GameStatsManager *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, (const cocos2d::CCPoint *)&unk_D2CD80); switch ( i ) { case 2: v40 = GameStatsManager::sharedState(v30); memset(v115, 0, sizeof(v115)); v41 = v40; std::string::__init(v115, "0008", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v41, (int)v115); v42 = (GameStatsManager *)std::string::~string((int)v115); v43 = GameStatsManager::sharedState(v42); memset(v116, 0, sizeof(v116)); std::string::__init(v116, "0008", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v43, (int)v116); std::string::~string((int)v116); std::string::assign(v109, "gj_twIcon_001.png"); v44 = std::string::assign(v111, "Twitter"); v45 = (GameManager *)GameManager::sharedState((GameManager *)v44); UGV = GameManager::getUGV(v45, "24"); v39 = 0.0; goto LABEL_17; case 3: v47 = GameStatsManager::sharedState(v30); memset(v117, 0, sizeof(v117)); v48 = v47; std::string::__init(v117, "0009", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v48, (int)v117); v49 = (GameStatsManager *)std::string::~string((int)v117); v50 = GameStatsManager::sharedState(v49); memset(v118, 0, sizeof(v118)); std::string::__init(v118, "0009", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v50, (int)v118); std::string::~string((int)v118); std::string::assign(v109, "gj_fbIcon_001.png"); v51 = std::string::assign(v111, "Facebook"); v52 = (GameManager *)GameManager::sharedState((GameManager *)v51); UGV = GameManager::getUGV(v52, "23"); v39 = 90.0; goto LABEL_17; case 4: v53 = GameStatsManager::sharedState(v30); memset(v119, 0, sizeof(v119)); v54 = v53; std::string::__init(v119, "0010", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v54, (int)v119); v55 = (GameStatsManager *)std::string::~string((int)v119); v56 = GameStatsManager::sharedState(v55); memset(v120, 0, sizeof(v120)); std::string::__init(v120, "0010", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v56, (int)v120); std::string::~string((int)v120); std::string::assign(v109, "gj_twitchIcon_001.png"); v57 = std::string::assign(v111, "Twitch"); v58 = (GameManager *)GameManager::sharedState((GameManager *)v57); UGV = GameManager::getUGV(v58, "26"); v39 = -135.0; goto LABEL_23; case 5: v59 = GameStatsManager::sharedState(v30); memset(v121, 0, sizeof(v121)); v60 = v59; std::string::__init(v121, "0011", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v60, (int)v121); v61 = (GameStatsManager *)std::string::~string((int)v121); v62 = GameStatsManager::sharedState(v61); memset(v122, 0, sizeof(v122)); std::string::__init(v122, "0011", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v62, (int)v122); std::string::~string((int)v122); std::string::assign(v109, "gj_discordIcon_001.png"); v63 = std::string::assign(v111, "Discord"); v64 = (GameManager *)GameManager::sharedState((GameManager *)v63); UGV = GameManager::getUGV(v64, "27"); v39 = -45.0; goto LABEL_23; case 6: v65 = GameStatsManager::sharedState(v30); memset(v123, 0, sizeof(v123)); v66 = v65; std::string::__init(v123, "0024", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v66, (int)v123); v67 = (GameStatsManager *)std::string::~string((int)v123); v68 = GameStatsManager::sharedState(v67); memset(v124, 0, sizeof(v124)); std::string::__init(v124, "0024", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v68, (int)v124); std::string::~string((int)v124); std::string::assign(v109, "gj_rdIcon_001.png"); v69 = std::string::assign(v111, "Reddit"); v70 = (GameManager *)GameManager::sharedState((GameManager *)v69); UGV = GameManager::getUGV(v70, "32"); v39 = 45.0; goto LABEL_23; case 7: v71 = GameStatsManager::sharedState(v30); memset(v125, 0, sizeof(v125)); v72 = v71; std::string::__init(v125, "0025", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v72, (int)v125); v73 = (GameStatsManager *)std::string::~string((int)v125); v74 = GameStatsManager::sharedState(v73); memset(v126, 0, sizeof(v126)); std::string::__init(v126, "0025", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v74, (int)v126); std::string::~string((int)v126); std::string::assign(v109, "gj_ytIcon_001.png"); v75 = std::string::assign(v111, "Spotlight"); v76 = (GameManager *)GameManager::sharedState((GameManager *)v75); v77 = GameManager::getUGV(v76, "39"); v39 = 135.0; UGV = v77; LABEL_23: v46 = -48.0; break; default: v31 = GameStatsManager::sharedState(v30); memset(v113, 0, sizeof(v113)); v32 = v31; std::string::__init(v113, "0007", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v32, (int)v113); v33 = (GameStatsManager *)std::string::~string((int)v113); v34 = GameStatsManager::sharedState(v33); memset(v114, 0, sizeof(v114)); std::string::__init(v114, "0007", 4u); RewardForSpecialChest = GameStatsManager::getRewardForSpecialChest(v34, (int)v114); std::string::~string((int)v114); std::string::assign(v109, "gj_ytIcon_001.png"); v36 = std::string::assign(v111, "YouTube"); v37 = (GameManager *)GameManager::sharedState((GameManager *)v36); UGV = GameManager::getUGV(v37, "22"); v39 = -90.0; LABEL_17: v46 = 48.0; break; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v107, v39, v46); cocos2d::CCPoint::operator=(v104, v107); v79 = GJChestSprite::create(*(GJChestSprite **)(RewardForSpecialChest + 60), v78); GJChestSprite::switchToState(v79, 2, 0); cocos2d::CCArray::addObject(*(this + 133), v79); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v79 + 80))(v79, 1056964608); v130[1] = 0; v130[0] = FollowRewardPage::onSpecialItem; v80 = CCMenuItemSpriteExtra::create((int)v79, 0, (int)this, (int)FollowRewardPage::onSpecialItem, 0); v127 = 0; v81 = (CCMenuItemSpriteExtra *)v80; v128 = 0; v129 = 0; std::string::__init(&v127, "chestClick.ogg", 0xEu); if ( (int *)((char *)v81 + 340) != &v127 ) { if ( (v127 & 1) != 0 ) { v83 = (char *)v129; v84 = v128; } else { v84 = (int)(unsigned __int8)v127 >> 1; v83 = (char *)&v127 + 1; } std::string::assign((_DWORD *)v81 + 85, v83, v84); } std::string::~string((int)&v127); v82 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _BYTE *))(*(_DWORD *)v81 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v107, 50.0, 40.0); v82(v81, v107); v85 = *(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_DWORD *)v79 + 92); v86 = *(float *)(*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v81 + 164))(v81); v87 = (*(int (__fastcall **)(CCMenuItemSpriteExtra *))(*(_DWORD *)v81 + 164))(v81); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v107, v86 * 0.5, *(float *)(v87 + 4) * 0.5); v85(v79, v107); (*(void (__fastcall **)(_DWORD, CCMenuItemSpriteExtra *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v81); *((_BYTE *)v81 + 320) = 0; *((_BYTE *)v81 + 321) = 1; (*(void (__fastcall **)(CCMenuItemSpriteExtra *, int))(*(_DWORD *)v81 + 36))(v81, i); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v79 + 36))(v79, i); cocos2d::CCPoint::operator+(v105, v103, v104); v88 = *(void (__fastcall **)(CCMenuItemSpriteExtra *, _BYTE *))(*(_DWORD *)v81 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v107, *(this + 111)); v88(v81, v107); if ( (v111[0] & 1) != 0 ) v89 = v112; else v89 = (cocos2d::CCLabelBMFont *)((char *)v111 + 1); v90 = cocos2d::CCLabelBMFont::create(v89, "goldFont.fnt", (const char *)(LOBYTE(v111[0]) << 31)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v90 + 80))(v90, 1056964608); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v90); v100 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v90 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 0.0, 42.0); cocos2d::CCPoint::operator+(v107, v105, v106); v100(v90, v107); if ( isSpecialChestUnlocked ) { FollowRewardPage::switchToOpenedState((FollowRewardPage *)this, v81); } else if ( !UGV ) { if ( (v109[0] & 1) != 0 ) v93 = v110; else v93 = (cocos2d::CCSprite *)((char *)v109 + 1); v94 = cocos2d::CCSprite::createWithSpriteFrameName(v93, v91); (*(void (__fastcall **)(int, int))(*(_DWORD *)v94 + 80))(v94, 1067030938); (*(void (__fastcall **)(int, int))(*(_DWORD *)v94 + 36))(v94, i + 10); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v94, 11); v95 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v94 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, 0.0, 2.0); cocos2d::CCPoint::operator+(v107, v105, v106); v95(v94, v107); *((_BYTE *)v79 + 516) = 1; (*(void (__fastcall **)(cocos2d::CCSprite *, __int16 *))(*(_DWORD *)v79 + 480))(v79, &word_BEEE54); } std::string::~string((int)v111); v92 = (GameManager *)std::string::~string((int)v109); } *(_DWORD *)(GameManager::sharedState(v92) + 740) = this + 131; return v99; }
GD Web Decomp Icon

GD Web Decomp

Raw Source