{"type": "func", "start": 4300286272, "end": 4300286342, "name": "CCCounterLabel::calculateStepSize", "pseudocode": "// \n// CCCounterLabel::calculateStepSize from 0x100512940 to 0x100512986 (70 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:31:37 +0000\n// \n\n__int64 __fastcall CCCounterLabel::calculateStepSize(__int64 a1, int a2)\n{\n  __m128 v2; // xmm0\n  float v3; // xmm0_4\n  float v4; // xmm1_4\n  int v5; // eax\n  __int64 result; // rax\n\n  v2 = _mm_cvtepi32_ps((__m128i)*(unsigned __int64 *)(a1 + 520));\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  result = (unsigned int)(int)(float)(v3 / (float)v5);\n  *(_DWORD *)(a1 + 516) = result;\n  return result;\n}", "assembly": "; \n; CCCounterLabel::calculateStepSize from 0x100512940 to 0x100512986 (70 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:31:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x100512940\nmov     rbp, rsp                                                       ; +0x1, 0x100512941\nmovsd   xmm0, qword ptr [rdi+208h]                                     ; +0x4, 0x100512944\ncvtdq2ps xmm0, xmm0                                                    ; +0xc, 0x10051294c\nmovshdup xmm1, xmm0                                                    ; +0xf, 0x10051294f\nsubss   xmm0, xmm1                                                     ; +0x13, 0x100512953\nmovaps  xmm1, cs:xmmword_100A038A0                                     ; +0x17, 0x100512957\nandps   xmm1, xmm0                                                     ; +0x1e, 0x10051295e\ncvtsi2ss xmm2, esi                                                     ; +0x21, 0x100512961\nucomiss xmm2, xmm1                                                     ; +0x25, 0x100512965\ncvttss2si eax, xmm1                                                    ; +0x28, 0x100512968\ncmovbe  eax, esi                                                       ; +0x2c, 0x10051296c\nxorps   xmm1, xmm1                                                     ; +0x2f, 0x10051296f\ncvtsi2ss xmm1, eax                                                     ; +0x32, 0x100512972\ndivss   xmm0, xmm1                                                     ; +0x36, 0x100512976\ncvttss2si eax, xmm0                                                    ; +0x3a, 0x10051297a\nmov     [rdi+204h], eax                                                ; +0x3e, 0x10051297e\npop     rbp                                                            ; +0x44, 0x100512984\nretn                                                                   ; +0x45, 0x100512985", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}