// // FindBPMLayer::calculateBPM from 0x10050ed90 to 0x10050edec (92 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:35 +0000 // __int64 __fastcall FindBPMLayer::calculateBPM(__int64 a1) { __int64 result; // rax __m128 v2; // xmm1 __m128 v3; // xmm0 result = *(unsigned int *)(a1 + 780); if ( (int)result >= 2 ) { v2 = (__m128)0x42700000u; v2.f32[0] = 60.0 / (float)((float)(*(float *)(a1 + 720) - *(float *)(a1 + 776)) / (float)(result - 1)); v3 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v2), (__m128)xmmword_100A03600); v3.f32[0] = v3.f32[0] + v2.f32[0]; result = (unsigned int)(int)_mm_round_ss(v3, v3, 11).f32[0]; *(_DWORD *)(a1 + 784) = result; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source