//
// RateDemonLayer::onClosePopup from 0x1403c95a0 to 0x1403c961f (127 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405cc278
// > ??> @ 0x1406d7a00
//
// 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 RateDemonLayer::onClosePopup(RateDemonLayer *a1, UploadActionPopup *a2)
{
_BOOL8 v4; // rdx
bool v5; // zf
__int64 v6; // rdx
void (__fastcall ***v7)(_QWORD); // rcx
a2->setKeypadEnabled(a2, 0);
LOBYTE(v4) = 1;
a2->removeFromParentAndCleanup(a2, v4);
v5 = LOBYTE(a1->m_nTag) == 0;
*(_QWORD *)&a1->m_fScaleX = 0;
if ( !v5 )
{
(*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)&a1[-1].m_obPosition.y + 976LL))(&a1[-1].m_obPosition.y, 0);
LOBYTE(v6) = 1;
(*(void (__fastcall **)(float *, __int64))(*(_QWORD *)&a1[-1].m_obPosition.y + 504LL))(&a1[-1].m_obPosition.y, v6);
v7 = *(void (__fastcall ****)(_QWORD))&a1->m_fVertexZ;
if ( v7 )
(**v7)(v7);
}
}