//
// PlatformerControlsPopup::FLAlert_Clicked from 0x1009601e0 to 0x1009602b5 (213 bytes)
//
// 2 xrefs:
// > sub_1009602D0 @ 0x1009602dc
// > ??> @ 0x100bcb3d8
//
// 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 12:38:45 +0000
//
void __fastcall PlatformerControlsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // rax
__int64 v4; // rax
char *v5; // rax
__int128 v6[2]; // [rsp+0h] [rbp-20h] BYREF
if ( a3 )
{
if ( *(_QWORD *)(a1 + 1048) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 1016;
v3 = GameLevelManager::sharedState();
if ( sub_10057DA60(v3, *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 332LL)) )
{
v4 = *(_QWORD *)(a1 + 1192);
if ( v4 )
{
*(_QWORD *)(v4 + 664) = 0;
*(_QWORD *)(a1 + 1192) = 0;
}
strcpy((char *)v6, "(Removing controls...");
v5 = UploadActionPopup::create(a1 + 1024, v6);
*(_QWORD *)(a1 + 1192) = v5;
if ( (v6[0] & 1) != 0 )
{
operator delete(*(void **)&v6[1]);
v5 = *(char **)(a1 + 1192);
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v5 + 1312LL))(v5);
}
}
}
}