// // EditorSoundsLayer::buildContentForTab from 0x78a400 to 0x78a894 (1172 bytes) // // 1 xrefs: // > EditorSoundsLayer::showTab @ 0x78aa98 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:36 +0000 // void __fastcall EditorSoundsLayer::buildContentForTab(EditorSoundsLayer *this, int a2) { int v3; // r1 int v4; // s16 int v5; // r1 float v6; // s18 char *v7; // r11 float v8; // s20 float v9; // s19 const char *v10; // r0 char *v11; // r7 int v12; // r3 int v13; // r3 size_t v14; // r0 int v15; // r5 unsigned int v16; // r1 unsigned int v17; // r3 int v18; // r3 unsigned int v19; // r5 unsigned int v20; // r6 char *v21; // r3 int v22; // r3 char *v23; // r10 unsigned int v24; // r8 int v25; // t1 int v26; // r1 char *v27; // r0 int v28; // r5 int v29; // r6 void (__fastcall *v30)(int, char *); // r8 int v31; // r1 void (__fastcall *v32)(int, char *); // r3 void (__fastcall *v33)(int, char *); // r9 const char *v34; // r2 cocos2d::CCLabelBMFont *v35; // r6 void (__fastcall *v36)(cocos2d::CCLabelBMFont *, char *); // r7 void (__fastcall *v37)(cocos2d::CCLabelBMFont *, char *); // r7 EditorSFXManager *v38; // r0 EditorSFXManager *v39; // r0 unsigned int v40; // r2 int v41; // r6 const char *v42; // r2 int v43; // r8 void (__fastcall *v44)(int, char *); // r7 void (__fastcall *v45)(int, char *); // r3 char v46; // r2 void (__fastcall *v47)(int, char *); // r6 int v48; // r6 ButtonSprite *v49; // r7 void (__fastcall *v50)(int, char *); // r9 int v51; // r10 int v52; // r7 void (__fastcall *v53)(int, char *); // r6 float v54; // s16 float v55; // r1 int v56; // t1 float v57; // [sp+10h] [bp-8Ch] EditorSFXManager *v58; // [sp+14h] [bp-88h] int v59; // [sp+18h] [bp-84h] int v61; // [sp+24h] [bp-78h] char *v62; // [sp+28h] [bp-74h] int v63; // [sp+2Ch] [bp-70h] float v64; // [sp+50h] [bp-4Ch] BYREF float v65; // [sp+54h] [bp-48h] _BYTE v66[8]; // [sp+58h] [bp-44h] BYREF int *(__fastcall *v67)(EditorSoundsLayer *, cocos2d::CCObject *); // [sp+60h] [bp-3Ch] int v68; // [sp+64h] [bp-38h] int v69; // [sp+68h] [bp-34h] BYREF unsigned int v70; // [sp+6Ch] [bp-30h] char *v71; // [sp+70h] [bp-2Ch] char v72; // [sp+74h] [bp-28h] BYREF char v73; // [sp+75h] [bp-27h] char v74; // [sp+76h] [bp-26h] _BYTE v75[16]; // [sp+84h] [bp-18h] BYREF v3 = *((_DWORD *)this + 196); if ( !v3 || !*((_DWORD *)this + 197) ) return; v4 = 0; v61 = *((_DWORD *)this + 195); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v64, (const cocos2d::CCSize *)(v3 + 324)); v6 = v64; v7 = (char *)&unk_BF0D80; v8 = v64 * 0.5; v9 = v64 - 23.0; LABEL_4: v58 = *((EditorSFXManager **)v7 - 1); v10 = EditorSFXManager::actionToString(v58, v5); v11 = (char *)v10; if ( a2 != v61 ) { if ( *(_DWORD *)v7 == a2 ) goto LABEL_33; goto LABEL_42; } v12 = *((unsigned __int8 *)this + 768); if ( (v12 & 1) != 0 ) v13 = *((_DWORD *)this + 193); else v13 = v12 >> 1; if ( v13 ) { v69 = 0; v70 = 0; v71 = nullptr; v14 = strlen(v10); std::string::__init(&v69, v11, v14); v15 = *((unsigned __int8 *)this + 768); v59 = v15 & 1; if ( (v15 & 1) != 0 ) v16 = *((_DWORD *)this + 193); else v16 = v15 >> 1; if ( (v69 & 1) != 0 ) v17 = v70; else v17 = (int)(unsigned __int8)v69 >> 1; if ( v16 > v17 ) goto LABEL_31; v18 = v70; v19 = v15 >> 1; v20 = 0; if ( (v69 & 1) == 0 ) v18 = (int)(unsigned __int8)v69 >> 1; v63 = v18; v21 = v71; if ( (v69 & 1) == 0 ) v21 = (char *)&v69 + 1; v62 = v21; LABEL_21: v22 = v59 ? *((_DWORD *)this + 193) : v19; if ( v20 > v63 - v22 ) { LABEL_31: v28 = 0; goto LABEL_32; } v23 = &v62[v20]; while ( 1 ) { v24 = v23 - &v62[v20]; if ( v59 ) { if ( v24 >= *((_DWORD *)this + 193) ) goto LABEL_49; v25 = (unsigned __int8)*v23++; v26 = tolower(v25); v27 = *((char **)this + 194); } else { if ( v24 >= v19 ) { LABEL_49: v28 = 1; LABEL_32: std::string::~string((int)&v69); if ( v28 ) { LABEL_33: cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v72, 0.0, 0.0, 40.0, 40.0); v29 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v72); v30 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v29 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v72, v6, 30.0); v30(v29, &v72); if ( (v4 & 1) != 0 ) v31 = 40; else v31 = 70; (*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 456))(v29, v31); v32 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v29 + 480); v72 = 0; v73 = 0; v74 = 0; v32(v29, &v72); v33 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, v8, -20.0 - (float)((float)v4 * 32.0)); v33(v29, &v72); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 196) + 320) + 232))( *(_DWORD *)(*((_DWORD *)this + 196) + 320), v29, 0); v35 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)v11, "bigFont.fnt", v34); v36 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v35 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 0.0, 0.5); v36(v35, &v72); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v35 + 80))(v35, 1055286886); cocos2d::CCLabelBMFont::limitLabelWidth(v35, v6 - 70.0, 0.45, 0.25); v37 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 10.0, -20.0 - (float)((float)v4 * 32.0)); v37(v35, &v72); v38 = (EditorSFXManager *)(*(int (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(*((_DWORD *)this + 196) + 320) + 232))( *(_DWORD *)(*((_DWORD *)this + 196) + 320), v35, 1); v39 = (EditorSFXManager *)EditorSFXManager::sharedState(v38); v41 = EditorSFXManager::soundCountForAction(v39, (unsigned int)v58, v40); sub_993B88(v75, 16, "%d", v41); v43 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v75, "bigFont.fnt", v42); v44 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v43 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, 1.0, 0.5); v44(v43, &v72); (*(void (__fastcall **)(int, int))(*(_DWORD *)v43 + 80))(v43, 1056964608); v45 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v43 + 536); if ( v41 <= 0 ) { v46 = -76; v72 = -76; v73 = -76; } else { v46 = 100; v72 = 100; v73 = -1; } v74 = v46; v45(v43, &v72); v47 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v43 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, v9 - 24.0, -20.0 - (float)((float)v4 * 32.0)); v47(v43, &v72); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(*((_DWORD *)this + 196) + 320) + 232))( *(_DWORD *)(*((_DWORD *)this + 196) + 320), v43, 1); v49 = ButtonSprite::create( (ButtonSprite *)"+", &byte_9[1], 0, 0.6, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41B00000, v57); v48 = *((_DWORD *)v49 + 134); v50 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v48 + 92); v51 = (*(int (__fastcall **)(int))(*(_DWORD *)v48 + 96))(v48); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v66, 0.25, 0.0); cocos2d::CCPoint::operator+(&v72, v51, v66); v50(v48, &v72); v67 = EditorSoundsLayer::onActionRow; v68 = 0; v52 = CCMenuItemSpriteExtra::create((int)v49, 0, (int)this, (int)EditorSoundsLayer::onActionRow, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v52 + 36))(v52, (int)v58 + 20000); v53 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v52 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v72, v9, -20.0 - (float)((float)v4 * 32.0)); v53(v52, &v72); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 197) + 228))(*((_DWORD *)this + 197), v52); ++v4; } LABEL_42: v7 += 8; if ( v7 == "itorSoundsLayer" ) break; goto LABEL_4; } v56 = (unsigned __int8)*v23++; v26 = tolower(v56); v27 = (char *)this + 769; } if ( v26 != tolower((unsigned __int8)v27[v24]) ) { ++v20; goto LABEL_21; } } } v54 = (float)v4; if ( (float)((float)(v54 * 32.0) + 8.0) >= v65 ) v55 = (float)(v54 * 32.0) + 8.0; else v55 = v65; ScrollableContentLayer::setContentHeight(*((ScrollableContentLayer **)this + 196), v55); }
GD Web Decomp Icon

GD Web Decomp

Raw Source