//
// EditorUI::triggerSwipeMode from 0x1401bf810 to 0x1401bf8fa (234 bytes)
//
// 2 xrefs:
// > EditorUI::ccTouchBegan @ 0x1401c043c
// > ??> @ 0x14091a618
//
// 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:28:02 +0000
//
__int64 __fastcall EditorUI::triggerSwipeMode(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // r8
cocos2d::CCObject *v6; // rbx
__int64 result; // rax
*(_BYTE *)(a1 + 1640) = 1;
v2 = EditorSFXManager::sharedState();
EditorSFXManager::playAction(v2, 274);
if ( *(_DWORD *)(a1 + 1508) == 3 )
{
*(_BYTE *)(a1 + 909) = 1;
cocos2d::CCPoint::operator=(a1 + 1528, a1 + 1520);
if ( !*(_BYTE *)(a1 + 911) )
{
*(_QWORD *)(a1 + 1576) = 0;
*(_BYTE *)(a1 + 913) = 0;
}
}
v6 = CCCircleWave::create(v4, v3, v5, 0, 0);
*((_WORD *)v6 + 170) = -1;
*((_BYTE *)v6 + 342) = -1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 184LL))(v6, a1 + 1520);
result = (*(__int64 (__fastcall **)(__int64, cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, v6, 0);
*((_DWORD *)v6 + 88) = 1;
return result;
}