//
// MusicDownloadManager::mintCustomSFXID from 0x56bd72 to 0x56bd98 (38 bytes)
//
// 2 xrefs:
// > MusicDownloadManager::createCustomSFXPlacement @ 0x56e472
// > MusicDownloadManager::createCustomSFXFolder @ 0x56e568
//
// 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:33 +0000
//
int __fastcall MusicDownloadManager::mintCustomSFXID(MusicDownloadManager *this)
{
int CustomSFXObject; // r0
int v3; // r3
int result; // r0
while ( 1 )
{
CustomSFXObject = MusicDownloadManager::getCustomSFXObject(this, *((_DWORD *)this + 134));
v3 = *((_DWORD *)this + 134);
if ( !CustomSFXObject )
break;
*((_DWORD *)this + 134) = v3 + 1;
}
result = *((_DWORD *)this + 134);
*((_DWORD *)this + 134) = v3 + 1;
return result;
}