//
// FriendRequestPopup::onClosePopup from 0x140297230 to 0x140297289 (89 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405791b8
// > ??> @ 0x1406d1c28
// > ??> @ 0x1406d1c34
//
// 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::onClosePopup(FriendRequestPopup *a1, UploadActionPopup *a2)
{
_BOOL8 v4; // rdx
bool v5; // zf
a2->setKeypadEnabled(a2, 0);
LOBYTE(v4) = 1;
a2->removeFromParentAndCleanup(a2, v4);
if ( a2 == *(UploadActionPopup **)&a1->m_uOrderOfArrival )
{
v5 = LOBYTE(a1->m_nTag) == 0;
*(_QWORD *)&a1->m_uOrderOfArrival = 0;
if ( !v5 )
FriendRequestPopup::onClose((FriendRequestPopup *)((char *)a1 - 640), nullptr);
}
}