//
// cocos2d::extension::CCControlButton::ccTouchEnded from 0x1003408d0 to 0x10034091c (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1de08
// > ??> @ 0x100b524f0
//
// This function is hookable on this platform (idp: pc, 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 12:28:43 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::ccTouchEnded(_BYTE *a1, __int64 a2)
{
unsigned __int8 v2; // al
a1[524] = 0;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1296LL))(a1, 0);
v2 = (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1352LL))(a1, a2);
return (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1320LL))(a1, 32 * (v2 ^ 1u) + 32);
}