// // EditorSoundsLayer::buildContentForTab from 0x14019d990 to 0x14019e0e3 (1875 bytes) // // 2 xrefs: // > EditorSoundsLayer::showTab @ 0x14019e48d // > @ 0x140919784 // // 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:47 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall EditorSoundsLayer::buildContentForTab(__int64 a1, int a2) { int v2; // ebx __int64 v3; // r14 __int64 v4; // rdx int v5; // esi float v6; // xmm14_4 float v7; // xmm15_4 float v8; // xmm8_4 int v9; // r12d int *v10; // rdi int v11; // r13d const char *v12; // rax const char *v13; // r15 size_t v14; // r8 _QWORD *v15; // rsi unsigned __int64 v16; // rcx unsigned __int64 v17; // r13 void **v18; // r12 char v19; // bl unsigned __int64 v20; // r15 __int64 v21; // rdi void **v22; // r14 char *v23; // r14 _QWORD *v24; // rax int v25; // ebx int v26; // eax void **v27; // rax float v28; // xmm6_4 __int64 v29; // rax __int64 *v30; // rdi __int64 v31; // rbx __int64 v32; // rax __int64 v33; // rdx __int64 v34; // rbx __int64 v35; // rax cocos2d::CCLabelBMFont *v36; // rdi __int64 v37; // rbx __int64 v38; // rax __int64 v39; // rbx __int64 v40; // rax _QWORD *v41; // rax cocos2d::CCArray **Binding; // rax int v43; // esi struct cocos2d::CCLabelBMFont *v44; // rdi __int64 v45; // rbx __int64 v46; // rax __int16 *v47; // rdx __int64 v48; // rbx __int64 v49; // rax cocos2d::CCObject *v50; // rsi __int64 v51; // rdi __int64 v52; // rax __int64 v53; // rbx __int64 v54; // rax cocos2d::CCObject *v55; // rdi __int64 v56; // rbx __int64 v57; // rax __int64 v58; // rbx __int64 v59; // rcx __int16 v60; // [rsp+5Ch] [rbp-ACh] BYREF char v61; // [rsp+5Eh] [rbp-AAh] __int16 v62; // [rsp+60h] [rbp-A8h] __int16 v63; // [rsp+64h] [rbp-A4h] BYREF char v64; // [rsp+66h] [rbp-A2h] int v65; // [rsp+68h] [rbp-A0h] __int16 v66; // [rsp+6Ch] [rbp-9Ch] BYREF char v67; // [rsp+6Eh] [rbp-9Ah] int v68; // [rsp+70h] [rbp-98h] int v69; // [rsp+74h] [rbp-94h] __int64 v70; // [rsp+78h] [rbp-90h] int *v71; // [rsp+80h] [rbp-88h] int v72; // [rsp+88h] [rbp-80h] const char *v73; // [rsp+90h] [rbp-78h] __int64 v74; // [rsp+98h] [rbp-70h] float v75[2]; // [rsp+A0h] [rbp-68h] BYREF _BYTE v76[8]; // [rsp+A8h] [rbp-60h] BYREF _BYTE v77[8]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v78[8]; // [rsp+B8h] [rbp-50h] BYREF _BYTE v79[8]; // [rsp+C0h] [rbp-48h] BYREF _BYTE v80[8]; // [rsp+C8h] [rbp-40h] BYREF _BYTE v81[8]; // [rsp+D0h] [rbp-38h] BYREF _BYTE v82[8]; // [rsp+D8h] [rbp-30h] BYREF void *v83; // [rsp+E0h] [rbp-28h] _BYTE v84[8]; // [rsp+E8h] [rbp-20h] BYREF _BYTE v85[8]; // [rsp+F0h] [rbp-18h] BYREF _BYTE v86[16]; // [rsp+F8h] [rbp-10h] BYREF void *Block[2]; // [rsp+108h] [rbp+0h] BYREF unsigned __int64 v88; // [rsp+118h] [rbp+10h] unsigned __int64 v89; // [rsp+120h] [rbp+18h] wchar_t Buffer[8]; // [rsp+128h] [rbp+20h] BYREF v2 = a2; v69 = a2; v3 = a1; v74 = a1; v4 = *(_QWORD *)(a1 + 1144); if ( v4 && *(_QWORD *)(a1 + 1152) ) { v5 = *(_DWORD *)(a1 + 1136); LODWORD(v70) = v5; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v75, (const struct cocos2d::CCSize *)(v4 + 424)); v6 = v75[0]; v7 = v75[0] * 0.5; v8 = v75[0] - 23.0; v9 = 0; v68 = 0; v10 = (int *)&unk_140702FB0; v71 = (int *)&unk_140702FB0; while ( 1 ) { v11 = *v10; v72 = v11; v12 = EditorSFXManager::actionToString(v11); v13 = v12; v73 = v12; if ( v2 == v5 ) break; if ( v10[1] == v2 ) goto LABEL_29; LABEL_44: v10 += 2; v71 = v10; if ( (__int64)v10 >= (__int64)&word_140703290 ) { LABEL_45: v58 = *(_QWORD *)(v3 + 1144); *(float *)(v58 + 432) = fmaxf(v75[1], (float)((float)v9 * 32.0) + 8.0); ScrollableContentLayer::clampOffset(v58); ScrollableContentLayer::ensureScrollThumb(v59); ScrollableContentLayer::applyContentPosition(v58); return; } } if ( !*(_QWORD *)(v3 + 1120) ) goto LABEL_45; *(_OWORD *)Block = 0; v88 = 0; v89 = 0; v14 = -1; do ++v14; while ( v12[v14] ); sub_14003D230(Block, v12, v14); v15 = (_QWORD *)(v3 + 1104); v16 = *(_QWORD *)(v3 + 1120); v17 = v89; v18 = (void **)Block[0]; if ( v16 <= v88 ) { v20 = 0; do { v21 = 0; if ( !v16 ) { LABEL_18: v19 = 0; goto LABEL_19; } while ( 1 ) { v22 = Block; if ( v17 > 0xF ) v22 = v18; v23 = (char *)v22 + v21; v24 = v15; if ( v15[3] > 0xFu ) v24 = (_QWORD *)*v15; v25 = tolower(*((unsigned __int8 *)v24 + v21)); v26 = tolower((unsigned __int8)v23[v20]); v16 = v15[2]; if ( v26 != v25 ) break; if ( ++v21 >= v16 ) goto LABEL_18; } ++v20; } while ( v20 <= v88 - v16 ); v19 = 1; LABEL_19: v10 = v71; v13 = v73; } else { v19 = 1; } if ( v17 > 0xF ) { v27 = v18; if ( v17 + 1 >= 0x1000 ) { v18 = (void **)*(v18 - 1); if ( (unsigned __int64)((char *)v27 - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } v3 = v74; v9 = v68; if ( !v19 ) { v11 = v72; LABEL_29: v28 = -20.0 - (float)((float)v9 * 32.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v86, 0.0, 0.0, 40.0, 40.0); v30 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v29); v31 = *v30; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v77, v6, 30.0); (*(void (__fastcall **)(__int64 *, __int64))(v31 + 312))(v30, v32); v33 = 40; if ( (v9 & 1) == 0 ) v33 = 70; (*(void (__fastcall **)(__int64 *, __int64))(v30[40] + 40))(v30 + 40, v33); v60 = 0; v61 = 0; (*(void (__fastcall **)(__int64 *, __int16 *))v30[40])(v30 + 40, &v60); v34 = *v30; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, v7, v28); (*(void (__fastcall **)(__int64 *, __int64))(v34 + 184))(v30, v35); (*(void (__fastcall **)(_QWORD, __int64 *, _QWORD))(**(_QWORD **)(*(_QWORD *)(v3 + 1144) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(v3 + 1144) + 416LL), v30, 0); v36 = cocos2d::CCLabelBMFont::create(v13, (const char *)&qword_140704F78); v37 = *(_QWORD *)v36; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v79, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v37 + 288))(v36, v38); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v36 + 160LL))(v36); cocos2d::CCLabelBMFont::limitLabelWidth(v36, v6 - 70.0, 0.44999999, 0.25); v39 = *(_QWORD *)v36; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v80, 10.0, v28); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v39 + 184))(v36, v40); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(v3 + 1144) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(v3 + 1144) + 416LL), v36, 1); v41 = (_QWORD *)EditorSFXManager::sharedState(); Binding = (cocos2d::CCArray **)EditorSFXManager::findBinding(v41, v11); if ( Binding && *Binding ) v43 = cocos2d::CCArray::count(*Binding); else v43 = 0; swprintf(Buffer, 0x10u, &word_14070D0CC, (unsigned int)v43); v44 = cocos2d::CCLabelBMFont::create((const char *)Buffer, (const char *)&qword_140704F78); v45 = *(_QWORD *)v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v45 + 288))(v44, v46); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v44 + 160LL))(v44); if ( v43 <= 0 ) { LOWORD(v65) = -19276; v66 = -19276; v67 = -76; v47 = &v66; } else { v62 = -156; v63 = -156; v64 = 100; v47 = &v63; } (**((void (__fastcall ***)(__int64, __int16 *))v44 + 46))((__int64)v44 + 368, v47); v48 = *(_QWORD *)v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, v8 - 24.0, v28); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v48 + 184))(v44, v49); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*(_QWORD *)(v3 + 1144) + 416LL) + 456LL))( *(_QWORD *)(*(_QWORD *)(v3 + 1144) + 416LL), v44, 1); v83 = operator new(0x2C8u); v50 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v83); if ( v50 ) { if ( ButtonSprite::init_1( (__int64)v50, (__int64)"+", 10, 0, 1058642330, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1102053376) ) { cocos2d::CCObject::autorelease(v50); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v50 + 8LL))(v50, 1); v50 = nullptr; } } v51 = *((_QWORD *)v50 + 79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 0.25, 0.0); v53 = v52; v54 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v51 + 200LL))(v51); cocos2d::CCPoint::operator+(v54, v76, v53); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v51 + 184LL))(v51, v76); v55 = CCMenuItemSpriteExtra::create((int)v50, 0, v3, (__int64)EditorSoundsLayer::onActionRow); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v55 + 64LL))(v55, (unsigned int)(v11 + 20000)); v56 = *(_QWORD *)v55; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v85, v8, v28); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v56 + 184))(v55, v57); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(v3 + 1152) + 464LL))( *(_QWORD *)(v3 + 1152), v55); v68 = ++v9; v10 = v71; } v5 = v70; v2 = v69; goto LABEL_44; } }