//
// MusicDownloadManager::getAllSFXObjects from 0x100596a10 to 0x100596ac7 (183 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllSFXObjects(MusicDownloadManager *a1, bool a2)
{
cocos2d::CCArray *v2; // rbx
cocos2d::CCDictionary *m_sfxObjects; // rax
cocos2d::CCDictElement *m_pElements; // r12
_QWORD *next; // r15
cocos2d::CCObject *m_pObject; // rsi
void *v7; // r12
__int64 v8; // rsi
v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2);
m_sfxObjects = a1->m_sfxObjects;
if ( m_sfxObjects )
{
m_pElements = m_sfxObjects->m_pElements;
if ( m_pElements )
{
next = m_pElements->hh.next;
if ( a2 )
{
m_pObject = m_pElements->m_pObject;
v7 = m_pElements->hh.next;
if ( LOBYTE(m_pObject[1].m_nTag) )
goto LABEL_6;
LABEL_5:
sub_10071FCD0(v2, m_pObject);
LABEL_6:
while ( v7 )
{
m_pObject = *((cocos2d::CCObject **)v7 + 33);
v7 = *((void **)v7 + 36);
if ( !LOBYTE(m_pObject[1].m_nTag) )
goto LABEL_5;
}
}
else
{
sub_10071FCD0(v2, m_pElements->m_pObject);
while ( next )
{
v8 = next[33];
next = (_QWORD *)next[36];
sub_10071FCD0(v2, v8);
}
}
}
}
return v2;
}