//
// GJRateLevelLayer::FLAlert_Clicked from 0x1005056b0 to 0x100505779 (201 bytes)
//
// 2 xrefs:
// > sub_1005057A0 @ 0x1005057ac
// > ??> @ 0x100b65950
//
// 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:32 +0000
//
void __fastcall GJRateLevelLayer::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) == -3 )
{
v4 = GameLevelManager::sharedState(a4);
if ( (unsigned __int8)sub_100579B20(
v4,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 1048) + 328LL)
- *(_DWORD *)(*(_QWORD *)(a1 + 1048) + 332LL))) )
{
*(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;
v5 = *(_QWORD *)(a1 + 1096);
if ( v5 )
*(_QWORD *)(v5 + 664) = 0;
strcpy((char *)v7, "\"Unrating level...");
v6 = UploadActionPopup::create(a1 + 1016, v7);
*(_QWORD *)(a1 + 1096) = v6;
if ( (v7[0] & 1) != 0 )
{
operator delete(*(void **)&v7[1]);
v6 = *(char **)(a1 + 1096);
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
}
}