//
// GJRateLevelLayer::FLAlert_Clicked from 0x953094 to 0x9531b0 (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJRateLevelLayer::FLAlert_Clicked @ 0x9531b4
// > ??> @ 0xabb80
// > ??> @ 0x146b518
//
// 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 12:57:23 +0000
//
__int64 __fastcall GJRateLevelLayer::FLAlert_Clicked(GJRateLevelLayer *this, FLAlertLayer *a2, char a3)
{
GameLevelManager *v5; // x0
GameLevelManager *v6; // x0
GameLevelManager *v7; // x0
__int64 v8; // x0
__int64 v9; // x0
char v10; // w1
__int64 v11[2]; // [xsp+30h] [xbp+30h] BYREF
void *v12; // [xsp+40h] [xbp+40h]
if ( a3 )
{
v5 = (GameLevelManager *)(*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v5 == -3 )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
v7 = (GameLevelManager *)(unsigned __int8)GameLevelManager::unrateLevelAdmin(v6);
if ( (_BYTE)v7 )
{
*(_QWORD *)(GameLevelManager::sharedState(v7) + 1360) = (char *)this + 1024;
v8 = *((_QWORD *)this + 137);
if ( v8 )
*(_QWORD *)(v8 + 664) = 0;
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, "Unrating level...", 0x11u);
v9 = UploadActionPopup::create((char *)this + 1016, v11);
v10 = v11[0];
*((_QWORD *)this + 137) = v9;
if ( (v10 & 1) != 0 )
{
operator delete(v12);
v9 = *((_QWORD *)this + 137);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
}
}
}
return _stack_chk_guard;
}