//
// SetupPortalPopup::onClose from 0x503182 to 0x5031b6 (52 bytes)
//
// 1 xrefs:
// > SetupPortalPopup::keyBackClicked @ 0x5031b8
//
// 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 SetupPortalPopup::onClose(SetupPortalPopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
v3 = GameManager::sharedState();
LevelEditorLayer::resetEffectTriggerOptim(
v3->m_levelEditorLayer,
(GameObject *)a1->m_gameObjects,
(cocos2d::CCArray *)a1->m_gameObject);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}