// // CCCounterLabel::updateCounter from 0x68ff20 to 0x68ffac (140 bytes) // // 3 xrefs: // > @ 0xb58e8 // > CCCounterLabel::enableCounter @ 0x68fd84 // > @ 0x1545368 // // 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 12:50:35 +0000 // cocos2d::CCNode *__fastcall CCCounterLabel::updateCounter(cocos2d::CCNode *this, float a2) { int v2; // w1 int v3; // w3 float v4; // s0 float v5; // s1 if ( *((_BYTE *)this + 528) ) { v2 = *((_DWORD *)this + 131); v3 = *((_DWORD *)this + 130); if ( v2 < v3 ) { v4 = (float)(v3 - v2); v5 = (float)*((int *)this + 129); if ( v4 > v5 ) goto LABEL_5; goto LABEL_8; } if ( v2 > v3 ) { v4 = (float)(v3 - v2); v5 = (float)*((int *)this + 129); if ( v4 < v5 ) { LABEL_5: *((_DWORD *)this + 131) = (int)(float)((float)v2 + v5); return (cocos2d::CCNode *)CCCounterLabel::updateString(this); } LABEL_8: *((_DWORD *)this + 131) = (int)(float)((float)v2 + v4); return (cocos2d::CCNode *)CCCounterLabel::updateString(this); } return CCCounterLabel::disableCounter(this); } return this; }