// // SFXFolderPickerPopup::rebuildList from 0x72fa58 to 0x730174 (1820 bytes) // // 2 xrefs: // > SFXFolderPickerPopup::refreshList @ 0x730194 // > SFXFolderPickerPopup::init @ 0x730c8e // // 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:58:19 +0000 // char **__fastcall SFXFolderPickerPopup::rebuildList(char **this) { float v1; // s20 int v2; // r10 int v3; // r2 char v4; // r5 _DWORD *v5; // r0 MusicDownloadManager *v6; // r0 cocos2d::CCDictionary **v7; // r0 float v8; // r0 float v9; // r1 int v10; // r2 float *v11; // r4 float v12; // r1 _BOOL4 v13; // r2 int v14; // r3 int v15; // r4 int v16; // r8 _DWORD *v17; // r2 int v18; // r3 int *v19; // r2 unsigned int v20; // r4 int *v21; // r8 int v22; // r3 int v23; // t1 bool v24; // r0 int v25; // r2 char v26; // r3 _DWORD *v27; // r0 char v28; // r0 float *v29; // r3 int v30; // r1 int v31; // r2 int v32; // r9 float v33; // s16 float v34; // s21 float v35; // s20 int v36; // r3 int v37; // r11 char *v38; // r3 int v39; // s17 int v40; // r8 _BOOL4 v41; // r6 int v42; // r4 void (__fastcall *v43)(int, int *); // r7 int v44; // r1 void (__fastcall *v45)(int, int *); // r3 void (__fastcall *v46)(int, int *); // r6 cocos2d::CCSprite *v47; // r0 int v48; // r4 void (__fastcall *v49)(int, int *); // r6 __int64 v50; // r0 float v51; // s19 float v52; // s17 int v53; // r6 void (__fastcall *v54)(int, int *); // r7 void (__fastcall *v55)(int, int *); // r7 int v56; // r0 const char *v57; // r2 int v58; // r7 const char *v59; // r1 float v60; // s24 float v61; // r0 const char *v62; // r2 char *v63; // r0 int v64; // r7 float v65; // s17 cocos2d::CCLabelBMFont *v66; // r0 float v67; // s17 cocos2d::CCLabelBMFont *v68; // r6 void (__fastcall *v69)(cocos2d::CCLabelBMFont *, int *); // r7 void (__fastcall *v70)(cocos2d::CCLabelBMFont *, int *); // r7 _BYTE *v71; // r6 void (__fastcall *v72)(_BYTE *, int *); // r7 void (__fastcall *v73)(_BYTE *, int *); // r7 char *v74; // r11 float v75; // r1 void (__fastcall *v76)(int, int *); // [sp+8h] [bp-8Ch] void (__fastcall *v77)(int, int *); // [sp+8h] [bp-8Ch] void (__fastcall *v78)(int, int *); // [sp+8h] [bp-8Ch] int v79; // [sp+28h] [bp-6Ch] BYREF unsigned int (__fastcall *v80)(int, int); // [sp+2Ch] [bp-68h] BYREF _BYTE *v81; // [sp+30h] [bp-64h] BYREF float *v82; // [sp+34h] [bp-60h] float *v83; // [sp+38h] [bp-5Ch] float *v84; // [sp+3Ch] [bp-58h] BYREF float *v85; // [sp+40h] [bp-54h] float *v86; // [sp+44h] [bp-50h] int v87[3]; // [sp+48h] [bp-4Ch] BYREF float v88; // [sp+54h] [bp-40h] BYREF float v89; // [sp+58h] [bp-3Ch] _BOOL4 v90; // [sp+5Ch] [bp-38h] void *v91; // [sp+60h] [bp-34h] BYREF char *v92; // [sp+64h] [bp-30h] unsigned int v93; // [sp+68h] [bp-2Ch] int v94; // [sp+6Ch] [bp-28h] BYREF int v95; // [sp+70h] [bp-24h] int v96; // [sp+74h] [bp-20h] _BYTE v97[16]; // [sp+7Ch] [bp-18h] BYREF v2 = (int)this; v3 = (int)*(this + 141); if ( v3 ) { v4 = 1; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 320) + 292))(*(_DWORD *)(v3 + 320), 1); v91 = (void *)-1; if ( !std::__tree::__count_unique((_DWORD *)(v2 + 540), &v91) ) { v94 = 1; v5 = std::__tree::__count_unique((_DWORD *)(v2 + 540), &v94); v4 = (char)v5; if ( v5 ) v4 = 1; } v81 = nullptr; v82 = nullptr; v83 = nullptr; v84 = nullptr; v85 = nullptr; v86 = nullptr; v6 = (MusicDownloadManager *)memset(v87, 0, sizeof(v87)); v7 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState(v6); v87[0] = MusicDownloadManager::getCustomSFXRoot(v7); BYTE1(v87[2]) = v4; std::vector::__push_back_slow_path((void **)&v84, v87); while ( v84 != v85 ) { v8 = *(v85 - 3); v9 = *(v85 - 2); v10 = *((_DWORD *)v85 - 1); v85 -= 3; v11 = v82; v88 = v8; v89 = v9; v90 = v10; if ( v82 == v83 ) { std::vector::__push_back_slow_path((void **)&v81, (int *)&v88); } else { if ( v82 ) { v12 = v89; v13 = v90; *v82 = v88; v11[1] = v12; *((_DWORD *)v11 + 2) = v13; } v82 += 3; } v91 = nullptr; v92 = nullptr; v93 = 0; v14 = *(_DWORD *)(LODWORD(v88) + 112); if ( v14 ) { v17 = *(_DWORD **)(v14 + 52); if ( *v17 ) { v18 = *v17 + 0x40000000; v19 = (int *)v17[3]; v20 = (unsigned int)&v19[v18 - 1]; v21 = v19; while ( (unsigned int)v21 <= v20 ) { v23 = *v21++; v22 = v23; if ( !v23 ) break; if ( *(_BYTE *)(v22 + 68) ) { v94 = v22; if ( (unsigned int)v92 >= v93 ) { std::vector::__push_back_slow_path((int)&v91, &v94); } else { if ( v92 ) *(_DWORD *)v92 = v22; v92 += 4; } } } } } v80 = sub_72F002; std::__sort( (int)v91, v92, (int (__fastcall **)(_DWORD))&v80); v15 = ((v92 - (_BYTE *)v91) >> 2) - 1; v16 = 4 * v15; while ( v15 >= 0 ) { v24 = v90; v25 = *(_DWORD *)(*(_DWORD *)((char *)v91 + v16) + 72); v94 = *(_DWORD *)((char *)v91 + v16); v79 = v25; v95 = LODWORD(v89) + 1; if ( !v90 ) v24 = std::__tree::__count_unique((_DWORD *)(v2 + 528), &v79) != nullptr; v26 = BYTE1(v90); LOBYTE(v96) = v24; if ( BYTE1(v90) ) { v28 = BYTE1(v90); } else { v27 = std::__tree::__count_unique((_DWORD *)(v2 + 540), &v79); v26 = 0; v28 = v27 != nullptr; } BYTE2(v96) = v26; v29 = v85; BYTE1(v96) = v28; if ( v85 == v86 ) { std::vector::__push_back_slow_path((void **)&v84, &v94); } else { if ( v85 ) { v30 = v95; v31 = v96; *(_DWORD *)v85 = v94; *((_DWORD *)v29 + 1) = v30; *((_DWORD *)v29 + 2) = v31; } v85 += 3; } --v15; v16 -= 4; } if ( v91 ) { v92 -= 4 * ((unsigned int)(v92 - (_BYTE *)v91) >> 2); operator delete(v91); } } cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v88, (const cocos2d::CCSize *)(*(_DWORD *)(v2 + 564) + 324)); v32 = 0; v33 = v88 - 10.0; if ( *(_DWORD *)(v2 + 524) == 2 ) v1 = 30.0; v34 = v88 * 0.5; if ( *(_DWORD *)(v2 + 524) == 2 ) v35 = v33 - v1; else v35 = v33 - 8.0; while ( 1 ) { v36 = -1431655765 * (((char *)v82 - v81) >> 2); if ( v32 >= v36 ) break; v37 = 12 * v32; v38 = &v81[12 * v32]; v39 = *((_DWORD *)v38 + 1); v40 = *(_DWORD *)v38; if ( v38[8] && *(_DWORD *)(v40 + 72) == *(_DWORD *)(v2 + 552) ) *(_DWORD *)(v2 + 552) = 0; v41 = *(_DWORD *)(v2 + 524) != 2 && *(_DWORD *)(v40 + 72) == *(_DWORD *)(v2 + 552); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v94, 0.0, 0.0, 40.0, 40.0); v42 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v94); v43 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v42 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v94, v33 + v33, 44.0); v43(v42, &v94); (*(void (__fastcall **)(int, int))(*(_DWORD *)v42 + 80))(v42, 1056964608); if ( v41 ) { v44 = 130; } else if ( (v32 & 1) != 0 ) { v44 = 40; } else { v44 = 70; } (*(void (__fastcall **)(int, int))(*(_DWORD *)v42 + 456))(v42, v44); v45 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v42 + 480); if ( v41 ) { LOWORD(v94) = -16836; BYTE2(v94) = 40; } else { LOWORD(v94) = 0; BYTE2(v94) = 0; } v45(v42, &v94); v46 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v42 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v34, -16.0 - (float)((float)v32 * 24.0)); v46(v42, &v94); v47 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(*(_DWORD *)(v2 + 564) + 320) + 232))( *(_DWORD *)(*(_DWORD *)(v2 + 564) + 320), v42, 0); v48 = cocos2d::CCSprite::create(v47); v49 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v48 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v94, v33, 22.0); v49(v48, &v94); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 492))(v48, 1); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 468))(v48, 1); v50 = ((__int64 (__fastcall *)(int))*(_DWORD *)(*(_DWORD *)v48 + 164))(v48); v51 = *(float *)(v50 + 4) * 0.5; v52 = (float)((float)v39 * 14.0) + 8.0; v53 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"folderIcon_001.png", (const char *)HIDWORD(v50)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v53 + 80))(v53, 1053609165); v54 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v53 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, 0.0, 0.5); v54(v53, &v94); v55 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v52, v51); v55(v53, &v94); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 228))(v48, v53); v56 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v40 + 112)); sub_993B88(v97, 16, "%i", v56); v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v97, "chatFont.fnt", v57); (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 80))(v58, 1056964608); (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 512))(v58, 150); v76 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v58 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, 1.0, 0.5); v76(v58, &v94); v77 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v58 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v35, v51); v77(v58, &v94); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 228))(v48, v58); if ( *(_DWORD *)(v2 + 524) == 2 ) { if ( v81[v37 + 9] ) v63 = "GJ_checkOn_001.png"; else v63 = "GJ_checkOff_001.png"; v64 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v63, v59); (*(void (__fastcall **)(int, int))(*(_DWORD *)v64 + 80))(v64, 1056964608); v78 = *(void (__fastcall **)(int, int *))(*(_DWORD *)v64 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v33 - 14.0, v51); v78(v64, &v94); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 228))(v48, v64); } v60 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v53 + 164))(v53); v61 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v53 + 84))(v53)); v65 = v52 + (float)(v60 * v61); if ( (*(_BYTE *)(v40 + 76) & 1) != 0 ) v66 = *(cocos2d::CCLabelBMFont **)(v40 + 84); else v66 = (cocos2d::CCLabelBMFont *)(v40 + 77); v67 = v65 + 6.0; v68 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v66, "bigFont.fnt", v62); cocos2d::CCLabelBMFont::limitLabelWidth(v68, (float)(v35 - v67) - 28.0, 0.45, 0.15); v69 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v68 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, 0.0, 0.5); v69(v68, &v94); v70 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, int *))(*(_DWORD *)v68 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v67, v51); v70(v68, &v94); (*(void (__fastcall **)(int, cocos2d::CCLabelBMFont *))(*(_DWORD *)v48 + 228))(v48, v68); v91 = SFXFolderPickerPopup::onPickFolder; v92 = nullptr; v71 = (_BYTE *)CCMenuItemSpriteExtra::create(v48, 0, v2, (int)SFXFolderPickerPopup::onPickFolder, 0); (*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)v71 + 36))(v71, *(_DWORD *)(v40 + 72)); v72 = *(void (__fastcall **)(_BYTE *, int *))(*(_DWORD *)v71 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v94, v33, 24.0); v72(v71, &v94); CCMenuItemSpriteExtra::setSizeMult((int)v71, 1.0); v71[320] = 0; LOWORD(v79) = -1; BYTE2(v79) = -106; CCMenuItemSpriteExtra::setClickColor((int)v71); v73 = *(void (__fastcall **)(_BYTE *, int *))(*(_DWORD *)v71 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v94, v34, -16.0 - (float)((float)v32 * 24.0)); v73(v71, &v94); v74 = &v81[v37]; if ( v74[8] ) { (*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)v71 + 528))(v71, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 456))(v48, 90); } else if ( v74[10] ) { (*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)v71 + 528))(v71, (unsigned __int8)v74[8]); } (*(void (__fastcall **)(_DWORD, _BYTE *, int))(**(_DWORD **)(*(_DWORD *)(v2 + 564) + 320) + 232))( *(_DWORD *)(*(_DWORD *)(v2 + 564) + 320), v71, 1); ++v32; } if ( (float)((float)((float)(unsigned int)v36 * 24.0) + 8.0) >= v89 ) v75 = (float)((float)(unsigned int)v36 * 24.0) + 8.0; else v75 = v89; ScrollableContentLayer::setContentHeight(*(ScrollableContentLayer **)(v2 + 564), v75); std::__vector_base::~__vector_base((char **)&v84); return std::__vector_base::~__vector_base(&v81); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source