// // EditorSFXActionConfigLayer::refreshRows from 0x140183c80 to 0x14018481b (2971 bytes) // // 4 xrefs: // > EditorSFXActionConfigLayer::init @ 0x140183c37 // > EditorSFXActionConfigLayer::refreshRowsAddedDeferred @ 0x140184a29 // > EditorSFXActionConfigLayer::rebuildContent @ 0x140184c40 // > @ 0x140918cf8 // // 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:38 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall EditorSFXActionConfigLayer::refreshRows(__int64 a1, __int64 a2) { int v3; // esi __int64 v4; // rcx __int64 v5; // rcx __int64 v6; // rax unsigned int v7; // ebx __int64 v8; // rax cocos2d::CCArray **Binding; // rax cocos2d::CCArray *v10; // rbx int v11; // r14d float v12; // xmm13_4 float v13; // xmm11_4 float v14; // xmm6_4 signed int v15; // r13d float v16; // xmm8_4 struct cocos2d::CCObject *v17; // r14 __int64 v18; // rax __int64 v19; // rdi __int64 v20; // rbx __int64 v21; // rax __int64 v22; // rdx __int64 v23; // rbx __int64 v24; // rax struct cocos2d::CCLabelBMFont *v25; // rdi __int64 v26; // rbx __int64 v27; // rax __int64 v28; // rbx __int64 v29; // rax float v30; // xmm7_4 struct cocos2d::CCLabelBMFont *v31; // rdi __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rbx __int64 v35; // rax float v36; // xmm6_4 double v37; // xmm0_8 int v38; // edi unsigned int v39; // ebx __int64 v40; // rax __int64 CustomSFXRawPath; // rbx __int64 v42; // rcx struct cocos2d::CCObject *v43; // rbx __int64 v44; // rbx __int64 v45; // rax cocos2d::CCDictionary *v46; // rcx __int128 *v47; // rbx void *v48; // rcx void *v49; // rcx const char *v50; // rcx cocos2d::CCLabelBMFont *v51; // rdi __int64 v52; // rbx __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rax struct cocos2d::CCSprite *v56; // rdi __int64 v57; // rbx cocos2d::CCObject *v58; // rdi unsigned int v59; // r14d __int64 v60; // rbx __int64 v61; // rax float v62; // xmm6_4 struct cocos2d::CCSprite *v63; // rdi __int64 v64; // rbx cocos2d::CCObject *v65; // rdi __int64 v66; // rbx __int64 v67; // rax struct cocos2d::CCSprite *v68; // rdi __int64 v69; // rbx cocos2d::CCObject *v70; // rdi __int64 v71; // rbx __int64 v72; // rax void *v73; // rcx struct cocos2d::CCLabelBMFont *v74; // rdi __int64 v75; // rdx void (__fastcall *v76)(char *, __int64); // r8 __int64 v77; // rbx __int64 v78; // rax __int64 v79; // rbx __int64 v80; // rcx __int64 v81; // rcx __int64 v82; // rcx float v83; // [rsp+38h] [rbp-D0h] __int16 v84; // [rsp+40h] [rbp-C8h] BYREF char v85; // [rsp+42h] [rbp-C6h] int v86; // [rsp+44h] [rbp-C4h] __int16 v87; // [rsp+48h] [rbp-C0h] BYREF char v88; // [rsp+4Ah] [rbp-BEh] int v89; // [rsp+4Ch] [rbp-BCh] __int64 v90; // [rsp+50h] [rbp-B8h] cocos2d::CCArray *v91; // [rsp+58h] [rbp-B0h] float v92; // [rsp+60h] [rbp-A8h] BYREF float v93; // [rsp+64h] [rbp-A4h] _QWORD v94[3]; // [rsp+68h] [rbp-A0h] BYREF unsigned __int64 v95; // [rsp+80h] [rbp-88h] _BYTE v96[8]; // [rsp+88h] [rbp-80h] BYREF _BYTE v97[8]; // [rsp+90h] [rbp-78h] BYREF _BYTE v98[8]; // [rsp+98h] [rbp-70h] BYREF _BYTE v99[8]; // [rsp+A0h] [rbp-68h] BYREF _BYTE v100[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE v101[8]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v102[8]; // [rsp+B8h] [rbp-50h] BYREF void *v103; // [rsp+C0h] [rbp-48h] void *v104; // [rsp+C8h] [rbp-40h] _BYTE v105[8]; // [rsp+D0h] [rbp-38h] BYREF _BYTE v106[8]; // [rsp+D8h] [rbp-30h] BYREF _BYTE v107[8]; // [rsp+E0h] [rbp-28h] BYREF _BYTE v108[8]; // [rsp+E8h] [rbp-20h] BYREF _BYTE v109[16]; // [rsp+F0h] [rbp-18h] BYREF __int128 v110; // [rsp+100h] [rbp-8h] BYREF __int128 v111; // [rsp+110h] [rbp+8h] _BYTE v112[32]; // [rsp+120h] [rbp+18h] BYREF _BYTE v113[32]; // [rsp+140h] [rbp+38h] BYREF wchar_t Buffer[8]; // [rsp+160h] [rbp+58h] BYREF wchar_t v115[8]; // [rsp+170h] [rbp+68h] BYREF v3 = 0; LODWORD(v90) = 0; v4 = *(_QWORD *)(a1 + 1032); if ( !v4 || !*(_QWORD *)(a1 + 1040) ) return; *(_DWORD *)(a1 + 1052) = *(_DWORD *)(v4 + 436); LOBYTE(a2) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 416) + 576LL))(*(_QWORD *)(v4 + 416), a2); v6 = cocos2d::CCMenu::create(v5); *(_QWORD *)(a1 + 1040) = v6; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 288LL))(v6, &unk_14090A5A8); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1040) + 312LL))(*(_QWORD *)(a1 + 1040), &unk_14090A5C0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1040) + 184LL))(*(_QWORD *)(a1 + 1040), &unk_14090A5A8); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), *(_QWORD *)(a1 + 1040), 2); v7 = *(_DWORD *)(a1 + 1008); v8 = EditorSFXManager::sharedState(); Binding = (cocos2d::CCArray **)EditorSFXManager::findBinding(v8, v7); if ( !Binding ) { v10 = nullptr; v91 = nullptr; goto LABEL_7; } v10 = *Binding; v91 = v10; if ( !v10 ) { LABEL_7: v11 = 0; goto LABEL_8; } v11 = cocos2d::CCArray::count(v10); v91 = v10; LABEL_8: LODWORD(v90) = v11; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v92, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 1032) + 424LL)); v12 = v92; v13 = v92 * 0.5; v14 = v92 - 23.0; v83 = v92 - 23.0; v15 = 0; if ( v11 > 0 ) { v89 = 1001; while ( 1 ) { v16 = -20.0 - (float)((float)v15 * 32.0); v17 = cocos2d::CCArray::objectAtIndex(v10, v15); if ( v17 ) break; v59 = v89; LABEL_49: ++v15; v89 = v59 + 8; v11 = v90; if ( v15 >= (int)v90 ) goto LABEL_55; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v109, 0.0, 0.0, 40.0, 40.0); v19 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v18); v20 = *(_QWORD *)v19; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v97, v12, 30.0); (*(void (__fastcall **)(__int64, __int64))(v20 + 312))(v19, v21); v84 = 0; v85 = 0; (**(void (__fastcall ***)(__int64, __int16 *))(v19 + 320))(v19 + 320, &v84); v22 = 40; if ( (v15 & 1) == 0 ) v22 = 70; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v19 + 320) + 40LL))(v19 + 320, v22); v23 = *(_QWORD *)v19; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v13, v16); (*(void (__fastcall **)(__int64, __int64))(v23 + 184))(v19, v24); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), v19, 0); swprintf(Buffer, 0x10u, "%d.", v15 + 1); v25 = cocos2d::CCLabelBMFont::create((const char *)Buffer, (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 160LL))(v25); v26 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v26 + 288))(v25, v27); LOWORD(v86) = -21846; v87 = -21846; v88 = -86; (**((void (__fastcall ***)(__int64, __int16 *))v25 + 46))((__int64)v25 + 368, &v87); v28 = *(_QWORD *)v25; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v100, 10.0, v16); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v28 + 184))(v25, v29); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), v25, 1); v30 = 30.0; v110 = 0; *(_QWORD *)&v111 = 0; *((_QWORD *)&v111 + 1) = 15; LOBYTE(v110) = 0; if ( *((int *)v17 + 472) <= 0 ) { *(_QWORD *)&v111 = 7; *(_QWORD *)&v110 = 0x297974706D6528LL; LABEL_41: v50 = (const char *)&v110; if ( *((_QWORD *)&v111 + 1) > 0xFu ) v50 = (const char *)v110; v51 = cocos2d::CCLabelBMFont::create(v50, (const char *)&qword_140704F78); v52 = *(_QWORD *)v51; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v105, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v52 + 288))(v51, v53); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v51 + 160LL))(v51); cocos2d::CCLabelBMFont::limitLabelWidth(v51, (float)(v14 - v30) - 90.0, 0.44999999, 0.30000001); v54 = *(_QWORD *)v51; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v106, v30, v16); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v54 + 184))(v51, v55); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), v51, 1); v56 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_deleteBtn_001.png"); v57 = *(_QWORD *)v56; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v56 + 320LL))(v56); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v57 + 160))(v56); v58 = CCMenuItemSpriteExtra::create((int)v56, 0, a1, (__int64)EditorSFXActionConfigLayer::onDeleteSound); v59 = v89; (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v58 + 64LL))(v58, (unsigned int)(v89 + 1)); v60 = *(_QWORD *)v58; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v107, v14, v16); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v60 + 184))(v58, v61); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 1040) + 464LL))( *(_QWORD *)(a1 + 1040), v58); v62 = v14 - 28.0; v63 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_editBtn_001.png"); v64 = *(_QWORD *)v63; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v63 + 320LL))(v63); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v64 + 160))(v63); v65 = CCMenuItemSpriteExtra::create((int)v63, 0, a1, (__int64)EditorSFXActionConfigLayer::onEditSound); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v65 + 64LL))(v65, v59); v66 = *(_QWORD *)v65; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v62, v16); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v66 + 184))(v65, v67); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 1040) + 464LL))( *(_QWORD *)(a1 + 1040), v65); v68 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); v69 = *(_QWORD *)v68; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v68 + 320LL))(v68); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v69 + 160))(v68); v70 = CCMenuItemSpriteExtra::create((int)v68, 0, a1, (__int64)EditorSFXActionConfigLayer::onPreviewSound); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v70 + 64LL))(v70, v59 - 1); v71 = *(_QWORD *)v70; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v62 - 28.0, v16); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v71 + 184))(v70, v72); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 1040) + 464LL))( *(_QWORD *)(a1 + 1040), v70); if ( *((_QWORD *)&v111 + 1) > 0xFu ) { v73 = (void *)v110; if ( (unsigned __int64)(*((_QWORD *)&v111 + 1) + 1LL) >= 0x1000 ) { v73 = *(void **)(v110 - 8); if ( (unsigned __int64)(v110 - (_QWORD)v73 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v73); } v14 = v83; v10 = v91; goto LABEL_49; } swprintf(v115, 0x10u, &word_14070D0CC); v31 = cocos2d::CCLabelBMFont::create((const char *)v115, "goldFont.fnt"); v32 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v101, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v32 + 288))(v31, v33); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v31 + 160LL))(v31); v34 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, 30.0, v16); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v34 + 184))(v31, v35); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), v31, 1); v36 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v31 + 320LL))(v31); v37 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v31 + 128LL))(v31); v30 = (float)((float)(*(float *)&v37 * v36) + 6.0) + 30.0; v38 = *((_DWORD *)v17 + 473); if ( v38 > 0 ) { v39 = *((_DWORD *)v17 + 472); v40 = EditorSFXManager::sharedState(); CustomSFXRawPath = EditorSFXManager::getCustomSFXRawPath(v40, v112, v39, (unsigned int)v38); v42 = qword_14090C070; if ( !qword_14090C070 ) { v103 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v103); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v42 = qword_14090C070; } v43 = (struct cocos2d::CCObject *)MusicDownloadManager::resolveSFXPlacement( v42, *((unsigned int *)v17 + 472), *((unsigned int *)v17 + 473), CustomSFXRawPath); sub_14003D310((__int64)v112); if ( v43 ) goto LABEL_24; } v44 = *((int *)v17 + 472); v45 = qword_14090C070; if ( !qword_14090C070 ) { v104 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v104); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v45 = qword_14090C070; } v46 = *(cocos2d::CCDictionary **)(v45 + 408); v43 = v46 ? cocos2d::CCDictionary::objectForKey(v46, v44) : nullptr; if ( v43 ) { LABEL_24: v47 = (__int128 *)sub_14003F4F0((__int64)v113, (__int64)v43 + 80); v3 |= 1u; if ( &v110 == v47 ) { LABEL_32: if ( (v3 & 2) != 0 ) { v3 &= ~2u; if ( v95 > 0xF ) { v49 = (void *)v94[0]; if ( v95 + 1 >= 0x1000 ) { v49 = *(void **)(v94[0] - 8LL); if ( (unsigned __int64)(v94[0] - (_QWORD)v49 - 8LL) > 0x1F ) goto LABEL_51; } j_j_free(v49); } } if ( (v3 & 1) != 0 ) { v3 &= ~1u; sub_14003D310((__int64)v113); } v14 = v83; goto LABEL_41; } } else { v94[1] = 41; v94[2] = 9; v95 = 15; v94[0] = 0x676E697373696D28LL; v47 = (__int128 *)v94; v3 |= 2u; } if ( *((_QWORD *)&v111 + 1) > 0xFu ) { v48 = (void *)v110; if ( (unsigned __int64)(*((_QWORD *)&v111 + 1) + 1LL) >= 0x1000 ) { v48 = *(void **)(v110 - 8); if ( (unsigned __int64)(v110 - (_QWORD)v48 - 8) > 0x1F ) LABEL_51: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v48); } *(_QWORD *)&v111 = 0; *((_QWORD *)&v111 + 1) = 15; LOBYTE(v110) = 0; v110 = *v47; v111 = v47[1]; *((_QWORD *)v47 + 2) = 0; *((_QWORD *)v47 + 3) = 15; *(_BYTE *)v47 = 0; goto LABEL_32; } if ( !v11 ) { v74 = cocos2d::CCLabelBMFont::create("No sounds bound. Tap + Add Sound below.", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v74 + 160LL))(v74); v75 = *((_QWORD *)v74 + 46); v76 = *(void (__fastcall **)(char *, __int64))(v75 + 40); LOBYTE(v75) = -116; v76((char *)v74 + 368, v75); v77 = *(_QWORD *)v74; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v13, v93 * 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v77 + 184))(v74, v78); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 1032) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1032) + 416LL), v74, 1); } LABEL_55: v79 = *(_QWORD *)(a1 + 1032); *(float *)(v79 + 432) = fmaxf(v93, (float)((float)v11 * 32.0) + 8.0); ScrollableContentLayer::clampOffset(v79); ScrollableContentLayer::ensureScrollThumb(v80); ScrollableContentLayer::applyContentPosition(v79); v81 = *(_QWORD *)(a1 + 1032); *(_DWORD *)(v81 + 436) = *(_DWORD *)(a1 + 1052); *(_DWORD *)(v81 + 476) = 0; ScrollableContentLayer::clampOffset(v81); ScrollableContentLayer::applyContentPosition(v82); }