//
// cocos2d::extension::CCControlStepper::ccTouchEnded from 0xd16404 to 0xd16530 (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlStepper::ccTouchEnded @ 0xd16534
// > ??> @ 0xf19c0
// > ??> @ 0x150e660
//
// 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::ccTouchEnded(__int64 a1, __int64 a2)
{
double v5; // d8
float v6; // s9
void (__fastcall *v7)(__int64, double); // x21
double v8; // d0
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 472) + 960LL))(*(_QWORD *)(a1 + 472), &unk_11A61C0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 480) + 960LL))(*(_QWORD *)(a1 + 480), &unk_11A61C0);
if ( *(_BYTE *)(a1 + 513) )
cocos2d::extension::CCControlStepper::stopAutorepeat((cocos2d::extension::CCControlStepper *)a1);
if ( (*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1352LL))(a1, a2) )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64, __int64))(*(_QWORD *)a1 + 1344LL))(&v9, a1, a2);
v5 = *(double *)(a1 + 504);
v6 = *(float *)&v9;
v7 = *(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1384LL);
if ( v6 < *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 328LL))(*(_QWORD *)(a1 + 472)) )
v8 = 0.0 - *(double *)(a1 + 536);
else
v8 = *(double *)(a1 + 536);
v7(a1, v5 + v8);
}
return _stack_chk_guard;
}