// // MoreSearchLayer::init from 0x14043b9b0 to 0x14043d87f (7887 bytes) // // 6 xrefs: // > LevelSearchLayer::onMoreOptions @ 0x140436c15 // > LevelSearchLayer::onMoreOptions @ 0x140436c1c // > LevelSearchLayer::onMoreOptions @ 0x140436c06 // > @ 0x1407904a0 // > @ 0x140926f78 // > @ 0x140926f84 // // This function is hookable on this platform (idp: pc, 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 11:32:20 +0000 // // Hidden C++ exception states: #wind=21 bool __fastcall MoreSearchLayer::init(__int64 a1) { bool result; // al __int64 v3; // rdx __int64 v4; // rdx __int64 v5; // rdx __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rax __int64 v9; // rcx cocos2d::CCObject *v10; // rax __int64 v11; // rcx cocos2d::CCObject *v12; // rax __int64 v13; // rcx cocos2d::CCObject *v14; // rax __int64 v15; // rax __int64 *v16; // rdi __int64 v17; // rdx void (__fastcall *v18)(__int64 *, __int64); // r8 __int64 v19; // rbx __int64 v20; // rax size_t v21; // r15 __int64 v22; // rbx __int64 v23; // rax int v24; // eax cocos2d::CCObject *v25; // rax struct cocos2d::CCMenu *v26; // rdi __int64 v27; // rbx __int64 v28; // rax struct cocos2d::CCLabelBMFont *v29; // rdi __int64 v30; // rbx __int64 v31; // rax float v32; // xmm10_4 float v33; // xmm11_4 float v34; // xmm9_4 float v35; // xmm7_4 float v36; // xmm12_4 float v37; // xmm13_4 float v38; // xmm6_4 __int64 v39; // rbx cocos2d::CCString *v40; // rax bool v41; // bl void *v42; // rcx __int64 v43; // rax __int64 v44; // rbx cocos2d::CCString *v45; // rax bool v46; // bl void *v47; // rcx __int64 v48; // rax __int64 v49; // rcx cocos2d::CCString *v50; // rax bool v51; // bl void *v52; // rcx __int64 v53; // rax __int64 v54; // rcx cocos2d::CCString *v55; // rax bool v56; // bl void *v57; // rcx __int64 v58; // rax __int64 v59; // rcx cocos2d::CCString *v60; // rax bool v61; // bl void *v62; // rcx __int64 v63; // rax __int64 v64; // rbx cocos2d::CCString *v65; // rax bool v66; // bl void *v67; // rcx __int64 v68; // rax __int64 v69; // rcx cocos2d::CCString *v70; // rax bool v71; // bl void *v72; // rcx __int64 v73; // rax __int64 v74; // rcx cocos2d::CCString *v75; // rax bool v76; // bl void *v77; // rcx __int64 v78; // rax __int64 v79; // rcx cocos2d::CCString *v80; // rax bool v81; // bl void *v82; // rcx __int64 v83; // rax __int64 v84; // rbx cocos2d::CCString *v85; // rax bool v86; // bl void *v87; // rcx __int64 v88; // rax __int64 v89; // rcx cocos2d::CCString *v90; // rax bool v91; // bl void *v92; // rcx __int64 v93; // rax struct cocos2d::CCObject *v94; // r13 __int64 v95; // rbx __int64 v96; // rax float v97; // xmm6_4 cocos2d::CCObject *v98; // rbx cocos2d::CCObject *v99; // rax _QWORD *v100; // r12 __int64 v101; // rsi __int64 v102; // rbx __int64 v103; // rdi __int64 v104; // rax __int64 v105; // rax cocos2d::CCObject *v106; // rbx cocos2d::CCObject *v107; // rax __int64 v108; // rsi __int64 v109; // rbx __int64 v110; // rdi __int64 v111; // rax __int64 v112; // rax struct cocos2d::CCLabelBMFont *v113; // rax __int64 v114; // rax __int64 v115; // rbx __int64 v116; // rax float v117; // xmm7_4 struct cocos2d::CCSprite *v118; // rax cocos2d::CCObject *v119; // rax __int64 v120; // rsi __int64 v121; // rbx __int64 v122; // rdi __int64 v123; // rax __int64 v124; // rax struct cocos2d::CCSprite *v125; // rax cocos2d::CCObject *v126; // rax __int64 v127; // rsi __int64 v128; // rbx __int64 v129; // rdi __int64 v130; // rax __int64 v131; // rax const struct cocos2d::CCPoint *v132; // rax __int64 v133; // rax struct cocos2d::CCObject *v134; // rbx __int64 v135; // rdx void (__fastcall *v136)(char *, __int64); // r8 __int64 v137; // rdx __int64 v138; // rcx char *v139; // rax __int64 v140; // rcx __int64 v141; // rcx __int64 v142; // rcx __int64 v143; // rcx __int64 v144; // rbx cocos2d::CCString *v145; // rax bool v146; // di void *v147; // r8 __int64 v148; // rbx cocos2d::CCString *v149; // rax bool v150; // si void *v151; // r8 __int64 v152; // rcx cocos2d::CCString *v153; // rax unsigned int v154; // ebx void *v155; // r8 cocos2d::CCString *v156; // rax const char *CString; // rax int v158; // eax cocos2d::CCObject *v159; // rsi __int64 v160; // rdi __int64 v161; // rbx __int64 v162; // rax __int64 v163; // rax int v164; // [rsp+58h] [rbp-B0h] BYREF float v165; // [rsp+60h] [rbp-A8h] BYREF float v166; // [rsp+64h] [rbp-A4h] __int128 *v167; // [rsp+68h] [rbp-A0h] BYREF void **v168; // [rsp+70h] [rbp-98h] BYREF __int128 v169; // [rsp+80h] [rbp-88h] BYREF __int64 v170; // [rsp+90h] [rbp-78h] __int64 v171; // [rsp+98h] [rbp-70h] void **v172; // [rsp+A0h] [rbp-68h] BYREF _BYTE v173[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE v174[8]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v175[16]; // [rsp+B8h] [rbp-50h] BYREF void *Block[2]; // [rsp+C8h] [rbp-40h] BYREF __int64 v177; // [rsp+D8h] [rbp-30h] unsigned __int64 v178; // [rsp+E0h] [rbp-28h] void *v179[2]; // [rsp+E8h] [rbp-20h] BYREF __int64 v180; // [rsp+F8h] [rbp-10h] unsigned __int64 v181; // [rsp+100h] [rbp-8h] FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); v164 = -1778384896; result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v164); if ( result ) { LOBYTE(v3) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v3); LOBYTE(v4) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v4); LOBYTE(v5) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v5); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v165); v8 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v8; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v8); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *(_QWORD *)(a1 + 720) = v10; cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); *(_QWORD *)(a1 + 728) = v12; cocos2d::CCObject::retain(v12); v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13); *(_QWORD *)(a1 + 712) = v14; cocos2d::CCObject::retain(v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v168, 0.0, 0.0, 80.0, 80.0); v16 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v15); v17 = v16[40]; v18 = *(void (__fastcall **)(__int64 *, __int64))(v17 + 40); LOBYTE(v17) = -1; v18(v16 + 40, v17); v19 = *v16; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v164, 440.0, 290.0); (*(void (__fastcall **)(__int64 *, __int64))(v19 + 312))(v16, v20); v21 = -1; (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v16, 0xFFFFFFFFLL); v22 = *v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v165 * 0.5, v166 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v16, v23); v24 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v25 = CCMenuItemSpriteExtra::create(v24, 0, a1, (__int64)MoreSearchLayer::onClose); *((_DWORD *)v25 + 93) = 1070386381; v26 = cocos2d::CCMenu::create(v25, 0); *(_QWORD *)(a1 + 552) = v26; v27 = *(_QWORD *)v26; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v164, (float)((float)(v165 * 0.5) - 220.0) + 10.0, (float)((float)(v166 * 0.5) + 145.0) - 10.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v27 + 184))(v26, v28); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 552), 10); *(_DWORD *)(a1 + 640) = -1; v29 = cocos2d::CCLabelBMFont::create("Advanced Options", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v29 + 160LL))(v29); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v29, 20); v30 = *(_QWORD *)v29; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v165 * 0.5, (float)((float)(v166 * 0.5) + 145.0) - 18.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v30 + 184))(v29, v31); v32 = (float)(v165 * 0.5) - 170.0; v33 = (float)(v165 * 0.5) - 40.0; v34 = (float)(v165 * 0.5) + 90.0; v35 = (float)(v166 * 0.5) + 90.0; v36 = v35 - 40.0; v37 = v35 - 80.0; v38 = v35 - 120.0; v172 = v179; v39 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v39 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v177 = 0; v178 = 0; Block[0] = sub_14003D460(0x20u); v177 = 18; v178 = 31; strcpy((char *)Block[0], "uncompleted_filter"); v40 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v39 + 848), Block); v41 = cocos2d::CCString::boolValue(v40); if ( v178 > 0xF ) { v42 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v42 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v42 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v42); } v180 = 11; v181 = 15; v179[0] = (void *)0x656C706D6F636E55LL; v179[1] = (void *)6579572; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, v32, v35); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onUncompleted, !v41, *(_QWORD *)(a1 + 552), v43); v167 = &v169; v44 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v172 = (void **)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v172); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v44 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v177 = 0; v178 = 0; Block[0] = sub_14003D460(0x20u); v177 = 16; v178 = 31; strcpy((char *)Block[0], "completed_filter"); v45 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v44 + 848), Block); v46 = cocos2d::CCString::boolValue(v45); if ( v178 > 0xF ) { v47 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v47 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v47 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v47); } *((_QWORD *)&v169 + 1) = 100; v170 = 9; v171 = 15; *(_QWORD *)&v169 = 0x6574656C706D6F43LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v33, v35); MoreSearchLayer::createToggleButton( a1, (unsigned int)&v169, (unsigned int)MoreSearchLayer::onCompleted, !v46, *(_QWORD *)(a1 + 552), v48); v168 = v179; v49 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v49 = *(_QWORD *)&qword_14090BFB0; } v177 = 15; v178 = 15; strcpy((char *)Block, "original_filter"); v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v49 + 848), Block); v51 = cocos2d::CCString::boolValue(v50); if ( v178 > 0xF ) { v52 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v52 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v52 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v52); } v179[1] = nullptr; v180 = 8; v181 = 15; v179[0] = *(void **)"Original"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v34, v35); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onOriginal, !v51, *(_QWORD *)(a1 + 552), v53); v168 = (void **)&v169; v54 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v54 = *(_QWORD *)&qword_14090BFB0; } v177 = 11; v178 = 15; Block[0] = (void *)0x6C69665F6E696F63LL; Block[1] = (void *)7497076; v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v54 + 848), Block); v56 = cocos2d::CCString::boolValue(v55); if ( v178 > 0xF ) { v57 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v57 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v57 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v57); } v169 = 0; v170 = 5; v171 = 15; strcpy((char *)&v169, "Coins"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v32, v36); MoreSearchLayer::createToggleButton( a1, (unsigned int)&v169, (unsigned int)MoreSearchLayer::onCoins, !v56, *(_QWORD *)(a1 + 552), v58); v168 = v179; v59 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v59 = *(_QWORD *)&qword_14090BFB0; } v177 = 11; v178 = 15; Block[0] = (void *)0x6C69665F506F7774LL; Block[1] = (void *)7497076; v60 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v59 + 848), Block); v61 = cocos2d::CCString::boolValue(v60); if ( v178 > 0xF ) { v62 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v62 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v62 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v62); } v179[1] = nullptr; v180 = 8; v181 = 15; v179[0] = (void *)0x726579616C502D32LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v33, v36); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onTwoPlayer, !v61, *(_QWORD *)(a1 + 552), v63); v168 = (void **)&v169; v64 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v64 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v177 = 0; v178 = 0; Block[0] = sub_14003D460(0x20u); v177 = 17; v178 = 31; strcpy((char *)Block[0], "enable_songFilter"); v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v64 + 848), Block); v66 = cocos2d::CCString::boolValue(v65); if ( v178 > 0xF ) { v67 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v67 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v67 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v67); } v169 = 0; v170 = 4; v171 = 15; strcpy((char *)&v169, "Song"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v34, v36); MoreSearchLayer::createToggleButton( a1, (unsigned int)&v169, (unsigned int)MoreSearchLayer::onSongFilter, !v66, *(_QWORD *)(a1 + 552), v68); v168 = v179; v69 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v69 = *(_QWORD *)&qword_14090BFB0; } v177 = 13; v178 = 15; strcpy((char *)Block, "nostar_filter"); HIWORD(Block[1]) = 0; v70 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v69 + 848), Block); v71 = cocos2d::CCString::boolValue(v70); if ( v178 > 0xF ) { v72 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v72 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v72 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v72); } v179[1] = nullptr; v180 = 7; v181 = 15; v179[0] = (void *)0x72617453206F4ELL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v32, v37); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onNoStar, !v71, *(_QWORD *)(a1 + 552), v73); v168 = (void **)&v169; v74 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v74 = *(_QWORD *)&qword_14090BFB0; } v177 = 15; v178 = 15; strcpy((char *)Block, "featured_filter"); v75 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v74 + 848), Block); v76 = cocos2d::CCString::boolValue(v75); if ( v178 > 0xF ) { v77 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v77 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v77 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v77); } v170 = 8; v171 = 15; v169 = *(unsigned __int64 *)"Featured"; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v33, v37); MoreSearchLayer::createToggleButton( a1, (unsigned int)&v169, (unsigned int)MoreSearchLayer::onFeatured, !v76, *(_QWORD *)(a1 + 552), v78); v168 = v179; v79 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v79 = *(_QWORD *)&qword_14090BFB0; } v177 = 11; v178 = 15; Block[0] = (void *)0x6C69665F63697065LL; Block[1] = (void *)7497076; v80 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v79 + 848), Block); v81 = cocos2d::CCString::boolValue(v80); if ( v178 > 0xF ) { v82 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v82 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v82 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v82); } *(_OWORD *)v179 = 0; v180 = 4; v181 = 15; strcpy((char *)v179, "Epic"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v34, v37); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onEpic, !v81, *(_QWORD *)(a1 + 552), v83); v168 = (void **)&v169; v84 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v84 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v177 = 0; v178 = 0; Block[0] = sub_14003D460(0x20u); v177 = 16; v178 = 31; strcpy((char *)Block[0], "legendary_filter"); v85 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v84 + 848), Block); v86 = cocos2d::CCString::boolValue(v85); if ( v178 > 0xF ) { v87 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v87 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v87 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v87); } *((_QWORD *)&v169 + 1) = 121; v170 = 9; v171 = 15; *(_QWORD *)&v169 = 0x7261646E6567654CLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v164, v32, v38); MoreSearchLayer::createToggleButton( a1, (unsigned int)&v169, (unsigned int)MoreSearchLayer::onLegendary, !v86, *(_QWORD *)(a1 + 552), v88); v168 = v179; v89 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v167 = (__int128 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v167); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v89 = *(_QWORD *)&qword_14090BFB0; } v177 = 13; v178 = 15; strcpy((char *)Block, "mythic_filter"); HIWORD(Block[1]) = 0; v90 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v89 + 848), Block); v91 = cocos2d::CCString::boolValue(v90); if ( v178 > 0xF ) { v92 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v92 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v92 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v92); } *(_OWORD *)v179 = 0; v180 = 6; v181 = 15; strcpy((char *)v179, "Mythic"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v172, v33, v38); MoreSearchLayer::createToggleButton( a1, (unsigned int)v179, (unsigned int)MoreSearchLayer::onMythic, !v91, *(_QWORD *)(a1 + 552), v93); v94 = cocos2d::CCLabelBMFont::create("Select Song:", "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v94); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v94 + 160LL))(v94); v95 = *(_QWORD *)v94; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, v165 * 0.5, (float)(v166 * 0.5) - 95.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v95 + 184))(v94, v96); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 712), v94); v97 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v94 + 200LL))(v94) + 4) + 25.0; v168 = (void **)operator new(0x2C8u); v98 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v168); if ( v98 ) { if ( ButtonSprite::init_1( (__int64)v98, (__int64)"Normal", 40, 0, 1053609165, 0, &qword_140704F78, (__int64)"GJ_button_01.png", 1101004800) ) { cocos2d::CCObject::autorelease(v98); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v98 + 8LL))(v98, 1); LODWORD(v98) = 0; } } v99 = CCMenuItemSpriteExtra::create((int)v98, 0, a1, (__int64)MoreSearchLayer::onSongMode); v100 = (_QWORD *)(a1 + 688); *(_QWORD *)(a1 + 688) = v99; *((_DWORD *)v99 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 688)); v101 = **(_QWORD **)(a1 + 688); v102 = *(_QWORD *)(a1 + 552); v103 = *(_QWORD *)(a1 + 688); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, (float)(v165 * 0.5) - 30.0, v97); cocos2d::CCNode::convertToNodeSpace(v102, &v167, v104); (*(void (__fastcall **)(__int64, __int64))(v101 + 184))(v103, v105); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v100 + 64LL))(*v100, 1); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 712), *(struct cocos2d::CCObject **)(a1 + 688)); v168 = (void **)operator new(0x2C8u); v106 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v168); if ( v106 ) { if ( ButtonSprite::init_1( (__int64)v106, (__int64)"Custom", 40, 0, 1053609165, 0, &qword_140704F78, (__int64)"GJ_button_01.png", 1101004800) ) { cocos2d::CCObject::autorelease(v106); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v106 + 8LL))(v106, 1); LODWORD(v106) = 0; } } v107 = CCMenuItemSpriteExtra::create((int)v106, 0, a1, (__int64)MoreSearchLayer::onSongMode); *(_QWORD *)(a1 + 696) = v107; *((_DWORD *)v107 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 696)); v108 = **(_QWORD **)(a1 + 696); v109 = *(_QWORD *)(a1 + 552); v110 = *(_QWORD *)(a1 + 696); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, (float)(v165 * 0.5) + 30.0, v97); cocos2d::CCNode::convertToNodeSpace(v109, &v167, v111); (*(void (__fastcall **)(__int64, __int64))(v108 + 184))(v110, v112); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 696) + 64LL))(*(_QWORD *)(a1 + 696), 2); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 712), *(struct cocos2d::CCObject **)(a1 + 696)); v113 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 664) = v113; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v113); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, 0.0, -25.0); v115 = v114; v116 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v94 + 200LL))(v94); cocos2d::CCPoint::operator+(v116, &v164, v115); (*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 664) + 184LL))(*(_QWORD *)(a1 + 664), &v164); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 160LL))(*(_QWORD *)(a1 + 664)); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 720), *(struct cocos2d::CCObject **)(a1 + 664)); v117 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 200LL))(*(_QWORD *)(a1 + 664)) + 4); v118 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); LODWORD(v115) = (_DWORD)v118; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v118 + 160LL))(v118); v119 = CCMenuItemSpriteExtra::create(v115, 0, a1, (__int64)MoreSearchLayer::audioPrevious); *(_QWORD *)(a1 + 672) = v119; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v119); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 720), *(struct cocos2d::CCObject **)(a1 + 672)); v120 = **(_QWORD **)(a1 + 672); v121 = *(_QWORD *)(a1 + 552); v122 = *(_QWORD *)(a1 + 672); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, (float)(v165 * 0.5) - 120.0, v117); cocos2d::CCNode::convertToNodeSpace(v121, &v167, v123); (*(void (__fastcall **)(__int64, __int64))(v120 + 184))(v122, v124); *(_DWORD *)(*(_QWORD *)(a1 + 672) + 372LL) = 0x40000000; v125 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); LODWORD(v121) = (_DWORD)v125; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v125 + 160LL))(v125); v126 = CCMenuItemSpriteExtra::create(v121, 0, a1, (__int64)MoreSearchLayer::audioNext); *(_QWORD *)(a1 + 680) = v126; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v126); v127 = **(_QWORD **)(a1 + 680); v128 = *(_QWORD *)(a1 + 552); v129 = *(_QWORD *)(a1 + 680); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168, (float)(v165 * 0.5) + 120.0, v117); cocos2d::CCNode::convertToNodeSpace(v128, &v167, v130); (*(void (__fastcall **)(__int64, __int64))(v127 + 184))(v129, v131); *(_DWORD *)(*(_QWORD *)(a1 + 680) + 372LL) = 0x40000000; cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 720), *(struct cocos2d::CCObject **)(a1 + 680)); v132 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 200LL))(*(_QWORD *)(a1 + 664)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v132); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v175, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v168, (const struct cocos2d::CCRect *)v175); v134 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v133); v135 = *((_QWORD *)v134 + 40); v136 = *(void (__fastcall **)(char *, __int64))(v135 + 40); LOBYTE(v135) = 100; v136((char *)v134 + 320, v135); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v174, 180.0, 30.0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v134 + 312LL))(v134, v174); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v134, 0xFFFFFFFFLL); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v134 + 184LL))(v134, v173); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 728), v134); v139 = CCTextInputNode::create(v138, v137, (__int64)"Enter song ID"); *(_QWORD *)(a1 + 704) = v139; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v139, 20); *(_QWORD *)(*(_QWORD *)(a1 + 704) + 600LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 704) + 184LL))(*(_QWORD *)(a1 + 704), v173); v140 = *(_QWORD *)(a1 + 704); *(_DWORD *)(v140 + 564) = 1060320051; CCTextInputNode::refreshLabel(v140); v141 = *(_QWORD *)(a1 + 704); *(_DWORD *)(v141 + 560) = 1126170624; CCTextInputNode::refreshLabel(v141); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 704) + 592LL) + 336LL))( *(_QWORD *)(*(_QWORD *)(a1 + 704) + 592LL), 0); *(_DWORD *)(*(_QWORD *)(a1 + 704) + 608LL) = 15; v170 = 10; v171 = 15; *(_QWORD *)&v169 = *(_QWORD *)"0123456789"; *((_QWORD *)&v169 + 1) = *(unsigned __int16 *)"89"; BYTE10(v169) = 0; CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 704), (void **)&v169); LOWORD(v164) = -21896; v142 = *(_QWORD *)(a1 + 704); *(_WORD *)(v142 + 572) = -21896; *(_BYTE *)(v142 + 574) = -16; CCTextInputNode::refreshLabel(v142); v143 = *(_QWORD *)(a1 + 704); *(_DWORD *)(v143 + 568) = 1056964608; CCTextInputNode::refreshLabel(v143); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 728), *(struct cocos2d::CCObject **)(a1 + 704)); MoreSearchLayer::onSongFilter(a1, 0); v144 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v168 = (void **)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v168); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v144 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)v179 = 0; v180 = 0; v181 = 0; v179[0] = sub_14003D460(0x20u); v180 = 17; v181 = 31; strcpy((char *)v179[0], "customsong_filter"); v145 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v144 + 848), v179); v146 = cocos2d::CCString::boolValue(v145); if ( v181 > 0xF ) { v147 = v179[0]; if ( v181 + 1 >= 0x1000 ) { v147 = *((void **)v179[0] - 1); if ( (unsigned __int64)((char *)v179[0] - (char *)v147 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v147); } v180 = 0; v181 = 15; LOBYTE(v179[0]) = 0; v148 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v168 = (void **)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v168); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v148 = *(_QWORD *)&qword_14090BFB0; } *(_OWORD *)Block = 0; v177 = 0; v178 = 0; Block[0] = sub_14003D460(0x20u); v177 = 17; v178 = 31; strcpy((char *)Block[0], "enable_songFilter"); v149 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v148 + 848), Block); v150 = cocos2d::CCString::boolValue(v149); if ( v178 > 0xF ) { v151 = Block[0]; if ( v178 + 1 >= 0x1000 ) { v151 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v151 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v151); } v177 = 0; v178 = 15; LOBYTE(Block[0]) = 0; v152 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v168 = (void **)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v168); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v152 = *(_QWORD *)&qword_14090BFB0; } v180 = 11; v181 = 15; v179[0] = (void *)0x6C69665F676E6F73LL; v179[1] = (void *)7497076; v153 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v152 + 848), v179); v154 = cocos2d::CCString::intValue(v153); if ( v181 > 0xF ) { v155 = v179[0]; if ( v181 + 1 >= 0x1000 ) { v155 = *((void **)v179[0] - 1); if ( (unsigned __int64)((char *)v179[0] - (char *)v155 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v155); } if ( v146 ) v100 = (_QWORD *)(a1 + 696); MoreSearchLayer::onSongMode(a1, *v100); if ( v150 && v146 && v154 ) { v156 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v154); CString = cocos2d::CCString::getCString(v156); v169 = 0; v170 = 0; v171 = 0; do ++v21; while ( CString[v21] ); sub_14003D230(&v169, CString, v21); CCTextInputNode::setString(*(_QWORD **)(a1 + 704), &v169); } v158 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v159 = CCMenuItemSpriteExtra::create(v158, 0, a1, (__int64)MoreSearchLayer::onInfo); *((_DWORD *)v159 + 93) = 0x40000000; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v159); v160 = *(_QWORD *)v159; v161 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v168, (float)((float)(v165 * 0.5) + 220.0) - 17.0, (float)((float)(v166 * 0.5) + 145.0) - 17.0); cocos2d::CCNode::convertToNodeSpace(v161, &v167, v162); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v160 + 184))(v159, v163); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source