//
// cocos2d::extension::CCControlButton::ccTouchMoved from 0x180007440 to 0x1800075a6 (358 bytes)
//
// 4 xrefs:
// > ??> @ 0x180023ca0
// > ??> @ 0x180027ae8
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049744
//
// 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::ccTouchMoved(
cocos2d::extension::CCControlButton *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
char *v3; // rbx
char v6; // al
__int64 v7; // rdx
char v8; // al
__int64 v9; // rdx
__int64 v10; // r8
bool v11; // zf
__int64 v12; // rax
v3 = (char *)this - 320;
if ( (*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1024LL))(
(char *)this - 320,
a2,
a3)
&& *((_BYTE *)this + 204)
&& !(*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 1040LL))(v3) )
{
v6 = (*(__int64 (__fastcall **)(char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1104LL))(v3, a2);
v7 = *(_QWORD *)v3;
if ( v6 )
{
v8 = (*(__int64 (__fastcall **)(char *))(v7 + 1056))(v3);
v10 = *(_QWORD *)v3;
if ( v8 )
{
if ( (*(unsigned __int8 (__fastcall **)(char *))(v10 + 1056))(v3) )
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1072LL))(v3, 2);
}
else
{
LOBYTE(v9) = 1;
(*(void (__fastcall **)(char *, __int64))(v10 + 1048))(v3, v9);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1072LL))(v3, 8);
}
}
else
{
v11 = (*(unsigned __int8 (__fastcall **)(char *))(v7 + 1056))(v3) == 0;
v12 = *(_QWORD *)v3;
if ( v11 )
{
if ( !(*(unsigned __int8 (__fastcall **)(char *))(v12 + 1056))(v3) )
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1072LL))(v3, 4);
}
else
{
(*(void (__fastcall **)(char *, _QWORD))(v12 + 1048))(v3, 0);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1072LL))(v3, 16);
}
}
}
else if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 1056LL))(v3) )
{
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v3 + 1048LL))(v3, 0);
}
}