//
// cocos2d::extension::CCControlStepper::ccTouchEnded from 0x7ad8b8 to 0x7ad96c (180 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlStepper::ccTouchEnded @ 0x7ad984
//
// 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::ccTouchEnded(int a1, int a2)
{
int result; // r0
float v5; // s18
int (__fastcall *v6)(int, int, _DWORD, _DWORD); // r6
double v7; // d8
float *v8; // r0
int v9; // r1
double v10; // d7
float v11[2]; // [sp+4h] [bp-10h] BYREF
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 356) + 480))(*(_DWORD *)(a1 + 356), &unk_BF16B0);
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 360) + 480))(*(_DWORD *)(a1 + 360), &unk_BF16B0);
if ( *(_BYTE *)(a1 + 385) )
cocos2d::extension::CCControlStepper::stopAutorepeat((cocos2d::extension::CCControlStepper *)a1);
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 676))(a1, a2);
if ( result )
{
(*(void (__fastcall **)(float *, int, int))(*(_DWORD *)a1 + 672))(v11, a1, a2);
v5 = v11[0];
v6 = *(int (__fastcall **)(int, int, _DWORD, _DWORD))(*(_DWORD *)a1 + 692);
v7 = *(double *)(a1 + 376);
v8 = (float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 356) + 164))(*(_DWORD *)(a1 + 356));
v10 = *(double *)(a1 + 408);
if ( v5 < *v8 )
v10 = 0.0 - v10;
return v6(a1, v9, COERCE_UNSIGNED_INT64(v7 + v10), HIDWORD(COERCE_UNSIGNED_INT64(v7 + v10)));
}
return result;
}