// // MusicDownloadManager::noteSFXUsed from 0x574f48 to 0x575014 (204 bytes) // // 1 xrefs: // > SFXBrowser::cellPerformedAction @ 0x6c91a4 // // 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:41 +0000 // char **__fastcall MusicDownloadManager::noteSFXUsed(char **this, int a2, int a3) { char **v3; // r4 char *v4; // r3 int v5; // r2 char *v6; // r6 char *v7; // r2 char *v8; // r2 char *v9; // r3 char *v10; // r2 char *v11; // r3 int v12; // [sp+4h] [bp-18h] BYREF int v13; // [sp+Ch] [bp-10h] BYREF int v14; // [sp+10h] [bp-Ch] v3 = this; v12 = a2; if ( a2 > 0 ) { v4 = *(this + 121); v5 = a3 & ~(a3 >> 31); v6 = *(this + 122); v13 = a2; v14 = v5; while ( v4 != v6 ) { if ( *(_DWORD *)v4 == a2 && *((_DWORD *)v4 + 1) == v5 ) { v7 = v4; while ( 1 ) { v7 += 8; if ( v7 == v6 ) break; if ( *(_DWORD *)v7 != v13 || *((_DWORD *)v7 + 1) != v14 ) { *(_DWORD *)v4 = *(_DWORD *)v7; v4 += 8; *((_DWORD *)v4 - 1) = *((_DWORD *)v7 + 1); } } v6 = v4; break; } v4 += 8; } if ( v6 != *(this + 122) ) { while ( 1 ) { v9 = *(this + 122); if ( v6 == v9 ) break; *(this + 122) = v9 - 8; } } std::vector>::insert(this + 121, *(this + 121), (char *)&v13); v8 = v3[121]; if ( v3[122] - v8 > 247 ) { v10 = v8 + 240; while ( 1 ) { v11 = v3[122]; if ( v10 == v11 ) break; v3[122] = v11 - 8; } } this = (char **)std::map::operator[]((int **)v3 + 127, &v12); ++*this; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source