//
// InvitesPopup::FLAlert_Clicked from 0x74c6d0 to 0x74c760 (144 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'InvitesPopup::FLAlert_Clicked @ 0x74c76c
//
// 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:58:47 +0000
//
GameLevelManager *__fastcall InvitesPopup::FLAlert_Clicked(const char **this, FLAlertLayer *a2, int a3, int a4)
{
GameLevelManager *result; // r0
int v7; // r0
const char *v8; // r7
GameManager *v9; // r8
int updated; // r7
InvitesPopup *v11; // [sp+0h] [bp-10h] BYREF
FLAlertLayer *v12; // [sp+4h] [bp-Ch]
int v13; // [sp+8h] [bp-8h]
int v14; // [sp+Ch] [bp-4h]
v11 = (InvitesPopup *)this;
v12 = a2;
v13 = a3;
v14 = a4;
result = (GameLevelManager *)(*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2);
if ( result == (GameLevelManager *)&byte_6 )
{
if ( !a3 )
goto LABEL_4;
if ( (int)*(this + 153) <= 0 )
goto LABEL_4;
v7 = GameLevelManager::sharedState((GameLevelManager *)&byte_6);
v8 = *(this + 153);
v11 = nullptr;
v12 = nullptr;
v13 = 0;
v9 = (GameManager *)v7;
std::string::__init((int *)&v11, &unk_B6B226, 0);
updated = GameLevelManager::updateThread(v9, v8, 9, (unsigned __int8 *)&v11);
result = (GameLevelManager *)std::string::~string((int)&v11);
if ( updated )
{
result = (GameLevelManager *)GameLevelManager::sharedState(result);
*((_DWORD *)result + 210) = this + 149;
}
else
{
LABEL_4:
*(this + 153) = nullptr;
}
}
return result;
}