//
// cocos2d::extension::CCControlButton::ccTouchMoved from 0xd0c194 to 0xd0c32c (408 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::ccTouchMoved @ 0xd0c330
// > ??> @ 0x7cea0
// > ??> @ 0x150a7f8
// > ??> @ 0x150ff78
//
// 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::ccTouchMoved(_BYTE *a1, __int64 a2)
{
__int64 result; // x0
if ( (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1272LL))(a1)
&& a1[524]
&& !(*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1288LL))(a1) )
{
if ( (*(unsigned __int8 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1352LL))(a1, a2) )
{
if ( (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1) )
{
result = (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1);
if ( (_BYTE)result )
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 2);
}
else
{
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1296LL))(a1, 1);
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 8);
}
}
else if ( (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1) )
{
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1296LL))(a1, 0);
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 16);
}
else
{
result = (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1);
if ( !(_BYTE)result )
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1320LL))(a1, 4);
}
}
else
{
result = (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1304LL))(a1);
if ( (_BYTE)result )
return (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1296LL))(a1, 0);
}
return result;
}