// // EditorSoundConfigInfoLayer::buildSummary from 0xccecac to 0xccf36c (1728 bytes) // // 4 xrefs: // > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf450 // > EditorSoundConfigInfoLayer::init @ 0xcd14ac // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd37f4 // > @ 0xfe3e0 // // 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:26 +0000 // __int64 __fastcall EditorSoundConfigInfoLayer::buildSummary(EditorSoundConfigInfoLayer *this) { __int64 v2; // x0 __int64 v3; // x23 const char *v4; // x2 __int64 v5; // x0 __int64 v6; // x1 const char *v7; // x2 unsigned int *v8; // x1 unsigned __int64 v9; // x24 float v10; // s8 char *v11; // x0 const char *v12; // x2 __int64 v13; // x21 cocos2d::CCLabelBMFont *v14; // x19 void (__fastcall *v15)(cocos2d::CCLabelBMFont *, char *); // x26 void (__fastcall *v16)(cocos2d::CCLabelBMFont *, char *); // x2 char *v17; // x2 cocos2d::CCString *v18; // x0 size_t v19; // x0 const char *v20; // x2 cocos2d::CCLabelBMFont *v21; // x0 __int64 v22; // x21 void (__fastcall *v23)(__int64, char *); // x25 void (__fastcall *v24)(__int64, char *); // x2 float v25; // s8 void (__fastcall *v26)(cocos2d::CCLabelBMFont *, char *); // x25 float v27; // s9 float v28; // s0 void (__fastcall *v29)(__int64, char *); // x19 float v30; // s0 void *v31; // x19 _QWORD *v32; // x2 char *v33; // x0 char *v34; // x3 char *v36; // x0 __int64 v37; // x19 void (__fastcall *v38)(__int64, void **); // x20 __int64 v39; // x19 void (__fastcall *v40)(__int64, char *); // x21 void *v41; // x19 char *v42; // x0 char *v43; // x3 char *CString; // [xsp+A8h] [xbp+A8h] float v45; // [xsp+B8h] [xbp+B8h] BYREF float v46; // [xsp+BCh] [xbp+BCh] char v47; // [xsp+C0h] [xbp+C0h] BYREF char v48; // [xsp+C1h] [xbp+C1h] char v49; // [xsp+C2h] [xbp+C2h] void *v50; // [xsp+C8h] [xbp+C8h] BYREF void *v51; // [xsp+D0h] [xbp+D0h] __int64 v52; // [xsp+E0h] [xbp+E0h] BYREF __int64 v53; // [xsp+E8h] [xbp+E8h] void *v54; // [xsp+F0h] [xbp+F0h] v2 = *((_QWORD *)this + 155); if ( !v2 ) return _stack_chk_guard; v3 = *(_QWORD *)(v2 + 416); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 584LL))(v3, 1); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v45, (const cocos2d::CCSize *)(*((_QWORD *)this + 155) + 424LL)); v5 = *((_QWORD *)this + 136); if ( !v5 ) { if ( !*((_BYTE *)this + 1120) ) { LABEL_38: v36 = "No sound data."; goto LABEL_35; } LABEL_34: v36 = "Loading..."; LABEL_35: v37 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v36, "bigFont.fnt", v4); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 160LL))(v37, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v37 + 1024LL))(v37, 4294967190LL); v38 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)v37 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, v45 * 0.5, (float)-v46 * 0.5); v38(v37, &v50); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 456LL))(v3, v37); ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 155), v46); return _stack_chk_guard; } if ( !*(_BYTE *)(v5 + 496) ) { if ( !*((_BYTE *)this + 1120) && *(int *)(v5 + 316) <= 0 ) goto LABEL_38; goto LABEL_34; } v52 = 0; v53 = 0; v54 = nullptr; if ( (*(_BYTE *)(v5 + 472) & 1) != 0 ) { std::string::__init(&v52, *(void **)(v5 + 488), *(_QWORD *)(v5 + 480)); } else { v6 = *(_QWORD *)(v5 + 480); v52 = *(_QWORD *)(v5 + 472); v53 = v6; v54 = *(void **)(v5 + 488); } EditorSFXManager::summarizeBlob((__int64)&v52, (__int64)&v50); if ( (v52 & 1) != 0 ) operator delete(v54); v8 = (unsigned int *)v50; if ( v50 == v51 ) { v39 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"No sounds in this pack.", "bigFont.fnt", v7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 0.5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v39 + 1024LL))(v39, 4294967190LL); v40 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, v45 * 0.5, (float)-v46 * 0.5); v40(v39, &v47); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 456LL))(v3, v39); ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 155), v46); v41 = v50; if ( !v50 ) return _stack_chk_guard; v32 = v51; if ( v50 == v51 ) goto LABEL_31; do { v51 = v32 - 4; v42 = (char *)*(v32 - 3); if ( v42 ) { v43 = (char *)*(v32 - 2); if ( v42 != v43 ) *(v32 - 2) = &v43[4 * ~((unsigned __int64)(v43 - 4 - v42) >> 2)]; operator delete(v42); } v32 = v51; } while ( v41 != v51 ); goto LABEL_30; } if ( ((_BYTE *)v51 - (_BYTE *)v50) >> 5 ) { v9 = 0; v10 = -8.0; do { while ( 1 ) { v11 = EditorSFXManager::actionToString((EditorSFXManager *)v8[8 * v9]); v13 = (__int64)(*((_QWORD *)v50 + 4 * v9 + 2) - *((_QWORD *)v50 + 4 * v9 + 1)) >> 2; if ( !v11 ) v11 = "Action"; v14 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)v11, "bigFont.fnt", v12); v15 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v14 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 0.0, 0.5); v15(v14, &v47); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v14 + 160LL))(v14, 0.33); cocos2d::CCLabelBMFont::limitLabelWidth(v14, v45 - 90.0, 0.33, 0.2); v16 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v14 + 1072LL); v47 = -1; v48 = -36; v49 = 120; v16(v14, &v47); if ( (_DWORD)v13 == 1 ) v17 = "Sound"; else v17 = "Sounds"; v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)": %d %s", (const char *)(unsigned int)v13, v17); CString = (char *)cocos2d::CCString::getCString(v18); v52 = 0; v53 = 0; v54 = nullptr; v19 = strlen(CString); std::string::__init(&v52, CString, v19); v21 = (cocos2d::CCLabelBMFont *)((char *)&v52 + 1); if ( (v52 & 1) != 0 ) v21 = (cocos2d::CCLabelBMFont *)v54; v22 = cocos2d::CCLabelBMFont::create(v21, "bigFont.fnt", v20); v23 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v22 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 0.0, 0.5); v23(v22, &v47); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.33); v24 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v22 + 1072LL); v47 = 120; v48 = -1; v49 = -116; v24(v22, &v47); v25 = v10 - 9.0; v26 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, 12.0, v25); v26(v14, &v47); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v3 + 456LL))(v3, v14); v27 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v14 + 328LL))(v14); v28 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v14 + 136LL))(v14); v29 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v47, (float)((float)(v27 * v28) + 12.0) + 4.0, v25); v29(v22, &v47); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 456LL))(v3, v22); v10 = v25 - 9.0; if ( (v52 & 1) != 0 ) break; v8 = (unsigned int *)v50; if ( ++v9 >= ((_BYTE *)v51 - (_BYTE *)v50) >> 5 ) goto LABEL_20; } ++v9; operator delete(v54); v8 = (unsigned int *)v50; } while ( v9 < ((_BYTE *)v51 - (_BYTE *)v50) >> 5 ); LABEL_20: v30 = 8.0 - v10; } else { v30 = 16.0; } if ( v46 > v30 ) v30 = v46; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 155), v30); v31 = v50; if ( v50 ) { v32 = v51; if ( v50 == v51 ) { LABEL_31: operator delete(v32); return _stack_chk_guard; } do { v51 = v32 - 4; v33 = (char *)*(v32 - 3); if ( v33 ) { v34 = (char *)*(v32 - 2); if ( v33 != v34 ) *(v32 - 2) = &v34[4 * ~((unsigned __int64)(v34 - 4 - v33) >> 2)]; operator delete(v33); } v32 = v51; } while ( v31 != v51 ); LABEL_30: v32 = v50; goto LABEL_31; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source