//
// EditorSFXManager::getMyConfigForSoundID from 0x14018b870 to 0x14018b8e1 (113 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::deleteEditorSoundFinished @ 0x140198f6b
// > ??> @ 0x140918f68
//
// 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
//
struct cocos2d::CCObject *__fastcall EditorSFXManager::getMyConfigForSoundID(__int64 a1, int a2)
{
cocos2d::CCArray *v4; // rcx
unsigned int v5; // ebx
struct cocos2d::CCObject *result; // rax
v4 = *(cocos2d::CCArray **)(a1 + 216);
if ( !v4 )
return nullptr;
if ( a2 <= 0 )
return nullptr;
v5 = 0;
if ( !cocos2d::CCArray::count(v4) )
return nullptr;
while ( 1 )
{
result = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 216), v5);
if ( result )
{
if ( *((_DWORD *)result + 80) == a2 )
break;
}
if ( ++v5 >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 216)) )
return nullptr;
}
return result;
}