// // SFXBrowser::setupList from 0xb92150 to 0xb92ac4 (2420 bytes) // // 14 xrefs: // > SFXBrowser::onToggleCompactMode @ 0xb92b30 // > SFXBrowser::onToggleSearch @ 0xb92cc0 // > SFXBrowser::onToggleSearch @ 0xb92da4 // > SFXBrowser::textChanged @ 0xb92edc // > SFXBrowser::setupSFXBrowser @ 0xb9317c // > SFXBrowser::setupSFXBrowser @ 0xb93278 // > SFXBrowser::switchToView @ 0xb96840 // > SFXBrowser::refreshCustomList @ 0xb96a70 // > SFXBrowser::onExitFolder @ 0xb970f0 // > SFXBrowser::onExitFolder @ 0xb971c4 // > SFXBrowser::onPage @ 0xb97270 // > SFXBrowser::cellPerformedAction @ 0xb97e0c // > SFXBrowser::cellPerformedAction @ 0xb9813c // > @ 0x5aa78 // // 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:02:39 +0000 // __int64 __fastcall SFXBrowser::setupList(SFXBrowser *this, cocos2d::CCArray **a2) { unsigned __int64 v4; // x0 int v5; // w19 __int64 v6; // x0 cocos2d::CCString *v7; // x0 size_t v8; // x0 void (__fastcall *v9)(SFXBrowser *, __int64, __int64); // x19 __int64 v10; // x0 MusicDownloadManager *v11; // x0 unsigned int *v12; // x0 __int64 v13; // x0 cocos2d::CCString *v14; // x0 size_t v15; // x0 char *v16; // x1 cocos2d::CCObject *v17; // x0 __int64 v18; // x19 void (__fastcall *v19)(__int64, _BOOL8); // x22 _BOOL8 v20; // x1 SFXSearchResult *v21; // x0 int v22; // w1 __int64 *ActiveFolder; // x0 const void *v24; // x1 size_t v25; // x2 MusicDownloadManager *v26; // x23 __int64 v27; // x0 char *v28; // x1 char *v29; // x1 size_t v30; // x2 cocos2d::CCObject *v31; // x0 cocos2d::CCDirector *v32; // x0 __int64 v33; // x0 cocos2d::CCTouchDispatcher *v34; // x0 __int64 v35; // x0 cocos2d::CCArray *v36; // x23 cocos2d::CCArray *v37; // x22 int v38; // w21 signed int v39; // w24 signed int v40; // w19 cocos2d::CCObject *v41; // x0 cocos2d::CCDirector *v42; // x0 cocos2d::CCDirector *v43; // x0 int v44; // w3 __int64 v45; // x0 cocos2d::CCLayerColor *v46; // x0 __int64 v47; // x3 __int64 v48; // x21 void (__fastcall *v49)(__int64, _BYTE *); // x22 GameManager *v50; // x0 _BOOL4 v51; // w19 GameManager *v52; // x0 __int64 v53; // x21 int v54; // w0 const char *v55; // x1 void (__fastcall *v56)(SFXBrowser *, __int64, __int64); // x24 size_t v57; // x0 __int64 v58; // x0 __int64 v59; // x0 __int64 v60; // x1 unsigned int v61; // w21 __int64 v62; // x2 __int64 v63; // x0 __int64 v64; // x1 __int64 v65; // x0 _BOOL8 v66; // x1 __int64 v68; // x1 __int64 *v69; // x0 const void *v70; // x1 size_t v71; // x2 MusicDownloadManager *v72; // x24 __int64 v73; // x0 char *CString; // [xsp+68h] [xbp+68h] char *v75; // [xsp+68h] [xbp+68h] char *v76; // [xsp+68h] [xbp+68h] char *v77; // [xsp+68h] [xbp+68h] __int64 v78; // [xsp+70h] [xbp+70h] BYREF _BYTE v79[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v80[2]; // [xsp+80h] [xbp+80h] BYREF void *v81; // [xsp+90h] [xbp+90h] __int64 v82[2]; // [xsp+98h] [xbp+98h] BYREF void *v83; // [xsp+A8h] [xbp+A8h] MusicDownloadManager *v84; // [xsp+B0h] [xbp+B0h] BYREF __int64 v85; // [xsp+B8h] [xbp+B8h] void *v86; // [xsp+C0h] [xbp+C0h] __int64 v87[3]; // [xsp+C8h] [xbp+C8h] BYREF MusicDownloadManager *v88; // [xsp+E0h] [xbp+E0h] BYREF size_t v89; // [xsp+E8h] [xbp+E8h] void *v90; // [xsp+F0h] [xbp+F0h] MusicDownloadManager *v91; // [xsp+F8h] [xbp+F8h] BYREF size_t v92; // [xsp+100h] [xbp+100h] void *v93; // [xsp+108h] [xbp+108h] __int64 v94; // [xsp+110h] [xbp+110h] BYREF __int64 v95; // [xsp+118h] [xbp+118h] void *v96; // [xsp+120h] [xbp+120h] v4 = _stack_chk_guard; if ( !a2 ) return _stack_chk_guard; v5 = *((_DWORD *)this + 275); if ( v5 > 0 ) { v4 = *(unsigned int *)(MusicDownloadManager::sharedState(_stack_chk_guard) + 424); if ( v5 != (_DWORD)v4 ) { v6 = MusicDownloadManager::sharedState((MusicDownloadManager *)v4); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"SFX Library Updated to version %i", (const char *)*(unsigned int *)(v6 + 424)); v88 = nullptr; CString = (char *)cocos2d::CCString::getCString(v7); v89 = 0; v90 = nullptr; v8 = strlen(CString); std::string::__init((__int64 *)&v88, CString, v8); v9 = *(void (__fastcall **)(SFXBrowser *, __int64, __int64))(*(_QWORD *)this + 464LL); v91 = nullptr; v92 = 0; v93 = nullptr; if ( ((unsigned __int8)v88 & 1) != 0 ) { std::string::__init((__int64 *)&v91, v90, v89); } else { v91 = v88; v92 = v89; v93 = v90; } v94 = 0; v95 = 0; v96 = nullptr; std::string::__init(&v94, &byte_11B8890, 0); v10 = TextAlertPopup::create((char *)&v91, 150, (char *)&v94, 1.0, 0.5); v9(this, v10, 100); if ( (v94 & 1) != 0 ) operator delete(v96); if ( ((unsigned __int8)v91 & 1) != 0 ) operator delete(v93); v4 = (unsigned __int8)v88; if ( ((unsigned __int8)v88 & 1) != 0 ) operator delete(v90); } } v11 = (MusicDownloadManager *)*(unsigned int *)(MusicDownloadManager::sharedState((MusicDownloadManager *)v4) + 424); *((_DWORD *)this + 275) = (_DWORD)v11; v12 = (unsigned int *)MusicDownloadManager::sharedState(v11); v75 = (char *)v12[106]; v13 = MusicDownloadManager::sharedState((MusicDownloadManager *)v12); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"SFX Library Version %i. SFX Count: %i", v75, *(unsigned int *)(v13 + 428)); v80[0] = 0; v76 = (char *)cocos2d::CCString::getCString(v14); v80[1] = 0; v81 = nullptr; v15 = strlen(v76); std::string::__init(v80, v76, v15); v16 = (char *)v80 + 1; if ( (v80[0] & 1) != 0 ) v16 = (char *)v81; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 98) + 928LL))(*((_QWORD *)this + 98), v16); LoadingCircleSprite::hideCircle(*((LoadingCircleSprite **)this + 136)); v17 = *((cocos2d::CCObject **)this + 89); if ( v17 != (cocos2d::CCObject *)a2 ) { if ( v17 ) cocos2d::CCObject::release(v17); *((_QWORD *)this + 89) = a2; cocos2d::CCObject::retain((cocos2d::CCObject *)a2); v17 = *((cocos2d::CCObject **)this + 89); } v18 = *((_QWORD *)this + 102); v19 = *(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v18 + 344LL); if ( __PAIR64__(*((unsigned __int8 *)this + 872), *((_DWORD *)v17 + 35) & 0xFFFFFFFB) || !SFXSearchResult::getActiveFolder(v17) || *(int *)(SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)) + 60) <= 0 ) { v20 = 0; } else { v68 = *(_BYTE *)(*((_QWORD *)this + 89) + 104LL) >> 1; if ( (*(_BYTE *)(*((_QWORD *)this + 89) + 104LL) & 1) != 0 ) v68 = *(_QWORD *)(*((_QWORD *)this + 89) + 112LL); v20 = v68 == 0; } v19(v18, v20); v82[0] = 0; v82[1] = 0; v83 = nullptr; std::string::__init(v82, &byte_11B8890, 0); v84 = nullptr; v85 = 0; v86 = nullptr; std::string::__init((__int64 *)&v84, &byte_11B8890, 0); v21 = *((SFXSearchResult **)this + 89); v22 = *((_DWORD *)v21 + 35); switch ( v22 ) { case 1: std::string::assign(v82, "Favorites"); goto LABEL_32; case 2: std::string::assign(v82, "Recent"); goto LABEL_32; case 3: std::string::assign(v82, "This Level"); goto LABEL_32; } if ( v22 != 4 ) goto LABEL_24; if ( !SFXSearchResult::getActiveFolder(v21) ) { v21 = *((SFXSearchResult **)this + 89); LABEL_24: if ( SFXSearchResult::getActiveFolder(v21) ) { ActiveFolder = (__int64 *)SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)); if ( v82 != ActiveFolder + 10 ) { if ( (ActiveFolder[10] & 1) != 0 ) { v24 = (const void *)ActiveFolder[12]; v25 = ActiveFolder[11]; } else { v24 = (char *)ActiveFolder + 81; v25 = *((_BYTE *)ActiveFolder + 80) >> 1; } ActiveFolder = std::string::assign(v82, v24, v25); } v26 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)ActiveFolder); v27 = SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)); MusicDownloadManager::getSFXFolderPathForID(v26, *(_DWORD *)(v27 + 56), 1u, (__int64 *)&v88); if ( ((unsigned __int8)v84 & 1) != 0 ) { *(_BYTE *)v86 = 0; v85 = 0; } else { LOWORD(v84) = 0; } std::string::reserve((__int64 *)&v84, 0); v84 = v88; v85 = v89; v86 = v90; } goto LABEL_32; } v69 = (__int64 *)SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)); if ( v82 != v69 + 10 ) { if ( (v69[10] & 1) != 0 ) { v70 = (const void *)v69[12]; v71 = v69[11]; } else { v70 = (char *)v69 + 81; v71 = *((_BYTE *)v69 + 80) >> 1; } v69 = std::string::assign(v82, v70, v71); } v72 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v69); v73 = SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 89)); MusicDownloadManager::getCustomSFXFolderPath(v72, *(_DWORD *)(v73 + 76), 1u, v87); if ( ((unsigned __int8)v84 & 1) != 0 ) { *(_BYTE *)v86 = 0; v85 = 0; } else { LOWORD(v84) = 0; } std::string::reserve((__int64 *)&v84, 0); v86 = (void *)v87[2]; v84 = (MusicDownloadManager *)v87[0]; v85 = v87[1]; LABEL_32: v28 = (char *)v82 + 1; if ( (v82[0] & 1) != 0 ) v28 = (char *)v83; (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 92) + 928LL))(*((_QWORD *)this + 92), v28); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 92), 150.0, 0.5, 0.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 92) + 344LL))( *((_QWORD *)this + 92), *((unsigned __int8 *)this + 872) ^ 1u); if ( (MusicDownloadManager **)((char *)this + 760) != &v84 ) { if ( ((unsigned __int8)v84 & 1) != 0 ) { v29 = (char *)v86; v30 = v85; } else { v30 = (unsigned __int8)v84 >> 1; v29 = (char *)&v84 + 1; } std::string::assign((__int64 *)this + 95, v29, v30); } SFXBrowser::fitFolderPath(this); v31 = *((cocos2d::CCObject **)this + 90); if ( v31 ) cocos2d::CCObject::release(v31); v32 = *((cocos2d::CCDirector **)this + 91); if ( v32 ) { v33 = cocos2d::CCDirector::sharedDirector(v32); v34 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v33 + 160LL))(v33); cocos2d::CCTouchDispatcher::unregisterForcePrio(v34, *((cocos2d::CCObject **)this + 91)); v32 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 536LL))(*((_QWORD *)this + 91)); *((_QWORD *)this + 91) = 0; } v35 = cocos2d::CCArray::create(v32); v36 = a2[8]; v37 = (cocos2d::CCArray *)v35; v38 = *((_DWORD *)a2 + 24) * *((_DWORD *)this + 276); v39 = cocos2d::CCArray::count(v36); if ( v38 < v39 ) { v40 = v38; if ( v38 + *((_DWORD *)this + 276) > v38 ) { do { v41 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v36, v40); cocos2d::CCArray::addObject(v37, v41); ++v40; } while ( v38 + *((_DWORD *)this + 276) > v40 && v39 > v40 ); } } *((_QWORD *)this + 90) = v37; v42 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v37); v43 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v42); cocos2d::CCDirector::getWinSize(&v78, v43); if ( *((_BYTE *)this + 1111) ) v44 = 22; else v44 = 21; v45 = CustomListView::create(*((cocos2d::CCObject **)this + 90), (int)this + 672, 0, v44, 220.0, 340.0, 0.0); v46 = GJCommentListLayer::create(v45, (__int64)&byte_11B8890, -13487566, 1u, 340.0, 220.0); v47 = *((_QWORD *)this + 73); *((_QWORD *)this + 91) = v46; (*(void (__fastcall **)(__int64, cocos2d::CCLayerColor *, __int64))(*(_QWORD *)v47 + 464LL))(v47, v46, 9); v48 = *((_QWORD *)this + 91); v49 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v48 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v79, (float)(*(float *)&v78 - 340.0) * 0.5, (float)((float)(*((float *)&v78 + 1) - 220.0) * 0.5) + -10.0); v49(v48, v79); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 103) + 344LL))(*((_QWORD *)this + 103), 1); SFXBrowser::updateSelectionUI(this); v50 = (GameManager *)*(unsigned int *)(*((_QWORD *)this + 89) + 140LL); v51 = (_DWORD)v50 == 3; v52 = *(GameManager **)(GameManager::sharedState(v50) + 552); if ( v52 && (v53 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v52) + 552) + 3272LL)) != 0 ) { v54 = *(_DWORD *)(v53 + 664); if ( v54 ) { if ( v54 == 1 ) v55 = "Setup too large to share"; else v55 = "Shared folders removed, level share off"; v77 = (char *)v55; v56 = *(void (__fastcall **)(SFXBrowser *, __int64, __int64))(*(_QWORD *)this + 464LL); v91 = nullptr; v92 = 0; v93 = nullptr; v57 = strlen(v55); std::string::__init((__int64 *)&v91, v77, v57); v94 = 0; v95 = 0; v96 = nullptr; std::string::__init(&v94, &byte_11B8890, 0); v58 = TextAlertPopup::create((char *)&v91, 150, (char *)&v94, 0.9, 0.5); v56(this, v58, 100); if ( (v94 & 1) != 0 ) operator delete(v96); if ( ((unsigned __int8)v91 & 1) != 0 ) operator delete(v93); *(_DWORD *)(v53 + 664) = 0; } if ( (*(_BYTE *)(v53 + 608) & 1) != 0 ) v59 = *(_QWORD *)(v53 + 616); else v59 = *(_BYTE *)(v53 + 608) >> 1; v60 = *(_QWORD *)(v53 + 600); v61 = v59 != 0; v62 = 1; if ( v60 ) goto LABEL_63; } else { v61 = 0; } v62 = 0; LABEL_63: v63 = *((_QWORD *)this + 115); if ( v63 ) { v64 = 0; if ( v51 ) { v62 = v61 | (unsigned int)v62; if ( *((_BYTE *)this + 872) ) v64 = 0; else v64 = (unsigned int)v62; } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v63 + 344LL))(v63, v64, v62); } v65 = *((_QWORD *)this + 116); if ( v65 ) { v66 = 0; if ( v51 ) v66 = *((unsigned __int8 *)this + 872) < v61; (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v65 + 344LL))(v65, v66); } SFXBrowser::updateViewItems((__int64)this); SFXBrowser::updatePageLabel(this); if ( ((unsigned __int8)v84 & 1) != 0 ) operator delete(v86); if ( (v82[0] & 1) != 0 ) operator delete(v83); if ( (v80[0] & 1) != 0 ) operator delete(v81); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source