//
// cocos2d::extension::CCControlButton::ccTouchEnded from 0x7a6e3c to 0x7a6e74 (56 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::ccTouchEnded @ 0x7a6e78
//
// 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:59:59 +0000
//
int __fastcall cocos2d::extension::CCControlButton::ccTouchEnded(_BYTE *a1, int a2)
{
int v3; // r3
_BYTE *v5; // r0
int v6; // r1
v3 = *(_DWORD *)a1;
a1[392] = 0;
(*(void (**)(void))(v3 + 648))();
if ( (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 676))(a1, a2) )
{
v5 = a1;
v6 = 32;
}
else
{
v5 = a1;
v6 = 64;
}
return (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 660))(v5, v6);
}