//
// cocos2d::extension::CCControlStepper::ccTouchBegan from 0x7ada7c to 0x7adb04 (136 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlStepper::ccTouchBegan @ 0x7adb0c
//
// 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 12:00:04 +0000
//
int __fastcall cocos2d::extension::CCControlStepper::ccTouchBegan(unsigned __int8 *a1, int a2)
{
int v4; // r5
int v5; // r6
_BYTE v7[8]; // [sp+4h] [bp-14h] BYREF
float v8[2]; // [sp+Ch] [bp-Ch] BYREF
if ( !(*(int (__fastcall **)(unsigned __int8 *))(*(_DWORD *)a1 + 676))(a1) )
return 0;
if ( !(*(int (__fastcall **)(unsigned __int8 *))(*(_DWORD *)a1 + 636))(a1) )
return 0;
v4 = (*(int (__fastcall **)(unsigned __int8 *))(*(_DWORD *)a1 + 176))(a1);
if ( !v4 )
return 0;
(*(void (__fastcall **)(_BYTE *, unsigned __int8 *, int))(*(_DWORD *)a1 + 672))(v7, a1, a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (const cocos2d::CCPoint *)v7);
cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation((int)a1, v8);
v5 = a1[385];
a1[416] = 1;
if ( v5 )
{
v4 = v5;
cocos2d::extension::CCControlStepper::startAutorepeat((cocos2d::extension::CCControlStepper *)a1);
}
return v4;
}