// // CustomSongWidget::updateWithMultiAssets from 0x4e5568 to 0x4e56f4 (396 bytes) // // 3 xrefs: // > LevelInfoLayer::levelDownloadFinished @ 0x49ce1a // > LevelInfoLayer::init @ 0x49e5d4 // > AudioAssetsPopup::init @ 0x761162 // // 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:51:04 +0000 // int __fastcall CustomSongWidget::updateWithMultiAssets(int a1, unsigned __int8 *a2, unsigned __int8 *a3, int a4) { int v8; // r3 int result; // r0 int v10; // r3 int v11; // r2 int v12; // r2 _DWORD *v13; // r1 int v14; // r5 char *v15; // r0 MusicDownloadManager *v16; // r0 char isSongDownloaded; // r11 int v18; // r5 char *v19; // r0 MusicDownloadManager *v20; // r0 char isSFXDownloaded; // r11 int v22; // [sp+4h] [bp-40h] int v23; // [sp+4h] [bp-40h] int v24; // [sp+14h] [bp-30h] BYREF int v25; // [sp+18h] [bp-2Ch] BYREF int v26; // [sp+1Ch] [bp-28h] int v27; // [sp+20h] [bp-24h] int v28; // [sp+24h] [bp-20h] BYREF int v29; // [sp+28h] [bp-1Ch] int v30; // [sp+2Ch] [bp-18h] int v31[2]; // [sp+30h] [bp-14h] BYREF char *v32; // [sp+38h] [bp-Ch] if ( *(_BYTE *)(a1 + 377) || ((v8 = *a2, result = v8 << 31, (v8 & 1) != 0) ? (v10 = *((_DWORD *)a2 + 1)) : (v10 = v8 >> 1), v10 || ((v11 = *a3, (v11 & 1) != 0) ? (v12 = *((_DWORD *)a3 + 1)) : (v12 = v11 >> 1), v12)) ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( a1 + 388, *(_DWORD **)(a1 + 392)); *(_DWORD *)(a1 + 388) = a1 + 392; v13 = *(_DWORD **)(a1 + 404); *(_DWORD *)(a1 + 396) = 0; *(_DWORD *)(a1 + 392) = 0; std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( a1 + 400, v13); *(_DWORD *)(a1 + 424) = a4; *(_DWORD *)(a1 + 408) = 0; *(_DWORD *)(a1 + 400) = a1 + 404; *(_DWORD *)(a1 + 404) = 0; v25 = 0; v26 = 0; v27 = 0; sub_4E3120(a2, &v25); v28 = 0; v29 = 0; v30 = 0; sub_4E3120(a3, &v28); v14 = v25; v22 = v26; while ( v14 != v22 ) { std::string::basic_string(v31, v14); if ( (v31[0] & 1) != 0 ) v15 = v32; else v15 = (char *)v31 + 1; v24 = atoi(v15); v16 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v24); isSongDownloaded = MusicDownloadManager::isSongDownloaded(v16, v24); *(_BYTE *)std::map::operator[]((int **)(a1 + 388), &v24) = isSongDownloaded; std::string::~string((int)v31); v14 += 12; } v18 = v28; v23 = v29; while ( v18 != v23 ) { std::string::basic_string(v31, v18); if ( (v31[0] & 1) != 0 ) v19 = v32; else v19 = (char *)v31 + 1; v24 = atoi(v19); v20 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v24); isSFXDownloaded = MusicDownloadManager::isSFXDownloaded(v20, v24); *(_BYTE *)std::map::operator[]((int **)(a1 + 400), &v24) = isSFXDownloaded; std::string::~string((int)v31); v18 += 12; } CustomSongWidget::updateMultiAssetInfo((CustomSongWidget *)a1, 1); std::__vector_base::~__vector_base((int)&v28); return std::__vector_base::~__vector_base((int)&v25); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source