// // CCCounterLabel::updateCounter from 0x10003ab70 to 0x10003abe4 (116 bytes) // // 1 xrefs: // > CCCounterLabel::setTargetCount @ 0x10003ac3c // // 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 __fastcall CCCounterLabel::updateCounter(CCCounterLabel *a1, float a2) { int m_currentCount; // w8 int m_targetCount; // w9 bool v4; // vf int v5; // w9 float m_stepSize; // s0 if ( a1->m_counterEnabled ) { m_currentCount = a1->m_currentCount; m_targetCount = a1->m_targetCount; v4 = __OFSUB__(m_targetCount, m_currentCount); v5 = m_targetCount - m_currentCount; if ( !((v5 < 0) ^ v4 | (v5 == 0)) ) { m_stepSize = (float)v5; if ( (float)v5 > (float)a1->m_stepSize ) m_stepSize = (float)a1->m_stepSize; LABEL_10: a1->m_currentCount = (int)(float)(m_stepSize + (float)m_currentCount); CCCounterLabel::updateString(a1); return; } if ( v5 < 0 != v4 ) { m_stepSize = (float)v5; if ( (float)v5 < (float)a1->m_stepSize ) m_stepSize = (float)a1->m_stepSize; goto LABEL_10; } a1->m_counterEnabled = 0; if ( !a1->m_dontSchedule ) cocos2d::CCNode::unscheduleAllSelectors(a1); } }