//
// MusicDownloadManager::getAllSFXObjects from 0x56bfc2 to 0x56c00e (76 bytes)
//
// 1 xrefs:
// > SFXSearchResult::updateObjects @ 0x5714d2
//
// 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
//
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllSFXObjects(MusicDownloadManager *this, int a2)
{
cocos2d::CCArray *v4; // r0
int v5; // r3
cocos2d::CCArray *v6; // r5
int v7; // r3
int v8; // r4
cocos2d::CCObject *v9; // r1
int v10; // r2
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
v5 = *((_DWORD *)this + 77);
v6 = v4;
if ( v5 )
{
v7 = *(_DWORD *)(v5 + 52);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = *(cocos2d::CCObject **)(v7 + 260);
if ( !*((_BYTE *)v9 + 68) || !a2 )
cocos2d::CCArray::addObject(v6, v9);
if ( v8 )
v10 = *(_DWORD *)(v8 + 272);
else
v10 = 0;
v7 = v8;
v8 = v10;
}
}
return v6;
}