//
// FriendRequestPopup::onClose from 0xa1dcac to 0xa1dd24 (120 bytes)
//
// 5 xrefs:
// > FriendRequestPopup::keyBackClicked @ 0xa1dd28
// > FriendRequestPopup::onClosePopup @ 0xa1feb8
// > ??> @ 0xb2390
// > FriendRequestPopup::init @ 0xa31b08
// > ??> @ 0x1545140
//
// 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:59:38 +0000
//
__int64 __fastcall FriendRequestPopup::onClose(FriendRequestPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
GameLevelManager *v4; // x0
GameLevelManager *v5; // x0
if ( !*((_BYTE *)this + 689) )
{
v3 = *((_QWORD *)this + 87);
if ( v3 )
{
v4 = (GameLevelManager *)*(unsigned __int8 *)(v3 + 376);
if ( !(_DWORD)v4 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
GameLevelManager::readFriendRequest(v5, (const char *)*(unsigned int *)(*((_QWORD *)this + 87) + 316LL));
*(_BYTE *)(*((_QWORD *)this + 87) + 376LL) = 1;
}
}
}
(*(void (__fastcall **)(FriendRequestPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(FriendRequestPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}