//
// FRequestProfilePage::onClosePopup from 0x14013eee0 to 0x14013ef25 (69 bytes)
//
// 3 xrefs:
// > ??> @ 0x140557ce0
// > ??> @ 0x1405ab978
// > ??> @ 0x1406ca218
//
// 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
//
// Merged with: FRequestProfilePage::onClosePopup, MessagesProfilePage::onClosePopup
__int64 __fastcall FRequestProfilePage::onClosePopup(__int64 a1, __int64 a2)
{
__int64 v4; // rdx
__int64 result; // rax
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 976LL))(a2, 0);
LOBYTE(v4) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 504LL))(a2, v4);
if ( a2 == *(_QWORD *)(a1 + 88) )
*(_QWORD *)(a1 + 88) = 0;
return result;
}