//
// cocos2d::extension::CCControlButton::ccTouchMoved from 0x7a6d6c to 0x7a6e34 (200 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::ccTouchMoved @ 0x7a6e38
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:59 +0000
//
int __fastcall cocos2d::extension::CCControlButton::ccTouchMoved(_BYTE *a1, int a2)
{
int result; // r0
int v5; // r0
int v6; // r3
int v7; // r0
int v8; // r3
int v9; // r0
int v10; // r3
if ( (*(int (__fastcall **)(_BYTE *))(*(_DWORD *)a1 + 636))(a1)
&& a1[392]
&& !(*(int (__fastcall **)(_BYTE *))(*(_DWORD *)a1 + 644))(a1) )
{
v5 = (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 676))(a1, a2);
v6 = *(_DWORD *)a1;
if ( v5 )
{
v7 = (*(int (__fastcall **)(_BYTE *))(v6 + 652))(a1);
v8 = *(_DWORD *)a1;
if ( v7 )
{
result = (*(int (__fastcall **)(_BYTE *))(v8 + 652))(a1);
if ( result )
return (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 660))(a1, 2);
}
else
{
(*(void (__fastcall **)(_BYTE *, int))(v8 + 648))(a1, 1);
return (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 660))(a1, 8);
}
}
else
{
v9 = (*(int (__fastcall **)(_BYTE *))(v6 + 652))(a1);
v10 = *(_DWORD *)a1;
if ( v9 )
{
(*(void (__fastcall **)(_BYTE *, _DWORD))(v10 + 648))(a1, 0);
return (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 660))(a1, 16);
}
else
{
result = (*(int (__fastcall **)(_BYTE *))(v10 + 652))(a1);
if ( !result )
return (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)a1 + 660))(a1, 4);
}
}
}
else
{
result = (*(int (__fastcall **)(_BYTE *))(*(_DWORD *)a1 + 652))(a1);
if ( result )
return (*(int (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)a1 + 648))(a1, 0);
}
return result;
}