// // MusicDownloadManager::deleteCustomSFXObject from 0x572a40 to 0x572b80 (320 bytes) // // 3 xrefs: // > MusicDownloadManager::deleteCustomSFXObject @ 0x572ac8 // > MusicDownloadManager::importCustomSFXSetup @ 0x576464 // > SFXBrowser::executeBatchDelete @ 0x6c4940 // // 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:52:39 +0000 // int *__fastcall MusicDownloadManager::deleteCustomSFXObject(int *this, int a2) { int *v2; // r4 int *v3; // r6 int CustomSFXFolderForID; // r0 cocos2d::CCArray *v5; // r0 int v6; // r3 int v7; // r7 int v8; // r6 _DWORD *v9; // r2 int *v10; // r7 int *v11; // r6 int v12; // r1 int v13; // t1 unsigned int v14; // r1 int *v15; // r0 int v16; // r2 unsigned int v17; // r2 int *i; // r3 int v19; // r7 unsigned int v20; // r3 int v21; // r2 int v22; // [sp+4h] [bp-14h] BYREF char *v23; // [sp+8h] [bp-10h] BYREF char *v24; // [sp+Ch] [bp-Ch] char *v25; // [sp+10h] [bp-8h] v2 = this; v22 = a2; if ( a2 > 1 ) { this = (int *)MusicDownloadManager::getCustomSFXObject((MusicDownloadManager *)this, a2); v3 = this; if ( this ) { CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID((MusicDownloadManager *)v2, *(this + 14)); if ( CustomSFXFolderForID ) { v5 = *(cocos2d::CCArray **)(CustomSFXFolderForID + 112); if ( v5 ) cocos2d::CCArray::removeObject(v5, (cocos2d::CCObject *)v3, 1); } if ( *((_BYTE *)v3 + 68) ) { v23 = nullptr; v24 = nullptr; v25 = nullptr; v6 = v3[28]; if ( v6 ) { v9 = *(_DWORD **)(v6 + 52); if ( *v9 ) { v10 = (int *)v9[3]; v11 = &v10[*v9 - 1]; while ( v10 <= v11 ) { v13 = *v10++; v12 = v13; if ( !v13 ) break; if ( v24 == v25 ) { std::vector::__push_back_slow_path((int)&v23, (_DWORD *)(v12 + 72)); } else { if ( v24 ) *(_DWORD *)v24 = *(_DWORD *)(v12 + 72); v24 += 4; } } } } v7 = 0; v8 = (v24 - v23) >> 2; while ( v7 != v8 ) MusicDownloadManager::deleteCustomSFXObject((MusicDownloadManager *)v2, *(_DWORD *)&v23[4 * v7++]); std::__vector_base::~__vector_base(&v23); } std::__hash_table,std::equal_to,std::allocator>::__erase_unique( v2 + 111, (unsigned int *)&v22); v14 = 0; while ( 1 ) { v15 = (int *)v2[122]; v16 = v2[121]; if ( v14 >= ((int)v15 - v16) >> 3 ) break; v17 = v16 + 8 * v14; if ( *(_DWORD *)(v17 + 4) == v22 ) { for ( i = (int *)(v17 + 8); i != v15; *(i - 3) = *(i - 1) ) { v19 = *i; i += 2; *(i - 4) = v19; } v20 = (((unsigned int)i - v17 - 8) & 0xFFFFFFF8) + v17; while ( 1 ) { v21 = v2[122]; if ( v20 == v21 ) break; v2[122] = v21 - 8; } } else { ++v14; } } return (int *)cocos2d::CCDictionary::removeObjectForKey((cocos2d::CCDictionary *)v2[133], v22); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source