//
// EditorUI::swipeToPosition from 0x6efff8 to 0x6f0098 (160 bytes)
//
// 3 xrefs:
// > EditorUI::finishTouchDelay @ 0x6f00fa
// > EditorUI::finishTouchDelay @ 0x6f010c
// > EditorUI::ccTouchMoved @ 0x6f08b6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:34 +0000
//
int __fastcall EditorUI::swipeToPosition(int a1, const cocos2d::CCPoint *a2)
{
int v4; // r0
float v5; // r2
float v6; // r3
_BYTE v8[8]; // [sp+4h] [bp-14h] BYREF
float v9[2]; // [sp+Ch] [bp-Ch] BYREF
if ( *(_BYTE *)(a1 + 508) )
return 0;
if ( !*(_BYTE *)(a1 + 636) )
{
v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1);
if ( !*(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4) + 88) && !*(_BYTE *)(a1 + 1040) )
return 0;
}
if ( *(_DWORD *)(a1 + 940) == 3 )
{
cocos2d::CCPoint::operator=(a1 + 956, a2);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);
EditorUI::getGridSnappedPos((int)v8, a1, v9);
cocos2d::CCPoint::operator=(a1 + 648, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, a2);
EditorUI::clickOnPosition(a1, COERCE_FLOAT(v9), v5, v6);
}
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 123);
return 1;
}