// // EditorSFXManager::downloadAllMissing from 0xcc06f4 to 0xcc0858 (356 bytes) // // 2 xrefs: // > EditorSoundsSettingsPopup::onDownloadAll @ 0xcd838c // > @ 0xfb320 // // 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:17 +0000 // __int64 __fastcall EditorSFXManager::downloadAllMissing(EditorSFXManager *this) { int **v1; // x0 unsigned int *v2; // x20 unsigned int *v3; // x22 unsigned int v4; // w21 MusicDownloadManager *v5; // x0 MusicDownloadManager *v6; // x0 __int64 v7; // x1 MusicDownloadManager *v8; // x0 __int64 v10; // x0 void *v11; // [xsp+48h] [xbp+48h] BYREF void *v12; // [xsp+50h] [xbp+50h] __int64 v13[3]; // [xsp+60h] [xbp+60h] BYREF v1 = EditorSFXManager::collectAllSFXIDs(this, (int **)&v11); v2 = (unsigned int *)v11; v3 = (unsigned int *)v12; if ( v11 != v12 ) { while ( 1 ) { v4 = *v2; v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v1); MusicDownloadManager::pathForSFX(v13, v5, v4); v6 = (MusicDownloadManager *)LOBYTE(v13[0]); v7 = LOBYTE(v13[0]) >> 1; if ( (v13[0] & 1) != 0 ) v7 = v13[1]; if ( v7 && (v10 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)LOBYTE(v13[0])), v6 = (MusicDownloadManager *)(*(unsigned __int8 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 160LL))( v10, v13), (_BYTE)v6) ) { v1 = (int **)LOBYTE(v13[0]); if ( (v13[0] & 1) != 0 ) LABEL_15: operator delete((void *)v13[2]); } else { v8 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v6); MusicDownloadManager::downloadSFX(v8, v4); v1 = (int **)LOBYTE(v13[0]); if ( (v13[0] & 1) != 0 ) goto LABEL_15; } if ( v3 == ++v2 ) { v3 = (unsigned int *)v11; break; } } } if ( v3 ) { if ( v12 != v3 ) v12 = (char *)v12 + 4 * ~((unsigned __int64)((char *)v12 - 4 - (char *)v3) >> 2); operator delete(v3); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source