//
// EditorUI::finishTouchDelay from 0x1401bfe90 to 0x1401bff4b (187 bytes)
//
// 4 xrefs:
// > EditorUI::ccTouchEnded @ 0x1401c0d4b
// > ??> @ 0x1408a2678
// > ??> @ 0x1408a2688
// > ??> @ 0x14091a678
//
// 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
//
void __fastcall EditorUI::finishTouchDelay(__int64 a1)
{
bool v1; // zf
const struct cocos2d::CCPoint *v3; // rax
const struct cocos2d::CCPoint *v4; // rax
char v5; // [rsp+30h] [rbp+8h] BYREF
v1 = *(_DWORD *)(a1 + 752) == -1;
*(_BYTE *)(a1 + 798) = 0;
if ( !v1 && *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 2204LL) != 1 )
{
if ( EditorUI::isFreeMoveTouch(a1) )
EditorUI::startFreeMoveTouch(a1);
if ( !*(_BYTE *)(a1 + 913)
&& !cocos2d::CCPoint::equals((cocos2d::CCPoint *)(a1 + 768), (const struct cocos2d::CCPoint *)(a1 + 1520)) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, (const struct cocos2d::CCPoint *)(a1 + 1520));
if ( EditorUI::swipeToPosition(a1, v3) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v5, (const struct cocos2d::CCPoint *)(a1 + 768));
EditorUI::swipeToPosition(a1, v4);
}
}
}
}