//
// GJRateLevelListLayer::FLAlert_Clicked from 0x566714 to 0x5667ae (154 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJRateLevelListLayer::FLAlert_Clicked @ 0x5667bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:28 +0000
//
GameLevelManager *__fastcall GJRateLevelListLayer::FLAlert_Clicked(
GJRateLevelListLayer *this,
FLAlertLayer *a2,
int a3,
int a4)
{
GameLevelManager *result; // r0
GameLevelManager *v6; // r0
int v7; // r3
GJRateLevelListLayer *v8; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v9; // [sp+4h] [bp-Ch]
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v8 = this;
v9 = a2;
v10 = a3;
v11 = a4;
result = (GameLevelManager *)_stack_chk_guard;
if ( a3 )
{
result = (GameLevelManager *)((*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) + 14);
if ( !result )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
result = (GameLevelManager *)GameLevelManager::unrateLevelListAdmin(
v6,
*(_DWORD *)(*((_DWORD *)this + 181) + 276));
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState(result) + 888) = (char *)this + 716;
v7 = *((_DWORD *)this + 183);
if ( v7 )
*(_DWORD *)(v7 + 520) = 0;
v8 = nullptr;
v9 = nullptr;
v10 = 0;
std::string::__init((int *)&v8, "Unrating list...", 0x10u);
*((_DWORD *)this + 183) = UploadActionPopup::create((char *)this + 712, &v8);
std::string::~string((int)&v8);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 183) + 656))(*((_DWORD *)this + 183));
}
}
}
return result;
}