{"type": "func", "start": 5720264, "end": 5720324, "name": "CCCounterLabel::calculateStepSize", "pseudocode": "// \n// CCCounterLabel::calculateStepSize from 0x5748c8 to 0x574904 (60 bytes)\n// \n// 2 xrefs:\n// > CCCounterLabel::setTargetCount @ 0x57491c\n// > <???> @ 0xa9f38\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  float v2; // s2\n  float v3; // s0\n  float v4; // s1\n\n  v2 = (float)a2;\n  v3 = (float)a1->m_targetCount - (float)a1->m_currentCount;\n  v4 = fabsf(v3);\n  if ( v4 < (float)a2 )\n    v2 = (float)(int)v4;\n  a1->m_stepSize = (int)(float)(v3 / v2);\n}", "assembly": "; \n; CCCounterLabel::calculateStepSize from 0x5748c8 to 0x574904 (60 bytes)\n; \n; 2 xrefs:\n; > CCCounterLabel::setTargetCount @ 0x57491c\n; > <???> @ 0xa9f38\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\nLDR             W2, [X0,#0x1E8]                                        ; +0x0, 0x5748c8\nLDR             W3, [X0,#0x1EC]                                        ; +0x4, 0x5748cc\nSCVTF           S2, W1                                                 ; +0x8, 0x5748d0\nSCVTF           S1, W2                                                 ; +0xc, 0x5748d4\nSCVTF           S0, W3                                                 ; +0x10, 0x5748d8\nFSUB            S0, S1, S0                                             ; +0x14, 0x5748dc\nFABS            S1, S0                                                 ; +0x18, 0x5748e0\nFCMPE           S1, S2                                                 ; +0x1c, 0x5748e4\nB.PL            loc_5748F4                                             ; +0x20, 0x5748e8\nFCVTZS          W1, S1                                                 ; +0x24, 0x5748ec\nSCVTF           S2, W1                                                 ; +0x28, 0x5748f0\nFDIV            S0, S0, S2                                             ; +0x2c, 0x5748f4\nFCVTZS          W1, S0                                                 ; +0x30, 0x5748f8\nSTR             W1, [X0,#0x1E4]                                        ; +0x34, 0x5748fc\nRET                                                                    ; +0x38, 0x574900", "xrefs": ["CCCounterLabel::setTargetCount @ 0x57491c", "<???> @ 0xa9f38"], "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"}