//
// SFXBrowser::musicActionFinished from 0x140619720 to 0x1406197b9 (153 bytes)
//
// 3 xrefs:
// > ??> @ 0x140815ed0
// > ??> @ 0x140930194
// > ??> @ 0x1409301a0
//
// 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 11:35:19 +0000
//
void __fastcall SFXBrowser::musicActionFinished(__int64 a1, int a2)
{
cocos2d::CCObject *v3; // rcx
void *v4; // [rsp+40h] [rbp+18h]
if ( a2 == 2 && *(_BYTE *)(a1 + 436) )
{
*(_BYTE *)(a1 + 456) = 1;
v3 = (cocos2d::CCObject *)qword_14090C070;
if ( !qword_14090C070 )
{
v4 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v3 = (cocos2d::CCObject *)qword_14090C070;
}
if ( *((_QWORD *)v3 + 48) )
{
*(_BYTE *)(a1 + 436) = 0;
MusicDownloadManager::tryUpdateSFXLibrary((__int64)v3);
}
else
{
*(_BYTE *)(a1 + 436) = 1;
MusicDownloadManager::getCustomContentURL(v3);
}
}
else
{
SFXBrowser::trySetupSFXBrowser(a1 - 664);
}
}