// // SupportLayer::customSetup from 0x9026c4 to 0x902fd8 (2324 bytes) // // 2 xrefs: // > @ 0x759a0 // > @ 0x1464dc8 // // 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 12:57:07 +0000 // __int64 __fastcall SupportLayer::customSetup(SupportLayer *this) { cocos2d::CCDirector *v2; // x0 const char *v3; // x6 __int64 v4; // x0 cocos2d::CCMenu *v5; // x27 const char *v6; // x6 __int64 v7; // x0 cocos2d::CCMenuItem *v8; // x26 const char *v9; // x6 __int64 v10; // x0 __int64 v11; // x25 const char *v12; // x6 __int64 v13; // x0 __int64 v14; // x24 const char *v15; // x6 __int64 v16; // x0 __int64 v17; // x22 cocos2d::CCNode *v18; // x21 void (__fastcall *v19)(cocos2d::CCMenuItem *, __int64 *); // x27 void (__fastcall *v20)(__int64, __int64 *); // x26 void (__fastcall *v21)(__int64, __int64 *); // x22 void (__fastcall *v22)(__int64, __int64 *); // x22 GameManager *v23; // x0 __int64 v24; // x0 const char *v25; // x6 __int64 v26; // x0 __int64 v27; // x22 void (__fastcall *v28)(__int64, __int64 *); // x24 GameStatsManager *v29; // x0 cocos2d::CCMenu *v30; // x0 float v31; // s9 float v32; // s8 cocos2d::CCNode *v33; // x21 const char *v34; // x1 __int64 v35; // x24 void (__fastcall *v36)(__int64, __int64 *); // x22 const char *v37; // x1 __int64 v38; // x0 __int64 v39; // x22 void (__fastcall *v40)(__int64, __int64 *); // x27 __int64 v41; // x0 const char *v42; // x1 __int64 v43; // x22 __int64 v44; // x0 __int64 (__fastcall *v45)(__int64); // x1 void (__fastcall *v46)(__int64, __int64 *); // x24 __int64 v47; // x0 const char *v48; // x1 __int64 v49; // x0 __int64 v50; // x24 void (__fastcall *v51)(__int64, __int64 *); // x27 __int64 v52; // x0 const char *v53; // x2 __int64 v54; // x24 __int64 v55; // x0 __int64 (__fastcall *v56)(__int64); // x1 __int64 (__fastcall *v57)(__int64, __int64 *); // x22 __int64 v58; // x0 AchievementManager *v59; // x0 AchievementManager *v60; // x0 const char *v61; // x2 cocos2d::CCNode *v62; // x22 void (__fastcall *v63)(cocos2d::CCNode *, __int64 *); // x24 unsigned __int8 v64; // w1 cocos2d::CCAction *v65; // x0 GJAccountManager *v67; // x0 __int64 v68; // x0 __int64 v69; // x24 const char *v70; // x6 _BOOL4 isSpecialChestUnlocked; // w24 __int64 v72; // x0 __int64 v73; // x24 __int64 v74; // x0 __int64 (__fastcall *v75)(__int64); // x1 void (__fastcall *v76)(__int64, __int64 *); // x22 __int64 v77; // x27 void (__fastcall *v78)(cocos2d::CCNode *, __int64 *); // [xsp+80h] [xbp+80h] void (__fastcall *v79)(cocos2d::CCMenu *, __int64 *); // [xsp+80h] [xbp+80h] float v80; // [xsp+80h] [xbp+80h] __int64 v81; // [xsp+98h] [xbp+98h] BYREF _BYTE v82[8]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v83; // [xsp+A8h] [xbp+A8h] BYREF GJAccountManager *v84; // [xsp+B0h] [xbp+B0h] BYREF __int64 v85; // [xsp+B8h] [xbp+B8h] void *v86; // [xsp+C0h] [xbp+C0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v81, v2); v4 = ButtonSprite::create( (ButtonSprite *)"Links", (const char *)&dword_44 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v3, 30.0); v5 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v4, 0, (__int64)this, (__int64)SupportLayer::onLinks, 0); v7 = ButtonSprite::create( (ButtonSprite *)"Contact", (const char *)&dword_44 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v6, 30.0); v8 = (cocos2d::CCMenuItem *)CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, (__int64)SupportLayer::onEmail, 0); v10 = ButtonSprite::create( (ButtonSprite *)"Privacy", (const char *)&dword_44 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v9, 30.0); v11 = CCMenuItemSpriteExtra::create(v10, 0, (__int64)this, (__int64)SupportLayer::onPrivacy, 0); v13 = ButtonSprite::create( (ButtonSprite *)"ToS", (const char *)&dword_44 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v12, 30.0); v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, (__int64)SupportLayer::onTOS, 0); v16 = ButtonSprite::create( (ButtonSprite *)"SFX", (const char *)&dword_44 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_01.png", v15, 30.0); v17 = CCMenuItemSpriteExtra::create(v16, 0, (__int64)this, (__int64)SupportLayer::onSFX, 0); v18 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v5, v8, v11, v14, v17, 0); v78 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, *(float *)&v81 * 0.5, (float)(*((float *)&v81 + 1) * 0.5) + 60.0); v78(v18, &v83); v79 = *(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, -100.0, 20.0); v79(v5, &v83); v19 = *(void (__fastcall **)(cocos2d::CCMenuItem *, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 0.0, 20.0); v19(v8, &v83); v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 100.0, 20.0); v20(v17, &v83); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, -50.0, -20.0); v21(v11, &v83); v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, 50.0, -20.0); v22(v14, &v83); v84 = nullptr; v85 = 0; v86 = nullptr; v23 = (GameManager *)std::string::__init((__int64 *)&v84, "Low Detail Mode", 0xFu); LOBYTE(v22) = *(_BYTE *)(GameManager::sharedState(v23) + 925) ^ 1; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v83, (float)(*(float *)&v81 * 0.5) + -160.0, (float)(*((float *)&v81 + 1) * 0.5) + -90.0); SupportLayer::createToggleButton( (__int64)this, (__int64)&v84, (__int64)SupportLayer::onLowDetail, 0, (unsigned __int8)v22, v18, (const cocos2d::CCPoint *)&v83, nullptr); if ( ((unsigned __int8)v84 & 1) != 0 ) { operator delete(v86); v68 = GJAccountManager::sharedState(v67); if ( *(_DWORD *)(v68 + 352) - *(_DWORD *)(v68 + 356) <= 0 ) goto LABEL_4; } else { v24 = GJAccountManager::sharedState((GJAccountManager *)(unsigned __int8)v84); if ( *(_DWORD *)(v24 + 352) - *(_DWORD *)(v24 + 356) <= 0 ) goto LABEL_4; } v26 = ButtonSprite::create( (ButtonSprite *)"Req", (const char *)&qword_D8 + 4, 0, 0, 0.4, "bigFont.fnt", "GJ_button_04.png", v25, 25.0); v27 = CCMenuItemSpriteExtra::create(v26, 0, (__int64)this, (__int64)SupportLayer::onRequestAccess, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v18 + 456LL))(v18, v27); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v82, (float)(*(float *)&v81 * 0.5) + 150.0, (float)(*((float *)&v81 + 1) * 0.5) + -90.0); cocos2d::CCNode::convertToNodeSpace(&v83, v18, (const cocos2d::CCPoint *)v82); v28(v27, &v83); v29 = (GameStatsManager *)rand(); if ( (float)((float)(int)v29 * 4.6566e-10) > 0.9 ) { v69 = GameStatsManager::sharedState(v29); v84 = nullptr; v85 = 0; v86 = nullptr; std::string::__init((__int64 *)&v84, "0023", 4u); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v69, (char *)&v84); if ( ((unsigned __int8)v84 & 1) != 0 ) operator delete(v86); if ( !isSpecialChestUnlocked ) { v72 = ButtonSprite::create( (ButtonSprite *)"?", (const char *)&qword_D8 + 4, 0, 0, 0.6, "goldFont.fnt", "GJ_button_05.png", v70, 25.0); v73 = CCMenuItemSpriteExtra::create(v72, 0, (__int64)this, (__int64)SupportLayer::onGetReward, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v18 + 456LL))(v18, v73); v74 = v27; v75 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL); v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v73 + 184LL); v77 = v75(v74); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, -50.0, 0.0); cocos2d::CCPoint::operator+(&v83, v77); v76(v73, &v83); } } LABEL_4: v30 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v18, 1); v31 = (float)(*(float *)&v81 * 0.5) + -55.0; v32 = (float)(*(float *)&v81 * 0.5) + 45.0; v33 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v30); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"developedBy_001.png", v34); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v35); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, v31, (float)(*((float *)&v81 + 1) * 0.5) + 0.0); v36(v35, &v83); v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"robtoplogo_small.png", v37); v39 = CCMenuItemSpriteExtra::create(v38, 0, (__int64)this, (__int64)SupportLayer::onRobTop, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v39); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); v41 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 192LL))(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, v32, *(float *)(v41 + 4)); cocos2d::CCNode::convertToNodeSpace(&v83, v33, (const cocos2d::CCPoint *)v82); v40(v39, &v83); v43 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"poweredBy_001.png", v42); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v43); v44 = v35; v45 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v35 + 192LL); v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 184LL); v47 = v45(v44); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, v31, *(float *)(v47 + 4) - 35.0); v46(v43, &v83); v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"cocos2DxLogo.png", v48); v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)SupportLayer::onCocos2d, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v50); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); v52 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 192LL))(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, v32, *(float *)(v52 + 4)); cocos2d::CCNode::convertToNodeSpace(&v83, v33, (const cocos2d::CCPoint *)v82); v51(v50, &v83); v54 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"FMOD Studio by Firelight Technologies Pty Ltd.", "goldFont.fnt", v53); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v54 + 160LL))(v54, 0.35); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v54); v55 = v43; v56 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 192LL); v57 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL); v80 = *(float *)&v81 * 0.5; v58 = v56(v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, v80, *(float *)(v58 + 4) - 26.0); v59 = (AchievementManager *)v57(v54, &v83); v60 = (AchievementManager *)AchievementManager::sharedState(v59); if ( !AchievementManager::isAchievementEarned(v60, "geometry.ach.secret08") ) { v62 = (cocos2d::CCNode *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"\"blockbite\"", "chatFont.fnt", v61); (*(void (__fastcall **)(SupportLayer *, cocos2d::CCNode *, __int64))(*(_QWORD *)this + 464LL))(this, v62, 3); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v62 + 160LL))(v62, 0.5); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v62 + 1072LL))(v62, &unk_1151810); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v62 + 1024LL))(v62, 0); v63 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v62 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v83, *(float *)&v81 - 32.0, 8.0); v63(v62, &v83); v65 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)((char *)&qword_60 + 4), 10.0, v64); cocos2d::CCNode::runAction(v62, v65); } (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v33, 2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source