//
// EditorUI::finishTouchDelay from 0xbd5334 to 0xbd542c (248 bytes)
//
// 4 xrefs:
// > EditorUI::ccTouchEnded @ 0xbd60f4
// > ??> @ 0x70810
// > EditorUI::ccTouchBegan @ 0xbd575c
// > ??> @ 0x1542cf8
//
// 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::finishTouchDelay(EditorUI *this)
{
int v2; // w2
_BYTE v4[8]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((_DWORD *)this + 176);
*((_BYTE *)this + 750) = 0;
if ( v2 != -1 && *(_DWORD *)(*((_QWORD *)this + 180) + 1972LL) != 1 )
{
if ( EditorUI::isFreeMoveTouch(this) )
{
EditorUI::startFreeMoveTouch(this);
if ( *((_BYTE *)this + 865) )
return _stack_chk_guard;
}
else if ( *((_BYTE *)this + 865) )
{
return _stack_chk_guard;
}
if ( !(unsigned __int8)cocos2d::CCPoint::equals((EditorUI *)((char *)this + 720), (EditorUI *)((char *)this + 1448)) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, (EditorUI *)((char *)this + 1448));
if ( (unsigned __int8)EditorUI::swipeToPosition((__int64)this, (const cocos2d::CCPoint *)v4) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v4, (EditorUI *)((char *)this + 720));
EditorUI::swipeToPosition((__int64)this, (const cocos2d::CCPoint *)v4);
}
}
}
return _stack_chk_guard;
}