//
// EditorUI::finishTouchDelay from 0x100161008 to 0x1001610ac (164 bytes)
//
// 2 xrefs:
// > EditorUI::ccTouchEnded @ 0x100161b68
// > EditorUI::ccTouchBegan @ 0x1001614b0
//
// 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 10:59:46 +0000
//
void __fastcall EditorUI::finishTouchDelay(__int64 a1)
{
double v1; // x29
double v2; // x30
__n128 v4; // q0
double v5[5]; // [xsp+8h] [xbp-28h] BYREF
*(_BYTE *)(a1 + 750) = 0;
if ( *(_DWORD *)(a1 + 704) != -1 )
{
v5[3] = v1;
v5[4] = v2;
if ( *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL) != 1 )
{
if ( EditorUI::isFreeMoveTouch(a1) )
EditorUI::startFreeMoveTouch(a1, v4);
if ( (*(_BYTE *)(a1 + 865) & 1) == 0 && !sub_100026398((float *)(a1 + 720), (float *)(a1 + 1448)) )
{
sub_1000262F4(v5, (double *)(a1 + 1448));
if ( (unsigned int)EditorUI::swipeToPosition(a1, v5) )
{
sub_1000262F4(v5, (double *)(a1 + 720));
EditorUI::swipeToPosition(a1, v5);
}
}
}
}
}