//
// InvitesPopup::FLAlert_Clicked from 0xc6ce04 to 0xc6cf14 (272 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'InvitesPopup::FLAlert_Clicked @ 0xc6cf18
// > ??> @ 0x102d60
// > ??> @ 0x14f0d90
//
// 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 13:05:28 +0000
//
__int64 __fastcall InvitesPopup::FLAlert_Clicked(InvitesPopup *this, FLAlertLayer *a2, unsigned __int8 a3)
{
int v4; // w21
GameLevelManager *v6; // x0
cocos2d::CCObject *v7; // x22
unsigned int v8; // w21
GameLevelManager *updated; // x0
int v10; // w21
__int64 v11[2]; // [xsp+40h] [xbp+40h] BYREF
void *v12; // [xsp+50h] [xbp+50h]
v4 = a3;
if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 6 )
{
if ( !v4 )
goto LABEL_9;
v6 = (GameLevelManager *)*((unsigned int *)this + 202);
if ( (int)v6 <= 0 )
goto LABEL_9;
v7 = (cocos2d::CCObject *)GameLevelManager::sharedState(v6);
v8 = *((_DWORD *)this + 202);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, &byte_11B8890, 0);
updated = (GameLevelManager *)GameLevelManager::updateThread(v7, (char *)v8, 9, (char *)v11);
v10 = (unsigned __int8)updated;
if ( (v11[0] & 1) != 0 )
operator delete(v12);
if ( v10 )
*(_QWORD *)(GameLevelManager::sharedState(updated) + 1264) = (char *)this + 776;
else
LABEL_9:
*((_DWORD *)this + 202) = 0;
}
return _stack_chk_guard;
}