//
// CCMenuExtra::ccTouchEnded from 0x1002afe9c to 0x1002aff18 (124 bytes)
//
// 2 xrefs:
// > sub_1002AFF18 @ 0x1002aff1c
// > ??> @ 0x1008e43e8
//
// 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:02:19 +0000
//
__int64 __fastcall CCMenuExtra::ccTouchEnded(__int64 a1)
{
__int64 result; // x0
cocos2d::CCNode::unschedule(a1, CCMenuExtra::repeatTick, 0);
if ( (*(_BYTE *)(a1 + 448) & 1) == 0 )
return cocos2d::CCMenu::ccTouchEnded(a1);
*(_BYTE *)(a1 + 448) = 0;
result = *(_QWORD *)(a1 + 432);
if ( result )
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1024LL))(result);
*(_DWORD *)(a1 + 428) = 0;
return result;
}