//
// cocos2d::extension::CCControlStepper::ccTouchBegan from 0x18000bc40 to 0x18000bd31 (241 bytes)
//
// 3 xrefs:
// > ??> @ 0x180026028
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049cfc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall cocos2d::extension::CCControlStepper::ccTouchBegan(
cocos2d::extension::CCControlStepper *this,
struct cocos2d::CCTouch *a2,
struct cocos2d::CCEvent *a3)
{
_DWORD *v3; // rbx
float *v6; // rax
__int64 v7; // r8
bool v8; // zf
char v10; // [rsp+40h] [rbp+8h] BYREF
char v11; // [rsp+58h] [rbp+20h] BYREF
v3 = (_DWORD *)((char *)this - 320);
if ( !(*(unsigned __int8 (__fastcall **)(char *, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*((_QWORD *)this - 40) + 1104LL))(
(char *)this - 320,
a2,
a3)
|| !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 1024LL))(v3)
|| !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v3 + 328LL))(v3) )
{
return 0;
}
(*(void (__fastcall **)(_DWORD *, char *, struct cocos2d::CCTouch *))(*(_QWORD *)v3 + 1096LL))(v3, &v10, a2);
v6 = (float *)cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (const struct cocos2d::CCPoint *)&v10);
cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation((__int64)v3, v6);
v8 = *((_BYTE *)this + 193) == 0;
*((_BYTE *)this + 224) = 1;
if ( !v8 )
{
v3[138] = -1;
cocos2d::CCNode::schedule(v3, sub_18000BF64, v7, 4294967294LL, 1055286887);
}
return 1;
}