//
// cocos2d::extension::CCControlStepper::update from 0xaa42d0 to 0xaa4378 (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x41820
// > ??> @ 0x11f8a58
//
// 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 v2; // w1
float x; // w0
v2 = LODWORD(a1[1].m_obPosition.y) + 1;
LODWORD(a1[1].m_obPosition.y) = v2;
if ( v2 > 11 || v2 == 3 * (v2 / 3) )
{
x = a1[1].m_obPosition.x;
if ( x == 0.0 )
{
((void (__fastcall *)(cocos2d::extension::CCControlStepper *, _QWORD, double))a1->setValueWithSendingEvent)(
a1,
LOBYTE(a1[1].m_unknown2),
*(double *)&a1[1].m_uIndexInArray - *(double *)&a1[1].m_fScaleX);
}
else if ( LODWORD(x) == 1 )
{
((void (__fastcall *)(cocos2d::extension::CCControlStepper *, _QWORD, double))a1->setValueWithSendingEvent)(
a1,
LOBYTE(a1[1].m_unknown2),
*(double *)&a1[1].m_uIndexInArray + *(double *)&a1[1].m_fScaleX);
}
}
}