//
// EditorSFXManager::hasSoundsForAction from 0x140185a50 to 0x140185b0c (188 bytes)
//
// 26 xrefs:
// > EditorUI::toggleMode @ 0x1401afdbe
// > EditorUI::playSoundForCreatedObject @ 0x1401b2788
// > EditorUI::toggleSwipe @ 0x1401b3492
// > EditorUI::toggleFreeMove @ 0x1401b356c
// > EditorUI::toggleSnap @ 0x1401b3678
// > EditorUI::toggleEnableRotate @ 0x1401b3762
// > EditorUI::onHideUIBtn @ 0x1401b3cdb
// > EditorUI::onShowUIBtn @ 0x1401b3def
// > EditorUI::editObjectSpecial @ 0x1401bd508
// > EditorUI::editObjectSpecial @ 0x1401bdbff
// > EditorUI::editObjectSpecial @ 0x1401bdcc9
// > EditorUI::editGroup @ 0x1401be7ac
// > EditorUI::handleEditorAction @ 0x1401c2b53
// > EditorUI::handleEditorAction @ 0x1401c2f3d
// > EditorUI::handleEditorAction @ 0x1401c3381
// > EditorUI::handleEditorAction @ 0x1401c4408
// > EditorUI::onCopyState @ 0x1401c705b
// > EditorUI::onPasteState @ 0x1401c7133
// > EditorUI::onPasteColor @ 0x1401c72fb
// > sub_14051E830 @ 0x14051e895
// > sub_14051E830 @ 0x14051e8b7
// > PlayLayer::tryShowDeathMarkers @ 0x140520564
// > PlayLayer::tryShowDeathMarkers @ 0x1405205aa
// > PlayLayer::tryShowDeathMarkers @ 0x1405205c2
// > PlayLayer::tryShowDeathMarkers @ 0x1405205fb
// > ??> @ 0x140918e00
//
// 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:38 +0000
//
bool __fastcall EditorSFXManager::hasSoundsForAction(_QWORD *a1, int a2)
{
__int64 v2; // r8
__int64 *v3; // rcx
__int64 v4; // rax
__int64 v5; // rcx
cocos2d::CCArray **v6; // rcx
cocos2d::CCArray *v7; // rcx
bool result; // al
v2 = a1[1];
v3 = (__int64 *)(a1[3]
+ 16
* (a1[6]
& (0x100000001B3LL
* ((0x100000001B3LL
* (BYTE2(a2)
^ (0x100000001B3LL
* (BYTE1(a2) ^ (0x100000001B3LL * ((unsigned __int8)a2 ^ 0xCBF29CE484222325uLL))))))
^ HIBYTE(a2)))));
v4 = v3[1];
if ( v4 != v2 )
{
v5 = *v3;
if ( a2 == *(_DWORD *)(v4 + 16) )
goto LABEL_7;
while ( v4 != v5 )
{
v4 = *(_QWORD *)(v4 + 8);
if ( a2 == *(_DWORD *)(v4 + 16) )
goto LABEL_7;
}
}
v4 = 0;
LABEL_7:
if ( !v4 )
v4 = v2;
result = false;
if ( v4 != v2 )
{
v6 = *(cocos2d::CCArray ***)(v4 + 24);
if ( v6 )
{
v7 = *v6;
if ( v7 )
{
if ( cocos2d::CCArray::count(v7) )
return true;
}
}
}
return result;
}