//
// MusicBrowser::onPlaybackControl from 0x140339a60 to 0x140339abc (92 bytes)
//
// 2 xrefs:
// > MusicBrowser::setupSongControls @ 0x1403399af
// > ??> @ 0x1406d5330
//
// 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
//
// Hidden C++ exception states: #wind=1
void MusicBrowser::onPlaybackControl(MusicBrowser *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v2; // rcx
FMODAudioEngine *v3; // [rsp+38h] [rbp+10h]
if ( !a2->getTag(a2) )
{
v2 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v3 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v2 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::stopAndRemoveMusic(v2, 0);
}
}