//
// GJRotationControl::ccTouchEnded from 0x100157aac to 0x100157b04 (88 bytes)
//
// 2 xrefs:
// > sub_100157B04 @ 0x100157b08
// > ??> @ 0x1008e26c8
//
// 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:42 +0000
//
__int64 __fastcall GJRotationControl::ccTouchEnded(__int64 a1, __int64 a2)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 504);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 912LL))(result);
*(_QWORD *)(a1 + 504) = 0;
}
else if ( *(_DWORD *)(a1 + 440) == *(_DWORD *)(a2 + 56) )
{
return GJRotationControl::finishTouch(a1);
}
return result;
}