//
// EditorSFXManager::getFavoriteConfig from 0xcbfb5c to 0xcbfbd8 (124 bytes)
//
// 7 xrefs:
// > EditorSFXManager::applyFavoriteConfig @ 0xcc7924
// > EditorSoundConfigInfoLayer::onLocalDelete @ 0xccd5d8
// > EditorSoundConfigInfoLayer::likedItem @ 0xccd8f4
// > EditorSoundConfigInfoLayer::refreshActionButtons @ 0xccd96c
// > EditorSoundConfigInfoLayer::onFavorite @ 0xccdf04
// > EditorSoundConfigInfoLayer::downloadEditorSoundFinished @ 0xccf428
// > ??> @ 0x6d528
//
// This function is hookable on this platform (idp: arm, 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 13:06:16 +0000
//
__int64 __fastcall EditorSFXManager::getFavoriteConfig(EditorSFXManager *this, int a2)
{
cocos2d::CCArray *v3; // x0
int v5; // w0
unsigned int v6; // w1
unsigned int v7; // w19
__int64 result; // x0
bool v9; // cf
v3 = *((cocos2d::CCArray **)this + 18);
if ( !v3 )
return 0;
v5 = cocos2d::CCArray::count(v3);
v6 = 0;
v7 = 1;
if ( !v5 )
return 0;
while ( 1 )
{
result = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 18), v6);
if ( result )
{
if ( *(_DWORD *)(result + 316) == a2 )
break;
}
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 18));
v6 = v7++;
if ( v9 )
return 0;
}
return result;
}