{"type": "func", "start": 3037468, "end": 3037588, "name": "CCCounterLabel::updateCounter", "pseudocode": "// \n// CCCounterLabel::updateCounter from 0x2e591c to 0x2e5994 (120 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CCCounterLabel::updateCounter(CCCounterLabel *a1, float a2)\n{\n  int m_currentCount; // r3\n  int m_targetCount; // r2\n  int v4; // r2\n  float m_stepSize; // s14\n  int v6; // r2\n\n  if ( a1->m_counterEnabled )\n  {\n    m_currentCount = a1->m_currentCount;\n    m_targetCount = a1->m_targetCount;\n    if ( m_currentCount < m_targetCount )\n    {\n      v4 = m_targetCount - m_currentCount;\n      m_stepSize = (float)a1->m_stepSize;\n      if ( (float)v4 <= m_stepSize )\n        m_stepSize = (float)v4;\nLABEL_9:\n      a1->m_currentCount = (int)(float)((float)m_currentCount + m_stepSize);\n      CCCounterLabel::updateString(a1);\n      return;\n    }\n    if ( m_currentCount > m_targetCount )\n    {\n      v6 = m_targetCount - m_currentCount;\n      m_stepSize = (float)a1->m_stepSize;\n      if ( (float)v6 >= m_stepSize )\n        m_stepSize = (float)v6;\n      goto LABEL_9;\n    }\n    CCCounterLabel::disableCounter(a1);\n  }\n}", "assembly": "; \n; CCCounterLabel::updateCounter from 0x2e591c to 0x2e5994 (120 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDRB.W          R3, [R0,#0x178]                                        ; +0x0, 0x2e591c\nMOV             R1, R0                                                 ; +0x4, 0x2e5920\nCBZ             R3, locret_2E5992                                      ; +0x6, 0x2e5922\nLDR.W           R3, [R0,#0x174]                                        ; +0x8, 0x2e5924\nLDR.W           R2, [R0,#0x170]                                        ; +0xc, 0x2e5928\nCMP             R3, R2                                                 ; +0x10, 0x2e592c\nBGE             loc_2E5952                                             ; +0x12, 0x2e592e\nSUBS            R2, R2, R3                                             ; +0x14, 0x2e5930\nVLDR            S14, [R0,#0x16C]                                       ; +0x16, 0x2e5932\nVMOV            S15, R2                                                ; +0x1a, 0x2e5936\nVCVT.F32.S32    S14, S14                                               ; +0x1e, 0x2e593a\nVCVT.F32.S32    S15, S15                                               ; +0x22, 0x2e593e\nVCMPE.F32       S15, S14                                               ; +0x26, 0x2e5942\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x2e5946\nIT LE                                                                  ; +0x2e, 0x2e594a\nVMOVLE.F32      S14, S15                                               ; +0x30, 0x2e594c\nB               loc_2E5974                                             ; +0x34, 0x2e5950\nBLE             loc_2E598E                                             ; +0x36, 0x2e5952\nSUBS            R2, R2, R3                                             ; +0x38, 0x2e5954\nVLDR            S14, [R0,#0x16C]                                       ; +0x3a, 0x2e5956\nVMOV            S15, R2                                                ; +0x3e, 0x2e595a\nVCVT.F32.S32    S14, S14                                               ; +0x42, 0x2e595e\nVCVT.F32.S32    S15, S15                                               ; +0x46, 0x2e5962\nVCMPE.F32       S15, S14                                               ; +0x4a, 0x2e5966\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4e, 0x2e596a\nIT PL                                                                  ; +0x52, 0x2e596e\nVMOVPL.F32      S14, S15                                               ; +0x54, 0x2e5970\nVMOV            S15, R3                                                ; +0x58, 0x2e5974\nMOV             R0, R1; this                                           ; +0x5c, 0x2e5978\nVCVT.F32.S32    S15, S15                                               ; +0x5e, 0x2e597a\nVADD.F32        S15, S15, S14                                          ; +0x62, 0x2e597e\nVCVT.S32.F32    S15, S15                                               ; +0x66, 0x2e5982\nVSTR            S15, [R1,#0x174]                                       ; +0x6a, 0x2e5986\nB.W             _ZN14CCCounterLabel12updateStringEv; CCCounterLabel::updateString(void) ; +0x6e, 0x2e598a\nB.W             _ZN14CCCounterLabel14disableCounterEv; CCCounterLabel::disableCounter(void) ; +0x72, 0x2e598e\nBX              LR                                                     ; +0x76, 0x2e5992", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}