//
// SetupTriggerPopup::onClose from 0xb1bc0c to 0xb1bcdc (208 bytes)
//
// 139 xrefs:
// > CreateStartPosPopup::onClose @ 0x7d5288
// > GJRateLevelLayer::onClose @ 0x950910
// > GJRateLevelListLayer::onClose @ 0x950914
// > GJRateEditorSoundLayer::onClose @ 0x950918
// > CustomizeObjectSettingsPopup::onClose @ 0x987288
// > CustomizeObjectSettingsPopup::onClose @ 0x9872c4
// > KeybindingsLayer::onClose @ 0x995130
// > EditTriggersPopup::onClose @ 0xa1cef4
// > EditorOptionsLayer::onClose @ 0xa1d814
// > UIOptionsLayer::onClose @ 0xa1e5a0
// > UIPOptionsLayer::onClose @ 0xa1eb9c
// > SetupOpacityPopup::onClose @ 0xa40b40
// > SetupObjectTogglePopup::onClose @ 0xa41eac
// > SetupSpawnPopup::onClose @ 0xa42b48
// > SetupPulsePopup::onClose @ 0xa45554
// > SetItemIDLayer::onClose @ 0xa97e24
// > SetupAnimationPopup::onClose @ 0xa99224
// > SetupAnimSettingsPopup::onClose @ 0xa9a610
// > SetupInteractObjectPopup::onClose @ 0xa9d8b8
// > SetupInstantCountPopup::onClose @ 0xa9e524
// > SetupRotatePopup::onClose @ 0xaa05b4
// > SetupShakePopup::onClose @ 0xaa1190
// > SetupTouchTogglePopup::onClose @ 0xaa2a44
// > SetupCameraOffsetTrigger::onClose @ 0xaadfe0
// > SetupZoomTriggerPopup::onClose @ 0xab2450
// > SetupRandTriggerPopup::onClose @ 0xab2d0c
// > SetupEndPopup::onClose @ 0xab43d4
// > SetupSongTriggerPopup::onClose @ 0xaea4b4
// > SetupTimeWarpPopup::onClose @ 0xaeb4fc
// > SetupCameraRotatePopup::onClose @ 0xaec078
// > SetupRandAdvTriggerPopup::onClose @ 0xaee8d0
// > SetupCameraEdgePopup::onClose @ 0xb25370
// > SetupShaderEffectPopup::onClose @ 0xb31ca8
// > SetupAreaTintTriggerPopup::onClose @ 0xb3b87c
// > SetupAreaTintTriggerPopup::onClose @ 0xb3b8ec
// > SetupEnterEffectPopup::onClose @ 0xb438d8
// > SetupEnterEffectPopup::onClose @ 0xb43928
// > SetupCameraModePopup::onClose @ 0xb45e08
// > SetupAdvFollowPopup::onClose @ 0xb46ddc
// > SetupMGTrigger::onClose @ 0xb4d3e8
// > StartPosLayer::onClose @ 0xb68e14
// > SetupKeyframePopup::onClose @ 0xb692e0
// > SetupReverbPopup::onClose @ 0xb6c208
// > SetupSFXPopup::onClose @ 0xb6ca90
// > SetupStopTriggerPopup::onClose @ 0xb71bc4
// > SelectEventLayer::onClose @ 0xb7f4e0
// > SFXSettingsPopup::onClose @ 0xb8e468
// > AutoSaveSettingsLayer::onClose @ 0xbc9640
// > GameSettingsLayer::onClose @ 0xc049c4
// > GameSettingsLayer::onClose @ 0xc049f0
// > AdminActionConfirmPopup::onClose @ 0xc3d9b0
// > ReviewChoiceSheet::onClose @ 0xc3f3b8
// > NotificationFilterPopup::onClose @ 0xc5f9dc
// > CreatorSettingsPopup::onClose @ 0xc96d10
// > EasingSelectPopup::onClose @ 0xcbb1a0
// > EditorSFXActionConfigLayer::onClose @ 0xcbdb2c
// > EditorSoundBrowserLayer::onClose @ 0xcc8f20
// > SoundPackDescPopup::onClose @ 0xcccc04
// > EditorSoundConfigInfoLayer::onClose @ 0xcccccc
// > EditorSoundConfigInfoLayer::onClose @ 0xcccce4
// > EditorSoundConfigUploadPopup::onClose @ 0xcd3d98
// > EditorSoundsLayer::onClose @ 0xcd5cd8
// > EditorWindowPopup::onClose @ 0xcda318
// > KeybindCapturePopup::onClose @ 0xcf6830
// > PlatformerControlsPopup::onClose @ 0xcfc4c0
// > ControlSlotsPopup::onClose @ 0xd041e8
// > TouchControlEditLayer::onOK @ 0xd07534
// > ??> @ 0x9a840
// > ??> @ 0x14427b8
// > ??> @ 0x1479248
// > ??> @ 0x147af48
// > ??> @ 0x147b758
// > ??> @ 0x1480308
// > ??> @ 0x14833f8
// > ??> @ 0x1483c28
// > ??> @ 0x1487a38
// > ??> @ 0x14900e8
// > ??> @ 0x1494b68
// > ??> @ 0x1495398
// > ??> @ 0x1495bc8
// > ??> @ 0x149c168
// > ??> @ 0x149da28
// > ??> @ 0x149e238
// > ??> @ 0x149ea48
// > ??> @ 0x149f278
// > ??> @ 0x14a0b08
// > ??> @ 0x14a63d8
// > ??> @ 0x14a8488
// > ??> @ 0x14aa6c8
// > ??> @ 0x14ac358
// > ??> @ 0x14adce8
// > ??> @ 0x14b3fa8
// > ??> @ 0x14b4808
// > ??> @ 0x14b5878
// > ??> @ 0x14b6088
// > ??> @ 0x14b68b8
// > ??> @ 0x14b7698
// > ??> @ 0x14b87a8
// > ??> @ 0x14b8fb8
// > ??> @ 0x14b97c8
// > ??> @ 0x14b9fd8
// > ??> @ 0x14bb028
// > ??> @ 0x14be148
// > ??> @ 0x14be958
// > ??> @ 0x14bf9a8
// > ??> @ 0x14c01d8
// > ??> @ 0x14c5478
// > ??> @ 0x14c5ca8
// > ??> @ 0x14c6d18
// > ??> @ 0x14c7df8
// > ??> @ 0x14c96c8
// > ??> @ 0x14ca0f8
// > ??> @ 0x14ca908
// > ??> @ 0x14cb118
// > ??> @ 0x14cb928
// > ??> @ 0x14cc138
// > ??> @ 0x14cc948
// > ??> @ 0x14cd158
// > ??> @ 0x14cd968
// > ??> @ 0x14ce988
// > ??> @ 0x14cf198
// > ??> @ 0x14cf9a8
// > ??> @ 0x14d01b8
// > ??> @ 0x14d09c8
// > ??> @ 0x14d11d8
// > ??> @ 0x14d19e8
// > ??> @ 0x14d2218
// > ??> @ 0x14d2a28
// > ??> @ 0x14d3a68
// > ??> @ 0x14d4298
// > ??> @ 0x14dde18
// > ??> @ 0x14de628
// > ??> @ 0x14dee38
// > ??> @ 0x14e4e58
// > ??> @ 0x14e9528
// > ??> @ 0x14f4f38
// > ??> @ 0x14fc408
// > ??> @ 0x14fd4c8
// > ??> @ 0x1508d98
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:34 +0000
//
__int64 __fastcall SetupTriggerPopup::onClose(GameObject **this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
GameManager *v4; // x0
__int64 v5; // x0
GameManager *updated; // x0
GameManager *v7; // x0
__int64 v9; // x0
cocos2d::CCTouchDispatcher *v10; // x0
v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 644);
if ( (_DWORD)v3 )
{
v9 = cocos2d::CCDirector::sharedDirector(v3);
v10 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 160LL))(v9);
v3 = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, (cocos2d::CCObject *)this);
*((_BYTE *)this + 644) = 0;
}
v4 = *(GameManager **)(GameManager::sharedState(v3) + 552);
if ( v4 )
{
v5 = GameManager::sharedState(v4);
LevelEditorLayer::resetEffectTriggerOptim(*(LevelEditorLayer **)(v5 + 552), *(this + 85), *(this + 86));
}
SetupTriggerPopup::closeInputNodes((SetupTriggerPopup *)this);
updated = SetupTriggerPopup::updateEditorLabel((SetupTriggerPopup *)this);
if ( *(_QWORD *)(GameManager::sharedState(updated) + 552) )
{
v7 = *(this + 85);
if ( v7 || (v7 = *(this + 86)) != nullptr )
*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v7) + 552) + 14938LL) = 1;
}
(*((void (__fastcall **)(GameObject **, _QWORD))*this + 134))(this, 0);
return (*((__int64 (__fastcall **)(GameObject **, __int64))*this + 66))(this, 1);
}