//
// cocos2d::extension::CCControlStepper::update from 0x7ad3e6 to 0x7ad44a (100 bytes)
//
// 0 xrefs:
//
// 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::update(cocos2d::extension::CCControlStepper *this, float a2)
{
int result; // r0
int v4; // r1
int v5; // r3
double v6; // d7
double v7; // d7
result = *((_DWORD *)this + 106) + 1;
*((_DWORD *)this + 106) = result;
if ( result > 11 || (v4 = result % 3, result /= 3, !v4) )
{
v5 = *((_DWORD *)this + 105);
if ( v5 )
{
if ( v5 == 1 )
{
v7 = *((double *)this + 47) + *((double *)this + 51);
return (*(int (__fastcall **)(cocos2d::extension::CCControlStepper *, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)this + 704))(
this,
*(_DWORD *)(*(_DWORD *)this + 704),
LODWORD(v7),
HIDWORD(v7),
*((unsigned __int8 *)this + 384),
LODWORD(a2));
}
}
else
{
v6 = *((double *)this + 47) - *((double *)this + 51);
return (*(int (__fastcall **)(cocos2d::extension::CCControlStepper *, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)this + 704))(
this,
*(_DWORD *)(*(_DWORD *)this + 704),
LODWORD(v6),
HIDWORD(v6),
*((unsigned __int8 *)this + 384),
LODWORD(a2));
}
}
return result;
}