//
// CustomSFXWidget::FLAlert_Clicked from 0xb5eea4 to 0xb5ef38 (148 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomSFXWidget::FLAlert_Clicked @ 0xb5ef3c
// > ??> @ 0x4b178
// > ??> @ 0x14c3068
//
// 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 13:02:10 +0000
//
GameManager *__fastcall CustomSFXWidget::FLAlert_Clicked(CustomSFXWidget *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 CustomSFXWidget::onDownload(this, nullptr);
}
}
else if ( (_DWORD)result == 3 )
{
if ( v4 )
return (GameManager *)CustomSFXWidget::deleteSFX(this);
}
return result;
}