//
// GJRateLevelLayer::FLAlert_Clicked from 0x566360 to 0x566400 (160 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJRateLevelLayer::FLAlert_Clicked @ 0x56640c
//
// 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 GJRateLevelLayer::FLAlert_Clicked(
GJRateLevelLayer *this,
FLAlertLayer *a2,
int a3,
int a4)
{
GameLevelManager *result; // r0
GameLevelManager *v6; // r0
int v7; // r3
GJRateLevelLayer *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) + 3);
if ( !result )
{
v6 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
result = (GameLevelManager *)GameLevelManager::unrateLevelAdmin(
v6,
*(_DWORD *)(*((_DWORD *)this + 182) + 268)
- *(_DWORD *)(*((_DWORD *)this + 182) + 272));
if ( result )
{
*(_DWORD *)(GameLevelManager::sharedState(result) + 888) = (char *)this + 716;
v7 = *((_DWORD *)this + 189);
if ( v7 )
*(_DWORD *)(v7 + 520) = 0;
v8 = nullptr;
v9 = nullptr;
v10 = 0;
std::string::__init((int *)&v8, "Unrating level...", 0x11u);
*((_DWORD *)this + 189) = UploadActionPopup::create((char *)this + 712, &v8);
std::string::~string((int)&v8);
return (GameLevelManager *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 189) + 656))(*((_DWORD *)this + 189));
}
}
}
return result;
}