{"type": "func", "start": 6881056, "end": 6881196, "name": "CCCounterLabel::updateCounter", "pseudocode": "// \n// CCCounterLabel::updateCounter from 0x68ff20 to 0x68ffac (140 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xb58e8\n// > CCCounterLabel::enableCounter @ 0x68fd84\n// > <???> @ 0x1545368\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:35 +0000\n// \n\ncocos2d::CCNode *__fastcall CCCounterLabel::updateCounter(cocos2d::CCNode *this, float a2)\n{\n  int v2; // w1\n  int v3; // w3\n  float v4; // s0\n  float v5; // s1\n\n  if ( *((_BYTE *)this + 528) )\n  {\n    v2 = *((_DWORD *)this + 131);\n    v3 = *((_DWORD *)this + 130);\n    if ( v2 < v3 )\n    {\n      v4 = (float)(v3 - v2);\n      v5 = (float)*((int *)this + 129);\n      if ( v4 > v5 )\n        goto LABEL_5;\n      goto LABEL_8;\n    }\n    if ( v2 > v3 )\n    {\n      v4 = (float)(v3 - v2);\n      v5 = (float)*((int *)this + 129);\n      if ( v4 < v5 )\n      {\nLABEL_5:\n        *((_DWORD *)this + 131) = (int)(float)((float)v2 + v5);\n        return (cocos2d::CCNode *)CCCounterLabel::updateString(this);\n      }\nLABEL_8:\n      *((_DWORD *)this + 131) = (int)(float)((float)v2 + v4);\n      return (cocos2d::CCNode *)CCCounterLabel::updateString(this);\n    }\n    return CCCounterLabel::disableCounter(this);\n  }\n  return this;\n}", "assembly": "; \n; CCCounterLabel::updateCounter from 0x68ff20 to 0x68ffac (140 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xb58e8\n; > CCCounterLabel::enableCounter @ 0x68fd84\n; > <???> @ 0x1545368\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:35 +0000\n; \nLDRB            W1, [X0,#0x210]                                        ; +0x0, 0x68ff20\nMOV             X2, X0                                                 ; +0x4, 0x68ff24\nCBZ             W1, locret_68FFA4                                      ; +0x8, 0x68ff28\nLDR             W1, [X0,#0x20C]                                        ; +0xc, 0x68ff2c\nLDR             W3, [X0,#0x208]                                        ; +0x10, 0x68ff30\nCMP             W1, W3                                                 ; +0x14, 0x68ff34\nB.LT            loc_68FF70                                             ; +0x18, 0x68ff38\nB.LE            loc_68FFA8                                             ; +0x1c, 0x68ff3c\nLDR             W0, [X0,#0x204]                                        ; +0x20, 0x68ff40\nSUB             W3, W3, W1                                             ; +0x24, 0x68ff44\nSCVTF           S0, W3                                                 ; +0x28, 0x68ff48\nSCVTF           S1, W0                                                 ; +0x2c, 0x68ff4c\nFCMPE           S0, S1                                                 ; +0x30, 0x68ff50\nB.PL            loc_68FF88                                             ; +0x34, 0x68ff54\nSCVTF           S0, W1                                                 ; +0x38, 0x68ff58\nMOV             X0, X2; this                                           ; +0x3c, 0x68ff5c\nFADD            S0, S0, S1                                             ; +0x40, 0x68ff60\nFCVTZS          W1, S0                                                 ; +0x44, 0x68ff64\nSTR             W1, [X2,#0x20C]                                        ; +0x48, 0x68ff68\nB               _ZN14CCCounterLabel12updateStringEv; CCCounterLabel::updateString(void) ; +0x4c, 0x68ff6c\nLDR             W0, [X0,#0x204]                                        ; +0x50, 0x68ff70\nSUB             W3, W3, W1                                             ; +0x54, 0x68ff74\nSCVTF           S0, W3                                                 ; +0x58, 0x68ff78\nSCVTF           S1, W0                                                 ; +0x5c, 0x68ff7c\nFCMPE           S0, S1                                                 ; +0x60, 0x68ff80\nB.GT            loc_68FF58                                             ; +0x64, 0x68ff84\nFMOV            S1, S0                                                 ; +0x68, 0x68ff88\nMOV             X0, X2; this                                           ; +0x6c, 0x68ff8c\nSCVTF           S0, W1                                                 ; +0x70, 0x68ff90\nFADD            S0, S0, S1                                             ; +0x74, 0x68ff94\nFCVTZS          W1, S0                                                 ; +0x78, 0x68ff98\nSTR             W1, [X2,#0x20C]                                        ; +0x7c, 0x68ff9c\nB               _ZN14CCCounterLabel12updateStringEv; CCCounterLabel::updateString(void) ; +0x80, 0x68ffa0\nRET                                                                    ; +0x84, 0x68ffa4\nB               _ZN14CCCounterLabel14disableCounterEv; CCCounterLabel::disableCounter(void) ; +0x88, 0x68ffa8", "xrefs": ["<???> @ 0xb58e8", "CCCounterLabel::enableCounter @ 0x68fd84", "<???> @ 0x1545368"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}