//
// ControlMenuTouch::cancelled from 0x6eb666 to 0x6eb67c (22 bytes)
//
// 6 xrefs:
// > GJRotationControl::ccTouchCancelled @ 0x6eb6a6
// > GJScaleControl::ccTouchCancelled @ 0x6eb6e4
// > GJTransformControl::ccTouchCancelled @ 0x6eb722
// > GJRotationControl::finishTouch @ 0x6eb93c
// > GJScaleControl::finishTouch @ 0x6ebac0
// > GJTransformControl::finishTouch @ 0x6ebf14
//
// 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:31 +0000
//
int __fastcall ControlMenuTouch::cancelled(int a1)
{
int result; // r0
result = *(_DWORD *)(a1 + 12);
if ( result )
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 460))(result);
*(_DWORD *)(a1 + 12) = 0;
return result;
}