//
// EditorSFXManager::removeFavoriteConfig from 0x14018b750 to 0x14018b7e1 (145 bytes)
//
// 5 xrefs:
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198ff7
// > ??> @ 0x14089ec84
// > ??> @ 0x14089ec98
// > ??> @ 0x14089eca8
// > ??> @ 0x140918f2c
//
// This function is hookable on this platform (idp: pc, 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 11:27:40 +0000
//
void __fastcall EditorSFXManager::removeFavoriteConfig(__int64 a1, int a2)
{
cocos2d::CCArray *v4; // rcx
unsigned int v5; // ebx
struct cocos2d::CCObject *v6; // rax
v4 = *(cocos2d::CCArray **)(a1 + 208);
if ( v4 )
{
v5 = 0;
if ( cocos2d::CCArray::count(v4) )
{
while ( 1 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v5);
if ( v6 )
{
if ( *((_DWORD *)v6 + 80) == a2 )
break;
}
if ( ++v5 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 208)) )
return;
}
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v5, 1);
}
}
}