//
// SetupTriggerPopup::onClose from 0x542344 to 0x542384 (64 bytes)
//
// 43 xrefs:
// > GJRateLevelLayer::onClose @ 0x452f16
// > CustomizeObjectSettingsPopup::onClose @ 0x463da2
// > EditTriggersPopup::onClose @ 0x4a7a12
// > EditorOptionsLayer::onClose @ 0x4a7d20
// > UIOptionsLayer::onClose @ 0x4a928c
// > UIPOptionsLayer::onClose @ 0x4a9a5c
// > SetupOpacityPopup::onClose @ 0x4ba6ce
// > SetupObjectTogglePopup::onClose @ 0x4bb73c
// > SetupSpawnPopup::onClose @ 0x4bbe16
// > SetupPulsePopup::onClose @ 0x4bd8a8
// > GJFollowCommandLayer::onClose @ 0x4db738
// > GJPFollowCommandLayer::onClose @ 0x4dceca
// > GJRotateCommandLayer::onClose @ 0x4deb46
// > SetItemIDLayer::onClose @ 0x4f29b0
// > SetupAnimationPopup::onClose @ 0x4f2f4e
// > SetupAnimSettingsPopup::onClose @ 0x4f41ae
// > SetupCollisionTriggerPopup::onClose @ 0x4f43b0
// > SetupCountTriggerPopup::onClose @ 0x4f5e12
// > SetupInteractObjectPopup::onClose @ 0x4f6db8
// > SetupInstantCountPopup::onClose @ 0x4f7610
// > SetupRotatePopup::onClose @ 0x4f8c84
// > SetupShakePopup::onClose @ 0x4f9340
// > SetupTouchTogglePopup::onClose @ 0x4fa41c
// > SetupCameraOffsetTrigger::onClose @ 0x501660
// > SetupZoomTriggerPopup::onClose @ 0x50459e
// > SetupRandTriggerPopup::onClose @ 0x504b4c
// > SetupEndPopup::onClose @ 0x505ba0
// > SetupSongTriggerPopup::onClose @ 0x524fe8
// > SetupTimeWarpPopup::onClose @ 0x525a9a
// > SetupCameraRotatePopup::onClose @ 0x5261f0
// > SetupRandAdvTriggerPopup::onClose @ 0x527a1e
// > SetupCameraEdgePopup::onClose @ 0x548a2e
// > SetupShaderEffectPopup::onClose @ 0x5519d2
// > SetupAreaTintTriggerPopup::onClose @ 0x557a6e
// > SetupEnterEffectPopup::onClose @ 0x55c39c
// > SetupCameraModePopup::onClose @ 0x55de02
// > SetupAdvFollowPopup::onClose @ 0x55ea5e
// > SetupMGTrigger::onClose @ 0x5624bc
// > SetupKeyframePopup::onClose @ 0x573444
// > SetupReverbPopup::onClose @ 0x574ec6
// > SetupSFXPopup::onClose @ 0x575038
// > SetupStopTriggerPopup::onClose @ 0x57822e
// > SelectEventLayer::onClose @ 0x57efce
//
// 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 SetupTriggerPopup::onClose(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
v3 = GameManager::sharedState();
LevelEditorLayer::resetEffectTriggerOptim(v3->m_levelEditorLayer, a1->m_gameObject, a1->m_gameObjects);
SetupTriggerPopup::closeInputNodes(a1);
SetupTriggerPopup::updateEditorLabel(a1);
a1->setKeypadEnabled(a1, 0);
a1->removeFromParentAndCleanup(a1, 1);
}