//
// CustomSongWidget::FLAlert_Clicked from 0x86d5d4 to 0x86d668 (148 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSongWidget::FLAlert_Clicked @ 0x86d66c
// > ??> @ 0xa0c18
// > ??> @ 0x1442ed0
//
// This function is hookable on this platform (idp: arm, 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 12:55:44 +0000
//
GameManager *__fastcall CustomSongWidget::FLAlert_Clicked(CustomSongWidget *this, FLAlertLayer *a2, unsigned __int8 a3)
{
int v4; // w20
GameManager *result; // x0
unsigned __int8 v6; // w19
GameManager *v7; // x0
v4 = a3;
result = (GameManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
v6 = (unsigned __int8)result;
if ( (_DWORD)result == 1 )
{
if ( v4 )
{
v7 = (GameManager *)GameManager::sharedState(result);
GameManager::setGameVariable(v7, "0016", v6);
return (GameManager *)CustomSongWidget::onDownload(this, nullptr);
}
}
else if ( (_DWORD)result == 2 )
{
if ( v4 )
return (GameManager *)CustomSongWidget::deleteSong(this);
}
return result;
}