{"type": "func", "start": 4300270992, "end": 4300271084, "name": "FindBPMLayer::calculateBPM", "pseudocode": "// \n// FindBPMLayer::calculateBPM from 0x10050ed90 to 0x10050edec (92 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:35 +0000\n// \n\n__int64 __fastcall FindBPMLayer::calculateBPM(__int64 a1)\n{\n  __int64 result; // rax\n  __m128 v2; // xmm1\n  __m128 v3; // xmm0\n\n  result = *(unsigned int *)(a1 + 780);\n  if ( (int)result >= 2 )\n  {\n    v2 = (__m128)0x42700000u;\n    v2.f32[0] = 60.0 / (float)((float)(*(float *)(a1 + 720) - *(float *)(a1 + 776)) / (float)(result - 1));\n    v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v2), (__m128)xmmword_100A03600);\n    v3.f32[0] = v3.f32[0] + v2.f32[0];\n    result = (unsigned int)(int)_mm_round_ss(v3, v3, 11).f32[0];\n    *(_DWORD *)(a1 + 784) = result;\n  }\n  return result;\n}", "assembly": "; \n; FindBPMLayer::calculateBPM from 0x10050ed90 to 0x10050edec (92 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:35 +0000\n; \nmov     eax, [rdi+30Ch]                                                ; +0x0, 0x10050ed90\ncmp     eax, 2                                                         ; +0x6, 0x10050ed96\njl      short locret_10050EDEB                                         ; +0x9, 0x10050ed99\npush    rbp                                                            ; +0xb, 0x10050ed9b\nmov     rbp, rsp                                                       ; +0xc, 0x10050ed9c\nmovss   xmm0, dword ptr [rdi+2D0h]                                     ; +0xf, 0x10050ed9f\nsubss   xmm0, dword ptr [rdi+308h]                                     ; +0x17, 0x10050eda7\ndec     eax                                                            ; +0x1f, 0x10050edaf\ncvtsi2ss xmm1, eax                                                     ; +0x21, 0x10050edb1\ndivss   xmm0, xmm1                                                     ; +0x25, 0x10050edb5\nmovss   xmm1, cs:dword_100A03818                                       ; +0x29, 0x10050edb9\ndivss   xmm1, xmm0                                                     ; +0x31, 0x10050edc1\nmovaps  xmm0, cs:xmmword_100A035F0                                     ; +0x35, 0x10050edc5\nandps   xmm0, xmm1                                                     ; +0x3c, 0x10050edcc\norps    xmm0, cs:xmmword_100A03600                                     ; +0x3f, 0x10050edcf\naddss   xmm0, xmm1                                                     ; +0x46, 0x10050edd6\nroundss xmm0, xmm0, 0Bh                                                ; +0x4a, 0x10050edda\ncvttss2si eax, xmm0                                                    ; +0x50, 0x10050ede0\nmov     [rdi+310h], eax                                                ; +0x54, 0x10050ede4\npop     rbp                                                            ; +0x5a, 0x10050edea\nretn                                                                   ; +0x5b, 0x10050edeb", "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"}