// // OptionsLayer::customSetup from 0x8f3f38 to 0x8f4980 (2632 bytes) // // 2 xrefs: // > @ 0xc6e50 // > @ 0x145f828 // // 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:00 +0000 // __int64 __fastcall OptionsLayer::customSetup(OptionsLayer *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCMenu *WinSize; // x0 bool v4; // w4 __int64 v5; // x5 const char *v6; // x6 __int64 v7; // x0 bool v8; // w4 __int64 v9; // x5 const char *v10; // x6 __int64 v11; // x0 __int64 v12; // x28 bool v13; // w4 __int64 v14; // x5 const char *v15; // x6 __int64 v16; // x0 __int64 v17; // x27 bool v18; // w4 __int64 v19; // x5 const char *v20; // x6 __int64 v21; // x0 __int64 v22; // x25 bool v23; // w4 __int64 v24; // x5 const char *v25; // x6 __int64 v26; // x0 __int64 v27; // x24 bool v28; // w4 __int64 v29; // x5 const char *v30; // x6 __int64 v31; // x0 __int64 v32; // x23 bool v33; // w4 __int64 v34; // x5 const char *v35; // x6 __int64 v36; // x0 __int64 v37; // x26 void (__fastcall *v38)(__int64, __int64 *); // x28 void (__fastcall *v39)(__int64, __int64 *); // x27 void (__fastcall *v40)(__int64, __int64 *); // x26 void (__fastcall *v41)(__int64, __int64 *); // x25 void (__fastcall *v42)(__int64, __int64 *); // x24 cocos2d::CCMenu *v43; // x0 GameStatsManager *v44; // x22 GameStatsManager *v45; // x0 const char *v46; // x1 _BOOL4 v47; // w25 char *v48; // x0 __int64 v49; // x26 __int64 v50; // x24 void (__fastcall *v51)(__int64, __int64 *); // x27 const char *v52; // x2 __int64 v53; // x24 void (__fastcall *v54)(__int64, __int64 *); // x27 Slider *v55; // x0 __int64 v56; // x27 void (__fastcall *v57)(__int64, __int64 *); // x28 FMODAudioEngine *v58; // x0 Slider *v59; // x27 FMODAudioEngine *v60; // x0 float BackgroundMusicVolume; // s0 const char *v62; // x2 __int64 v63; // x25 void (__fastcall *v64)(__int64, __int64 *); // x27 __int64 v65; // x28 Slider *v66; // x0 __int64 v67; // x27 __int64 v68; // x0 __int64 (__fastcall *v69)(__int64); // x1 void (__fastcall *v70)(__int64, __int64 *); // x25 __int64 v71; // x28 FMODAudioEngine *v72; // x0 Slider *v73; // x25 FMODAudioEngine *v74; // x0 float EffectsVolume; // s0 GameManager *v76; // x0 __int64 v77; // x0 GameManager *v78; // x0 GameManager *v79; // x0 char GameVariable; // w0 __int64 v81; // x1 char v82; // w2 __int64 v83; // x0 __int64 v84; // x28 __int64 v85; // x27 __int64 v87; // x0 const char *v88; // x1 __int64 v89; // x25 void (__fastcall *v90)(__int64, __int64 *); // x28 const char *v91; // x2 __int64 v92; // x25 void (__fastcall *v93)(__int64, __int64 *); // x26 __int64 v94; // [xsp+B8h] [xbp+88h] __int64 v95; // [xsp+C0h] [xbp+90h] void (__fastcall *v96)(__int64, __int64 *); // [xsp+C0h] [xbp+90h] void (__fastcall *v97)(__int64, __int64 *); // [xsp+C0h] [xbp+90h] __int64 v98; // [xsp+C0h] [xbp+90h] float v99; // [xsp+C0h] [xbp+90h] __int64 v100; // [xsp+D0h] [xbp+A0h] BYREF _BYTE v101[8]; // [xsp+D8h] [xbp+A8h] BYREF __int64 v102; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v103[8]; // [xsp+E8h] [xbp+B8h] BYREF __int64 v104; // [xsp+F0h] [xbp+C0h] BYREF __int64 v105; // [xsp+F8h] [xbp+C8h] BYREF __int64 v106[2]; // [xsp+100h] [xbp+D0h] BYREF void *v107; // [xsp+110h] [xbp+E0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v100, v2); *((_QWORD *)this + 78) = cocos2d::CCMenu::create(WinSize); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v101, *(float *)&v100 * 0.5, (float)(*((float *)&v100 + 1) * 0.5) + 80.0); cocos2d::CCNode::convertToNodeSpace(&v102, *((cocos2d::CCNode **)this + 78), (const cocos2d::CCPoint *)v101); v7 = ButtonSprite::create((ButtonSprite *)"Account", (const char *)&qword_80 + 2, 0, 1, 1.0, v4, v5, v6); v95 = CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, (__int64)OptionsLayer::onAccount, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v95); v11 = ButtonSprite::create((ButtonSprite *)"How To Play", (const char *)&qword_80 + 2, 0, 1, 1.0, v8, v9, v10); v12 = CCMenuItemSpriteExtra::create(v11, 0, (__int64)this, (__int64)OptionsLayer::onHelp, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v12); v16 = ButtonSprite::create((ButtonSprite *)"Options", (const char *)&qword_80 + 2, 0, 1, 1.0, v13, v14, v15); v17 = CCMenuItemSpriteExtra::create(v16, 0, (__int64)this, (__int64)OptionsLayer::onOptions, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v17); v21 = ButtonSprite::create((ButtonSprite *)"Rate", (const char *)&qword_48 + 6, 0, 1, 1.0, v18, v19, v20); v22 = CCMenuItemSpriteExtra::create(v21, 0, (__int64)this, (__int64)OptionsLayer::onRate, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v22); v26 = ButtonSprite::create((ButtonSprite *)"Songs", (const char *)&qword_48 + 6, 0, 1, 1.0, v23, v24, v25); v27 = CCMenuItemSpriteExtra::create(v26, 0, (__int64)this, (__int64)OptionsLayer::onSoundtracks, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v27); v31 = ButtonSprite::create((ButtonSprite *)"Help", (const char *)&qword_48 + 6, 0, 1, 1.0, v28, v29, v30); v32 = CCMenuItemSpriteExtra::create(v31, 0, (__int64)this, (__int64)OptionsLayer::onSupport, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v32); v36 = ButtonSprite::create((ButtonSprite *)"Parental", (const char *)&qword_80 + 2, 0, 1, 1.0, v33, v34, v35); v37 = CCMenuItemSpriteExtra::create(v36, 0, (__int64)this, (__int64)OptionsLayer::onParental, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 78) + 456LL))(*((_QWORD *)this + 78), v37); v94 = v95; v96 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v95 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, -79.0, 0.0); cocos2d::CCPoint::operator+(&v105, &v102); v96(v94, &v105); v97 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 79.0, 0.0); cocos2d::CCPoint::operator+(&v105, &v102); v97(v12, &v105); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, -79.0, -80.0); cocos2d::CCPoint::operator+(&v105, &v102); v38(v17, &v105); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 79.0, -80.0); cocos2d::CCPoint::operator+(&v105, &v102); v39(v37, &v105); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, -105.0, -40.0); cocos2d::CCPoint::operator+(&v105, &v102); v40(v22, &v105); v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 0.0, -40.0); cocos2d::CCPoint::operator+(&v105, &v102); v41(v27, &v105); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 105.0, -40.0); cocos2d::CCPoint::operator+(&v105, &v102); v42(v32, &v105); v43 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), *((_QWORD *)this + 78), 1); v44 = (GameStatsManager *)cocos2d::CCMenu::create(v43); v45 = (GameStatsManager *)GameStatsManager::sharedState(v44); v47 = (int)GameStatsManager::getStat(v45, (const char *)&word_120A570) > 9; if ( v47 ) v48 = "GJ_lock_open_001.png"; else v48 = "GJ_lockGray_001.png"; v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v48, v46); v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)OptionsLayer::onSecretVault, 0); (*(void (__fastcall **)(GameStatsManager *, __int64))(*(_QWORD *)v44 + 456LL))(v44, v50); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, *(float *)&v100 - 20.0, *((float *)&v100 + 1) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v105, v44, (const cocos2d::CCPoint *)&v104); v51(v50, &v105); if ( !v47 ) { v99 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50) * 0.5; v87 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, v99, (float)(*(float *)(v87 + 4) * 0.5) + -21.0); v89 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_coinsIcon2_001.png", v88); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v49 + 456LL))(v49, v89); v90 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 7.5, 0.0); cocos2d::CCPoint::operator+(&v105, v103); v90(v89, &v105); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v89 + 160LL))(v89, 0.5); v92 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"10", "bigFont.fnt", v91); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v49 + 456LL))(v49, v92); v93 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v92 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, -7.5, 0.0); cocos2d::CCPoint::operator+(&v105, v103); v93(v92, &v105); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v92 + 160LL))(v92, 0.4); } CCMenuItemSpriteExtra::setSizeMult(v50, 1.5); v53 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Music", "bigFont.fnt", v52); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v53); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v105, *(float *)&v100 * 0.5, (float)(*((float *)&v100 + 1) * 0.5) + -34.0); v54(v53, &v105); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v53 + 160LL))(v53, 0.6); v55 = (Slider *)Slider::create((int)this, (int)OptionsLayer::musicSliderChanged, 0); *((_QWORD *)this + 81) = v55; Slider::setBarVisibility(v55); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 72) + 456LL))( *((_QWORD *)this + 72), *((_QWORD *)this + 81)); v56 = *((_QWORD *)this + 81); v57 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v56 + 184LL); v98 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v53 + 192LL))(v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 0.0, -20.0); cocos2d::CCPoint::operator+(&v105, v98); v57(v56, &v105); v58 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 81) + 72LL))( *((_QWORD *)this + 81), 0); v59 = *((Slider **)this + 81); v60 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v58); BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v60); Slider::setValue(v59, BackgroundMusicVolume); v63 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"SFX", "bigFont.fnt", v62); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v63); v64 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v63 + 184LL); v65 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v53 + 192LL))(v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 0.0, -40.0); cocos2d::CCPoint::operator+(&v105, v65); v64(v63, &v105); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v63 + 160LL))(v63, 0.6); v66 = (Slider *)Slider::create((int)this, (int)OptionsLayer::sfxSliderChanged, 0); *((_QWORD *)this + 82) = v66; Slider::setBarVisibility(v66); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 72) + 456LL))( *((_QWORD *)this + 72), *((_QWORD *)this + 82)); v67 = *((_QWORD *)this + 82); v68 = v63; v69 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v63 + 192LL); v70 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v67 + 184LL); v71 = v69(v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v104, 0.0, -20.0); cocos2d::CCPoint::operator+(&v105, v71); v70(v67, &v105); v72 = (FMODAudioEngine *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 82) + 72LL))( *((_QWORD *)this + 82), 1); v73 = *((Slider **)this + 82); v74 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v72); EffectsVolume = FMODAudioEngine::getEffectsVolume(v74); v76 = (GameManager *)Slider::setValue(v73, EffectsVolume); v77 = GameManager::sharedState(v76); v106[0] = 0; *(_QWORD *)(v77 + 952) = (char *)this + 616; v106[1] = 0; v107 = nullptr; v78 = (GameManager *)std::string::__init(v106, "Menu\nMusic", 0xAu); v79 = (GameManager *)GameManager::sharedState(v78); GameVariable = GameManager::getGameVariable(v79, "0122"); v81 = *(_QWORD *)v53; v82 = GameVariable; v83 = v53; LOBYTE(v53) = v82 ^ 1; v84 = (*(__int64 (__fastcall **)(__int64))(v81 + 192))(v83); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 145.0, -35.0); cocos2d::CCPoint::operator+(&v104, v84); v85 = *((_QWORD *)this + 72); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, 0.0, 2.0); GameToolbox::createToggleButton( (__int64)v106, (const char *)OptionsLayer::onMenuMusic, 0, v53, v44, (const cocos2d::CCPoint *)&v104, (__int64)this, v85, 0.6, 0.35, 0.0, (float *)&v105, "bigFont.fnt", 1, 0, nullptr); if ( (v106[0] & 1) != 0 ) operator delete(v107); (*(void (__fastcall **)(_QWORD, GameStatsManager *))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v44); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source