//
// EditorSFXManager::hasSoundsForAction from 0x77cdfc to 0x77ce6e (114 bytes)
//
// 8 xrefs:
// > EditorUI::playSoundForCreatedObject @ 0x4820ac
// > sub_72C870 @ 0x72c894
// > sub_72C870 @ 0x72c8a2
// > PlayLayer::tryShowDeathMarkers @ 0x72d656
// > PlayLayer::tryShowDeathMarkers @ 0x72d670
// > PlayLayer::tryShowDeathMarkers @ 0x72d68c
// > PlayLayer::tryShowDeathMarkers @ 0x72d6c4
// > EditorSFXManager::playAction @ 0x780338
//
// 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
//
cocos2d::CCArray *__fastcall EditorSFXManager::hasSoundsForAction(EditorSFXManager *this, unsigned int a2)
{
unsigned int v2; // r5
unsigned int v4; // r6
unsigned int v5; // r9
cocos2d::CCArray *result; // r0
cocos2d::CCArray *i; // r4
unsigned int v8; // r0
int v9; // r1
v2 = *((_DWORD *)this + 1);
if ( !v2 )
return nullptr;
v4 = v2 - 1;
if ( ((v2 - 1) & v2) != 0 )
v5 = a2 % v2;
else
v5 = v4 & a2;
result = *(cocos2d::CCArray **)(*(_DWORD *)this + 4 * v5);
if ( result )
{
for ( i = *(cocos2d::CCArray **)result; i; i = *(cocos2d::CCArray **)i )
{
v8 = *((_DWORD *)i + 1);
v9 = ((v2 - 1) & v2) != 0 ? v8 % v2 : v4 & v8;
if ( v9 != v5 )
break;
if ( *((_DWORD *)i + 2) == a2 )
{
result = *((cocos2d::CCArray **)i + 3);
if ( result )
{
result = *(cocos2d::CCArray **)result;
if ( result )
return (cocos2d::CCArray *)(cocos2d::CCArray::count(result) != 0);
}
return result;
}
}
return nullptr;
}
return result;
}