//
// EditorSFXManager::removeFavoriteConfig from 0x77d4a0 to 0x77d4de (62 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::onFavorite @ 0x78521a
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x785844
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788b4a
//
// 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:24 +0000
//
unsigned int __fastcall EditorSFXManager::removeFavoriteConfig(unsigned int this, int a2)
{
unsigned int v2; // r5
unsigned int i; // r4
int v5; // r0
v2 = this;
if ( *(_DWORD *)(this + 72) )
{
for ( i = 0; ; ++i )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 72));
if ( i >= this )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 72), i);
if ( v5 && *(_DWORD *)(v5 + 264) == a2 )
return cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v2 + 72), i, 1);
}
}
return this;
}