//
// SongInfoLayer::onBPM from 0x140494500 to 0x1404945a5 (165 bytes)
//
// 2 xrefs:
// > SongInfoLayer::init @ 0x140492e13
// > ??> @ 0x1406dc188
//
// 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 SongInfoLayer::onBPM(SongInfoLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rbx
FindBPMLayer *v4; // rax
FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]
v3 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v5 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v3 = qword_1406C2E88;
}
if ( *(_QWORD *)(v3 + 552) )
FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));
sub_14005E0D0((_QWORD *)(v3 + 1064));
sub_14005E0D0((_QWORD *)(v3 + 1128));
sub_14005E0D0((_QWORD *)(v3 + 1192));
v4 = FindBPMLayer::create(a1->m_songID);
v4->show(v4);
}