//
// cocos2d::extension::CCControlButton::ccTouchEnded from 0x1800075b0 to 0x18000760d (93 bytes)
//
// 4 xrefs:
// > ??> @ 0x180023ca8
// > ??> @ 0x180027af0
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049750
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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) + 1048LL))(
(char *)this - 320,
0,
a3);
v5 = (*(__int64 (__fastcall **)(char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1104LL))(v3, a2);
v6 = 32;
if ( !v5 )
v6 = 64;
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1072LL))(v3, v6);
}