//
// GJMessagePopup::onClosePopup from 0x140298e00 to 0x140298e77 (119 bytes)
//
// 2 xrefs:
// > ??> @ 0x140578b10
// > ??> @ 0x1406d1cc4
//
// 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 GJMessagePopup::onClosePopup(GJMessagePopup *a1, UploadActionPopup *a2)
{
_BOOL8 v4; // rdx
bool v5; // zf
__int64 v6; // rdx
a2->setKeypadEnabled(a2, 0);
LOBYTE(v4) = 1;
a2->removeFromParentAndCleanup(a2, v4);
if ( a2 == *(UploadActionPopup **)&a1->m_fScaleX )
{
v5 = LOBYTE(a1->m_uAutoReleaseCount) == 0;
*(_QWORD *)&a1->m_fScaleX = 0;
if ( !v5 )
{
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)&a1[-1].m_fVertexZ + 976LL))(&a1[-1].m_fVertexZ, 0);
LOBYTE(v6) = 1;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)&a1[-1].m_fVertexZ + 504LL))(&a1[-1].m_fVertexZ, v6);
}
}
}