//
// MusicDownloadManager::getAllSFXObjects from 0x95cc64 to 0x95cce0 (124 bytes)
//
// 2 xrefs:
// > SFXSearchResult::updateObjects @ 0x96ae10
// > ??> @ 0xaf048
//
// 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::getAllSFXObjects(MusicDownloadManager *this, unsigned __int8 a2)
{
int v3; // w21
__int64 v4; // x20
__int64 v5; // x0
__int64 v6; // x1
__int64 v7; // x19
cocos2d::CCArray *v8; // x0
cocos2d::CCObject *v9; // x1
__int64 v10; // x1
v3 = a2;
v4 = cocos2d::CCArray::create(this);
v5 = *((_QWORD *)this + 50);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 56);
if ( v6 )
{
v7 = *(_QWORD *)(v6 + 288);
v8 = (cocos2d::CCArray *)v4;
v9 = *(cocos2d::CCObject **)(v6 + 264);
if ( !v3 )
goto LABEL_7;
LABEL_4:
if ( *((_BYTE *)v9 + 72) )
{
if ( v7 )
goto LABEL_6;
}
else
{
LABEL_7:
while ( 1 )
{
cocos2d::CCArray::addObject(v8, v9);
if ( !v7 )
break;
LABEL_6:
v10 = v7;
v8 = (cocos2d::CCArray *)v4;
v7 = *(_QWORD *)(v7 + 288);
v9 = *(cocos2d::CCObject **)(v10 + 264);
if ( v3 )
goto LABEL_4;
}
}
}
}
return v4;
}