//
// RateDemonLayer::onClosePopup from 0x100426aa4 to 0x100426b1c (120 bytes)
//
// 2 xrefs:
// > sub_100426B1C @ 0x100426b20
// > ??> @ 0x100826a48
//
// 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 __fastcall RateDemonLayer::onClosePopup(RateDemonLayer *a1, UploadActionPopup *a2)
{
RateLevelDelegate *m_delegate; // x0
UploadActionPopup::closePopup(a2);
a1->m_popup = nullptr;
if ( a1->m_uploadFinished )
{
((void (__fastcall *)(RateDemonLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(RateDemonLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(RateLevelDelegate *))m_delegate->rateLevelClosed)(m_delegate);
}
}