//
// cocos2d::extension::CCControlButton::ccTouchMoved from 0x180006f10 to 0x180007076 (358 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800261d8
// > ??> @ 0x18002a150
// > ??> @ 0x180032408
// > ??> @ 0x18004b678
//
// 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::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) + 1040LL))(
(char *)this - 320,
a2,
a3)
&& *((_BYTE *)this + 204)
&& !(*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 1056LL))(v3) )
{
v6 = (*(__int64 (__fastcall **)(char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1120LL))(v3, a2);
v7 = *(_QWORD *)v3;
if ( v6 )
{
v8 = (*(__int64 (__fastcall **)(char *))(v7 + 1072))(v3);
v10 = *(_QWORD *)v3;
if ( v8 )
{
if ( (*(unsigned __int8 (__fastcall **)(char *))(v10 + 1072))(v3) )
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 2);
}
else
{
LOBYTE(v9) = 1;
(*(void (__fastcall **)(char *, __int64))(v10 + 1064))(v3, v9);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 8);
}
}
else
{
v11 = (*(unsigned __int8 (__fastcall **)(char *))(v7 + 1072))(v3) == 0;
v12 = *(_QWORD *)v3;
if ( v11 )
{
if ( !(*(unsigned __int8 (__fastcall **)(char *))(v12 + 1072))(v3) )
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 4);
}
else
{
(*(void (__fastcall **)(char *, _QWORD))(v12 + 1064))(v3, 0);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v3 + 1088LL))(v3, 16);
}
}
}
else if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v3 + 1072LL))(v3) )
{
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v3 + 1064LL))(v3, 0);
}
}