//
// GJRateEditorSoundLayer::FLAlert_Clicked from 0x100509880 to 0x100509953 (211 bytes)
//
// 2 xrefs:
// > sub_100509970 @ 0x10050997c
// > ??> @ 0x100b66a70
//
// 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 GJRateEditorSoundLayer::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) == -22 )
{
v4 = GameLevelManager::sharedState(a4);
if ( (unsigned __int8)GameLevelManager::unrateLevelAdmin(v4, *(unsigned int *)(*(_QWORD *)(a1 + 1040) + 316LL)) )
{
*(_QWORD *)(GameLevelManager::sharedState(a4) + 1360) = a1 + 1024;
v5 = *(_QWORD *)(a1 + 1048);
if ( v5 )
*(_QWORD *)(v5 + 664) = 0;
strcpy((char *)v7, ",Unrating sound pack...");
v6 = UploadActionPopup::create(a1 + 1016, v7);
*(_QWORD *)(a1 + 1048) = v6;
if ( (v7[0] & 1) != 0 )
{
operator delete(*(void **)&v7[1]);
v6 = *(char **)(a1 + 1048);
}
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
}
}