//
// FindBPMLayer::calculateBPM from 0x6e8160 to 0x6e8198 (56 bytes)
//
// 2 xrefs:
// > FindBPMLayer::registerTouch @ 0x6e81d4
// > ??> @ 0xb4e68
//
// This function is hookable on this platform (idp: arm, 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:51:44 +0000
//
float __fastcall FindBPMLayer::calculateBPM(FindBPMLayer *this)
{
int v1; // w1
float result; // s0
v1 = *((_DWORD *)this + 195);
if ( v1 > 1 )
{
result = 60.0 / (float)((float)(*((float *)this + 180) - *((float *)this + 194)) / (float)(v1 - 1));
*((_DWORD *)this + 196) = llroundf(result);
}
return result;
}