//
// FriendRequestPopup::onClose from 0x4a84b4 to 0x4a84fc (72 bytes)
//
// 2 xrefs:
// > FriendRequestPopup::keyBackClicked @ 0x4a84fe
// > FriendRequestPopup::onClosePopup @ 0x4ace0e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void FriendRequestPopup::onClose(FriendRequestPopup *a1, cocos2d::CCObject *a2)
{
GJFriendRequest *m_request; // r3
GameLevelManager *v4; // r0
m_request = a1->m_request;
if ( m_request && !m_request->m_isRead )
{
v4 = GameLevelManager::sharedState();
GameLevelManager::readFriendRequest(v4, a1->m_request->m_requestID);
a1->m_request->m_isRead = 1;
}
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}