//
// EditorSFXManager::getMyConfigForSoundID from 0xcbfdd0 to 0xcbfe54 (132 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0xcce1d4
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0xccf8d4
// > ??> @ 0xdc7e0
//
// 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::getMyConfigForSoundID(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 + 19);
if ( a2 <= 0 )
return 0;
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 + 19), v6);
if ( result )
{
if ( a2 == *(_DWORD *)(result + 316) )
break;
}
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 19));
v6 = v7++;
if ( v9 )
return 0;
}
return result;
}