// // EditorSoundConfigInfoLayer::buildSummary from 0x140194920 to 0x140194dbd (1181 bytes) // // 4 xrefs: // > EditorSoundConfigInfoLayer::init @ 0x140192f84 // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140198374 // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0x140198d9e // > @ 0x1409193ac // // 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:45 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EditorSoundConfigInfoLayer::buildSummary(__int64 a1, __int64 a2) { unsigned __int64 v3; // r15 __int64 v4; // rcx float v5; // xmm8_4 __int64 v6; // rax __int64 v7; // r8 __int64 v8; // r12 const char *v9; // rax __int64 v10; // r8 __int64 v11; // rdi const char *v12; // rcx struct cocos2d::CCLabelBMFont *v13; // rsi __int64 v14; // rbx __int64 v15; // rax const char *v16; // r8 cocos2d::CCString *v17; // rax const char *CString; // rax size_t v19; // r8 const char *v20; // rcx struct cocos2d::CCLabelBMFont *v21; // rdi __int64 v22; // rbx __int64 v23; // rax float v24; // xmm8_4 __int64 v25; // rbx __int64 v26; // rax float v27; // xmm6_4 double v28; // xmm0_8 __int64 v29; // rbx __int64 v30; // rax __int64 v31; // rbx __int64 v32; // rcx const char *v33; // rdx __int16 v34; // [rsp+28h] [rbp-E0h] BYREF char v35; // [rsp+2Ah] [rbp-DEh] __int16 v36; // [rsp+2Ch] [rbp-DCh] BYREF char v37; // [rsp+2Eh] [rbp-DAh] __int64 v38; // [rsp+30h] [rbp-D8h] BYREF float v39[2]; // [rsp+38h] [rbp-D0h] BYREF __int64 v40; // [rsp+40h] [rbp-C8h] BYREF __int64 v41; // [rsp+48h] [rbp-C0h] _BYTE v42[8]; // [rsp+58h] [rbp-B0h] BYREF _BYTE v43[8]; // [rsp+60h] [rbp-A8h] BYREF _BYTE v44[8]; // [rsp+68h] [rbp-A0h] BYREF __int64 v45; // [rsp+70h] [rbp-98h] BYREF __int128 v46; // [rsp+78h] [rbp-90h] BYREF __int128 v47; // [rsp+88h] [rbp-80h] _BYTE v48[32]; // [rsp+98h] [rbp-70h] BYREF v3 = 0; v4 = *(_QWORD *)(a1 + 1224); if ( v4 ) { v38 = *(_QWORD *)(v4 + 416); LOBYTE(a2) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 576LL))(v4, a2); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v39, (const struct cocos2d::CCSize *)(*(_QWORD *)(a1 + 1224) + 424LL)); v5 = -8.0; *(_QWORD *)&v46 = v39; *((_QWORD *)&v46 + 1) = &v38; *(_QWORD *)&v47 = a1; v6 = *(_QWORD *)(a1 + 1072); if ( v6 && *(_BYTE *)(v6 + 544) ) { sub_14003F4F0((__int64)v48, v6 + 512); sub_140189D00(&v40, (__int64)v48); sub_14003D310((__int64)v48); v7 = v40; if ( v40 == v41 ) { sub_140194DC0(&v46, "No sounds in this pack."); } else { if ( (v41 - v40) >> 5 ) { v8 = 0; do { v9 = EditorSFXManager::actionToString(*(_DWORD *)(v8 + v7)); v11 = (__int64)(*(_QWORD *)(v8 + v10 + 16) - *(_QWORD *)(v8 + v10 + 8)) >> 2; v12 = "Action"; if ( v9 ) v12 = v9; v13 = cocos2d::CCLabelBMFont::create(v12, (const char *)&qword_140704F78); v14 = *(_QWORD *)v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v14 + 288))(v13, v15); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v13 + 160LL))(v13); cocos2d::CCLabelBMFont::limitLabelWidth(v13, v39[0] - 90.0, 0.33000001, 0.2); v34 = -8961; v35 = 120; (**((void (__fastcall ***)(__int64, __int16 *))v13 + 46))((__int64)v13 + 368, &v34); v16 = "Sounds"; if ( (_DWORD)v11 == 1 ) v16 = "Sound"; v17 = cocos2d::CCString::createWithFormat(": %d %s", v11, v16); CString = cocos2d::CCString::getCString(v17); v46 = 0; v47 = 0; v19 = -1; do ++v19; while ( CString[v19] ); sub_14003D230(&v46, CString, v19); v20 = (const char *)&v46; if ( *((_QWORD *)&v47 + 1) > 0xFu ) v20 = (const char *)v46; v21 = cocos2d::CCLabelBMFont::create(v20, (const char *)&qword_140704F78); v22 = *(_QWORD *)v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v22 + 288))(v21, v23); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v21 + 160LL))(v21); v36 = -136; v37 = -116; (**((void (__fastcall ***)(__int64, __int16 *))v21 + 46))((__int64)v21 + 368, &v36); v24 = v5 + -9.0; v25 = *(_QWORD *)v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 12.0, v24); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v25 + 184))(v13, v26); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 464LL))(v38, v13); v27 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v13 + 320LL))(v13); v28 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v13 + 128LL))(v13); v29 = *(_QWORD *)v21; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v45, (float)((float)(*(float *)&v28 * v27) + 12.0) + 4.0, v24); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v29 + 184))(v21, v30); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 464LL))(v38, v21); v5 = v24 + -9.0; sub_14003D310((__int64)&v46); ++v3; v8 += 32; v7 = v40; } while ( v3 < (v41 - v40) >> 5 ); } v31 = *(_QWORD *)(a1 + 1224); *(float *)(v31 + 432) = fmaxf(v39[1], 8.0 - v5); ScrollableContentLayer::clampOffset(v31); ScrollableContentLayer::ensureScrollThumb(v32); ScrollableContentLayer::applyContentPosition(v31); } sub_14018C460(&v40); } else { if ( *(_BYTE *)(a1 + 1104) || v6 && *(int *)(v6 + 320) > 0 ) LODWORD(v3) = 1; v33 = "No sound data."; if ( (_DWORD)v3 ) v33 = "Loading..."; sub_140194DC0(&v46, v33); } } }