//
// cocos2d::CCMenu::ccTouchEnded from 0x7dbd04 to 0x7dbd2a (38 bytes)
//
// 3 xrefs:
// > CCMenuExtra::ccTouchEnded @ 0x3c63fc
// > SliderTouchLogic::ccTouchEnded @ 0x3db566
// > `non-virtual thunk to'cocos2d::CCMenu::ccTouchEnded @ 0x7dbd2e
//
// 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 12:00:45 +0000
//
int __fastcall cocos2d::CCMenu::ccTouchEnded(int a1)
{
int result; // r0
result = *(_DWORD *)(a1 + 336);
if ( result )
{
(*(void (__fastcall **)(int))(*(_DWORD *)result + 512))(result);
result = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 336) + 504))(*(_DWORD *)(a1 + 336));
}
*(_DWORD *)(a1 + 332) = 0;
return result;
}