// // EditorSoundsLayer::buildContentForTab from 0xcd6064 to 0xcd66f0 (1676 bytes) // // 2 xrefs: // > EditorSoundsLayer::showTab @ 0xcd69f4 // > @ 0xf8260 // // 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:30 +0000 // __int64 __fastcall EditorSoundsLayer::buildContentForTab(EditorSoundsLayer *this, int a2) { __int64 v3; // x1 float v4; // s10 const char *i; // x26 __int64 v6; // x1 size_t v7; // x0 unsigned __int8 v8; // w24 int v9; // w21 unsigned __int64 v10; // x1 int v11; // w0 unsigned __int64 v12; // x24 unsigned __int64 v13; // x20 unsigned __int64 v14; // x1 char *v15; // x23 unsigned __int64 v16; // x27 unsigned __int64 v17; // x0 unsigned __int64 v18; // x26 int v19; // w19 int v20; // w19 int v21; // w25 __int64 v22; // x22 void (__fastcall *v23)(__int64, _QWORD *); // x24 __int64 v24; // x1 void (__fastcall *v25)(__int64, _QWORD *); // x2 void (__fastcall *v26)(__int64, _QWORD *); // x24 const char *v27; // x2 cocos2d::CCLabelBMFont *v28; // x22 void (__fastcall *v29)(cocos2d::CCLabelBMFont *, _QWORD *); // x24 void (__fastcall *v30)(cocos2d::CCLabelBMFont *, _QWORD *); // x24 EditorSFXManager *v31; // x0 EditorSFXManager *v32; // x0 const char *v33; // x2 __int64 v34; // x21 void (__fastcall *v35)(__int64, _QWORD *); // x23 void (__fastcall *v36)(__int64, _QWORD *); // x2 void (__fastcall *v37)(__int64, _QWORD *); // x23 const char *v38; // x6 __int64 v39; // x0 __int64 v40; // x20 __int64 v41; // x21 void (__fastcall *v42)(__int64, _QWORD *); // x23 __int64 v43; // x24 __int64 v44; // x20 void (__fastcall *v45)(__int64, _QWORD *); // x21 float v46; // s0 int v48; // [xsp+ACh] [xbp+ACh] __int64 v49; // [xsp+C0h] [xbp+C0h] const char *v50; // [xsp+C8h] [xbp+C8h] cocos2d::CCLabelBMFont *v51; // [xsp+D0h] [xbp+D0h] int v52; // [xsp+D8h] [xbp+D8h] float v54; // [xsp+E0h] [xbp+E0h] BYREF float v55; // [xsp+E4h] [xbp+E4h] char v56[8]; // [xsp+E8h] [xbp+E8h] BYREF _QWORD v57[2]; // [xsp+F0h] [xbp+F0h] BYREF __int64 v58; // [xsp+100h] [xbp+100h] BYREF unsigned __int64 v59; // [xsp+108h] [xbp+108h] char *v60; // [xsp+110h] [xbp+110h] char v61[16]; // [xsp+118h] [xbp+118h] BYREF v3 = *((_QWORD *)this + 144); if ( !v3 || !*((_QWORD *)this + 145) ) return _stack_chk_guard; v49 = *((unsigned int *)this + 286); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v54, (const cocos2d::CCSize *)(v3 + 424)); v4 = v54; for ( i = "d"; i != "Object"; i += 8 ) { while ( 1 ) { v52 = *(_DWORD *)i; v51 = (cocos2d::CCLabelBMFont *)EditorSFXManager::actionToString((EditorSFXManager *)*(unsigned int *)i); if ( (_DWORD)v49 == a2 ) break; if ( *((_DWORD *)i + 1) != a2 ) goto LABEL_5; LABEL_30: v21 = HIDWORD(v49); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v57, 0.0, 0.0, 40.0, 40.0); v22 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v57); v23 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v22 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v57, v4, 30.0); v23(v22, v57); if ( (v49 & 0x100000000LL) != 0 ) v24 = 40; else v24 = 70; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 912LL))(v22, v24); v25 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v22 + 960LL); LOWORD(v57[0]) = 0; BYTE2(v57[0]) = 0; v25(v22, v57); v26 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v4 * 0.5, -20.0 - (float)((float)SHIDWORD(v49) * 32.0)); v26(v22, v57); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 144) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 144) + 416LL), v22, 0); v28 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v51, "bigFont.fnt", v27); v29 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD *))(*(_QWORD *)v28 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 0.5); v29(v28, v57); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v28 + 160LL))(v28, 0.45); cocos2d::CCLabelBMFont::limitLabelWidth(v28, v4 - 70.0, 0.45, 0.25); v30 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _QWORD *))(*(_QWORD *)v28 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 10.0, -20.0 - (float)((float)SHIDWORD(v49) * 32.0)); v30(v28, v57); v31 = (EditorSFXManager *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(*((_QWORD *)this + 144) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 144) + 416LL), v28, 1); v32 = (EditorSFXManager *)EditorSFXManager::sharedState(v31); LODWORD(v28) = EditorSFXManager::soundCountForAction(v32, v52); snprintf(v61, 0x10u, "%d", (_DWORD)v28); v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v61, "bigFont.fnt", v33); v35 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v34 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 1.0, 0.5); v35(v34, v57); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v34 + 160LL))(v34, 0.5); v36 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v34 + 1072LL); if ( (int)v28 <= 0 ) { LOWORD(v57[0]) = -19276; BYTE2(v57[0]) = -76; } else { LOWORD(v57[0]) = -156; BYTE2(v57[0]) = 100; } ++HIDWORD(v49); i += 8; v36(v34, v57); v37 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, (float)(v4 - 23.0) - 24.0, -20.0 - (float)((float)v21 * 32.0)); v37(v34, v57); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(*((_QWORD *)this + 144) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 144) + 416LL), v34, 1); v39 = ButtonSprite::create( (ButtonSprite *)"+", &byte_9[1], 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v38, 22.0); v40 = *(_QWORD *)(v39 + 624); v41 = v39; v42 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v40 + 184LL); v43 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 192LL))(v40); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 0.25, 0.0); cocos2d::CCPoint::operator+(v57, v43); v42(v40, v57); v44 = CCMenuItemSpriteExtra::create(v41, 0, (__int64)this, (__int64)EditorSoundsLayer::onActionRow, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v44 + 72LL))(v44, (unsigned int)(v52 + 20000)); v45 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, v4 - 23.0, -20.0 - (float)((float)v21 * 32.0)); v45(v44, v57); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 145) + 456LL))(*((_QWORD *)this + 145), v44); if ( i == "Object" ) goto LABEL_36; } v6 = *((_BYTE *)this + 1120) >> 1; if ( (*((_BYTE *)this + 1120) & 1) != 0 ) v6 = *((_QWORD *)this + 141); if ( !v6 ) break; v58 = 0; v59 = 0; v60 = nullptr; v7 = strlen((const char *)v51); std::string::__init(&v58, v51, v7); v8 = *((_BYTE *)this + 1120); v9 = v8 & 1; v10 = v8 >> 1; if ( (v8 & 1) != 0 ) v10 = *((_QWORD *)this + 141); v48 = v58 & 1; if ( v48 ) { if ( v59 < v10 ) goto LABEL_43; v11 = (int)(unsigned __int8)v58 >> 1; } else { v11 = (int)(unsigned __int8)v58 >> 1; if ( v10 > v11 ) continue; } v12 = v8 >> 1; v13 = 0; v14 = v59; v15 = v60; if ( !v48 ) { v14 = v11; v15 = (char *)&v58 + 1; } v50 = i; v16 = v14; while ( 1 ) { v17 = v12; if ( v9 ) v17 = *((_QWORD *)this + 141); if ( v13 > v16 - v17 ) break; v18 = 0; if ( v9 ) { LABEL_22: if ( v18 >= *((_QWORD *)this + 141) ) goto LABEL_28; v19 = tolower((unsigned __int8)v15[v13 + v18]); if ( v19 != tolower(*(unsigned __int8 *)(*((_QWORD *)this + 142) + v18)) ) goto LABEL_27; goto LABEL_24; } while ( 1 ) { if ( v18 >= v12 ) { LABEL_28: i = v50; if ( v48 ) operator delete(v60); goto LABEL_30; } v20 = tolower((unsigned __int8)v15[v13 + v18]); if ( v20 != tolower(*((unsigned __int8 *)this + v18 + 1121)) ) break; LABEL_24: ++v18; if ( v9 ) goto LABEL_22; } LABEL_27: ++v13; } i = v50; if ( !v48 ) continue; LABEL_43: operator delete(v60); LABEL_5: ; } LABEL_36: v46 = (float)((float)SHIDWORD(v49) * 32.0) + 8.0; if ( v46 < v55 ) v46 = v55; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 144), v46); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source