// // MoreSearchLayer::init from 0x7e0ae4 to 0x7e1c8c (4520 bytes) // // 3 xrefs: // > MoreSearchLayer::create @ 0x7e1e30 // > @ 0x91540 // > @ 0x143ac30 // // 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:54:26 +0000 // __int64 __fastcall MoreSearchLayer::init(MoreSearchLayer *this) { unsigned __int8 v2; // w0 unsigned int v3; // w23 cocos2d::CCDirector *v5; // x0 cocos2d::CCDirector *v6; // x0 cocos2d::CCLayer *WinSize; // x0 __int64 v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCObject *v10; // x0 cocos2d::CCArray *v11; // x0 cocos2d::CCObject *v12; // x0 cocos2d::CCArray *v13; // x0 cocos2d::CCObject *v14; // x0 __int64 v15; // x24 void (__fastcall *v16)(__int64, __int64 *); // x25 void (__fastcall *v17)(__int64, __int64 *); // x25 const char *v18; // x1 __int64 v19; // x0 cocos2d::CCMenu *v20; // x24 __int64 v21; // x24 float v22; // s1 void (__fastcall *v23)(__int64, __int64 *); // x25 __int64 v24; // x24 void (__fastcall *v25)(__int64, __int64 *); // x25 float v26; // s14 float v27; // s11 float v28; // s10 float v29; // s9 GameLevelManager *v30; // x0 float v31; // s8 GameLevelManager *v32; // x0 cocos2d::CCNode *v33; // x26 GameLevelManager *v34; // x0 GameLevelManager *v35; // x0 unsigned __int8 v36; // w24 cocos2d::CCNode *v37; // x26 GameLevelManager *v38; // x0 GameLevelManager *v39; // x0 unsigned __int8 v40; // w24 cocos2d::CCNode *v41; // x26 GameLevelManager *v42; // x0 GameLevelManager *v43; // x0 unsigned __int8 v44; // w24 cocos2d::CCNode *v45; // x26 GameLevelManager *v46; // x0 GameLevelManager *v47; // x0 unsigned __int8 v48; // w24 cocos2d::CCNode *v49; // x26 GameLevelManager *v50; // x0 GameLevelManager *v51; // x0 unsigned __int8 v52; // w24 cocos2d::CCNode *v53; // x26 GameLevelManager *v54; // x0 GameLevelManager *v55; // x0 unsigned __int8 v56; // w24 cocos2d::CCNode *v57; // x26 GameLevelManager *v58; // x0 GameLevelManager *v59; // x0 unsigned __int8 v60; // w24 cocos2d::CCNode *v61; // x26 GameLevelManager *v62; // x0 GameLevelManager *v63; // x0 unsigned __int8 v64; // w24 cocos2d::CCNode *v65; // x26 GameLevelManager *v66; // x0 GameLevelManager *v67; // x0 unsigned __int8 v68; // w24 cocos2d::CCNode *v69; // x26 GameLevelManager *v70; // x0 GameLevelManager *v71; // x0 unsigned __int8 v72; // w25 cocos2d::CCNode *v73; // x26 const char *v74; // x2 cocos2d::CCObject *v75; // x27 void (__fastcall *v76)(cocos2d::CCObject *, __int64 *); // x25 float v77; // s10 __int64 v78; // x0 __int64 v79; // x0 __int64 v80; // x0 __int64 v81; // x0 __int64 v82; // x26 const char *v83; // x2 __int64 v84; // x0 __int64 v85; // x26 cocos2d::CCObject *v86; // x0 __int64 (__fastcall *v87)(cocos2d::CCObject *); // x1 void (__fastcall *v88)(__int64, __int64 *); // x27 float v89; // s10 const char *v90; // x1 __int64 v91; // x26 __int64 v92; // x0 __int64 v93; // x26 void (__fastcall *v94)(__int64, __int64 *); // x27 const char *v95; // x1 __int64 v96; // x26 __int64 v97; // x0 __int64 v98; // x26 void (__fastcall *v99)(__int64, __int64 *); // x27 const cocos2d::CCPoint *v100; // x0 cocos2d::CCObject *v101; // x26 const char *v102; // x4 __int64 v103; // x0 __int64 v104; // x24 GameLevelManager *v105; // x0 GameLevelManager *v106; // x0 GameLevelManager *BoolForKey; // x0 int v108; // w24 GameLevelManager *v109; // x0 GameLevelManager *v110; // x0 int v111; // w26 GameLevelManager *v112; // x0 unsigned int IntForKey; // w25 const char *v114; // x1 _QWORD *v115; // x24 cocos2d::CCString *v116; // x0 const char *CString; // x0 size_t v118; // x0 __int64 v119; // x0 __int64 v120; // x24 cocos2d::CCNode *v121; // x25 void (__fastcall *v122)(__int64, __int64 *); // x19 cocos2d::CCNode *v123; // [xsp+B8h] [xbp+B8h] cocos2d::CCNode *v124; // [xsp+C0h] [xbp+C0h] cocos2d::CCNode *v125; // [xsp+C0h] [xbp+C0h] cocos2d::CCNode *v126; // [xsp+C8h] [xbp+C8h] cocos2d::CCNode *v127; // [xsp+C8h] [xbp+C8h] cocos2d::CCNode *v128; // [xsp+C8h] [xbp+C8h] cocos2d::CCNode *v129; // [xsp+C8h] [xbp+C8h] cocos2d::CCNode *v130; // [xsp+C8h] [xbp+C8h] cocos2d::CCNode *v131; // [xsp+C8h] [xbp+C8h] int v132; // [xsp+D8h] [xbp+D8h] __int64 v133; // [xsp+E0h] [xbp+E0h] BYREF _BYTE v134[8]; // [xsp+E8h] [xbp+E8h] BYREF _BYTE v135[8]; // [xsp+F0h] [xbp+F0h] BYREF _BYTE v136[8]; // [xsp+F8h] [xbp+F8h] BYREF _BYTE v137[16]; // [xsp+100h] [xbp+100h] BYREF __int64 v138[2]; // [xsp+110h] [xbp+110h] BYREF __int64 v139; // [xsp+120h] [xbp+120h] BYREF __int64 v140; // [xsp+128h] [xbp+128h] void *v141; // [xsp+130h] [xbp+130h] FLAlertLayer::incrementForcePrio(this); LODWORD(v138[0]) = -1778384896; v2 = cocos2d::CCLayerColor::initWithColor(this, v138); v3 = v2; if ( v2 ) { (*(void (__fastcall **)(MoreSearchLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); (*(void (__fastcall **)(MoreSearchLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v5 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(MoreSearchLayer *, __int64))(*(_QWORD *)this + 1088LL))( this, 1); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v133, v6); v8 = cocos2d::CCLayer::create(WinSize); *((_QWORD *)this + 73) = v8; v9 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(MoreSearchLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v8); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *((_QWORD *)this + 90) = v10; v11 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); *((_QWORD *)this + 91) = v12; v13 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13); *((_QWORD *)this + 89) = v14; cocos2d::CCObject::retain(v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v138, 0.0, 0.0, 80.0, 80.0); v15 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v138); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 912LL))(v15, 0xFFFFFFFFLL); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v138, 440.0, 290.0); v16(v15, v138); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v15, 0xFFFFFFFFLL); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, *(float *)&v133 * 0.5, *((float *)&v133 + 1) * 0.5); v17(v15, v138); v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v18); v20 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v19, 0, (__int64)this, (__int64)MoreSearchLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v20, 1.6); v21 = cocos2d::CCMenu::create(v20, nullptr); v22 = *(float *)&v133; *((_QWORD *)this + 69) = v21; v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v138, (float)((float)(v22 * 0.5) + -220.0) + 10.0, (float)((float)(*((float *)&v133 + 1) * 0.5) + 145.0) - 10.0); v23(v21, v138); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 69), 10); *((_DWORD *)this + 160) = -1; v24 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Advanced Options", "goldFont.fnt", (const char *)0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v24 + 160LL))(v24, 0.7); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v24, 20); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v138, *(float *)&v133 * 0.5, (float)((float)(*((float *)&v133 + 1) * 0.5) + 145.0) - 18.0); v25(v24, v138); v139 = 0; v140 = 0; v26 = (float)(*((float *)&v133 + 1) * 0.5) + 90.0; v141 = nullptr; v27 = (float)(*(float *)&v133 * 0.5) + -170.0; v28 = (float)(*(float *)&v133 * 0.5) + -40.0; v29 = (float)(*(float *)&v133 * 0.5) + 90.0; v30 = (GameLevelManager *)std::string::__init(&v139, "Uncompleted", 0xBu); v31 = v26 - 80.0; v32 = (GameLevelManager *)GameLevelManager::sharedState(v30); LOBYTE(v24) = GameLevelManager::getBoolForKey(v32, "uncompleted_filter") ^ 1; v33 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v27, v26); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onUncompleted, 0, v24, v33, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v34 = (GameLevelManager *)std::string::__init(&v139, "Completed", 9u); v35 = (GameLevelManager *)GameLevelManager::sharedState(v34); v36 = GameLevelManager::getBoolForKey(v35, "completed_filter") ^ 1; v37 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v28, v26); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onCompleted, 0, v36, v37, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v38 = (GameLevelManager *)std::string::__init(&v139, "Original", 8u); v39 = (GameLevelManager *)GameLevelManager::sharedState(v38); v40 = GameLevelManager::getBoolForKey(v39, "original_filter") ^ 1; v41 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v29, v26); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onOriginal, 0, v40, v41, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v42 = (GameLevelManager *)std::string::__init(&v139, "Coins", 5u); v43 = (GameLevelManager *)GameLevelManager::sharedState(v42); v44 = GameLevelManager::getBoolForKey(v43, "coin_filter") ^ 1; v45 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v27, v26 - 40.0); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onCoins, 0, v44, v45, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v46 = (GameLevelManager *)std::string::__init(&v139, "2-Player", 8u); v47 = (GameLevelManager *)GameLevelManager::sharedState(v46); v48 = GameLevelManager::getBoolForKey(v47, "twoP_filter") ^ 1; v49 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v28, v26 - 40.0); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onTwoPlayer, 0, v48, v49, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v50 = (GameLevelManager *)std::string::__init(&v139, "Song", 4u); v51 = (GameLevelManager *)GameLevelManager::sharedState(v50); v52 = GameLevelManager::getBoolForKey(v51, "enable_songFilter") ^ 1; v53 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v29, v26 - 40.0); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onSongFilter, 0, v52, v53, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v54 = (GameLevelManager *)std::string::__init(&v139, "No Star", 7u); v55 = (GameLevelManager *)GameLevelManager::sharedState(v54); v56 = GameLevelManager::getBoolForKey(v55, "nostar_filter") ^ 1; v57 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v27, v31); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onNoStar, 0, v56, v57, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v58 = (GameLevelManager *)std::string::__init(&v139, "Featured", 8u); v59 = (GameLevelManager *)GameLevelManager::sharedState(v58); v60 = GameLevelManager::getBoolForKey(v59, "featured_filter") ^ 1; v61 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v28, v31); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onFeatured, 0, v60, v61, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v62 = (GameLevelManager *)std::string::__init(&v139, "Epic", 4u); v63 = (GameLevelManager *)GameLevelManager::sharedState(v62); v64 = GameLevelManager::getBoolForKey(v63, "epic_filter") ^ 1; v65 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v29, v31); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onEpic, 0, v64, v65, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v66 = (GameLevelManager *)std::string::__init(&v139, "Legendary", 9u); v67 = (GameLevelManager *)GameLevelManager::sharedState(v66); v68 = GameLevelManager::getBoolForKey(v67, "legendary_filter") ^ 1; v69 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v27, v26 - 120.0); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onLegendary, 0, v68, v69, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v139 = 0; v140 = 0; v141 = nullptr; v70 = (GameLevelManager *)std::string::__init(&v139, "Mythic", 6u); v71 = (GameLevelManager *)GameLevelManager::sharedState(v70); v72 = GameLevelManager::getBoolForKey(v71, "mythic_filter") ^ 1; v73 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138, v28, v26 - 120.0); MoreSearchLayer::createToggleButton( (__int64)this, (__int64)&v139, (__int64)MoreSearchLayer::onMythic, 0, v72, v73, (const cocos2d::CCPoint *)v138); if ( (v139 & 1) != 0 ) operator delete(v141); v75 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Select Song:", "goldFont.fnt", v74); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), v75); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v75 + 160LL))(v75, 0.5); v76 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v75 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v138, *(float *)&v133 * 0.5, (float)(*((float *)&v133 + 1) * 0.5) + -95.0); v76(v75, v138); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v75); v77 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v75 + 192LL))(v75) + 4) + 25.0; v78 = ButtonSprite::create( (ButtonSprite *)"Normal", (const char *)&qword_28, 0, 0, 0.4, "bigFont.fnt", "GJ_button_01.png", "GJ_button_01.png", 20.0); v79 = CCMenuItemSpriteExtra::create(v78, 0, (__int64)this, (__int64)MoreSearchLayer::onSongMode, 0); *((_QWORD *)this + 86) = v79; CCMenuItemSpriteExtra::setSizeMult(v79, 1.1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 86)); v124 = *((cocos2d::CCNode **)this + 86); v123 = *((cocos2d::CCNode **)this + 69); v126 = *(cocos2d::CCNode **)(*(_QWORD *)v124 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, (float)(*(float *)&v133 * 0.5) + -30.0, v77); cocos2d::CCNode::convertToNodeSpace(v138, v123, (const cocos2d::CCPoint *)v137); ((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v126)(v124, v138); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 86) + 72LL))(*((_QWORD *)this + 86), 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), *((cocos2d::CCObject **)this + 86)); v80 = ButtonSprite::create( (ButtonSprite *)"Custom", (const char *)&qword_28, 0, 0, 0.4, "bigFont.fnt", "GJ_button_01.png", "GJ_button_01.png", 20.0); v81 = CCMenuItemSpriteExtra::create(v80, 0, (__int64)this, (__int64)MoreSearchLayer::onSongMode, 0); *((_QWORD *)this + 87) = v81; CCMenuItemSpriteExtra::setSizeMult(v81, 1.1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 87)); v82 = *((_QWORD *)this + 87); v125 = *((cocos2d::CCNode **)this + 69); v127 = *(cocos2d::CCNode **)(*(_QWORD *)v82 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, (float)(*(float *)&v133 * 0.5) + 30.0, v77); cocos2d::CCNode::convertToNodeSpace(v138, v125, (const cocos2d::CCPoint *)v137); ((void (__fastcall *)(__int64, __int64 *))v127)(v82, v138); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 87) + 72LL))(*((_QWORD *)this + 87), 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), *((cocos2d::CCObject **)this + 87)); v84 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v83); *((_QWORD *)this + 83) = v84; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v84); v85 = *((_QWORD *)this + 83); v86 = v75; v87 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v75 + 192LL); v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL); v128 = (cocos2d::CCNode *)v87(v86); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, 0.0, -25.0); cocos2d::CCPoint::operator+(v138, v128); v88(v85, v138); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 83) + 160LL))(*((_QWORD *)this + 83), 0.6); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), *((cocos2d::CCObject **)this + 83)); v89 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 192LL))(*((_QWORD *)this + 83)) + 4); v91 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v91 + 160LL))(v91, 1.2); v92 = CCMenuItemSpriteExtra::create(v91, 0, (__int64)this, (__int64)MoreSearchLayer::audioPrevious, 0); *((_QWORD *)this + 84) = v92; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v92); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), *((cocos2d::CCObject **)this + 84)); v93 = *((_QWORD *)this + 84); v129 = *((cocos2d::CCNode **)this + 69); v94 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v93 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, (float)(*(float *)&v133 * 0.5) + -120.0, v89); cocos2d::CCNode::convertToNodeSpace(v138, v129, (const cocos2d::CCPoint *)v137); v94(v93, v138); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 84), 2.0); v96 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v95); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v96 + 160LL))(v96, 1.2); v97 = CCMenuItemSpriteExtra::create(v96, 0, (__int64)this, (__int64)MoreSearchLayer::audioNext, 0); *((_QWORD *)this + 85) = v97; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v97); v98 = *((_QWORD *)this + 85); v130 = *((cocos2d::CCNode **)this + 69); v99 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v98 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137, (float)(*(float *)&v133 * 0.5) + 120.0, v89); cocos2d::CCNode::convertToNodeSpace(v138, v130, (const cocos2d::CCPoint *)v137); v99(v98, v138); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 85), 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), *((cocos2d::CCObject **)this + 85)); v100 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 192LL))(*((_QWORD *)this + 83)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v134, v100); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v137, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v138, (const cocos2d::CCRect *)v137); v101 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v138); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v101 + 912LL))(v101, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v135, 180.0, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v101 + 320LL))(v101, v135); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v101, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v101 + 184LL))(v101, v134); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), v101); v103 = CCTextInputNode::create( (CCTextInputNode *)"Enter song ID", 100.0, 50.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v102); *((_QWORD *)this + 88) = v103; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v103, 20); *(_QWORD *)(*((_QWORD *)this + 88) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 88) + 184LL))(*((_QWORD *)this + 88), v134); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 88), 0.7); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 88), 160.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 88) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 88) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 88) + 592LL) = 15; v139 = 0; v104 = *((_QWORD *)this + 88); v140 = 0; v141 = nullptr; std::string::__init(&v139, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v104, (__int64)&v139); if ( (v139 & 1) != 0 ) operator delete(v141); LOWORD(v132) = -21896; BYTE2(v132) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 88), v132); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 88), 0.5); CCTextInputNode::forceOffset(*((_QWORD *)this + 88)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 91), *((cocos2d::CCObject **)this + 88)); v105 = (GameLevelManager *)MoreSearchLayer::onSongFilter((cocos2d::CCArray **)this, nullptr); v106 = (GameLevelManager *)GameLevelManager::sharedState(v105); BoolForKey = (GameLevelManager *)GameLevelManager::getBoolForKey(v106, "customsong_filter"); v108 = (unsigned __int8)BoolForKey; v109 = (GameLevelManager *)GameLevelManager::sharedState(BoolForKey); v110 = (GameLevelManager *)GameLevelManager::getBoolForKey(v109, "enable_songFilter"); v111 = (unsigned __int8)v110; v112 = (GameLevelManager *)GameLevelManager::sharedState(v110); IntForKey = GameLevelManager::getIntForKey(v112, "song_filter"); if ( v108 ) { MoreSearchLayer::onSongMode(this, *((cocos2d::CCObject **)this + 87)); if ( IntForKey ) { if ( v111 ) { v115 = *((_QWORD **)this + 88); v116 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)IntForKey); CString = (const char *)cocos2d::CCString::getCString(v116); v139 = 0; v131 = (cocos2d::CCNode *)CString; v140 = 0; v141 = nullptr; v118 = strlen(CString); std::string::__init(&v139, v131, v118); CCTextInputNode::setString(v115, (char *)&v139); if ( (v139 & 1) != 0 ) operator delete(v141); } } } else { MoreSearchLayer::onSongMode(this, *((cocos2d::CCObject **)this + 86)); } v119 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v114); v120 = CCMenuItemSpriteExtra::create(v119, 0, (__int64)this, (__int64)MoreSearchLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v120, 2.0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v120); v121 = *((cocos2d::CCNode **)this + 69); v122 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v120 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v136, (float)((float)(*(float *)&v133 * 0.5) + 220.0) - 17.0, (float)((float)(*((float *)&v133 + 1) * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(v138, v121, (const cocos2d::CCPoint *)v136); v122(v120, v138); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source