//
// CCMenuExtra::ccTouchEnded from 0x3c63e0 to 0x3c641c (60 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CCMenuExtra::ccTouchEnded @ 0x3c6420
//
// 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:46:34 +0000
//
int __fastcall CCMenuExtra::ccTouchEnded(int a1, int a2, int a3)
{
int result; // r0
CCMenuExtra::stopRepeat((CCMenuExtra *)a1);
if ( !*(_BYTE *)(a1 + 348) )
return cocos2d::CCMenu::ccTouchEnded(a1, a2, a3);
result = *(_DWORD *)(a1 + 336);
*(_BYTE *)(a1 + 348) = 0;
if ( result )
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 512))(result);
*(_DWORD *)(a1 + 332) = 0;
return result;
}