//
// MusicDownloadManager::moveCustomSFXObject from 0x95c6e0 to 0x95c7e4 (260 bytes)
//
// 2 xrefs:
// > SFXBrowser::sfxFolderPicked @ 0xb912f0
// > ??> @ 0x9dff0
//
// 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 12:57:29 +0000
//
__int64 __fastcall MusicDownloadManager::moveCustomSFXObject(MusicDownloadManager *this, int a2, int a3)
{
__int64 CustomSFXObject; // x21
__int64 v6; // x0
__int64 v7; // x24
unsigned int v8; // w23
int v9; // w1
__int64 v10; // x1
int v11; // w19
bool v12; // zf
__int64 CustomSFXFolderForID; // x0
cocos2d::CCArray *v14; // x0
if ( a2 <= 1 )
return 0;
CustomSFXObject = MusicDownloadManager::getCustomSFXObject(this, a2);
v6 = MusicDownloadManager::getCustomSFXObject(this, a3);
v7 = v6;
if ( !v6 )
return 0;
if ( !CustomSFXObject )
return 0;
v8 = *(unsigned __int8 *)(v6 + 72);
if ( !*(_BYTE *)(v6 + 72) )
return 0;
v9 = *(_DWORD *)(CustomSFXObject + 60);
if ( v9 == a3 )
return v8;
if ( *(_BYTE *)(CustomSFXObject + 72) )
{
v10 = v6;
v11 = 0;
do
{
v12 = v11++ == 100;
if ( v12 || *(_DWORD *)(v10 + 76) == 1 )
break;
if ( v10 == CustomSFXObject )
return 0;
v10 = MusicDownloadManager::getCustomSFXObject(this, *(_DWORD *)(v10 + 60));
}
while ( v10 );
v9 = *(_DWORD *)(CustomSFXObject + 60);
}
CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID(this, v9);
if ( CustomSFXFolderForID )
{
v14 = *(cocos2d::CCArray **)(CustomSFXFolderForID + 152);
if ( v14 )
cocos2d::CCArray::removeObject(v14, (cocos2d::CCObject *)CustomSFXObject, 1);
}
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v7 + 152), (cocos2d::CCObject *)CustomSFXObject);
*(_DWORD *)(CustomSFXObject + 60) = a3;
return v8;
}