//
// cocos2d::extension::CCControlStepper::ccTouchMoved from 0xd16780 to 0xd16898 (280 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlStepper::ccTouchMoved @ 0xd1689c
// > ??> @ 0x101ad0
// > ??> @ 0x150e658
//
// 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:06 +0000
//
__int64 __fastcall cocos2d::extension::CCControlStepper::ccTouchMoved(unsigned __int8 *a1, __int64 a2)
{
int v4; // w0
__int64 v6; // x2
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
float v8; // [xsp+40h] [xbp+40h] BYREF
if ( (*(unsigned __int8 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a1 + 1352LL))(a1) )
{
(*(void (__fastcall **)(__int64 *__return_ptr, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 1344LL))(&v7, a1, a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (const cocos2d::CCPoint *)&v7);
cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation((__int64)a1, &v8);
if ( !a1[544] )
{
v4 = a1[513];
a1[544] = 1;
if ( v4 )
cocos2d::extension::CCControlStepper::startAutorepeat((cocos2d::extension::CCControlStepper *)a1);
}
}
else
{
v6 = *((_QWORD *)a1 + 59);
a1[544] = 0;
*((_DWORD *)a1 + 137) = 2;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 960LL))(v6, &unk_11A61C0);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)a1 + 60) + 960LL))(*((_QWORD *)a1 + 60), &unk_11A61C0);
if ( a1[513] )
cocos2d::extension::CCControlStepper::stopAutorepeat((cocos2d::extension::CCControlStepper *)a1);
}
return _stack_chk_guard;
}