//
// FindBPMLayer::calculateBPM from 0x5c1cd0 to 0x5c1d08 (56 bytes)
//
// 2 xrefs:
// > FindBPMLayer::registerTouch @ 0x5c1d44
// > ??> @ 0x886c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void FindBPMLayer::calculateBPM(FindBPMLayer *a1)
{
int m_beats; // w1
m_beats = a1->m_beats;
if ( m_beats > 1 )
a1->m_beatsPerMinute = llroundf(60.0 / (float)((float)(a1->m_elapsed - a1->m_startOffset) / (float)(m_beats - 1)));
}