{"type": "func", "start": 5373385280, "end": 5373385600, "name": "SetupTriggerPopup::onClose", "pseudocode": "// \n// SetupTriggerPopup::onClose from 0x140475a40 to 0x140475b80 (320 bytes)\n// \n// 90 xrefs:\n// > CustomizeObjectSettingsPopup::onClose @ 0x1400aa5b4\n// > GJFollowCommandLayer::onClose @ 0x140272b4c\n// > GJPFollowCommandLayer::onClose @ 0x14028d00c\n// > EditTriggersPopup::onClose @ 0x14028f250\n// > EditorOptionsLayer::onClose @ 0x140291c9e\n// > UIOptionsLayer::onClose @ 0x1402a30b8\n// > UIPOptionsLayer::onClose @ 0x1402a5f18\n// > SetItemIDLayer::onClose @ 0x140401be1\n// > SetupAnimationPopup::onClose @ 0x14040a168\n// > SetupAnimSettingsPopup::onClose @ 0x14040ab8f\n// > SetupAreaTintTriggerPopup::onClose @ 0x1404108b5\n// > SetupCameraEdgePopup::onClose @ 0x140413f04\n// > SetupCameraOffsetTrigger::onClose @ 0x1404179dc\n// > SetupCollisionTriggerPopup::onClose @ 0x140419e9c\n// > SetupCountTriggerPopup::onClose @ 0x14041c8d5\n// > SetupEnterEffectPopup::onClose @ 0x140420915\n// > SetupInteractObjectPopup::onClose @ 0x140424519\n// > SetupKeyframePopup::onClose @ 0x140426fa3\n// > SetupMGTrigger::onClose @ 0x1404289a8\n// > SetupPulsePopup::onClose @ 0x14043c155\n// > SetupRandAdvTriggerPopup::onClose @ 0x14043de91\n// > SetupRandTriggerPopup::onClose @ 0x140441465\n// > SetupRotatePopup::onClose @ 0x140443070\n// > SetupReverbPopup::onClose @ 0x140447110\n// > SetupSFXPopup::onClose @ 0x140448831\n// > SetupShakePopup::onClose @ 0x14045654c\n// > SetupSongTriggerPopup::onClose @ 0x14045de87\n// > SetupTouchTogglePopup::onClose @ 0x140464f1d\n// > SelectEventLayer::onClose @ 0x14046774e\n// > SetupStopTriggerPopup::onClose @ 0x140472e1c\n// > <???> @ 0x14053f558\n// > <???> @ 0x14053fad8\n// > <???> @ 0x14056d030\n// > <???> @ 0x1405728e8\n// > <???> @ 0x1405736a8\n// > <???> @ 0x1405766f8\n// > <???> @ 0x140578f80\n// > <???> @ 0x14057b2c8\n// > <???> @ 0x14057bda0\n// > <???> @ 0x14057d2c0\n// > <???> @ 0x14058e288\n// > <???> @ 0x14058f420\n// > <???> @ 0x1405d6b08\n// > <???> @ 0x1405d7e30\n// > <???> @ 0x1405d9388\n// > <???> @ 0x1405d9f38\n// > <???> @ 0x1405dc280\n// > <???> @ 0x1405dc718\n// > <???> @ 0x1405dcca0\n// > <???> @ 0x1405dd788\n// > <???> @ 0x1405ddc98\n// > <???> @ 0x1405e03b0\n// > <???> @ 0x1405e1570\n// > <???> @ 0x1405e1c40\n// > <???> @ 0x1405e33a8\n// > <???> @ 0x1405e4a70\n// > <???> @ 0x1405e67e0\n// > <???> @ 0x1405e7a38\n// > <???> @ 0x1405e8068\n// > <???> @ 0x1405ea8e8\n// > <???> @ 0x1405eafc8\n// > <???> @ 0x1405ed240\n// > <???> @ 0x1405ed908\n// > <???> @ 0x1405ee840\n// > <???> @ 0x1405efc58\n// > <???> @ 0x1405f00f0\n// > <???> @ 0x1405f7e70\n// > <???> @ 0x1405f8698\n// > <???> @ 0x1405f8fb8\n// > <???> @ 0x1405f97d8\n// > <???> @ 0x1405f9c88\n// > <???> @ 0x1405fb3b0\n// > <???> @ 0x1405fd1a8\n// > <???> @ 0x1405fd650\n// > <???> @ 0x1405fde90\n// > <???> @ 0x1405fe5e0\n// > <???> @ 0x1405fec90\n// > <???> @ 0x1405ff610\n// > <???> @ 0x140600318\n// > <???> @ 0x140600858\n// > <???> @ 0x140600d08\n// > <???> @ 0x140601550\n// > <???> @ 0x140602048\n// > <???> @ 0x140602550\n// > <???> @ 0x1406029e8\n// > <???> @ 0x140602ef8\n// > <???> @ 0x140603448\n// > <???> @ 0x140603c18\n// > <???> @ 0x1406041e8\n// > <???> @ 0x1406db624\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid SetupTriggerPopup::onClose(SetupTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_gameObjects; // rax\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n  cocos2d::CCObject *v9; // rcx\n  cocos2d::CCDictionary *m_inputNodes; // rcx\n  cocos2d::CCDictElement *m_pElements; // rcx\n  cocos2d::CCDictElement *j; // rbx\n  _QWORD *v13; // rcx\n  _BOOL8 v14; // rdx\n  void *v15; // [rsp+30h] [rbp+8h]\n\n  if ( !qword_1406C2ED8 )\n  {\n    v15 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  m_gameObjects = a1->m_gameObjects;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    if ( m_gameObject->m_dontIgnoreDuration )\n      cocos2d::CCPoint::operator=(&m_gameObject->m_endPosition, &dword_1406C2128);\n  }\n  else if ( m_gameObjects )\n  {\n    data = m_gameObjects->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        v9 = *arr;\n        if ( !*arr )\n          break;\n        if ( HIBYTE(v9[22].m_eObjType) )\n          cocos2d::CCPoint::operator=(&v9[32].m_uAutoReleaseCount, &dword_1406C2128);\n      }\n    }\n  }\n  m_inputNodes = a1->m_inputNodes;\n  if ( m_inputNodes )\n  {\n    m_pElements = m_inputNodes->m_pElements;\n    if ( m_pElements )\n    {\n      for ( j = (cocos2d::CCDictElement *)m_pElements->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next )\n      {\n        v13 = &m_pElements->m_pObject->__vftable;\n        v13[70] = 0;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v13 + 1016LL))(v13, 0);\n        m_pElements = j;\n        if ( !j )\n          break;\n      }\n    }\n  }\n  SetupTriggerPopup::updateEditorLabel(a1);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v14) = 1;\n  a1->removeFromParentAndCleanup(a1, v14);\n}", "assembly": "; \n; SetupTriggerPopup::onClose from 0x140475a40 to 0x140475b80 (320 bytes)\n; \n; 90 xrefs:\n; > CustomizeObjectSettingsPopup::onClose @ 0x1400aa5b4\n; > GJFollowCommandLayer::onClose @ 0x140272b4c\n; > GJPFollowCommandLayer::onClose @ 0x14028d00c\n; > EditTriggersPopup::onClose @ 0x14028f250\n; > EditorOptionsLayer::onClose @ 0x140291c9e\n; > UIOptionsLayer::onClose @ 0x1402a30b8\n; > UIPOptionsLayer::onClose @ 0x1402a5f18\n; > SetItemIDLayer::onClose @ 0x140401be1\n; > SetupAnimationPopup::onClose @ 0x14040a168\n; > SetupAnimSettingsPopup::onClose @ 0x14040ab8f\n; > SetupAreaTintTriggerPopup::onClose @ 0x1404108b5\n; > SetupCameraEdgePopup::onClose @ 0x140413f04\n; > SetupCameraOffsetTrigger::onClose @ 0x1404179dc\n; > SetupCollisionTriggerPopup::onClose @ 0x140419e9c\n; > SetupCountTriggerPopup::onClose @ 0x14041c8d5\n; > SetupEnterEffectPopup::onClose @ 0x140420915\n; > SetupInteractObjectPopup::onClose @ 0x140424519\n; > SetupKeyframePopup::onClose @ 0x140426fa3\n; > SetupMGTrigger::onClose @ 0x1404289a8\n; > SetupPulsePopup::onClose @ 0x14043c155\n; > SetupRandAdvTriggerPopup::onClose @ 0x14043de91\n; > SetupRandTriggerPopup::onClose @ 0x140441465\n; > SetupRotatePopup::onClose @ 0x140443070\n; > SetupReverbPopup::onClose @ 0x140447110\n; > SetupSFXPopup::onClose @ 0x140448831\n; > SetupShakePopup::onClose @ 0x14045654c\n; > SetupSongTriggerPopup::onClose @ 0x14045de87\n; > SetupTouchTogglePopup::onClose @ 0x140464f1d\n; > SelectEventLayer::onClose @ 0x14046774e\n; > SetupStopTriggerPopup::onClose @ 0x140472e1c\n; > <???> @ 0x14053f558\n; > <???> @ 0x14053fad8\n; > <???> @ 0x14056d030\n; > <???> @ 0x1405728e8\n; > <???> @ 0x1405736a8\n; > <???> @ 0x1405766f8\n; > <???> @ 0x140578f80\n; > <???> @ 0x14057b2c8\n; > <???> @ 0x14057bda0\n; > <???> @ 0x14057d2c0\n; > <???> @ 0x14058e288\n; > <???> @ 0x14058f420\n; > <???> @ 0x1405d6b08\n; > <???> @ 0x1405d7e30\n; > <???> @ 0x1405d9388\n; > <???> @ 0x1405d9f38\n; > <???> @ 0x1405dc280\n; > <???> @ 0x1405dc718\n; > <???> @ 0x1405dcca0\n; > <???> @ 0x1405dd788\n; > <???> @ 0x1405ddc98\n; > <???> @ 0x1405e03b0\n; > <???> @ 0x1405e1570\n; > <???> @ 0x1405e1c40\n; > <???> @ 0x1405e33a8\n; > <???> @ 0x1405e4a70\n; > <???> @ 0x1405e67e0\n; > <???> @ 0x1405e7a38\n; > <???> @ 0x1405e8068\n; > <???> @ 0x1405ea8e8\n; > <???> @ 0x1405eafc8\n; > <???> @ 0x1405ed240\n; > <???> @ 0x1405ed908\n; > <???> @ 0x1405ee840\n; > <???> @ 0x1405efc58\n; > <???> @ 0x1405f00f0\n; > <???> @ 0x1405f7e70\n; > <???> @ 0x1405f8698\n; > <???> @ 0x1405f8fb8\n; > <???> @ 0x1405f97d8\n; > <???> @ 0x1405f9c88\n; > <???> @ 0x1405fb3b0\n; > <???> @ 0x1405fd1a8\n; > <???> @ 0x1405fd650\n; > <???> @ 0x1405fde90\n; > <???> @ 0x1405fe5e0\n; > <???> @ 0x1405fec90\n; > <???> @ 0x1405ff610\n; > <???> @ 0x140600318\n; > <???> @ 0x140600858\n; > <???> @ 0x140600d08\n; > <???> @ 0x140601550\n; > <???> @ 0x140602048\n; > <???> @ 0x140602550\n; > <???> @ 0x1406029e8\n; > <???> @ 0x140602ef8\n; > <???> @ 0x140603448\n; > <???> @ 0x140603c18\n; > <???> @ 0x1406041e8\n; > <???> @ 0x1406db624\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140475a40\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140475a45\npush    rdi                                                            ; +0xa, 0x140475a4a\nsub     rsp, 20h                                                       ; +0xb, 0x140475a4b\nmov     rdi, rcx                                                       ; +0xf, 0x140475a4f\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x12, 0x140475a52\njnz     short loc_140475A84                                            ; +0x1a, 0x140475a5a\nmov     ecx, 668h; Size                                                ; +0x1c, 0x140475a5c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x140475a61\nmov     [rsp+28h+arg_0], rax                                           ; +0x26, 0x140475a66\nmov     rcx, rax                                                       ; +0x2b, 0x140475a6b\ncall    sub_14017AB00                                                  ; +0x2e, 0x140475a6e\nnop                                                                    ; +0x33, 0x140475a73\nmov     cs:qword_1406C2ED8, rax                                        ; +0x34, 0x140475a74\nmov     rdx, [rax]                                                     ; +0x3b, 0x140475a7b\nmov     rcx, rax                                                       ; +0x3e, 0x140475a7e\ncall    qword ptr [rdx+48h]                                            ; +0x41, 0x140475a81\nmov     rax, [rdi+298h]                                                ; +0x44, 0x140475a84\nmov     rcx, [rdi+290h]                                                ; +0x4b, 0x140475a8b\ntest    rcx, rcx                                                       ; +0x52, 0x140475a92\njz      short loc_140475AB6                                            ; +0x55, 0x140475a95\ncmp     byte ptr [rcx+4EFh], 0                                         ; +0x57, 0x140475a97\njz      short loc_140475B04                                            ; +0x5e, 0x140475a9e\nadd     rcx, 718h                                                      ; +0x60, 0x140475aa0\nlea     rdx, dword_1406C2128                                           ; +0x67, 0x140475aa7\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x6e, 0x140475aae\njmp     short loc_140475B04                                            ; +0x74, 0x140475ab4\ntest    rax, rax                                                       ; +0x76, 0x140475ab6\njz      short loc_140475B04                                            ; +0x79, 0x140475ab9\nmov     rbx, [rax+38h]                                                 ; +0x7b, 0x140475abb\nmov     eax, [rbx]                                                     ; +0x7f, 0x140475abf\ntest    eax, eax                                                       ; +0x81, 0x140475ac1\njz      short loc_140475B04                                            ; +0x83, 0x140475ac3\nmov     rbx, [rbx+10h]                                                 ; +0x85, 0x140475ac5\nlea     rsi, [rax-1]                                                   ; +0x89, 0x140475ac9\nlea     rsi, [rbx+rsi*8]                                               ; +0x8d, 0x140475acd\ncmp     rbx, rsi                                                       ; +0x91, 0x140475ad1\nja      short loc_140475B04                                            ; +0x94, 0x140475ad4\nmov     rcx, [rbx]                                                     ; +0x96, 0x140475ad6\ntest    rcx, rcx                                                       ; +0x99, 0x140475ad9\njz      short loc_140475B04                                            ; +0x9c, 0x140475adc\ncmp     byte ptr [rcx+4EFh], 0                                         ; +0x9e, 0x140475ade\njz      short loc_140475AFB                                            ; +0xa5, 0x140475ae5\nadd     rcx, 718h                                                      ; +0xa7, 0x140475ae7\nlea     rdx, dword_1406C2128                                           ; +0xae, 0x140475aee\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xb5, 0x140475af5\nadd     rbx, 8                                                         ; +0xbb, 0x140475afb\ncmp     rbx, rsi                                                       ; +0xbf, 0x140475aff\njbe     short loc_140475AD6                                            ; +0xc2, 0x140475b02\nmov     rcx, [rdi+2D8h]                                                ; +0xc4, 0x140475b04\ntest    rcx, rcx                                                       ; +0xcb, 0x140475b0b\njz      short loc_140475B4C                                            ; +0xce, 0x140475b0e\nmov     rcx, [rcx+38h]                                                 ; +0xd0, 0x140475b10\ntest    rcx, rcx                                                       ; +0xd4, 0x140475b14\njz      short loc_140475B4C                                            ; +0xd7, 0x140475b17\nmov     rbx, [rcx+120h]                                                ; +0xd9, 0x140475b19\nxor     esi, esi                                                       ; +0xe0, 0x140475b20\nmov     rcx, [rcx+108h]                                                ; +0xe2, 0x140475b22\nmov     [rcx+230h], rsi                                                ; +0xe9, 0x140475b29\nmov     rax, [rcx]                                                     ; +0xf0, 0x140475b30\nxor     edx, edx                                                       ; +0xf3, 0x140475b33\ncall    qword ptr [rax+3F8h]                                           ; +0xf5, 0x140475b35\nmov     rcx, rbx                                                       ; +0xfb, 0x140475b3b\ntest    rbx, rbx                                                       ; +0xfe, 0x140475b3e\njz      short loc_140475B4C                                            ; +0x101, 0x140475b41\nmov     rbx, [rbx+120h]                                                ; +0x103, 0x140475b43\njmp     short loc_140475B22                                            ; +0x10a, 0x140475b4a\nmov     rcx, rdi                                                       ; +0x10c, 0x140475b4c\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0x10f, 0x140475b4f\nmov     rax, [rdi]                                                     ; +0x114, 0x140475b54\nxor     edx, edx                                                       ; +0x117, 0x140475b57\nmov     rcx, rdi                                                       ; +0x119, 0x140475b59\ncall    qword ptr [rax+3D0h]                                           ; +0x11c, 0x140475b5c\nmov     rax, [rdi]                                                     ; +0x122, 0x140475b62\nmov     dl, 1                                                          ; +0x125, 0x140475b65\nmov     rcx, rdi                                                       ; +0x127, 0x140475b67\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x12a, 0x140475b6a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x12f, 0x140475b6f\nadd     rsp, 20h                                                       ; +0x134, 0x140475b74\npop     rdi                                                            ; +0x138, 0x140475b78\njmp     qword ptr [rax+1F8h]                                           ; +0x139, 0x140475b79", "xrefs": ["CustomizeObjectSettingsPopup::onClose @ 0x1400aa5b4", "GJFollowCommandLayer::onClose @ 0x140272b4c", "GJPFollowCommandLayer::onClose @ 0x14028d00c", "EditTriggersPopup::onClose @ 0x14028f250", "EditorOptionsLayer::onClose @ 0x140291c9e", "UIOptionsLayer::onClose @ 0x1402a30b8", "UIPOptionsLayer::onClose @ 0x1402a5f18", "SetItemIDLayer::onClose @ 0x140401be1", "SetupAnimationPopup::onClose @ 0x14040a168", "SetupAnimSettingsPopup::onClose @ 0x14040ab8f", "SetupAreaTintTriggerPopup::onClose @ 0x1404108b5", "SetupCameraEdgePopup::onClose @ 0x140413f04", "SetupCameraOffsetTrigger::onClose @ 0x1404179dc", "SetupCollisionTriggerPopup::onClose @ 0x140419e9c", "SetupCountTriggerPopup::onClose @ 0x14041c8d5", "SetupEnterEffectPopup::onClose @ 0x140420915", "SetupInteractObjectPopup::onClose @ 0x140424519", "SetupKeyframePopup::onClose @ 0x140426fa3", "SetupMGTrigger::onClose @ 0x1404289a8", "SetupPulsePopup::onClose @ 0x14043c155", "SetupRandAdvTriggerPopup::onClose @ 0x14043de91", "SetupRandTriggerPopup::onClose @ 0x140441465", "SetupRotatePopup::onClose @ 0x140443070", "SetupReverbPopup::onClose @ 0x140447110", "SetupSFXPopup::onClose @ 0x140448831", "SetupShakePopup::onClose @ 0x14045654c", "SetupSongTriggerPopup::onClose @ 0x14045de87", "SetupTouchTogglePopup::onClose @ 0x140464f1d", "SelectEventLayer::onClose @ 0x14046774e", "SetupStopTriggerPopup::onClose @ 0x140472e1c", "<???> @ 0x14053f558", "<???> @ 0x14053fad8", "<???> @ 0x14056d030", "<???> @ 0x1405728e8", "<???> @ 0x1405736a8", "<???> @ 0x1405766f8", "<???> @ 0x140578f80", "<???> @ 0x14057b2c8", "<???> @ 0x14057bda0", "<???> @ 0x14057d2c0", "<???> @ 0x14058e288", "<???> @ 0x14058f420", "<???> @ 0x1405d6b08", "<???> @ 0x1405d7e30", "<???> @ 0x1405d9388", "<???> @ 0x1405d9f38", "<???> @ 0x1405dc280", "<???> @ 0x1405dc718", "<???> @ 0x1405dcca0", "<???> @ 0x1405dd788", "<???> @ 0x1405ddc98", "<???> @ 0x1405e03b0", "<???> @ 0x1405e1570", "<???> @ 0x1405e1c40", "<???> @ 0x1405e33a8", "<???> @ 0x1405e4a70", "<???> @ 0x1405e67e0", "<???> @ 0x1405e7a38", "<???> @ 0x1405e8068", "<???> @ 0x1405ea8e8", "<???> @ 0x1405eafc8", "<???> @ 0x1405ed240", "<???> @ 0x1405ed908", "<???> @ 0x1405ee840", "<???> @ 0x1405efc58", "<???> @ 0x1405f00f0", "<???> @ 0x1405f7e70", "<???> @ 0x1405f8698", "<???> @ 0x1405f8fb8", "<???> @ 0x1405f97d8", "<???> @ 0x1405f9c88", "<???> @ 0x1405fb3b0", "<???> @ 0x1405fd1a8", "<???> @ 0x1405fd650", "<???> @ 0x1405fde90", "<???> @ 0x1405fe5e0", "<???> @ 0x1405fec90", "<???> @ 0x1405ff610", "<???> @ 0x140600318", "<???> @ 0x140600858", "<???> @ 0x140600d08", "<???> @ 0x140601550", "<???> @ 0x140602048", "<???> @ 0x140602550", "<???> @ 0x1406029e8", "<???> @ 0x140602ef8", "<???> @ 0x140603448", "<???> @ 0x140603c18", "<???> @ 0x1406041e8", "<???> @ 0x1406db624"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}