//
// EditorWindowPopup::ccTouchCancelled from 0x1004da8a0 to 0x1004da9c8 (296 bytes)
//
// 7 xrefs:
// > sub_1004DA9C8 @ 0x1004da9cc
// > ??> @ 0x1009860b0
// > ??> @ 0x10098b9a8
// > ??> @ 0x10098c1f0
// > ??> @ 0x100990cc8
// > ??> @ 0x1009920f8
// > ??> @ 0x1009a7650
//
// 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 11:06:33 +0000
//
__int64 __fastcall EditorWindowPopup::ccTouchCancelled(__int64 result, __int64 a2, __int64 a3)
{
__int64 v5; // x20
__int64 v6; // x0
__int64 v7; // [xsp+0h] [xbp-30h] BYREF
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
if ( *(_DWORD *)(a2 + 56) == *(_DWORD *)(result + 1076) )
{
v5 = result;
*(_DWORD *)(result + 1076) = -1;
if ( *(_BYTE *)(result + 1093) == 1 )
{
*(_BYTE *)(result + 1093) = 0;
return (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(result + 552) + 920LL))(
*(_QWORD *)(result + 552),
a2,
a3);
}
else
{
*(_BYTE *)(result + 1080) = 0;
if ( *(_DWORD *)(result + 1096) )
{
*(_DWORD *)(result + 1096) = 0;
sub_1000262F4(&v7, (double *)(result + 1068));
EditorWindowPopup::clampWindowCenter(v5, (__int64)&v7, &v8);
sub_10002630C((_QWORD *)(v5 + 1068), (double *)&v8);
EditorWindowPopup::layoutWindow(v5);
}
if ( *(_BYTE *)(v5 + 1094) == 1 )
{
*(_BYTE *)(v5 + 1094) = 0;
v6 = *(_QWORD *)(v5 + 1032);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, 255);
}
result = *(_QWORD *)(v5 + 1040);
if ( result )
result = sub_100525990(result, a2);
if ( *(_BYTE *)(v5 + 1092) == 1 )
{
result = *(_QWORD *)(v5 + 1048);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)result + 920LL))(result, a2, a3);
*(_BYTE *)(v5 + 1092) = 0;
}
}
}
}
return result;
}