//
// EditorUI::swipeToPosition from 0xbd5230 to 0xbd5334 (260 bytes)
//
// 4 xrefs:
// > EditorUI::finishTouchDelay @ 0xbd53fc
// > EditorUI::finishTouchDelay @ 0xbd541c
// > EditorUI::ccTouchMoved @ 0xbd5e24
// > ??> @ 0x8e8a0
//
// 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:03:39 +0000
//
__int64 __fastcall EditorUI::swipeToPosition(__int64 a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCDirector *v4; // x0
__int64 v6; // x0
_BYTE v7[8]; // [xsp+48h] [xbp+48h] BYREF
float v8; // [xsp+50h] [xbp+50h] BYREF
if ( *(_BYTE *)(a1 + 688) )
return 0;
v4 = (cocos2d::CCDirector *)*(unsigned __int8 *)(a1 + 860);
if ( !*(_BYTE *)(a1 + 860) )
{
v6 = cocos2d::CCDirector::sharedDirector(v4);
if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6) + 128) && !*(_BYTE *)(a1 + 1568) )
return 0;
}
if ( *(_DWORD *)(a1 + 1436) == 3 )
{
cocos2d::CCPoint::operator=(a1 + 1456, a2);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, a2);
EditorUI::getGridSnappedPos(a1, &v8, (__int64)v7);
cocos2d::CCPoint::operator=(a1 + 872, v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, a2);
EditorUI::clickOnPosition(a1, &v8);
}
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);
return 1;
}