//
// SetupTriggerPopup::onClose from 0x1002390c0 to 0x1002391cf (271 bytes)
//
// 105 xrefs:
// > GJRotateCommandLayer::onClose @ 0x100005008
// > SetupOpacityPopup::onClose @ 0x1000588a1
// > SetupAnimSettingsPopup::onClose @ 0x10009b56b
// > SetItemIDLayer::onClose @ 0x10009cc01
// > CustomizeObjectSettingsPopup::onClose @ 0x1001f9cb4
// > CustomizeObjectSettingsPopup::onClose @ 0x1001f9d01
// > SetupKeyframePopup::onClose @ 0x100201db7
// > SetupKeyframePopup::onClose @ 0x100201dc7
// > SetupKeyframePopup::onClose @ 0x100201e58
// > SetupSpawnPopup::onClose @ 0x100290c8a
// > EditTriggersPopup::onClose @ 0x10029acf5
// > EditorOptionsLayer::onClose @ 0x10029e7cc
// > UIOptionsLayer::onClose @ 0x1002b47d8
// > UIPOptionsLayer::onClose @ 0x1002b76ce
// > SetupTouchTogglePopup::onClose @ 0x1002b9aa7
// > SetupCountTriggerPopup::onClose @ 0x1002bcfb1
// > SetupShaderEffectPopup::onClose @ 0x1002d09c5
// > SetupSongTriggerPopup::onClose @ 0x1002d4374
// > GJFollowCommandLayer::onClose @ 0x1002d79f8
// > SetupAdvFollowPopup::onClose @ 0x100309ee5
// > SetupZoomTriggerPopup::onClose @ 0x100321755
// > GJPFollowCommandLayer::onClose @ 0x1003677a5
// > SetupObjectTogglePopup::onClose @ 0x10037684a
// > SetupRandAdvTriggerPopup::onClose @ 0x10038f184
// > SetupCollisionTriggerPopup::onClose @ 0x1003970ae
// > SetupPulsePopup::onClose @ 0x1003af91e
// > SetupAnimationPopup::onClose @ 0x1003d5b21
// > SetupEnterEffectPopup::onClose @ 0x1003f39a1
// > SetupCameraModePopup::onClose @ 0x1004a9f45
// > SetupReverbPopup::onClose @ 0x1004b8544
// > SetupSFXPopup::onClose @ 0x1004ba459
// > SetupCameraRotatePopup::onClose @ 0x1004be931
// > SetupAreaTintTriggerPopup::onClose @ 0x1004d9174
// > SetupTimeWarpPopup::onClose @ 0x1005034d5
// > GJRateLevelLayer::onClose @ 0x100508065
// > SetupMGTrigger::onClose @ 0x10050a6e1
// > SetupInteractObjectPopup::onClose @ 0x10050ecaa
// > SelectEventLayer::onClose @ 0x10057a5f1
// > SetupStopTriggerPopup::onClose @ 0x100586921
// > SetupCameraEdgePopup::onClose @ 0x1005893f4
// > SetupRotatePopup::onClose @ 0x10059d214
// > SetupRandTriggerPopup::onClose @ 0x1005e6cc1
// > SetupInstantCountPopup::onClose @ 0x1005ea67e
// > SetupCameraOffsetTrigger::onClose @ 0x100663eee
// > SetupShakePopup::onClose @ 0x1006658de
// > SetupEndPopup::onClose @ 0x100669b64
// > ??> @ 0x1008afa80
// > ??> @ 0x1008b2d18
// > ??> @ 0x1008db780
// > ??> @ 0x1008e2b48
// > ??> @ 0x1008edf40
// > ??> @ 0x1008ee750
// > ??> @ 0x1008f8a88
// > ??> @ 0x1008fcc70
// > ??> @ 0x1008fe370
// > ??> @ 0x1008ffc48
// > ??> @ 0x100902540
// > ??> @ 0x1009047d0
// > ??> @ 0x100905d60
// > ??> @ 0x10090e198
// > ??> @ 0x10090e990
// > ??> @ 0x100911a50
// > ??> @ 0x1009177b0
// > ??> @ 0x100921330
// > ??> @ 0x100921b28
// > ??> @ 0x100923068
// > ??> @ 0x100925260
// > ??> @ 0x100925a58
// > ??> @ 0x100926250
// > ??> @ 0x10094b278
// > ??> @ 0x10094cb00
// > ??> @ 0x10094db90
// > ??> @ 0x10094fe60
// > ??> @ 0x100951af0
// > ??> @ 0x1009522e8
// > ??> @ 0x100952ae0
// > ??> @ 0x1009532d8
// > ??> @ 0x100954310
// > ??> @ 0x1009559f0
// > ??> @ 0x10095b960
// > ??> @ 0x10095d908
// > ??> @ 0x100966b00
// > ??> @ 0x100967310
// > ??> @ 0x100967b08
// > ??> @ 0x100968300
// > ??> @ 0x100968af8
// > ??> @ 0x1009692f0
// > ??> @ 0x100969ae8
// > ??> @ 0x10096a320
// > ??> @ 0x10096ab18
// > ??> @ 0x10096bb48
// > ??> @ 0x10096c340
// > ??> @ 0x10096cb38
// > ??> @ 0x10096d330
// > ??> @ 0x10096db28
// > ??> @ 0x10096e320
// > ??> @ 0x10096eb18
// > ??> @ 0x10096f310
// > ??> @ 0x100977e88
// > ??> @ 0x10097b240
// > ??> @ 0x10097f7f8
// > ??> @ 0x100989000
// > ??> @ 0x10098ade8
// > ??> @ 0x10098d698
// > ??> @ 0x10098de90
//
// 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 SetupTriggerPopup::onClose(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // rdi
EffectGameObject *m_gameObject; // rsi
cocos2d::CCDictionary *m_inputNodes; // rax
cocos2d::CCDictElement *m_pElements; // r14
__int64 m_gameObjects; // r14
unsigned int v8; // r15d
GameObject *v9; // rax
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
m_gameObject = a1->m_gameObject;
LevelEditorLayer::resetEffectTriggerOptim(m_levelEditorLayer, m_gameObject, a1->m_gameObjects);
m_inputNodes = a1->m_inputNodes;
if ( m_inputNodes )
{
m_pElements = m_inputNodes->m_pElements;
while ( m_pElements )
{
m_levelEditorLayer = (LevelEditorLayer *)m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
m_levelEditorLayer->m_gameState.m_unkPoint14 = 0;
m_gameObject = nullptr;
((void (__fastcall *)(LevelEditorLayer *, _QWORD))m_levelEditorLayer->checkForEnd)(m_levelEditorLayer, 0);
}
}
if ( a1->m_gameObject )
{
m_gameObjects = sub_10071F9E0(m_levelEditorLayer, m_gameObject);
sub_10071FCD0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
goto LABEL_11;
}
else
{
m_gameObjects = (__int64)a1->m_gameObjects;
if ( !m_gameObjects )
goto LABEL_11;
}
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
v8 = 0;
do
{
v9 = (GameObject *)sub_1007200C0(m_gameObjects, v8);
LevelEditorLayer::updateObjectLabel(v9);
++v8;
}
while ( v8 < (unsigned int)sub_100720070(m_gameObjects) );
}
LABEL_11:
((void (__fastcall *)(SetupTriggerPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);
((void (__fastcall *)(SetupTriggerPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);
}