//
// SetupTriggerPopup::onClose from 0x676fde to 0x67706c (142 bytes)
//
// 62 xrefs:
// > CreateStartPosPopup::onClose @ 0x48eac6
// > GJRateLevelLayer::onClose @ 0x564aa2
// > GJRateLevelListLayer::onClose @ 0x564aa6
// > GJRateEditorSoundLayer::onClose @ 0x564aaa
// > CustomizeObjectSettingsPopup::onClose @ 0x581072
// > KeybindingsLayer::onClose @ 0x589198
// > EditTriggersPopup::onClose @ 0x5d3052
// > EditorOptionsLayer::onClose @ 0x5d33bc
// > UIOptionsLayer::onClose @ 0x5d3bdc
// > UIPOptionsLayer::onClose @ 0x5d3fe4
// > SetupOpacityPopup::onClose @ 0x5e92ee
// > SetupObjectTogglePopup::onClose @ 0x5ea164
// > SetupSpawnPopup::onClose @ 0x5ea96a
// > SetupPulsePopup::onClose @ 0x5ec2b4
// > SetItemIDLayer::onClose @ 0x623672
// > SetupAnimationPopup::onClose @ 0x624392
// > SetupAnimSettingsPopup::onClose @ 0x62512c
// > SetupInteractObjectPopup::onClose @ 0x627030
// > SetupInstantCountPopup::onClose @ 0x627828
// > SetupRotatePopup::onClose @ 0x628e4c
// > SetupShakePopup::onClose @ 0x6295d4
// > SetupTouchTogglePopup::onClose @ 0x62a7b8
// > SetupCameraOffsetTrigger::onClose @ 0x632088
// > SetupZoomTriggerPopup::onClose @ 0x6353d6
// > SetupRandTriggerPopup::onClose @ 0x635a38
// > SetupEndPopup::onClose @ 0x6368ec
// > SetupSongTriggerPopup::onClose @ 0x658390
// > SetupTimeWarpPopup::onClose @ 0x6590ea
// > SetupCameraRotatePopup::onClose @ 0x6598e0
// > SetupRandAdvTriggerPopup::onClose @ 0x65b2d2
// > SetupCameraEdgePopup::onClose @ 0x67eb4a
// > SetupShaderEffectPopup::onClose @ 0x687e66
// > SetupAreaTintTriggerPopup::onClose @ 0x68e94e
// > SetupEnterEffectPopup::onClose @ 0x693874
// > SetupCameraModePopup::onClose @ 0x695502
// > SetupAdvFollowPopup::onClose @ 0x6961ac
// > SetupMGTrigger::onClose @ 0x69a0f4
// > StartPosLayer::onClose @ 0x6ad7a2
// > SetupKeyframePopup::onClose @ 0x6ada1c
// > SetupReverbPopup::onClose @ 0x6af802
// > SetupSFXPopup::onClose @ 0x6afe30
// > SetupStopTriggerPopup::onClose @ 0x6b300c
// > SelectEventLayer::onClose @ 0x6bab50
// > SFXSettingsPopup::onClose @ 0x6c3b0c
// > AutoSaveSettingsLayer::onClose @ 0x6e69aa
// > GameSettingsLayer::onClose @ 0x71055a
// > AdminActionConfirmPopup::onClose @ 0x731022
// > ReviewChoiceSheet::onClose @ 0x731f7c
// > NotificationFilterPopup::onClose @ 0x743c42
// > CreatorSettingsPopup::onClose @ 0x7658d8
// > EasingSelectPopup::onClose @ 0x779d22
// > EditorSFXActionConfigLayer::onClose @ 0x77bb98
// > EditorSoundBrowserLayer::onClose @ 0x7821c2
// > SoundPackDescPopup::onClose @ 0x78464a
// > EditorSoundConfigInfoLayer::onClose @ 0x784bcc
// > EditorSoundConfigUploadPopup::onClose @ 0x788c20
// > EditorSoundsLayer::onClose @ 0x789fda
// > EditorWindowPopup::onClose @ 0x78d436
// > KeybindCapturePopup::onClose @ 0x79a24c
// > PlatformerControlsPopup::onClose @ 0x79d10a
// > ControlSlotsPopup::onClose @ 0x7a2752
// > TouchControlEditLayer::onOK @ 0x7a4f60
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:56 +0000
//
int __fastcall SetupTriggerPopup::onClose(SetupTriggerPopup *this, cocos2d::CCObject *a2)
{
SetupTriggerPopup *v2; // r4
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
GameManager *v5; // r0
int v6; // r0
cocos2d::CCArray **updated; // r0
GameManager *v8; // r0
v2 = this;
if ( *((_BYTE *)this + 504) )
{
v3 = cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
this = (SetupTriggerPopup *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v2);
*((_BYTE *)v2 + 504) = 0;
}
v5 = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)v5 + 102) )
{
v6 = GameManager::sharedState(v5);
LevelEditorLayer::resetEffectTriggerOptim(
*(LevelEditorLayer **)(v6 + 408),
*((GameObject **)v2 + 132),
*((cocos2d::CCArray **)v2 + 133));
}
SetupTriggerPopup::closeInputNodes((int)v2);
updated = SetupTriggerPopup::updateEditorLabel((cocos2d::CCArray **)v2);
v8 = (GameManager *)GameManager::sharedState((GameManager *)updated);
if ( *((_DWORD *)v8 + 102) && (*((_DWORD *)v2 + 132) || *((_DWORD *)v2 + 133)) )
*(_BYTE *)(*(_DWORD *)(GameManager::sharedState(v8) + 408) + 12278) = 1;
(*(void (__fastcall **)(SetupTriggerPopup *, _DWORD))(*(_DWORD *)v2 + 536))(v2, 0);
return (*(int (__fastcall **)(SetupTriggerPopup *, int))(*(_DWORD *)v2 + 264))(v2, 1);
}