//
// GJRateLevelListLayer::FLAlert_Clicked from 0x100508810 to 0x1005088d1 (193 bytes)
//
// 2 xrefs:
// > sub_1005088F0 @ 0x1005088fc
// > ??> @ 0x100b661f0
//
// 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:31:33 +0000
//
void __fastcall GJRateLevelListLayer::FLAlert_Clicked(__int64 a1, __int64 a2, int a3, double a4)
{
__int64 v4; // rax
__int64 v5; // rax
char *v6; // rax
__int128 v7[2]; // [rsp+0h] [rbp-20h] BYREF
if ( a3 )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == -14 )
{
v4 = GameLevelManager::sharedState(a4);
if ( (unsigned __int8)sub_100579B50(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1040) + 344LL)) )
{
*(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;
v5 = *(_QWORD *)(a1 + 1056);
if ( v5 )
*(_QWORD *)(v5 + 664) = 0;
strcpy((char *)v7, " Unrating list...");
v6 = UploadActionPopup::create(a1 + 1016, v7);
*(_QWORD *)(a1 + 1056) = v6;
if ( (v7[0] & 1) != 0 )
{
operator delete(*(void **)&v7[1]);
v6 = *(char **)(a1 + 1056);
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
}
}