//
// cocos2d::extension::CCControlStepper::update from 0x5a76ee to 0x5a7752 (100 bytes)
//
// 0 xrefs:
//
// 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
//
void cocos2d::extension::CCControlStepper::update(cocos2d::extension::CCControlStepper *a1, float a2)
{
int v3; // r0
float m_fScaleX; // r3
double v5; // d7
double v6; // d7
v3 = LODWORD(a1[1].m_fScaleY) + 1;
LODWORD(a1[1].m_fScaleY) = v3;
if ( v3 > 11 || !(v3 % 3) )
{
m_fScaleX = a1[1].m_fScaleX;
if ( m_fScaleX == 0.0 )
{
v5 = *(double *)&a1[1].m_uReference - *(double *)&a1[1].m_unknown5;
((void (__fastcall *)(cocos2d::extension::CCControlStepper *, void (__fastcall *)(cocos2d::extension::CCControlStepper *__hidden, double, bool), _DWORD, _DWORD, _DWORD, _DWORD))a1->setValueWithSendingEvent)(
a1,
a1->setValueWithSendingEvent,
LODWORD(v5),
HIDWORD(v5),
LOBYTE(a1[1].m_eObjType),
LODWORD(a2));
}
else if ( LODWORD(m_fScaleX) == 1 )
{
v6 = *(double *)&a1[1].m_uReference + *(double *)&a1[1].m_unknown5;
((void (__fastcall *)(cocos2d::extension::CCControlStepper *, void (__fastcall *)(cocos2d::extension::CCControlStepper *__hidden, double, bool), _DWORD, _DWORD, _DWORD, _DWORD))a1->setValueWithSendingEvent)(
a1,
a1->setValueWithSendingEvent,
LODWORD(v6),
HIDWORD(v6),
LOBYTE(a1[1].m_eObjType),
LODWORD(a2));
}
}
}