//
// MPLobbyLayer::onClosePopup from 0x100494c60 to 0x100494cf3 (147 bytes)
//
// 1 xrefs:
// > ??> @ 0x100943cb8
//
// 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 MPLobbyLayer::onClosePopup(MPLobbyLayer *a1, UploadActionPopup *a2)
{
UploadActionPopup *m_uploadPopup; // rdi
cocos2d::CCDirector *v4; // r14
cocos2d::CCScene *v5; // rax
cocos2d::CCTransitionFade *v6; // rax
UploadActionPopup::closePopup(a2);
m_uploadPopup = a1->m_uploadPopup;
if ( m_uploadPopup == a2 )
{
if ( a2->m_succeeded
&& ((unsigned int (__fastcall *)(UploadActionPopup *))m_uploadPopup->getTag)(m_uploadPopup) == 1 )
{
((void (__fastcall *)(MPLobbyLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
v4 = cocos2d::CCDirector::sharedDirector();
v5 = MultiplayerLayer::scene();
v6 = cocos2d::CCTransitionFade::create_1(0.5, v5);
cocos2d::CCDirector::replaceScene(v4, v6);
}
a1->m_uploadPopup->m_delegate = nullptr;
a1->m_uploadPopup = nullptr;
}
}