//
// EditorSFXManager::hasSoundsForAction from 0xcbf558 to 0xcbf604 (172 bytes)
//
// 9 xrefs:
// > EditorUI::playSoundForCreatedObject @ 0x7c21b4
// > sub_C36304 @ 0xc36348
// > sub_C36304 @ 0xc3636c
// > PlayLayer::tryShowDeathMarkers @ 0xc3782c
// > PlayLayer::tryShowDeathMarkers @ 0xc3786c
// > PlayLayer::tryShowDeathMarkers @ 0xc3789c
// > PlayLayer::tryShowDeathMarkers @ 0xc378cc
// > EditorSFXManager::playAction @ 0xcc4e24
// > ??> @ 0xb7370
//
// 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
//
bool __fastcall EditorSFXManager::hasSoundsForAction(EditorSFXManager *this, int a2)
{
unsigned __int64 v2; // x4
unsigned __int64 v3; // x7
unsigned __int64 v4; // x5
__int64 *v5; // x0
unsigned __int64 v6; // x2
unsigned __int64 v7; // x2
cocos2d::CCArray **v9; // x0
cocos2d::CCArray *v10; // x0
v2 = *((_QWORD *)this + 1);
if ( v2 )
{
v3 = v2 - 1;
v4 = ((v2 - 1) & v2) != 0 ? a2 % v2 : v3 & a2;
v5 = *(__int64 **)(*(_QWORD *)this + 8 * v4);
if ( v5 )
{
while ( 1 )
{
v5 = (__int64 *)*v5;
if ( !v5 )
break;
v6 = v5[1];
v7 = ((v2 - 1) & v2) != 0 ? v6 % v2 : v3 & v6;
if ( v4 != v7 )
break;
if ( *((_DWORD *)v5 + 4) == a2 )
{
v9 = (cocos2d::CCArray **)v5[3];
if ( v9 )
{
v10 = *v9;
if ( v10 )
return (unsigned int)cocos2d::CCArray::count(v10) != 0;
}
return 0;
}
}
}
}
return 0;
}