// // EditorSFXActionConfigLayer::refreshRows from 0xcbdf14 to 0xcbe9ac (2712 bytes) // // 4 xrefs: // > EditorSFXActionConfigLayer::refreshRowsAddedDeferred @ 0xcbe9d4 // > EditorSFXActionConfigLayer::rebuildContent @ 0xcbea00 // > EditorSFXActionConfigLayer::init @ 0xcbef98 // > @ 0x4bdd8 // // 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:16 +0000 // __int64 __fastcall EditorSFXActionConfigLayer::refreshRows(EditorSFXActionConfigLayer *this) { __int64 v2; // x0 cocos2d::CCMenu *v3; // x0 __int64 v4; // x0 EditorSFXManager *v5; // x0 EditorSFXManager *v6; // x0 cocos2d::CCArray *v7; // x0 int v8; // w19 const char *v9; // x2 float v10; // s14 float v11; // s13 float v12; // s10 signed int v13; // w23 unsigned int v14; // w24 int v15; // w26 __int64 v16; // x25 __int64 v17; // x28 void (__fastcall *v18)(__int64, char *); // x2 __int64 v19; // x1 const char *v20; // x2 __int64 v21; // x22 void (__fastcall *v22)(__int64, char *); // x28 void (__fastcall *v23)(__int64, char *); // x3 void (__fastcall *v24)(__int64, char *); // x28 int v25; // w3 const char *v26; // x2 __int64 v27; // x22 void (__fastcall *v28)(__int64, char *); // x28 void (__fastcall *v29)(__int64, char *); // x28 float v30; // s9 MusicDownloadManager *v31; // x0 float v32; // s9 EditorSFXManager *v33; // x0 int v34; // w22 __int64 SFXObject; // x22 char v36; // w0 __int64 v37; // x0 const char *v38; // x1 __int64 v39; // x19 void (__fastcall *v40)(__int64, char *); // x21 float v41; // s0 MusicDownloadManager *v43; // x0 char *v44; // x25 int v45; // w22 char *v46; // x0 const char *v47; // x2 size_t v48; // x2 const char *v49; // x2 cocos2d::CCLabelBMFont *v50; // x0 cocos2d::CCLabelBMFont *v51; // x28 void (__fastcall *v52)(cocos2d::CCLabelBMFont *, char *); // x22 void (__fastcall *v53)(cocos2d::CCLabelBMFont *, char *); // x22 const char *v54; // x1 __int64 v55; // x28 void (__fastcall *v56)(__int64, float); // x22 __int64 v57; // x0 __int64 v58; // x28 void (__fastcall *v59)(__int64, char *); // x22 const char *v60; // x1 __int64 v61; // x28 void (__fastcall *v62)(__int64, float); // x22 __int64 v63; // x0 __int64 v64; // x28 void (__fastcall *v65)(__int64, char *); // x22 const char *v66; // x1 __int64 v67; // x28 void (__fastcall *v68)(__int64, float); // x22 __int64 v69; // x0 __int64 v70; // x28 void (__fastcall *v71)(__int64, char *); // x22 unsigned __int64 v72; // x0 unsigned __int64 v73; // x0 unsigned __int8 v74; // w2 cocos2d::CCArray *v75; // [xsp+A0h] [xbp+A0h] int v76; // [xsp+A8h] [xbp+A8h] int v77; // [xsp+ACh] [xbp+ACh] void (__fastcall *v78)(__int64, char *); // [xsp+B0h] [xbp+B0h] void (__fastcall *v79)(__int64, char *); // [xsp+B0h] [xbp+B0h] EditorSFXManager *v80; // [xsp+B0h] [xbp+B0h] int v81; // [xsp+B8h] [xbp+B8h] float v82; // [xsp+C8h] [xbp+C8h] BYREF float v83; // [xsp+CCh] [xbp+CCh] char v84; // [xsp+D0h] [xbp+D0h] BYREF char v85; // [xsp+D1h] [xbp+D1h] char v86; // [xsp+D2h] [xbp+D2h] __int64 v87; // [xsp+E0h] [xbp+E0h] BYREF const char *v88; // [xsp+E8h] [xbp+E8h] void *v89; // [xsp+F0h] [xbp+F0h] __int64 v90[3]; // [xsp+F8h] [xbp+F8h] BYREF __int64 v91; // [xsp+110h] [xbp+110h] BYREF const char *v92; // [xsp+118h] [xbp+118h] void *v93; // [xsp+120h] [xbp+120h] char v94[16]; // [xsp+128h] [xbp+128h] BYREF char s[16]; // [xsp+138h] [xbp+138h] BYREF v2 = *((_QWORD *)this + 131); if ( !v2 || !*((_QWORD *)this + 132) ) return _stack_chk_guard; *((_DWORD *)this + 267) = *(_DWORD *)(v2 + 436); v3 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v2 + 416) + 584LL))( *(_QWORD *)(v2 + 416), 1); v4 = cocos2d::CCMenu::create(v3); *((_QWORD *)this + 132) = v4; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 296LL))(v4, &unk_155F198); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 132) + 320LL))(*((_QWORD *)this + 132), &unk_155F1A0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 132) + 184LL))(*((_QWORD *)this + 132), &unk_155F198); v5 = (EditorSFXManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), *((_QWORD *)this + 132), 2); v6 = (EditorSFXManager *)EditorSFXManager::sharedState(v5); v7 = (cocos2d::CCArray *)EditorSFXManager::soundsForAction(v6, *((_DWORD *)this + 256)); v75 = v7; if ( !v7 ) { cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v82, (const cocos2d::CCSize *)(*((_QWORD *)this + 131) + 424LL)); v11 = v82 * 0.5; LABEL_17: v39 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"No sounds bound. Tap + Add Sound below.", "bigFont.fnt", v9); v77 = 0; (*(void (__fastcall **)(float))(*(_QWORD *)v39 + 160LL))(0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 1024LL))(v39, 4294967180LL); v40 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v11, v83 * 0.5); v40(v39, &v84); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), v39, 1); goto LABEL_18; } v8 = cocos2d::CCArray::count(v7); v77 = v8; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v82, (const cocos2d::CCSize *)(*((_QWORD *)this + 131) + 424LL)); v10 = v82; v11 = v82 * 0.5; v12 = v82 - 23.0; if ( v8 > 0 ) { v13 = 0; v14 = 1000; v15 = 1; v16 = cocos2d::CCArray::objectAtIndex(v75, 0); if ( !v16 ) goto LABEL_36; LABEL_6: v81 = v15; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v84, 0.0, 0.0, 40.0, 40.0); v17 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v84); v78 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v84, v10, 30.0); v78(v17, &v84); v18 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 960LL); v84 = 0; v85 = 0; v86 = 0; v18(v17, &v84); if ( (v13 & 1) != 0 ) v19 = 40; else v19 = 70; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL))(v17, v19); v79 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v10 * 0.5, -20.0 - (float)((float)v13 * 32.0)); v79(v17, &v84); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), v17, 0); snprintf(v94, 0x10u, "%d.", v15); v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v94, "bigFont.fnt", v20); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.35); v22 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v21 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 0.0, 0.5); v22(v21, &v84); v23 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v21 + 1072LL); v84 = -86; v85 = -86; v86 = -86; v23(v21, &v84); v24 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 10.0, -20.0 - (float)((float)v13 * 32.0)); v24(v21, &v84); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), v21, 1); v87 = 0; v25 = *(_DWORD *)(v16 + 1864); v88 = nullptr; v89 = nullptr; if ( v25 <= 0 ) { v50 = (cocos2d::CCLabelBMFont *)((char *)&v87 + 1); LOBYTE(v88) = 0; v49 = (const char *)(unsigned __int8)v87; *(_DWORD *)((char *)&v87 + 1) = *(_DWORD *)"(empty)"; *(_WORD *)((char *)&v87 + 5) = *(_WORD *)"ty)"; HIBYTE(v87) = aEmpty_0[6]; LOBYTE(v87) = 14; v32 = 30.0; goto LABEL_32; } snprintf(s, 0x10u, "%d", v25); v27 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)s, "goldFont.fnt", v26); v28 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v27 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 0.0, 0.5); v28(v27, &v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.45); v29 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 30.0, -20.0 - (float)((float)v13 * 32.0)); v29(v27, &v84); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), v27, 1); v30 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 328LL))(v27); v32 = (float)((float)(v30 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v27 + 136LL))(v27)) + 6.0) + 30.0; if ( *(int *)(v16 + 1868) > 0 ) { v80 = (EditorSFXManager *)MusicDownloadManager::sharedState(v31); v33 = (EditorSFXManager *)EditorSFXManager::sharedState(v80); v34 = *(_DWORD *)(v16 + 1864); v76 = *(_DWORD *)(v16 + 1868); EditorSFXManager::getCustomSFXRawPath(v90, v33, v34, v76); SFXObject = MusicDownloadManager::resolveSFXPlacement(v80, v34, v76, (__int64)v90); v31 = (MusicDownloadManager *)LOBYTE(v90[0]); if ( (v90[0] & 1) != 0 ) operator delete((void *)v90[2]); if ( SFXObject ) goto LABEL_14; } v43 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v31); SFXObject = MusicDownloadManager::getSFXObject(v43, *(_DWORD *)(v16 + 1864)); if ( SFXObject ) { LABEL_14: v36 = *(_BYTE *)(SFXObject + 80); v91 = 0; v92 = nullptr; v93 = nullptr; if ( (v36 & 1) != 0 ) { std::string::__init(&v91, *(void **)(SFXObject + 96), *(_QWORD *)(SFXObject + 88)); } else { v37 = *(_QWORD *)(SFXObject + 80); v38 = *(const char **)(SFXObject + 88); v93 = *(void **)(SFXObject + 96); v91 = v37; v92 = v38; } } else { v91 = 0; v92 = nullptr; v93 = nullptr; std::string::__init(&v91, "(missing)", 9u); } if ( (v87 & 1) == 0 ) goto LABEL_30; *(_BYTE *)v89 = 0; v88 = nullptr; if ( (v87 & 1) != 0 ) { v44 = (char *)v89; v45 = 1; v46 = (char *)&v87 + 1; LABEL_27: v47 = v88; LABEL_28: v48 = (size_t)(v47 + 1); if ( !v48 ) { if ( !v45 ) goto LABEL_30; LABEL_38: operator delete(v44); v49 = v92; v87 = v91; v88 = v92; v89 = v93; if ( (v91 & 1) == 0 ) goto LABEL_31; goto LABEL_39; } memcpy(v46, v44, v48); if ( v45 ) goto LABEL_38; LABEL_30: v49 = v92; v87 = v91; v88 = v92; v89 = v93; if ( (v91 & 1) == 0 ) { LABEL_31: v50 = (cocos2d::CCLabelBMFont *)((char *)&v87 + 1); LABEL_32: v51 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v50, "bigFont.fnt", v49); v52 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v51 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, 0.0, 0.5); v52(v51, &v84); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v51 + 160LL))(v51, 0.45); cocos2d::CCLabelBMFont::limitLabelWidth(v51, (float)(v12 - v32) - 90.0, 0.45, 0.3); v53 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v51 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v32, -20.0 - (float)((float)v13 * 32.0)); v53(v51, &v84); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*((_QWORD *)this + 131) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 131) + 416LL), v51, 1); v55 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v54); v56 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL); v57 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v55 + 328LL))(v55); v56(v55, 24.0 / *(float *)(v57 + 4)); v58 = CCMenuItemSpriteExtra::create( v55, 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onDeleteSound, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v58 + 72LL))(v58, v14 + 2); v59 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v58 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v10 - 23.0, -20.0 - (float)((float)v13 * 32.0)); v59(v58, &v84); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 132) + 456LL))(*((_QWORD *)this + 132), v58); v61 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v60); v62 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL); v63 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 328LL))(v61); v62(v61, 24.0 / *(float *)(v63 + 4)); v64 = CCMenuItemSpriteExtra::create(v61, 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onEditSound, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v64 + 72LL))(v64, v14 + 1); v65 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v64 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v12 - 28.0, -20.0 - (float)((float)v13 * 32.0)); v65(v64, &v84); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 132) + 456LL))(*((_QWORD *)this + 132), v64); v67 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v66); v68 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL); v69 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v67 + 328LL))(v67); v68(v67, 24.0 / *(float *)(v69 + 4)); v70 = CCMenuItemSpriteExtra::create( v67, 0, (__int64)this, (__int64)EditorSFXActionConfigLayer::onPreviewSound, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v70 + 72LL))(v70, v14); v71 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v84, (float)(v12 - 28.0) - 28.0, -20.0 - (float)((float)v13 * 32.0)); v71(v70, &v84); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 132) + 456LL))(*((_QWORD *)this + 132), v70); if ( (v87 & 1) != 0 ) operator delete(v89); while ( 1 ) { ++v13; ++v15; v14 += 8; if ( v8 <= v81 ) goto LABEL_18; v16 = cocos2d::CCArray::objectAtIndex(v75, v13); if ( v16 ) goto LABEL_6; LABEL_36: v81 = v15; } } LABEL_39: v50 = (cocos2d::CCLabelBMFont *)v89; goto LABEL_32; } v72 = (unsigned __int8)v87 >> 1; if ( v72 <= 0x16 ) goto LABEL_30; v73 = (v72 + 16) & 0xFFFFFFFFFFFFFFF0LL; if ( v73 == 23 ) goto LABEL_30; if ( v73 - 1 > 0x16 ) { v46 = (char *)operator new(v73); v74 = v87; v45 = v87 & 1; if ( (v87 & 1) == 0 ) { LABEL_49: v44 = (char *)&v87 + 1; v47 = (const char *)(v74 >> 1); goto LABEL_28; } } else { v46 = (char *)operator new(v73); v74 = v87; v45 = v87 & 1; if ( (v87 & 1) == 0 ) goto LABEL_49; } v44 = (char *)v89; goto LABEL_27; } if ( !v8 ) goto LABEL_17; LABEL_18: v41 = (float)((float)v77 * 32.0) + 8.0; if ( v41 < v83 ) v41 = v83; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 131), v41); ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 131), *((float *)this + 267)); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source