{"type": "func", "start": 4300282128, "end": 4300282198, "name": "CCCounterLabel::calculateStepSize", "pseudocode": "// \n// CCCounterLabel::calculateStepSize from 0x100511910 to 0x100511956 (70 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 __fastcall CCCounterLabel::calculateStepSize(CCCounterLabel *a1, int a2)\n{\n  __m128 v2; // xmm0\n  float v3; // xmm0_4\n  float v4; // xmm1_4\n  int v5; // eax\n\n  v2 = _mm_cvtepi32_ps((__m128i)*(unsigned __int64 *)&a1->m_targetCount);\n  v3 = v2.f32[0] - _mm_movehdup_ps(v2).f32[0];\n  v4 = fabs(v3);\n  v5 = (int)v4;\n  if ( (float)a2 <= v4 )\n    v5 = a2;\n  a1->m_stepSize = (int)(float)(v3 / (float)v5);\n}", "assembly": "; \n; CCCounterLabel::calculateStepSize from 0x100511910 to 0x100511956 (70 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\npush    rbp                                                            ; +0x0, 0x100511910\nmov     rbp, rsp                                                       ; +0x1, 0x100511911\nmovsd   xmm0, qword ptr [rdi+208h]                                     ; +0x4, 0x100511914\ncvtdq2ps xmm0, xmm0                                                    ; +0xc, 0x10051191c\nmovshdup xmm1, xmm0                                                    ; +0xf, 0x10051191f\nsubss   xmm0, xmm1                                                     ; +0x13, 0x100511923\nmovaps  xmm1, cs:xmmword_100815500                                     ; +0x17, 0x100511927\nandps   xmm1, xmm0                                                     ; +0x1e, 0x10051192e\ncvtsi2ss xmm2, esi                                                     ; +0x21, 0x100511931\nucomiss xmm2, xmm1                                                     ; +0x25, 0x100511935\ncvttss2si eax, xmm1                                                    ; +0x28, 0x100511938\ncmovbe  eax, esi                                                       ; +0x2c, 0x10051193c\nxorps   xmm1, xmm1                                                     ; +0x2f, 0x10051193f\ncvtsi2ss xmm1, eax                                                     ; +0x32, 0x100511942\ndivss   xmm0, xmm1                                                     ; +0x36, 0x100511946\ncvttss2si eax, xmm0                                                    ; +0x3a, 0x10051194a\nmov     [rdi+204h], eax                                                ; +0x3e, 0x10051194e\npop     rbp                                                            ; +0x44, 0x100511954\nretn                                                                   ; +0x45, 0x100511955", "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"}