//
// cocos2d::extension::CCControlButton::ccTouchEnded from 0x180007080 to 0x1800070dd (93 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800261e0
// > ??> @ 0x18002a158
// > ??> @ 0x180032408
// > ??> @ 0x18004b684
//
// 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:15:36 +0000
//
void __fastcall cocos2d::extension::CCControlButton::ccTouchEnded(
cocos2d::extension::CCControlButton *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
char *v3; // rdi
char v5; // al
__int64 v6; // rdx
v3 = (char *)this - 320;
*((_BYTE *)this + 204) = 0;
(*(void (__fastcall **)(char *, _QWORD, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1064LL))(
(char *)this - 320,
0,
a3);
v5 = (*(__int64 (__fastcall **)(char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1120LL))(v3, a2);
v6 = 32;
if ( !v5 )
v6 = 64;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, v6);
}