//
// EditorUI::swipeToPosition from 0x1401bfdb0 to 0x1401bfe82 (210 bytes)
//
// 4 xrefs:
// > EditorUI::finishTouchDelay @ 0x1401bff15
// > EditorUI::finishTouchDelay @ 0x1401bff36
// > EditorUI::ccTouchMoved @ 0x1401c0be1
// > ??> @ 0x14091a66c
//
// 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
//
char __fastcall EditorUI::swipeToPosition(__int64 a1, const struct cocos2d::CCPoint *a2)
{
__int64 v4; // rax
float *v5; // rax
__int64 GridSnappedPos; // rax
__int64 v7; // rax
char v9; // [rsp+30h] [rbp+8h] BYREF
char v10; // [rsp+40h] [rbp+18h] BYREF
if ( *(_BYTE *)(a1 + 736) )
return 0;
if ( !*(_BYTE *)(a1 + 908) )
{
v4 = cocos2d::CCDirector::sharedDirector(a1);
if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 176LL))(v4) + 152) && !*(_BYTE *)(a1 + 1640) )
return 0;
}
if ( *(_DWORD *)(a1 + 1508) == 3 )
{
cocos2d::CCPoint::operator=(a1 + 1528, a2);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, a2);
GridSnappedPos = EditorUI::getGridSnappedPos(a1, (__int64)&v10, v5);
cocos2d::CCPoint::operator=(a1 + 920, GridSnappedPos);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, a2);
EditorUI::clickOnPosition(a1, v7);
}
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);
return 1;
}