// // EditorSoundConfigInfoLayer::init from 0xcd0ab8 to 0xcd2994 (7900 bytes) // // 2 xrefs: // > EditorSoundConfigInfoLayer::create @ 0xcd2cac // > @ 0x9c850 // // 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 13:06:28 +0000 // __int64 __fastcall EditorSoundConfigInfoLayer::init(__int64 a1, cocos2d::CCObject *a2, int a3, __int64 a4) { cocos2d::CCDirector *v8; // x0 cocos2d::CCMenu *WinSize; // x0 float v10; // s8 float v11; // s14 float v12; // s15 float v13; // s10 __int64 v14; // x0 __int64 v15; // x23 char v16; // w0 __int64 v17; // x23 const char *v18; // x2 __int64 v19; // x3 cocos2d::CCLabelBMFont *v20; // x0 cocos2d::CCLabelBMFont *v21; // x0 cocos2d::CCLabelBMFont *v22; // x21 void (__fastcall *v23)(cocos2d::CCLabelBMFont *, void **); // x20 __int64 v24; // x1 char v25; // w0 __int64 v26; // x2 __int64 v27; // x0 __int64 v28; // x1 const char *v29; // x2 __int64 v30; // x1 __int64 v31; // x0 __int64 v32; // x1 cocos2d::CCLabelBMFont *v33; // x0 cocos2d::CCLabelBMFont *v34; // x26 __int64 v35; // x20 float v36; // s9 float v37; // s9 float v38; // s8 float v39; // s0 __int64 v40; // x25 void (__fastcall *v41)(__int64, void **); // x20 float v42; // s8 float v43; // s8 void (__fastcall *v44)(cocos2d::CCLabelBMFont *, void **); // x22 __int64 v45; // x26 float v46; // s8 void (__fastcall *v47)(__int64, void **); // x22 __int64 v48; // x26 char v49; // w3 __int64 v50; // x4 __int64 v51; // x5 __int64 v52; // x0 __int64 v53; // x1 cocos2d::CCSprite *v54; // x20 long double v55; // q1 float v56; // s8 float v57; // s9 float v58; // s0 cocos2d::CCLabelBMFont *v59; // x0 float (__fastcall *v60)(cocos2d::CCLabelBMFont *); // x1 void (__fastcall *v61)(cocos2d::CCSprite *, void **); // x21 float v62; // s8 float v63; // s0 __int64 v64; // x21 void (__fastcall *v65)(__int64, void **); // x22 __int64 v66; // x25 __int64 v67; // x21 void (__fastcall *v68)(__int64, void **); // x20 const char *v69; // x2 cocos2d::CCLabelBMFont *v70; // x0 __int64 v71; // x25 void (__fastcall *v72)(__int64, void **); // x26 __int64 v73; // x27 const char *v74; // x1 __int64 v75; // x25 __int64 v76; // x0 __int64 (__fastcall *v77)(__int64); // x1 void (__fastcall *v78)(__int64, void **); // x21 __int64 v79; // x26 const char *v80; // x2 cocos2d::CCLabelBMFont *v81; // x0 __int64 v82; // x0 char v83; // w1 __int64 v84; // x21 void (__fastcall *v85)(__int64, void **); // x22 __int64 v86; // x25 float v87; // s11 float v88; // w25 __int64 v89; // x20 void (__fastcall *v90)(__int64, void **); // x26 void (__fastcall *v91)(__int64, void **); // x26 __int64 v92; // x20 void (__fastcall *v93)(__int64, void **); // x25 ScrollableContentLayer *v94; // x20 int v95; // w2 EditorSoundConfigUploadPopup **(__fastcall **v96)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *); // x26 const char **v97; // x25 char *v98; // x25 const char *v99; // x1 EditorSoundConfigUploadPopup **(__fastcall **v100)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *); // x25 const char **v101; // x27 const char *v102; // x1 char *v103; // x2 const char *v104; // x1 EditorSoundConfigUploadPopup **(__fastcall **v105)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *); // x0 const char **v106; // x0 char *v107; // x2 const char *v108; // x1 EditorSoundConfigUploadPopup **(__fastcall **v109)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *); // x0 const char **v110; // x0 float v111; // s8 __int64 v112; // x0 float v113; // s9 float v114; // s11 int v115; // w28 char *v116; // x1 __int64 v117; // x22 int v118; // w21 char *v119; // x6 __int64 *v120; // x27 __int64 v121; // x24 __int64 v122; // x25 __int64 v123; // x0 __int64 v124; // x20 cocos2d::CCNode *v125; // x25 void (__fastcall *v126)(__int64, __int64 *); // x24 __int64 v127; // x20 __int64 v128; // x21 void (__fastcall *v129)(__int64, const char **); // x22 cocos2d::CCNode *v130; // x23 const char *v131; // x1 __int64 v132; // x21 __int64 v133; // x21 cocos2d::CCNode *v134; // x22 __int64 (__fastcall *v135)(__int64, const char **); // x23 cocos2d::CCDirector *v136; // x0 cocos2d::CCDirector *v137; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v139; // s0 float v140; // s10 cocos2d::CCDirector *v141; // x0 const char *v142; // x1 float v143; // s0 float v144; // s8 cocos2d::CCSpriteFrameCache **v145; // x21 void (__fastcall *v146)(cocos2d::CCSpriteFrameCache **, float); // x22 cocos2d::CCSpriteFrameCache *v147; // x0 float v148; // s11 float *v149; // x0 __int64 v150; // x0 __int64 v151; // x2 __int64 v152; // x21 __int64 v153; // x0 __int64 v154; // x2 __int64 v155; // x21 cocos2d::CCNode *v156; // x23 void (__fastcall *v157)(__int64, const char **); // x22 const char *v158; // x1 float v159; // s8 __int64 v160; // x21 __int64 v161; // x0 __int64 v162; // x21 cocos2d::CCNode *v163; // x23 void (__fastcall *v164)(__int64, const char **); // x22 __int64 v165; // x0 __int64 v166; // x21 __int64 v167; // x0 __int64 v168; // x2 __int64 v169; // x21 cocos2d::CCNode *v170; // x23 void (__fastcall *v171)(__int64, const char **); // x22 __int64 v172; // x21 __int64 v173; // x21 __int64 v174; // x21 cocos2d::CCNode *v175; // x22 void (__fastcall *v176)(__int64, void **); // x20 cocos2d::CCNode *v178; // x23 void (__fastcall *v179)(__int64, const char **); // x22 __int64 v180; // x21 __int64 v181; // x0 __int64 v182; // x2 __int64 v183; // x21 cocos2d::CCNode *v184; // x23 void (__fastcall *v185)(__int64, const char **); // x22 cocos2d::CCDirector *v186; // x0 const char *v187; // x1 cocos2d::CCSpriteFrameCache **v188; // x21 void (__fastcall *v189)(cocos2d::CCSpriteFrameCache **, float); // x22 cocos2d::CCSpriteFrameCache *v190; // x0 float v191; // s12 float *v192; // x0 __int64 v193; // x21 cocos2d::CCNode *v194; // x23 __int64 (__fastcall *v195)(__int64, const char **); // x22 cocos2d::CCDirector *v196; // x0 GameManager *ScreenLeft; // x0 float v198; // s0 float v199; // s10 float v200; // s8 __int64 v201; // x0 int v202; // w21 int v203; // w22 const char *v204; // x1 float v205; // s10 float v206; // s8 __int64 v207; // x0 __int64 v208; // x21 __int64 v209; // x0 __int64 v210; // x2 __int64 v211; // x21 cocos2d::CCNode *v212; // x23 void (__fastcall *v213)(__int64, const char **); // x22 __int64 v214; // x21 __int64 v215; // x0 __int64 v216; // x2 __int64 v217; // x21 cocos2d::CCNode *v218; // x23 void (__fastcall *v219)(__int64, const char **); // x22 __int64 v220; // x0 __int64 v221; // x20 void (__fastcall *v222)(__int64, void **); // x21 void (__fastcall *v223)(__int64, void **); // x21 const char *v224; // x4 __int64 v225; // x0 __int64 v226; // x20 __int64 v227; // x0 __int64 v228; // x1 __int64 v229; // x20 __int64 v230; // x0 _QWORD *v231; // x21 __int64 v232; // x1 const char *v233; // x1 size_t v234; // x0 __int64 v235; // x20 void (__fastcall *v236)(__int64, void **); // x21 __int64 v237; // x21 __int64 v238; // x0 __int64 v239; // x2 __int64 v240; // x21 cocos2d::CCNode *v241; // x23 void (__fastcall *v242)(__int64, const char **); // x22 cocos2d::CCSpriteFrameCache **v243; // x21 void (__fastcall *v244)(cocos2d::CCSpriteFrameCache **, float); // x22 cocos2d::CCSpriteFrameCache *v245; // x0 float v246; // s12 float *v247; // x0 cocos2d::CCSprite *v248; // x0 unsigned __int8 v249; // [xsp+A3h] [xbp+A3h] _BOOL4 v250; // [xsp+A4h] [xbp+A4h] float v251; // [xsp+B0h] [xbp+B0h] char *v252; // [xsp+B0h] [xbp+B0h] __int64 v253; // [xsp+C8h] [xbp+C8h] BYREF __int64 v254; // [xsp+D0h] [xbp+D0h] BYREF _BYTE v255[8]; // [xsp+D8h] [xbp+D8h] BYREF _BYTE v256[8]; // [xsp+E0h] [xbp+E0h] BYREF const char *v257; // [xsp+E8h] [xbp+E8h] BYREF const char *v258; // [xsp+F0h] [xbp+F0h] const char *v259; // [xsp+F8h] [xbp+F8h] BYREF __int64 v260; // [xsp+100h] [xbp+100h] cocos2d::CCLabelBMFont *v261; // [xsp+108h] [xbp+108h] __int64 v262; // [xsp+110h] [xbp+110h] BYREF __int64 v263; // [xsp+118h] [xbp+118h] void *v264; // [xsp+120h] [xbp+120h] __int64 v265; // [xsp+128h] [xbp+128h] BYREF __int64 v266; // [xsp+130h] [xbp+130h] void *v267; // [xsp+138h] [xbp+138h] __int64 v268; // [xsp+140h] [xbp+140h] BYREF __int64 v269; // [xsp+148h] [xbp+148h] void *v270; // [xsp+150h] [xbp+150h] __int64 v271; // [xsp+158h] [xbp+158h] BYREF __int64 v272; // [xsp+160h] [xbp+160h] cocos2d::CCLabelBMFont *v273; // [xsp+168h] [xbp+168h] void *v274; // [xsp+170h] [xbp+170h] BYREF char *v275; // [xsp+178h] [xbp+178h] unsigned __int64 v276; // [xsp+180h] [xbp+180h] void *v277; // [xsp+188h] [xbp+188h] BYREF EditorSoundConfigUploadPopup **(__fastcall **v278)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *); // [xsp+190h] [xbp+190h] unsigned __int64 v279; // [xsp+198h] [xbp+198h] void *v280; // [xsp+1A0h] [xbp+1A0h] BYREF const char **v281; // [xsp+1A8h] [xbp+1A8h] const char *v282; // [xsp+1B0h] [xbp+1B0h] v249 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 380.0, 240.0, 1u, 0.0); if ( !v249 ) return v249; *(_QWORD *)(a1 + 1088) = a2; if ( a2 ) cocos2d::CCObject::retain(a2); *(_DWORD *)(a1 + 1096) = a3; *(_QWORD *)(a1 + 1104) = a4; SetupTriggerPopup::preSetup((SetupTriggerPopup *)a1); *(_BYTE *)(a1 + 596) = (unsigned __int8)&dword_0 + 1; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v253, v8); v10 = *(float *)(a1 + 736) * 0.5; v11 = *(float *)&v253 * 0.5; v12 = v10 + (float)(*((float *)&v253 + 1) * 0.5); v13 = -(float)(v10 - (float)(*((float *)&v253 + 1) * 0.5)); v14 = cocos2d::CCMenu::create(WinSize); *(_QWORD *)(a1 + 552) = v14; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v14, 10); v15 = *(_QWORD *)(a1 + 1088); if ( v15 ) { if ( *(_DWORD *)(a1 + 1096) == 2 && *(int *)(v15 + 316) <= 0 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v280, 0.0, 0.0, 40.0, 40.0); v221 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v280); v222 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v221 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v280, 320.0, 30.0); v222(v221, &v280); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v221 + 960LL))(v221, &unk_11A3D18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v221 + 912LL))(v221, 100); v223 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v221 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v11, v12 - 27.0); v223(v221, &v280); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v221); v225 = CCTextInputNode::create( (CCTextInputNode *)"Pack Name", 320.0, 30.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v224); *(_QWORD *)(a1 + 1232) = v225; *(_QWORD *)(v225 + 584) = a1 + 544; v226 = *(_QWORD *)(a1 + 1232); v271 = 0; v272 = 0; v273 = nullptr; std::string::__init(&v271, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); CCTextInputNode::setAllowedChars(v226, (__int64)&v271); if ( (v271 & 1) != 0 ) operator delete(v273); *(_DWORD *)(*(_QWORD *)(a1 + 1232) + 592LL) = 20; CCTextInputNode::setMaxLabelScale(*(CCTextInputNode **)(a1 + 1232), 0.9); CCTextInputNode::setMaxLabelWidth(*(CCTextInputNode **)(a1 + 1232), 310.0); v271 = 0; v227 = *(_QWORD *)(a1 + 1088); v272 = 0; v273 = nullptr; if ( (*(_BYTE *)(v227 + 376) & 1) != 0 ) { std::string::__init(&v271, *(void **)(v227 + 392), *(_QWORD *)(v227 + 384)); } else { v228 = *(_QWORD *)(v227 + 384); v271 = *(_QWORD *)(v227 + 376); v272 = v228; v273 = *(cocos2d::CCLabelBMFont **)(v227 + 392); } v229 = (unsigned __int8)v271 >> 1; if ( (v271 & 1) != 0 ) { v229 = v272; operator delete(v273); } if ( v229 ) { v230 = *(_QWORD *)(a1 + 1088); v268 = 0; v269 = 0; v270 = nullptr; v231 = *(_QWORD **)(a1 + 1232); if ( (*(_BYTE *)(v230 + 376) & 1) != 0 ) { std::string::__init(&v268, *(void **)(v230 + 392), *(_QWORD *)(v230 + 384)); } else { v232 = *(_QWORD *)(v230 + 384); v268 = *(_QWORD *)(v230 + 376); v269 = v232; v270 = *(void **)(v230 + 392); } v233 = (char *)&v268 + 1; if ( (v268 & 1) != 0 ) v233 = (const char *)v270; v252 = (char *)v233; v271 = 0; v272 = 0; v273 = nullptr; v234 = strlen(v233); std::string::__init(&v271, v252, v234); CCTextInputNode::setString(v231, (char *)&v271); if ( (v271 & 1) != 0 ) operator delete(v273); if ( (v268 & 1) != 0 ) operator delete(v270); } v235 = *(_QWORD *)(a1 + 1232); v236 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v235 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v11, v12 - 27.0); v236(v235, &v280); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1232)); goto LABEL_41; } v16 = *(_BYTE *)(v15 + 376); v259 = nullptr; v17 = v15 + 376; v260 = 0; v261 = nullptr; if ( (v16 & 1) != 0 ) { std::string::__init((__int64 *)&v259, *(void **)(v17 + 16), *(_QWORD *)(v17 + 8)); } else { v18 = *(const char **)v17; v19 = *(_QWORD *)(v17 + 8); v20 = *(cocos2d::CCLabelBMFont **)(v17 + 16); v259 = *(const char **)v17; v260 = v19; v261 = v20; } } else { v259 = nullptr; v260 = 0; v261 = nullptr; std::string::__init((__int64 *)&v259, &byte_1191DE0, 1u); } v21 = (cocos2d::CCLabelBMFont *)((char *)&v259 + 1); if ( ((unsigned __int8)v259 & 1) != 0 ) v21 = v261; v22 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v21, "bigFont.fnt", v18); cocos2d::CCLabelBMFont::limitLabelWidth(v22, 200.0, 0.8, 0.0); v23 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v11 + 12.0, v12 - 22.0); v23(v22, &v280); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v22); v24 = *(_QWORD *)(a1 + 1088); if ( !v24 ) goto LABEL_39; if ( *(_DWORD *)(a1 + 1096) != 2 ) { v25 = *(_BYTE *)(v24 + 448); v26 = v24 + 448; v262 = 0; v263 = 0; v264 = nullptr; if ( (v25 & 1) != 0 ) { std::string::__init(&v262, *(void **)(v24 + 464), *(_QWORD *)(v24 + 456)); } else { v27 = *(_QWORD *)v26; v28 = *(_QWORD *)(v24 + 456); v264 = *(void **)(v26 + 16); v262 = v27; v263 = v28; } v29 = (const char *)(v262 & 1); v30 = (unsigned __int8)v262 >> 1; if ( (v262 & 1) != 0 ) v30 = v263; if ( v30 ) { v31 = *(_QWORD *)(a1 + 1088); v271 = 0; v272 = 0; v273 = nullptr; if ( (*(_BYTE *)(v31 + 448) & 1) == 0 ) { v32 = *(_QWORD *)(v31 + 456); v271 = *(_QWORD *)(v31 + 448); v272 = v32; v273 = *(cocos2d::CCLabelBMFont **)(v31 + 464); goto LABEL_19; } std::string::__init(&v271, *(void **)(v31 + 464), *(_QWORD *)(v31 + 456)); } else { v271 = 0; v272 = 0; v273 = nullptr; std::string::__init(&v271, &byte_1191DE0, 1u); } v29 = (const char *)(v262 & 1); LABEL_19: if ( (_DWORD)v29 ) operator delete(v264); v33 = (cocos2d::CCLabelBMFont *)((char *)&v271 + 1); if ( (v271 & 1) != 0 ) v33 = v273; v34 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v33, "goldFont.fnt", v29); cocos2d::CCLabelBMFont::limitLabelWidth(v34, 90.0, 0.8, 0.0); v35 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 192LL))(v22); v36 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 328LL))(v22) * 0.5; v37 = v36 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 168LL))(v22); v38 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 328LL))(v34) * 0.5; v39 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 168LL))(v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, (float)(v37 + (float)(v38 * v39)) + 10.0, 0.0); cocos2d::CCPoint::operator+(&v274, v35); v40 = CCMenuItemSpriteExtra::create((__int64)v34, 0, a1, (__int64)EditorSoundConfigInfoLayer::onViewProfile, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v40); v41 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL); cocos2d::CCNode::convertToNodeSpace( (__int64 *)&v280, *(cocos2d::CCNode **)(a1 + 552), (const cocos2d::CCPoint *)&v274); v41(v40, &v280); v42 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 328LL))(v34); v43 = (float)(v42 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v34 + 168LL))(v34)) + 10.0; v44 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v22 + 184LL); v45 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 192LL))(v22); v46 = v43 * -0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v46, 0.0); cocos2d::CCPoint::operator+(&v280, v45); v44(v22, &v280); v47 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL); v48 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v46, 0.0); cocos2d::CCPoint::operator+(&v280, v48); v47(v40, &v280); if ( (v271 & 1) != 0 ) operator delete(v273); v24 = *(_QWORD *)(a1 + 1088); if ( !v24 ) goto LABEL_39; } v49 = *(_BYTE *)(v24 + 424); v265 = 0; v266 = 0; v267 = nullptr; if ( (v49 & 1) != 0 ) { std::string::__init(&v265, *(void **)(v24 + 440), *(_QWORD *)(v24 + 432)); } else { v50 = *(_QWORD *)(v24 + 424); v51 = *(_QWORD *)(v24 + 432); v267 = *(void **)(v24 + 440); v265 = v50; v266 = v51; } if ( (v265 & 1) == 0 ) { if ( (unsigned __int8)v265 >> 1 ) goto LABEL_30; LABEL_149: v268 = 0; v269 = 0; v270 = nullptr; std::string::__init(&v268, "music", 5u); goto LABEL_32; } if ( !v266 ) goto LABEL_149; LABEL_30: v52 = *(_QWORD *)(a1 + 1088); v268 = 0; v269 = 0; v270 = nullptr; if ( (*(_BYTE *)(v52 + 424) & 1) != 0 ) { std::string::__init(&v268, *(void **)(v52 + 440), *(_QWORD *)(v52 + 432)); } else { v53 = *(_QWORD *)(v52 + 432); v268 = *(_QWORD *)(v52 + 424); v269 = v53; v270 = *(void **)(v52 + 440); } LABEL_32: v54 = EmoteSprite::createWithName((char *)&v268); if ( (v268 & 1) != 0 ) operator delete(v270); if ( (v265 & 1) != 0 ) operator delete(v267); if ( v54 ) goto LABEL_37; v271 = 0; v272 = 0; v273 = nullptr; std::string::__init(&v271, "music", 5u); v248 = EmoteSprite::createWithName((char *)&v271); v54 = v248; if ( (v271 & 1) != 0 ) { operator delete(v273); if ( v54 ) { LABEL_37: LODWORD(v55) = 0; EmoteSprite::fitToHeight(v54, 22.0, v55); v56 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 224LL))(v22); v57 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 328LL))(v22); v58 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 168LL))(v22); v59 = v22; v60 = *(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 240LL); v61 = *(void (__fastcall **)(cocos2d::CCSprite *, void **))(*(_QWORD *)v54 + 184LL); v62 = (float)(v56 - (float)((float)(v57 * v58) * 0.5)) - 18.0; v63 = v60(v59); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v62, v63 - 1.0); v61(v54, &v280); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v54, 1); if ( *(_BYTE *)(*(_QWORD *)(a1 + 1088) + 372LL) ) { v64 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_featuredCoin_001.png", (const char *)v24); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL))(v64, 0.78); v65 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v64 + 184LL); v66 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v54 + 192LL))(v54); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, -4.5); cocos2d::CCPoint::operator+(&v280, v66); v65(v64, &v280); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v64, 0); } } } else if ( v248 ) { goto LABEL_37; } LABEL_39: if ( ((unsigned __int8)v259 & 1) != 0 ) operator delete(v261); LABEL_41: if ( !*(_QWORD *)(a1 + 1088) ) { v173 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)v24); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v173 + 160LL))(v173, 0.7); v174 = CCMenuItemSpriteExtra::create(v173, 0, a1, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v174, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v174); v175 = *(cocos2d::CCNode **)(a1 + 552); v176 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v174 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, v11 - (float)(*(float *)(a1 + 732) * 0.5), v12); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v280, v175, (const cocos2d::CCPoint *)&v277); v176(v174, &v280); SetupTriggerPopup::postSetup((SetupTriggerPopup *)a1); return v249; } if ( *(_DWORD *)(a1 + 1096) != 2 ) { v251 = (float)(*((float *)&v253 + 1) * 0.5) + 88.0; v67 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", (const char *)v24); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL))(v67, 0.8); v68 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v67 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, 26.0, v251); v68(v67, &v280); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v67); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*(_QWORD *)(a1 + 1088) + 344LL), 0, &v271); v70 = (cocos2d::CCLabelBMFont *)((char *)&v271 + 1); if ( (v271 & 1) != 0 ) v70 = v273; v71 = cocos2d::CCLabelBMFont::create(v70, "bigFont.fnt", v69); if ( (v271 & 1) != 0 ) operator delete(v273); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v71 + 160LL))(v71, 0.4); v72 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v71 + 184LL); v73 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v67 + 192LL))(v67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, -21.0); cocos2d::CCPoint::operator+(&v280, v73); v72(v71, &v280); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v71); v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v74); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v75 + 160LL))(v75, 0.8); v76 = v67; v77 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v67 + 192LL); v78 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v75 + 184LL); v79 = v77(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, -52.0); cocos2d::CCPoint::operator+(&v280, v79); v78(v75, &v280); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v75); GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*(_QWORD *)(a1 + 1088) + 348LL), 0, &v271); v81 = (cocos2d::CCLabelBMFont *)((char *)&v271 + 1); if ( (v271 & 1) != 0 ) v81 = v273; v82 = cocos2d::CCLabelBMFont::create(v81, "bigFont.fnt", v80); v83 = v271; *(_QWORD *)(a1 + 1136) = v82; if ( (v83 & 1) != 0 ) { operator delete(v273); v82 = *(_QWORD *)(a1 + 1136); } (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v82 + 160LL))(v82, 0.4); v84 = *(_QWORD *)(a1 + 1136); v85 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v84 + 184LL); v86 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v75 + 192LL))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 0.0, -21.0); cocos2d::CCPoint::operator+(&v280, v86); v85(v84, &v280); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1136)); } v87 = *(float *)(a1 + 732) - 50.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v280, 0.0, 0.0, 40.0, 40.0); v88 = (float)(v12 - 52.0) - (float)(v13 + 52.0); v89 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v280); v90 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v89 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v280, v87, v88); v90(v89, &v280); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v89 + 960LL))(v89, &unk_11A3D18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v89 + 912LL))(v89, 95); v91 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v89 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v11, (float)((float)(v12 - 52.0) + (float)(v13 + 52.0)) * 0.5); v91(v89, &v280); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v89, 4); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v280, v87, v88); v92 = ScrollableContentLayer::create((const cocos2d::CCSize *)&v280); *(_QWORD *)(a1 + 1240) = v92; v93 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v92 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, v11 - (float)(v87 * 0.5), v13 + 52.0); v93(v92, &v280); v94 = *(ScrollableContentLayer **)(a1 + 1240); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v280, -2.0, 0.0); ScrollableContentLayer::setThumbOffset(v94, (__int64)&v280); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1240), 5); EditorSoundConfigInfoLayer::buildSummary((EditorSoundConfigInfoLayer *)a1); v274 = nullptr; v95 = *(_DWORD *)(a1 + 1096); v275 = nullptr; v250 = v95 == 2; v276 = 0; v277 = nullptr; v278 = nullptr; v279 = 0; v280 = nullptr; v281 = nullptr; v282 = nullptr; v257 = "Load"; v258 = "GJ_button_01.png"; std::vector>::__push_back_slow_path>( &v274, &v257); v96 = v278; v258 = nullptr; v257 = (const char *)EditorSoundConfigInfoLayer::onLoad; if ( v279 <= (unsigned __int64)v278 ) { std::vector>::__push_back_slow_path( (__int64)&v277, &v257); } else { if ( v278 ) { *v278 = (EditorSoundConfigUploadPopup **(__fastcall *)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *))EditorSoundConfigInfoLayer::onLoad; *(_QWORD *)&byte_8[(_QWORD)v96] = 0; v96 = v278; } v278 = v96 + 2; } v97 = v281; v257 = (const char *)(a1 + 1144); if ( v281 >= (const char **)v282 ) { std::vector::__push_back_slow_path( (__int64)&v280, &v257); } else { if ( v281 ) { *v281 = (const char *)(a1 + 1144); v97 = v281; } v281 = v97 + 1; } v98 = v275; v257 = "Merge"; v258 = "GJ_button_05.png"; if ( v276 > (unsigned __int64)v275 ) { if ( v275 ) { v99 = v258; *(_QWORD *)v275 = v257; *((_QWORD *)v98 + 1) = v99; v98 = v275; } v275 = v98 + 16; } else { std::vector>::__push_back_slow_path>( &v274, &v257); } v100 = v278; v258 = nullptr; v257 = (const char *)EditorSoundConfigInfoLayer::onMerge; if ( (unsigned __int64)v278 >= v279 ) { std::vector>::__push_back_slow_path( (__int64)&v277, &v257); } else { if ( v278 ) { *v278 = (EditorSoundConfigUploadPopup **(__fastcall *)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *))EditorSoundConfigInfoLayer::onMerge; v100[1] = nullptr; v100 = v278; } v278 = v100 + 2; } v101 = v281; v102 = v282; v257 = (const char *)(a1 + 1152); if ( v281 >= (const char **)v282 ) { std::vector::__push_back_slow_path( (__int64)&v280, &v257); } else { if ( v281 ) { *v281 = (const char *)(a1 + 1152); v101 = v281; } v281 = v101 + 1; } if ( v250 ) { v103 = v275; v257 = "Overwrite"; v258 = "GJ_button_02.png"; if ( v276 > (unsigned __int64)v275 ) { if ( v275 ) { v104 = v258; *(_QWORD *)v275 = v257; *((_QWORD *)v103 + 1) = v104; v103 = v275; } v275 = v103 + 16; } else { std::vector>::__push_back_slow_path>( &v274, &v257); } v105 = v278; v258 = nullptr; v257 = (const char *)EditorSoundConfigInfoLayer::onOverwrite; if ( (unsigned __int64)v278 >= v279 ) { std::vector>::__push_back_slow_path( (__int64)&v277, &v257); } else { if ( v278 ) { *v278 = (EditorSoundConfigUploadPopup **(__fastcall *)(EditorSoundConfigUploadPopup **, cocos2d::CCObject *))EditorSoundConfigInfoLayer::onOverwrite; v105[1] = nullptr; v105 = v278; } v278 = v105 + 2; } v106 = v281; v257 = (const char *)(a1 + 1168); if ( v281 >= (const char **)v282 ) { std::vector::__push_back_slow_path( (__int64)&v280, &v257); } else { if ( v281 ) { *v281 = (const char *)(a1 + 1168); v106 = v281; } v281 = v106 + 1; } v107 = v275; v257 = "Upload"; v258 = "GJ_button_01.png"; if ( v276 <= (unsigned __int64)v275 ) { std::vector>::__push_back_slow_path>( &v274, &v257); } else { if ( v275 ) { v108 = v258; *(_QWORD *)v275 = v257; *((_QWORD *)v107 + 1) = v108; v107 = v275; } v275 = v107 + 16; } v109 = v278; v258 = nullptr; v257 = (const char *)EditorSoundConfigInfoLayer::onUpload; if ( (unsigned __int64)v278 >= v279 ) { std::vector>::__push_back_slow_path( (__int64)&v277, &v257); } else { if ( v278 ) { *v278 = EditorSoundConfigInfoLayer::onUpload; v109[1] = nullptr; v109 = v278; } v278 = v109 + 2; } v110 = v281; v102 = (const char *)(a1 + 1176); v257 = (const char *)(a1 + 1176); if ( v281 >= (const char **)v282 ) { std::vector::__push_back_slow_path( (__int64)&v280, &v257); } else { if ( v281 ) { *v281 = v102; v110 = v281; } v281 = v110 + 1; } } v111 = *(float *)(a1 + 732); v112 = (v275 - (_BYTE *)v274) >> 4; v113 = (float)(v111 - 40.0) / (float)(int)v112; v114 = (float)(20.0 - (float)((float)(v111 * 0.5) - (float)(*(float *)&v253 * 0.5))) + (float)(v113 * 0.5); if ( (int)v112 > 0 ) { v115 = (v275 - (_BYTE *)v274) >> 4; v116 = (char *)v274; v117 = 0; v118 = 0; while ( 1 ) { v119 = (char *)v277 + 2 * v117; v120 = *(__int64 **)((char *)v280 + v117); v121 = *(_QWORD *)v119; v122 = *((_QWORD *)v119 + 1); v123 = ButtonSprite::create( *(ButtonSprite **)&v116[2 * v117], (const char *)&word_3C, 0, 1, 0.6, "bigFont.fnt", *(const char **)&v116[2 * v117 + 8], v119, 28.0); v124 = CCMenuItemSpriteExtra::create(v123, 0, a1, v121, v122); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v124); v125 = *(cocos2d::CCNode **)(a1 + 552); v126 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v124 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v255, v114 + (float)((float)v118 * v113), v13 + 25.0); cocos2d::CCNode::convertToNodeSpace(&v254, v125, (const cocos2d::CCPoint *)v255); v126(v124, &v254); ++v118; *v120 = v124; v117 += 8; if ( v118 == v115 ) break; v116 = (char *)v274; } } v127 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v102); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 160LL))(v127, 0.7); v128 = CCMenuItemSpriteExtra::create(v127, 0, a1, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v128, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v128); v129 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v128 + 184LL); v130 = *(cocos2d::CCNode **)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v11 - (float)(*(float *)(a1 + 732) * 0.5), v12); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v130, (const cocos2d::CCPoint *)v256); v129(v128, &v257); v132 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v131); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v132 + 160LL))(v132, 0.8); v133 = CCMenuItemSpriteExtra::create(v132, 0, a1, (__int64)EditorSoundConfigInfoLayer::onShowDescription, 0); CCMenuItemSpriteExtra::setSizeMult(v133, 2.0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v133); v134 = *(cocos2d::CCNode **)(a1 + 552); v135 = *(__int64 (__fastcall **)(__int64, const char **))(*(_QWORD *)v133 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v256, (float)(v11 + (float)(*(float *)(a1 + 732) * 0.5)) - 14.0, v12 - 17.0); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v134, (const cocos2d::CCPoint *)v256); v136 = (cocos2d::CCDirector *)v135(v133, &v257); v137 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v136); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v137); v140 = v139 - 25.0; v141 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenTop(v141); v144 = v143 - 25.0; if ( *(_QWORD *)(a1 + 1088) ) { v145 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v142); v146 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, float))*v145 + 20); v147 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v145); v148 = *(float *)(cocos2d::CCSpriteFrameCache::spriteFrameByName(v147, "GJ_updateBtn_001.png") + 64); v149 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v145 + 41))(v145); v146(v145, (float)(v148 * 0.8) / *v149); v150 = CCMenuItemSpriteExtra::create((__int64)v145, 0, a1, (__int64)EditorSoundConfigInfoLayer::onDownloadSFX, 0); v151 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1184) = v150; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v151 + 456LL))(v151, v150); } v152 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v142); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v152 + 160LL))(v152, 0.8); v153 = CCMenuItemSpriteExtra::create(v152, 0, a1, (__int64)EditorSoundConfigInfoLayer::onLocalDelete, 0); v154 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1208) = v153; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v154 + 456LL))(v154, v153); v155 = *(_QWORD *)(a1 + 1208); v156 = *(cocos2d::CCNode **)(a1 + 552); v157 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v155 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v144); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v156, (const cocos2d::CCPoint *)v256); v157(v155, &v257); v159 = v144 - 41.0; if ( !v250 ) { v237 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v158); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v237 + 160LL))(v237, 0.8); v238 = CCMenuItemSpriteExtra::create(v237, 0, a1, (__int64)EditorSoundConfigInfoLayer::onUpdate, 0); v239 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1192) = v238; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v239 + 456LL))(v239, v238); v240 = *(_QWORD *)(a1 + 1192); v241 = *(cocos2d::CCNode **)(a1 + 552); v242 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v240 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v241, (const cocos2d::CCPoint *)v256); v242(v240, &v257); v159 = v159 - 41.0; } if ( *(_DWORD *)(a1 + 1096) == 2 ) { v243 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editBtn_001.png", v158); v244 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, float))*v243 + 20); v245 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v243); v246 = *(float *)(cocos2d::CCSpriteFrameCache::spriteFrameByName(v245, "GJ_updateBtn_001.png") + 64); v247 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v243 + 41))(v243); v244(v243, (float)(v246 * 0.8) / *v247); v161 = CCMenuItemSpriteExtra::create((__int64)v243, 0, a1, (__int64)EditorSoundConfigInfoLayer::onDescription, 0); goto LABEL_110; } if ( *(int *)(*(_QWORD *)(a1 + 1088) + 316LL) > 0 ) { v160 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v158); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v160 + 160LL))(v160, 0.8); v161 = CCMenuItemSpriteExtra::create(v160, 0, a1, (__int64)EditorSoundConfigInfoLayer::onInfo, 0); LABEL_110: v162 = v161; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v161); v163 = *(cocos2d::CCNode **)(a1 + 552); v164 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v162 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v163, (const cocos2d::CCPoint *)v256); v164(v162, &v257); v159 = v159 - 41.0; } if ( v250 || (v165 = *(_QWORD *)(a1 + 1088)) == 0 ) { v172 = *(_QWORD *)(a1 + 1184); if ( !v172 ) goto LABEL_122; goto LABEL_119; } if ( *(int *)(v165 + 316) > 0 ) { v166 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v158); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v166 + 160LL))(v166, 0.8); v167 = CCMenuItemSpriteExtra::create(v166, 0, a1, (__int64)EditorSoundConfigInfoLayer::onLike, 0); v168 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1128) = v167; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v168 + 456LL))(v168, v167); v169 = *(_QWORD *)(a1 + 1128); v170 = *(cocos2d::CCNode **)(a1 + 552); v171 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v169 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v170, (const cocos2d::CCPoint *)v256); v171(v169, &v257); v159 = v159 - 41.0; EditorSoundConfigInfoLayer::refreshLikeState((EditorSoundConfigInfoLayer *)a1); v172 = *(_QWORD *)(a1 + 1184); if ( !v172 ) goto LABEL_120; goto LABEL_119; } v172 = *(_QWORD *)(a1 + 1184); if ( v172 ) { LABEL_119: v178 = *(cocos2d::CCNode **)(a1 + 552); v179 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v172 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v178, (const cocos2d::CCPoint *)v256); v179(v172, &v257); v159 = v159 - 41.0; if ( v250 ) goto LABEL_122; LABEL_120: if ( !*(_QWORD *)(a1 + 1088) ) goto LABEL_122; } v180 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v158); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v180 + 160LL))(v180, 0.96); v181 = CCMenuItemSpriteExtra::create(v180, 0, a1, (__int64)EditorSoundConfigInfoLayer::onFavorite, 0); v182 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1160) = v181; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v182 + 456LL))(v182, v181); v183 = *(_QWORD *)(a1 + 1160); v184 = *(cocos2d::CCNode **)(a1 + 552); v185 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v183 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v184, (const cocos2d::CCPoint *)v256); v185(v183, &v257); v159 = v159 - 41.0; LABEL_122: v186 = (cocos2d::CCDirector *)EditorSoundConfigInfoLayer::editsServerDescription((EditorSoundConfigInfoLayer *)a1); if ( (_BYTE)v186 ) { v188 = (cocos2d::CCSpriteFrameCache **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editBtn_001.png", v187); v189 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, float))*v188 + 20); v190 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v188); v191 = *(float *)(cocos2d::CCSpriteFrameCache::spriteFrameByName(v190, "GJ_updateBtn_001.png") + 64); v192 = (float *)(*((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **))*v188 + 41))(v188); v189(v188, (float)(v191 * 0.8) / *v192); v193 = CCMenuItemSpriteExtra::create((__int64)v188, 0, a1, (__int64)EditorSoundConfigInfoLayer::onDescription, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v193); v194 = *(cocos2d::CCNode **)(a1 + 552); v195 = *(__int64 (__fastcall **)(__int64, const char **))(*(_QWORD *)v193 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v140, v159); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v194, (const cocos2d::CCPoint *)v256); v186 = (cocos2d::CCDirector *)v195(v193, &v257); } v196 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v186); ScreenLeft = (GameManager *)cocos2d::CCDirector::getScreenLeft(v196); v199 = v198; v200 = *((float *)&v253 + 1); v201 = GameManager::sharedState(ScreenLeft); v202 = *(_DWORD *)(v201 + 1032); v203 = *(_DWORD *)(v201 + 1036); v205 = v199 + 24.0; v206 = (float)((float)(v200 * 0.5) + -50.0) + 20.5; if ( EditorSoundConfigInfoLayer::isOwner((EditorSoundConfigInfoLayer *)a1) || v202 - v203 > 1 ) { v207 = *(_QWORD *)(a1 + 1088); if ( !v207 ) goto LABEL_131; if ( *(int *)(v207 + 316) > 0 && *(_DWORD *)(a1 + 1096) != 2 ) { v208 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v204); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v208 + 160LL))(v208, 0.8); v209 = CCMenuItemSpriteExtra::create(v208, 0, a1, (__int64)EditorSoundConfigInfoLayer::onDeleteServer, 0); v210 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1224) = v209; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v210 + 456LL))(v210, v209); v211 = *(_QWORD *)(a1 + 1224); v212 = *(cocos2d::CCNode **)(a1 + 552); v213 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v211 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v205, v206); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v212, (const cocos2d::CCPoint *)v256); v213(v211, &v257); v206 = v206 - 41.0; } goto LABEL_130; } if ( *(_QWORD *)(a1 + 1088) ) { LABEL_130: v214 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v204); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v214 + 160LL))(v214, 0.8); v215 = CCMenuItemSpriteExtra::create(v214, 0, a1, (__int64)EditorSoundConfigInfoLayer::onDuplicate, 0); v216 = *(_QWORD *)(a1 + 552); *(_QWORD *)(a1 + 1216) = v215; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v216 + 456LL))(v216, v215); v217 = *(_QWORD *)(a1 + 1216); v218 = *(cocos2d::CCNode **)(a1 + 552); v219 = *(void (__fastcall **)(__int64, const char **))(*(_QWORD *)v217 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v256, v205, v206); cocos2d::CCNode::convertToNodeSpace((__int64 *)&v257, v218, (const cocos2d::CCPoint *)v256); v219(v217, &v257); } LABEL_131: SetupTriggerPopup::postSetup((SetupTriggerPopup *)a1); EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)a1); if ( !v250 ) { v220 = *(_QWORD *)(a1 + 1088); if ( v220 ) { if ( *(int *)(v220 + 316) > 0 && !*(_BYTE *)(v220 + 496) ) EditorSoundConfigInfoLayer::startDownload(a1); } } if ( v280 ) { if ( v280 != v281 ) v281 += ~((unsigned __int64)((char *)(v281 - 1) - (_BYTE *)v280) >> 3); operator delete(v280); } if ( v277 ) { if ( v277 != v278 ) v278 += 2 * ~((unsigned __int64)((char *)(v278 - 2) - (_BYTE *)v277) >> 4); operator delete(v277); } if ( v274 ) { if ( v274 != v275 ) v275 += 16 * ~((unsigned __int64)(v275 - 16 - (_BYTE *)v274) >> 4); operator delete(v274); } return v249; }
GD Web Decomp Icon

GD Web Decomp

Raw Source