//
// EditorSFXManager::collectAllSFXIDs from 0x77d94c to 0x77d9ce (130 bytes)
//
// 2 xrefs:
// > EditorSFXManager::downloadAllMissing @ 0x77d9e8
// > EditorSoundsSettingsPopup::onDownloadAll @ 0x78bc3c
//
// 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:59:25 +0000
//
EditorSFXManager *__fastcall EditorSFXManager::collectAllSFXIDs(EditorSFXManager *this, int a2)
{
_DWORD *i; // r7
cocos2d::CCArray **v4; // r6
unsigned int j; // r5
int v6; // r0
int v7; // r2
int *v8; // r3
int v9; // lr
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
for ( i = *(_DWORD **)(a2 + 8); i; i = (_DWORD *)*i )
{
v4 = (cocos2d::CCArray **)i[3];
if ( v4 && *v4 )
{
for ( j = 0; j < cocos2d::CCArray::count(*v4); ++j )
{
v6 = cocos2d::CCArray::objectAtIndex(*v4, j);
if ( v6 )
{
v7 = *(_DWORD *)(v6 + 1660);
if ( v7 > 0 )
{
v8 = *(int **)this;
while ( v8 != *((int **)this + 1) )
{
v9 = *v8++;
if ( v9 == v7 )
goto LABEL_17;
}
if ( v8 == *((int **)this + 2) )
{
std::vector::__push_back_slow_path((int)this, (_DWORD *)(v6 + 1660));
}
else
{
if ( v8 )
*v8 = v7;
*((_DWORD *)this + 1) += 4;
}
}
}
LABEL_17:
;
}
}
}
return this;
}