//
// CustomSongWidget::FLAlert_Clicked from 0x14016ed20 to 0x14016edc8 (168 bytes)
//
// 2 xrefs:
// > ??> @ 0x140744f40
// > ??> @ 0x140918248
//
// 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:27:30 +0000
//
void __fastcall CustomSongWidget::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)
{
int v5; // eax
__int64 v6; // r8
__int64 v7; // rcx
void *v8; // [rsp+38h] [rbp+10h]
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1;
if ( v5 )
{
if ( v5 == 1 )
{
if ( a3 )
CustomSongWidget::deleteSong(a1 - 328);
}
}
else if ( a3 )
{
v7 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v7 = qword_14090BFD0;
}
LOBYTE(v6) = 1;
GameManager::setGameVariable(v7, "0016", v6);
CustomSongWidget::onDownload(a1 - 328);
}
}