//
// cocos2d::extension::CCControlStepper::update from 0xd15d20 to 0xd15dc8 (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x5ddf0
// > ??> @ 0x150e2f8
//
// 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:05 +0000
//
__int64 __fastcall cocos2d::extension::CCControlStepper::update(__int64 this, float a2)
{
int v2; // w1
__int64 v3; // x2
v2 = *(_DWORD *)(this + 552) + 1;
*(_DWORD *)(this + 552) = v2;
if ( v2 > 11 || v2 == 3 * (v2 / 3) )
{
v3 = this;
this = *(unsigned int *)(this + 548);
if ( (_DWORD)this )
{
if ( (_DWORD)this == 1 )
return (*(__int64 (__fastcall **)(__int64, _QWORD, double))(*(_QWORD *)v3 + 1408LL))(
v3,
*(unsigned __int8 *)(v3 + 512),
*(double *)(v3 + 504) + *(double *)(v3 + 536));
}
else
{
return (*(__int64 (__fastcall **)(__int64, _QWORD, double))(*(_QWORD *)v3 + 1408LL))(
v3,
*(unsigned __int8 *)(v3 + 512),
*(double *)(v3 + 504) - *(double *)(v3 + 536));
}
}
return this;
}