{"type": "func", "start": 3037234, "end": 3037298, "name": "CCCounterLabel::calculateStepSize", "pseudocode": "// \n// CCCounterLabel::calculateStepSize from 0x2e5832 to 0x2e5872 (64 bytes)\n// \n// 1 xrefs:\n// > CCCounterLabel::setTargetCount @ 0x2e587e\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::calculateStepSize(CCCounterLabel *a1, int a2)\n{\n  int v2; // s14\n  float v3; // s15\n  float v4; // s13\n\n  v2 = a2;\n  v3 = (float)a1->m_targetCount - (float)a1->m_currentCount;\n  v4 = fabsf(v3);\n  if ( v4 < (float)a2 )\n    v2 = (int)v4;\n  a1->m_stepSize = (int)(float)(v3 / (float)v2);\n}", "assembly": "; \n; CCCounterLabel::calculateStepSize from 0x2e5832 to 0x2e5872 (64 bytes)\n; \n; 1 xrefs:\n; > CCCounterLabel::setTargetCount @ 0x2e587e\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\nVLDR            S15, [R0,#0x170]                                       ; +0x0, 0x2e5832\nVLDR            S13, [R0,#0x174]                                       ; +0x4, 0x2e5836\nVCVT.F32.S32    S15, S15                                               ; +0x8, 0x2e583a\nVMOV            S14, R1                                                ; +0xc, 0x2e583e\nVCVT.F32.S32    S13, S13                                               ; +0x10, 0x2e5842\nVSUB.F32        S15, S15, S13                                          ; +0x14, 0x2e5846\nVCVT.F32.S32    S12, S14                                               ; +0x18, 0x2e584a\nVABS.F32        S13, S15                                               ; +0x1c, 0x2e584e\nVCMPE.F32       S13, S12                                               ; +0x20, 0x2e5852\nVMRS            APSR_nzcv, FPSCR                                       ; +0x24, 0x2e5856\nIT MI                                                                  ; +0x28, 0x2e585a\nVCVTMI.S32.F32  S14, S13                                               ; +0x2a, 0x2e585c\nVCVT.F32.S32    S14, S14                                               ; +0x2e, 0x2e5860\nVDIV.F32        S15, S15, S14                                          ; +0x32, 0x2e5864\nVCVT.S32.F32    S15, S15                                               ; +0x36, 0x2e5868\nVSTR            S15, [R0,#0x16C]                                       ; +0x3a, 0x2e586c\nBX              LR                                                     ; +0x3e, 0x2e5870", "xrefs": ["CCCounterLabel::setTargetCount @ 0x2e587e"], "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"}