//
// cocos2d::extension::CCControlButton::ccTouchEnded from 0xd0c334 to 0xd0c3b4 (128 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::ccTouchEnded @ 0xd0c3b8
// > ??> @ 0x58990
// > ??> @ 0x150a800
// > ??> @ 0x150ff80
//
// 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 13:07:00 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::ccTouchEnded(_BYTE *a1, __int64 a2)
{
char v4; // w0
__int64 v5; // x2
a1[524] = 0;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1296LL))(a1, 0);
v4 = (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1352LL))(a1, a2);
v5 = *(_QWORD *)a1;
if ( v4 )
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(v5 + 1320))(a1, 32);
else
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(v5 + 1320))(a1, 64);
}