//
// FriendRequestPopup::onClose from 0x5d369e to 0x5d36ec (78 bytes)
//
// 2 xrefs:
// > FriendRequestPopup::keyBackClicked @ 0x5d36ee
// > FriendRequestPopup::onClosePopup @ 0x5d4a42
//
// 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:54:07 +0000
//
int __fastcall FriendRequestPopup::onClose(FriendRequestPopup *this, cocos2d::CCObject *a2)
{
int v3; // r3
int v5; // r0
if ( !*((_BYTE *)this + 533) )
{
v3 = *((_DWORD *)this + 134);
if ( v3 )
{
if ( !*(_BYTE *)(v3 + 300) )
{
v5 = GameLevelManager::sharedState(this);
GameLevelManager::readFriendRequest(v5, *(const char **)(*((_DWORD *)this + 134) + 264));
*(_BYTE *)(*((_DWORD *)this + 134) + 300) = 1;
}
}
}
(*(void (__fastcall **)(FriendRequestPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(FriendRequestPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}