//
// cocos2d::extension::CCControlStepper::ccTouchBegan from 0xd1667c to 0xd16778 (252 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlStepper::ccTouchBegan @ 0xd1677c
// > ??> @ 0xc9a18
// > ??> @ 0x150e650
//
// 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::ccTouchBegan(unsigned __int8 *a1, __int64 a2)
{
unsigned int v4; // w21
unsigned __int8 v6; // w0
unsigned int v7; // w1
__int64 v8; // [xsp+48h] [xbp+48h] BYREF
float v9; // [xsp+50h] [xbp+50h] BYREF
if ( (*(unsigned __int8 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a1 + 1352LL))(a1)
&& (*(unsigned __int8 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a1 + 1272LL))(a1)
&& (v6 = (*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a1 + 352LL))(a1), (v4 = v6) != 0) )
{
(*(void (__fastcall **)(__int64 *__return_ptr, unsigned __int8 *, __int64))(*(_QWORD *)a1 + 1344LL))(&v8, a1, a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v9, (const cocos2d::CCPoint *)&v8);
cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation((__int64)a1, &v9);
v7 = a1[513];
a1[544] = 1;
if ( v7 )
{
v4 = v7;
cocos2d::extension::CCControlStepper::startAutorepeat((cocos2d::extension::CCControlStepper *)a1);
}
}
else
{
return 0;
}
return v4;
}