// // CustomSFXWidget::init from 0x1401601f0 to 0x140161810 (5664 bytes) // // 2 xrefs: // > CustomSFXWidget::create @ 0x1401601a4 // > @ 0x140917cd8 // // 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:27:25 +0000 // // Hidden C++ exception states: #wind=5 bool __fastcall CustomSFXWidget::init( __int64 a1, cocos2d::CCObject *a2, __int64 a3, char a4, int a5, int a6, int a7, unsigned __int8 a8, char a9, char a10) { bool result; // al struct cocos2d::CCObject *v15; // rcx cocos2d::CCObject *v16; // rcx int v17; // r13d __int64 v18; // rbx __int64 v19; // rax cocos2d::CCDictionary *v20; // rcx struct cocos2d::CCObject *v21; // rax char v22; // al bool v23; // al __int64 v24; // rax __int64 v25; // rax char v26; // r12 int v27; // ebx __int64 v28; // rcx int v29; // ebx char v30; // cl unsigned __int64 v31; // rdi _QWORD *v32; // rbx __int64 v33; // rax _QWORD *v34; // rdi __int64 v35; // rdx __int64 v36; // rbx __int64 v37; // rax float v38; // xmm6_4 struct cocos2d::CCSprite *v39; // rbx __int64 v40; // rcx __int64 v41; // rax cocos2d::CCTouchDispatcher *v42; // rax __int64 v43; // rcx __int64 v44; // rax __int64 v45; // rax struct cocos2d::CCLabelBMFont *v46; // rax void *v47; // rdx __int64 v48; // rdx struct cocos2d::CCLabelBMFont *v49; // rax __int64 v50; // rdi __int64 v51; // rbx __int64 v52; // rax __int64 v53; // rdi __int64 v54; // rbx __int64 v55; // rax __int64 v56; // rdi __int64 v57; // rbx __int64 v58; // rax __int64 v59; // rdi __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rax __int64 v63; // rbx __int64 v64; // rax __int64 v65; // rax struct cocos2d::CCSprite *v66; // rax int v67; // ebx cocos2d::CCObject *v68; // rax struct cocos2d::CCSprite *v69; // rax int v70; // ebx cocos2d::CCObject *v71; // rax struct cocos2d::CCSprite *v72; // rax int v73; // ebx cocos2d::CCObject *v74; // rax struct cocos2d::CCSprite *v75; // rax int v76; // ebx cocos2d::CCObject *v77; // rax struct cocos2d::CCSprite *v78; // rax int v79; // ebx cocos2d::CCObject *v80; // rax __int64 v81; // rbx __int64 v82; // rdi __int64 v83; // rax __int64 v84; // rax __int64 v85; // rsi __int64 v86; // rbx __int64 v87; // rdi __int64 v88; // rax __int64 v89; // rax __int64 v90; // rax __int64 v91; // rax __int64 v92; // rdi __int64 v93; // rbx __int64 v94; // rax __int64 v95; // rdi __int64 v96; // rbx __int64 v97; // rax float v98; // xmm9_4 __int64 v99; // rax __int64 v100; // rbx __int64 v101; // rax __int64 v102; // rax __int64 v103; // rbx __int64 v104; // rax __int64 v105; // rcx struct cocos2d::CCSprite *v106; // rdi __int64 v107; // rbx cocos2d::CCObject *v108; // rax struct cocos2d::CCSprite *v109; // rax int v110; // ebx cocos2d::CCObject *v111; // rax __int64 v112; // rax __int64 v113; // rbx __int64 v114; // rax struct cocos2d::CCSprite *v115; // rdi __int64 v116; // rbx cocos2d::CCObject *v117; // rax int v118; // edi __int64 v119; // rax __int64 v120; // rbx __int64 v121; // rax __int64 v122; // rcx char v123; // al const char *v124; // rcx struct cocos2d::CCSprite *v125; // rax int v126; // ebx cocos2d::CCObject *v127; // rax __int64 v128; // rax __int64 v129; // rbx __int64 v130; // rax struct cocos2d::CCSprite *v131; // rax int v132; // ebx cocos2d::CCObject *v133; // rdi void (__fastcall *v134)(cocos2d::CCObject *, __int64); // rsi __int64 v135; // rbx float v136; // xmm1_4 struct cocos2d::CCSprite *v137; // rax int v138; // ebx cocos2d::CCObject *v139; // rax __int64 v140; // rax __int64 v141; // rbx __int64 v142; // rax __int64 v143; // rcx __int64 v144; // rax __int64 v145; // rax cocos2d::CCSprite *v146; // rbx cocos2d::CCObject *v147; // rdi __int64 v148; // rax __int64 v149; // rbx __int64 v150; // rax __int64 v151; // rax __int64 v152; // rbx __int64 v153; // rax struct cocos2d::CCSprite *v154; // rax __int64 v155; // rdx _QWORD *v156; // rsi __int64 v157; // rax __int64 *v158; // rdi __int64 v159; // rbx __int64 v160; // rax void (__fastcall *v161)(_QWORD *, __int64 *); // r8 struct cocos2d::CCSprite *v162; // rax struct cocos2d::CCSprite *v163; // rax cocos2d::CCTexture2D *v164; // rax __int64 v165; // rdi __int64 v166; // rbx __int64 v167; // rax __int64 v168; // rdi __int64 v169; // rbx __int64 v170; // rax __int64 v171; // rdi __int64 v172; // rax __int64 v173; // rbx __int64 v174; // rax __int64 v175; // rdi __int64 v176; // rbx __int64 v177; // rax cocos2d::CCObject *v178; // rax cocos2d::CCObject *v179; // rcx __int64 v180; // rcx __int64 v181; // rcx __int64 v182; // [rsp+30h] [rbp-D0h] BYREF char v183; // [rsp+38h] [rbp-C8h] char v184; // [rsp+39h] [rbp-C7h] struct cocos2d::CCSprite *v185; // [rsp+40h] [rbp-C0h] BYREF void *v186; // [rsp+48h] [rbp-B8h] BYREF _QWORD *v187; // [rsp+50h] [rbp-B0h] _BYTE v188[16]; // [rsp+58h] [rbp-A8h] BYREF char v189[8]; // [rsp+68h] [rbp-98h] BYREF _BYTE v190[16]; // [rsp+70h] [rbp-90h] BYREF _QWORD v191[2]; // [rsp+80h] [rbp-80h] BYREF __int64 v192; // [rsp+90h] [rbp-70h] __int64 v193; // [rsp+98h] [rbp-68h] _DWORD v194[4]; // [rsp+A0h] [rbp-60h] BYREF result = cocos2d::CCNode::init((cocos2d::CCNode *)a1); if ( !result ) return result; v15 = *(struct cocos2d::CCObject **)(a1 + 336); if ( v15 != a2 ) { if ( a2 ) cocos2d::CCObject::retain(a2); v16 = *(cocos2d::CCObject **)(a1 + 336); if ( v16 ) cocos2d::CCObject::release(v16); *(_QWORD *)(a1 + 336) = a2; v15 = a2; } *(_QWORD *)(a1 + 480) = a3; *(_BYTE *)(a1 + 488) = a4; *(_WORD *)(a1 + 489) = 257; *(_BYTE *)(a1 + 492) = a8; *(_BYTE *)(a1 + 494) = a10; v17 = 0; if ( !v15 ) goto LABEL_17; v18 = *((int *)v15 + 19); if ( (int)v18 <= 0 ) goto LABEL_17; v19 = qword_14090C070; if ( !qword_14090C070 ) { v185 = (struct cocos2d::CCSprite *)operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v185); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v19 = qword_14090C070; } v20 = *(cocos2d::CCDictionary **)(v19 + 920); v21 = v20 ? cocos2d::CCDictionary::objectForKey(v20, v18) : nullptr; v15 = *(struct cocos2d::CCObject **)(a1 + 336); if ( v21 == v15 ) v22 = 1; else LABEL_17: v22 = 0; v183 = v22; v23 = a9 && v15 && !*((_BYTE *)v15 + 72) && (!*((_DWORD *)v15 + 19) || v22); *(_BYTE *)(a1 + 493) = v23; v24 = cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize(v24, v189); v25 = *(_QWORD *)(a1 + 336); if ( v25 && *(_BYTE *)(v25 + 72) ) { v26 = 1; } else { v26 = 0; if ( !v25 ) goto LABEL_34; } v27 = *(_DWORD *)(v25 + 56); if ( v27 > 0 ) { v28 = *(_QWORD *)(a1 + 480); if ( v28 ) { if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v28 + 8LL))(v28) == v27 ) { v29 = *(_DWORD *)(*(_QWORD *)(a1 + 336) + 76LL); if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 16LL))(*(_QWORD *)(a1 + 480)) == v29 ) { v30 = 1; goto LABEL_35; } } } } LABEL_34: v30 = 0; LABEL_35: v184 = v30; v187 = nullptr; if ( !a8 ) { v31 = 15; v192 = 15; v193 = 15; strcpy((char *)v191, "GJ_square01.png"); if ( v26 || v30 ) { v192 = 15; memmove(v191, "GJ_square06.png", 0xFu); HIBYTE(v191[1]) = 0; v31 = v193; } v32 = v191; if ( v31 > 0xF ) v32 = (_QWORD *)v191[0]; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v190, 0.0, 0.0, 80.0, 80.0); v34 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create(v32, v33); v187 = v34; LOBYTE(v35) = -1; (*(void (__fastcall **)(_QWORD *, __int64))(v34[40] + 40LL))(v34 + 40, v35); v36 = *v34; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v185, 320.0, 50.0); (*(void (__fastcall **)(_QWORD *, __int64))(v36 + 312))(v34, v37); (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v34, 4294967294LL); sub_14003D310((__int64)v191); } v38 = (float)(v26 != 0 ? 0x32 : 0); v39 = (struct cocos2d::CCSprite *)operator new(0x1C0u); v185 = v39; memset(v39, 0, 0x1C0u); cocos2d::CCMenu::CCMenu(v39); *(_QWORD *)v39 = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 40) = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 41) = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 42) = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 43) = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 44) = &CustomSFXRowMenu::`vftable'; *((_QWORD *)v39 + 51) = &CustomSFXRowMenu::`vftable'; if ( cocos2d::CCMenu::init(v39) ) { cocos2d::CCObject::autorelease(v39); } else { (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v39 + 8LL))(v39, 1); v39 = nullptr; } *(_QWORD *)(a1 + 344) = v39; (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)a1 + 464LL))(a1, v39); v41 = cocos2d::CCDirector::sharedDirector(v40); v42 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v41 + 144LL))(v41); if ( cocos2d::CCTouchDispatcher::isUsingForcePrio(v42) ) { v44 = cocos2d::CCDirector::sharedDirector(v43); v45 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 144LL))(v44); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 344) + 944LL))( *(_QWORD *)(a1 + 344), (unsigned int)(*(_DWORD *)(v45 + 128) - 1)); } *(_QWORD *)(a1 + 352) = cocos2d::CCLabelBMFont::create("SFX Title", (const char *)&qword_140704F78); v46 = cocos2d::CCLabelBMFont::create("SFX ID", "chatFont.fnt"); *(_QWORD *)(a1 + 360) = v46; v47 = &unk_140702F6C; if ( v26 ) v47 = &unk_140702F70; (**((void (__fastcall ***)(__int64, void *))v46 + 46))((__int64)v46 + 368, v47); LOBYTE(v48) = -56; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 360) + 368LL) + 40LL))( *(_QWORD *)(a1 + 360) + 368LL, v48); v49 = cocos2d::CCLabelBMFont::create("Error", (const char *)&qword_140704F78); *(_QWORD *)(a1 + 368) = v49; LOWORD(v182) = 13055; BYTE2(v182) = 25; (**((void (__fastcall ***)(__int64, __int64 *))v49 + 46))((__int64)v49 + 368, &v182); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 368) + 336LL))(*(_QWORD *)(a1 + 368), 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 352)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 360)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 368)); v50 = **(_QWORD **)(a1 + 352); v51 = *(_QWORD *)(a1 + 352); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v50 + 288))(v51, v52); v53 = **(_QWORD **)(a1 + 368); v54 = *(_QWORD *)(a1 + 368); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v53 + 288))(v54, v55); v56 = **(_QWORD **)(a1 + 360); v57 = *(_QWORD *)(a1 + 360); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5); (*(void (__fastcall **)(__int64, __int64))(v56 + 288))(v57, v58); v59 = **(_QWORD **)(a1 + 352); v60 = *(_QWORD *)(a1 + 352); if ( a8 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, -160.0, 0.0); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, v38 - 150.0, 9.0); (*(void (__fastcall **)(__int64, __int64))(v59 + 184))(v60, v61); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 1.0, -18.0); v63 = v62; v64 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 200LL))(*(_QWORD *)(a1 + 352)); cocos2d::CCPoint::operator+(v64, &v182, v63); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 368) + 184LL))(*(_QWORD *)(a1 + 368), &v182); v59 = **(_QWORD **)(a1 + 360); v60 = *(_QWORD *)(a1 + 360); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, v38 - 149.0, -9.0); } (*(void (__fastcall **)(__int64, __int64))(v59 + 184))(v60, v65); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 160LL))(*(_QWORD *)(a1 + 360)); v66 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadBtn_001.png"); v67 = (int)v66; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v66 + 160LL))(v66); v68 = CCMenuItemSpriteExtra::create(v67, 0, a1, (__int64)CustomSFXWidget::onDownload); *(_QWORD *)(a1 + 376) = v68; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v68); *(_DWORD *)(*(_QWORD *)(a1 + 376) + 372LL) = 1066192077; v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_cancelDownloadBtn_001.png"); v70 = (int)v69; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v69 + 160LL))(v69); v71 = CCMenuItemSpriteExtra::create(v70, 0, a1, (__int64)CustomSFXWidget::onCancelDownload); *(_QWORD *)(a1 + 384) = v71; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v71); *(_DWORD *)(*(_QWORD *)(a1 + 384) + 372LL) = 1066192077; v72 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"); v73 = (int)v72; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v72 + 160LL))(v72); v74 = CCMenuItemSpriteExtra::create(v73, 0, a1, (__int64)CustomSFXWidget::onDelete); *(_QWORD *)(a1 + 408) = v74; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v74); *(_DWORD *)(*(_QWORD *)(a1 + 408) + 372LL) = 1067030938; v75 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_selectSongBtn_001.png"); v76 = (int)v75; v185 = v75; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v75 + 160LL))(v75); v77 = CCMenuItemSpriteExtra::create(v76, 0, a1, (__int64)CustomSFXWidget::onSelect); *(_QWORD *)(a1 + 392) = v77; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v77); *(_DWORD *)(*(_QWORD *)(a1 + 392) + 372LL) = 1067030938; v78 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playMusicBtn_001.png"); v79 = (int)v78; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v78 + 160LL))(v78); v80 = CCMenuItemSpriteExtra::create(v79, 0, a1, (__int64)CustomSFXWidget::onPlayback); *(_QWORD *)(a1 + 400) = v80; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v80); v182 = **(_QWORD **)(a1 + 376); v81 = *(_QWORD *)(a1 + 344); v82 = *(_QWORD *)(a1 + 376); if ( a8 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 155.0, 0.0); cocos2d::CCNode::convertToNodeSpace(v81, v188, v90); (*(void (__fastcall **)(__int64, __int64))(v182 + 184))(v82, v91); v92 = **(_QWORD **)(a1 + 400); v93 = *(_QWORD *)(a1 + 400); v94 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); (*(void (__fastcall **)(__int64, __int64))(v92 + 184))(v93, v94); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v188, 141.0, 0.0); cocos2d::CCNode::convertToNodeSpace(v81, &v186, v83); (*(void (__fastcall **)(__int64, __int64))(v182 + 184))(v82, v84); v85 = **(_QWORD **)(a1 + 400); v86 = *(_QWORD *)(a1 + 344); v87 = *(_QWORD *)(a1 + 400); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 141.0, 1.0); cocos2d::CCNode::convertToNodeSpace(v86, v188, v88); (*(void (__fastcall **)(__int64, __int64))(v85 + 184))(v87, v89); } v95 = **(_QWORD **)(a1 + 384); v96 = *(_QWORD *)(a1 + 384); v97 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); (*(void (__fastcall **)(__int64, __int64))(v95 + 184))(v96, v97); v98 = -(float)(8 * (a8 ^ 1) + 20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, v98 + v98, 0.0); v100 = v99; v101 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v101, &v182, v100); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 408) + 184LL))(*(_QWORD *)(a1 + 408), &v182); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, v98, 0.0); v103 = v102; v104 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v104, &v182, v103); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 392) + 184LL))(*(_QWORD *)(a1 + 392), &v182); if ( !v26 ) { v105 = *(_QWORD *)(a1 + 480); if ( v105 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v105 + 72LL))(v105) ) { v106 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v107 = *(_QWORD *)v106; (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 320LL))(*(_QWORD *)(a1 + 360)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 360) + 168LL))(*(_QWORD *)(a1 + 360)); (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v106 + 320LL))(v106); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v107 + 160))(v106); v108 = CCMenuItemSpriteExtra::create((int)v106, 0, a1, (__int64)CustomSFXWidget::onShowInfo); *(_QWORD *)(a1 + 448) = v108; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))( *(_QWORD *)(a1 + 344), v108); *(_DWORD *)(*(_QWORD *)(a1 + 448) + 372LL) = 1068708659; } } } if ( *(_BYTE *)(a1 + 493) ) { v109 = cocos2d::CCSprite::createWithSpriteFrameName("gj_heartOff_001.png"); v110 = (int)v109; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v109 + 160LL))(v109); v111 = CCMenuItemSpriteExtra::create(v110, 0, a1, (__int64)CustomSFXWidget::onToggleFavorite); *(_QWORD *)(a1 + 416) = v111; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v111); *(_DWORD *)(*(_QWORD *)(a1 + 416) + 372LL) = 1067030938; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, v98 + v98, 0.0); v113 = v112; v114 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v114, &v182, v113); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 416) + 184LL))(*(_QWORD *)(a1 + 416), &v182); } if ( !*(_BYTE *)(a1 + 494) || !*(_QWORD *)(a1 + 336) ) { LABEL_69: if ( !v26 ) goto LABEL_80; goto LABEL_70; } if ( v183 ) { LODWORD(v182) = (*(_BYTE *)(a1 + 493) != 0) + 2; v115 = cocos2d::CCSprite::createWithSpriteFrameName("sideBtn_options_001.png"); v116 = *(_QWORD *)v115; (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v185 + 320LL))(v185); (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v115 + 320LL))(v115); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v116 + 160))(v115); v117 = CCMenuItemSpriteExtra::create((int)v115, 0, a1, (__int64)CustomSFXWidget::onEditCustom); *(_QWORD *)(a1 + 432) = v117; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v117); *(_DWORD *)(*(_QWORD *)(a1 + 432) + 372LL) = 1067030938; v118 = v182; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, (float)(int)v182 * v98, 0.0); v120 = v119; v121 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v121, &v185, v120); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite **))(**(_QWORD **)(a1 + 432) + 184LL))( *(_QWORD *)(a1 + 432), &v185); v122 = *(_QWORD *)(a1 + 480); if ( v122 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v122 + 64LL))(v122) ) { v123 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 480) + 56LL))( *(_QWORD *)(a1 + 480), *(unsigned int *)(*(_QWORD *)(a1 + 336) + 76LL)); v124 = "GJ_checkOff_001.png"; if ( v123 ) v124 = "GJ_checkOn_001.png"; v125 = cocos2d::CCSprite::createWithSpriteFrameName(v124); v126 = (int)v125; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v125 + 160LL))(v125); v127 = CCMenuItemSpriteExtra::create(v126, 0, a1, (__int64)CustomSFXWidget::onToggleSelect); *(_QWORD *)(a1 + 440) = v127; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))( *(_QWORD *)(a1 + 344), v127); *(_DWORD *)(*(_QWORD *)(a1 + 440) + 372LL) = 1067030938; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, (float)(v118 + 1) * v98, 0.0); v129 = v128; v130 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v130, &v185, v129); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite **))(**(_QWORD **)(a1 + 440) + 184LL))( *(_QWORD *)(a1 + 440), &v185); } goto LABEL_69; } if ( !v26 ) { v137 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plusBtn_001.png"); v138 = (int)v137; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v137 + 160LL))(v137); v139 = CCMenuItemSpriteExtra::create(v138, 0, a1, (__int64)CustomSFXWidget::onAddToFolder); *(_QWORD *)(a1 + 424) = v139; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v139); *(_DWORD *)(*(_QWORD *)(a1 + 424) + 372LL) = 1067030938; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, v98 * 3.0, 0.0); v141 = v140; v142 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v142, &v185, v141); v143 = *(_QWORD *)(a1 + 424); LABEL_79: (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite **))(*(_QWORD *)v143 + 184LL))(v143, &v185); goto LABEL_80; } LABEL_70: v131 = cocos2d::CCSprite::createWithSpriteFrameName("folderIcon_001.png"); v132 = (int)v131; if ( *(_BYTE *)(a1 + 492) ) (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v131 + 160LL))(v131); v133 = CCMenuItemSpriteExtra::create(v132, 0, a1, (__int64)CustomSFXWidget::onSelect); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v133); v134 = *(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v133 + 184LL); v135 = *(_QWORD *)(a1 + 344); if ( *(_BYTE *)(a1 + 492) ) v136 = -150.0; else v136 = -130.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, v136, 2.0); cocos2d::CCNode::convertToNodeSpace(v135, v188, v144); v134(v133, v145); v146 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v146, 1); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v146 + 160LL))(v146); v147 = CCMenuItemSpriteExtra::create((int)v146, 0, a1, (__int64)CustomSFXWidget::onSelect); *((_DWORD *)v147 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 344) + 464LL))(*(_QWORD *)(a1 + 344), v147); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 0.0, 1.0); v149 = v148; v150 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 376) + 200LL))(*(_QWORD *)(a1 + 376)); cocos2d::CCPoint::operator+(v150, &v185, v149); (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::CCSprite **))(*(_QWORD *)v147 + 184LL))(v147, &v185); if ( *(_BYTE *)(a1 + 492) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 28.0, 0.0); v152 = v151; v153 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 352) + 200LL))(*(_QWORD *)(a1 + 352)); cocos2d::CCPoint::operator+(v153, &v185, v152); v143 = *(_QWORD *)(a1 + 352); goto LABEL_79; } LABEL_80: v154 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); *(_QWORD *)(a1 + 472) = v154; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v154 + 160LL))(v154); LOBYTE(v155) = -106; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 472) + 320LL) + 40LL))( *(_QWORD *)(a1 + 472) + 320LL, v155); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 472) + 336LL))(*(_QWORD *)(a1 + 472), 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 472)); v156 = v187; if ( v187 && (v26 || v184) ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v188, 0.0, 0.0, 80.0, 80.0); v158 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", v157); v159 = *v158; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v186, 320.0, 50.0); (*(void (__fastcall **)(__int64 *, __int64))(v159 + 312))(v158, v160); (*(void (__fastcall **)(__int64, __int64 *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v158, 0xFFFFFFFFLL); v161 = *(void (__fastcall **)(_QWORD *, __int64 *))v156[40]; if ( v26 ) { LOWORD(v182) = -28202; BYTE2(v182) = 96; } else { LOWORD(v182) = -19713; BYTE2(v182) = 61; } v161(v156 + 40, &v182); } v162 = cocos2d::CCSprite::create("slidergroove.png"); *(_QWORD *)(a1 + 456) = v162; (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v162, 3); v163 = cocos2d::CCSprite::create("sliderBar.png"); *(_QWORD *)(a1 + 464) = v163; v194[0] = 9729; v194[1] = 9729; v194[2] = 10497; v194[3] = 10497; v164 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v163 + 43) + 16LL))((__int64)v163 + 344); cocos2d::CCTexture2D::setTexParameters(v164, (struct cocos2d::_ccTexParams *)v194); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 456) + 456LL))( *(_QWORD *)(a1 + 456), *(_QWORD *)(a1 + 464), 0xFFFFFFFFLL); v165 = **(_QWORD **)(a1 + 464); v166 = *(_QWORD *)(a1 + 464); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 0.0, 0.0); (*(void (__fastcall **)(__int64, __int64))(v165 + 288))(v166, v167); v168 = **(_QWORD **)(a1 + 464); v169 = *(_QWORD *)(a1 + 464); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 2.0, 4.0); (*(void (__fastcall **)(__int64, __int64))(v168 + 184))(v169, v170); v171 = **(_QWORD **)(a1 + 456); v172 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 368) + 200LL))(*(_QWORD *)(a1 + 368)); v173 = *(_QWORD *)(a1 + 456); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v186, 0.0, *(float *)(v172 + 4)); (*(void (__fastcall **)(__int64, __int64))(v171 + 184))(v173, v174); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 136LL))(*(_QWORD *)(a1 + 456)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 120LL))(*(_QWORD *)(a1 + 456)); v175 = **(_QWORD **)(a1 + 464); v176 = *(_QWORD *)(a1 + 464); cocos2d::CCRect::CCRect( (cocos2d::CCRect *)v190, 0.0, 0.0, fminf( *(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0, (float)(*(float *)(*(_QWORD *)(a1 + 456) + 432LL) - 4.0) * 0.0), 8.0); (*(void (__fastcall **)(__int64, __int64))(v175 + 992))(v176, v177); CustomSFXWidget::hideLoadingArt(a1); if ( !a2 ) goto LABEL_95; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 368) + 336LL))(*(_QWORD *)(a1 + 368), 0); v178 = *(cocos2d::CCObject **)(a1 + 336); if ( v178 != a2 ) { cocos2d::CCObject::retain(a2); v179 = *(cocos2d::CCObject **)(a1 + 336); if ( v179 ) cocos2d::CCObject::release(v179); *(_QWORD *)(a1 + 336) = a2; goto LABEL_93; } a2 = *(cocos2d::CCObject **)(a1 + 336); if ( v178 ) LABEL_93: v17 = *((_DWORD *)a2 + 14); *(_DWORD *)(a1 + 496) = v17; LABEL_95: CustomSFXWidget::updateSFXInfo(a1); v180 = qword_14090C070; if ( !qword_14090C070 ) { v186 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v186); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v180 = qword_14090C070; } MusicDownloadManager::addMusicDownloadDelegate(v180, a1 + 320); if ( *(_DWORD *)(a1 + 496) ) { v181 = qword_14090C070; if ( !qword_14090C070 ) { v186 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v186); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v181 = qword_14090C070; } if ( (unsigned __int8)MusicDownloadManager::isRunningActionForSongID(v181, *(unsigned int *)(a1 + 496)) ) CustomSFXWidget::startMonitorDownload(a1); } return 1; }