{"type": "func", "start": 3954292, "end": 3954412, "name": "CCCounterLabel::updateCounter", "pseudocode": "// \n// CCCounterLabel::updateCounter from 0x3c5674 to 0x3c56ec (120 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n// \n\nvoid __fastcall CCCounterLabel::updateCounter(CCCounterLabel *this, float a2)\n{\n  int v2; // r3\n  int v3; // r2\n  int v4; // r2\n  float v5; // s14\n  int v6; // r2\n\n  if ( *((_BYTE *)this + 392) )\n  {\n    v2 = *((_DWORD *)this + 97);\n    v3 = *((_DWORD *)this + 96);\n    if ( v2 < v3 )\n    {\n      v4 = v3 - v2;\n      v5 = (float)*((int *)this + 95);\n      if ( (float)v4 <= v5 )\n        v5 = (float)v4;\nLABEL_9:\n      *((_DWORD *)this + 97) = (int)(float)((float)v2 + v5);\n      CCCounterLabel::updateString(this, (const char *)this);\n      return;\n    }\n    if ( v2 > v3 )\n    {\n      v6 = v3 - v2;\n      v5 = (float)*((int *)this + 95);\n      if ( (float)v6 >= v5 )\n        v5 = (float)v6;\n      goto LABEL_9;\n    }\n    CCCounterLabel::disableCounter(this);\n  }\n}", "assembly": "; \n; CCCounterLabel::updateCounter from 0x3c5674 to 0x3c56ec (120 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n; \nLDRB.W          R3, [R0,#0x188]                                        ; +0x0, 0x3c5674\nMOV             R1, R0                                                 ; +0x4, 0x3c5678\nCBZ             R3, locret_3C56EA                                      ; +0x6, 0x3c567a\nLDR.W           R3, [R0,#0x184]                                        ; +0x8, 0x3c567c\nLDR.W           R2, [R0,#0x180]                                        ; +0xc, 0x3c5680\nCMP             R3, R2                                                 ; +0x10, 0x3c5684\nBGE             loc_3C56AA                                             ; +0x12, 0x3c5686\nSUBS            R2, R2, R3                                             ; +0x14, 0x3c5688\nVLDR            S14, [R0,#0x17C]                                       ; +0x16, 0x3c568a\nVMOV            S15, R2                                                ; +0x1a, 0x3c568e\nVCVT.F32.S32    S14, S14                                               ; +0x1e, 0x3c5692\nVCVT.F32.S32    S15, S15                                               ; +0x22, 0x3c5696\nVCMPE.F32       S15, S14                                               ; +0x26, 0x3c569a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x3c569e\nIT LE                                                                  ; +0x2e, 0x3c56a2\nVMOVLE.F32      S14, S15                                               ; +0x30, 0x3c56a4\nB               loc_3C56CC                                             ; +0x34, 0x3c56a8\nBLE             loc_3C56E6                                             ; +0x36, 0x3c56aa\nSUBS            R2, R2, R3                                             ; +0x38, 0x3c56ac\nVLDR            S14, [R0,#0x17C]                                       ; +0x3a, 0x3c56ae\nVMOV            S15, R2                                                ; +0x3e, 0x3c56b2\nVCVT.F32.S32    S14, S14                                               ; +0x42, 0x3c56b6\nVCVT.F32.S32    S15, S15                                               ; +0x46, 0x3c56ba\nVCMPE.F32       S15, S14                                               ; +0x4a, 0x3c56be\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4e, 0x3c56c2\nIT PL                                                                  ; +0x52, 0x3c56c6\nVMOVPL.F32      S14, S15                                               ; +0x54, 0x3c56c8\nVMOV            S15, R3                                                ; +0x58, 0x3c56cc\nMOV             R0, R1; this                                           ; +0x5c, 0x3c56d0\nVCVT.F32.S32    S15, S15                                               ; +0x5e, 0x3c56d2\nVADD.F32        S15, S15, S14                                          ; +0x62, 0x3c56d6\nVCVT.S32.F32    S15, S15                                               ; +0x66, 0x3c56da\nVSTR            S15, [R1,#0x184]                                       ; +0x6a, 0x3c56de\nB.W             _ZN14CCCounterLabel12updateStringEv; CCCounterLabel::updateString(void) ; +0x6e, 0x3c56e2\nB.W             _ZN14CCCounterLabel14disableCounterEv; CCCounterLabel::disableCounter(void) ; +0x72, 0x3c56e6\nBX              LR                                                     ; +0x76, 0x3c56ea", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}