{"type": "func", "start": 4297038960, "end": 4297039121, "name": "CustomizeObjectSettingsPopup::onClose", "pseudocode": "// \n// CustomizeObjectSettingsPopup::onClose from 0x1001f9c70 to 0x1001f9d11 (161 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008da0b0\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\nvoid __fastcall CustomizeObjectSettingsPopup::onClose(CustomizeObjectSettingsPopup *a1, cocos2d::CCObject *a2)\n{\n  bool m_settingsChanged; // r15\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n\n  if ( a1->m_customizeLayer )\n  {\n    m_settingsChanged = a1->m_settingsChanged;\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    SetupTriggerPopup::onClose(a1, a2);\n    if ( m_settingsChanged )\n      CustomizeObjectLayer::recreateLayer(a1->m_customizeLayer);\n  }\n  else\n  {\n    v5 = cocos2d::CCDirector::sharedDirector();\n    v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n    SetupTriggerPopup::onClose(a1, a2);\n  }\n}", "assembly": "; \n; CustomizeObjectSettingsPopup::onClose from 0x1001f9c70 to 0x1001f9d11 (161 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008da0b0\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\npush    rbp                                                            ; +0x0, 0x1001f9c70\nmov     rbp, rsp                                                       ; +0x1, 0x1001f9c71\npush    r15                                                            ; +0x4, 0x1001f9c74\npush    r14                                                            ; +0x6, 0x1001f9c76\npush    rbx                                                            ; +0x8, 0x1001f9c78\npush    rax                                                            ; +0x9, 0x1001f9c79\nmov     r14, rsi                                                       ; +0xa, 0x1001f9c7a\nmov     rbx, rdi                                                       ; +0xd, 0x1001f9c7d\ncmp     qword ptr [rdi+3B0h], 0                                        ; +0x10, 0x1001f9c80\njz      short loc_1001F9CD5                                            ; +0x18, 0x1001f9c88\nmovzx   r15d, byte ptr [rbx+3B8h]                                      ; +0x1a, 0x1001f9c8a\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x22, 0x1001f9c92\nmov     rcx, [rax]                                                     ; +0x27, 0x1001f9c97\nmov     rdi, rax                                                       ; +0x2a, 0x1001f9c9a\ncall    qword ptr [rcx+0A0h]                                           ; +0x2d, 0x1001f9c9d\nmov     rdi, rax                                                       ; +0x33, 0x1001f9ca3\nmov     rsi, rbx                                                       ; +0x36, 0x1001f9ca6\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x39, 0x1001f9ca9\nmov     rdi, rbx                                                       ; +0x3e, 0x1001f9cae\nmov     rsi, r14                                                       ; +0x41, 0x1001f9cb1\ncall    SetupTriggerPopup__onClose                                     ; +0x44, 0x1001f9cb4\ncmp     r15b, 1                                                        ; +0x49, 0x1001f9cb9\njnz     short loc_1001F9D06                                            ; +0x4d, 0x1001f9cbd\nmov     rdi, [rbx+3B0h]                                                ; +0x4f, 0x1001f9cbf\nadd     rsp, 8                                                         ; +0x56, 0x1001f9cc6\npop     rbx                                                            ; +0x5a, 0x1001f9cca\npop     r14                                                            ; +0x5b, 0x1001f9ccb\npop     r15                                                            ; +0x5d, 0x1001f9ccd\npop     rbp                                                            ; +0x5f, 0x1001f9ccf\njmp     CustomizeObjectLayer__recreateLayer                            ; +0x60, 0x1001f9cd0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x65, 0x1001f9cd5\nmov     rcx, [rax]                                                     ; +0x6a, 0x1001f9cda\nmov     rdi, rax                                                       ; +0x6d, 0x1001f9cdd\ncall    qword ptr [rcx+0A0h]                                           ; +0x70, 0x1001f9ce0\nmov     rdi, rax                                                       ; +0x76, 0x1001f9ce6\nmov     rsi, rbx                                                       ; +0x79, 0x1001f9ce9\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x7c, 0x1001f9cec\nmov     rdi, rbx                                                       ; +0x81, 0x1001f9cf1\nmov     rsi, r14                                                       ; +0x84, 0x1001f9cf4\nadd     rsp, 8                                                         ; +0x87, 0x1001f9cf7\npop     rbx                                                            ; +0x8b, 0x1001f9cfb\npop     r14                                                            ; +0x8c, 0x1001f9cfc\npop     r15                                                            ; +0x8e, 0x1001f9cfe\npop     rbp                                                            ; +0x90, 0x1001f9d00\njmp     SetupTriggerPopup__onClose                                     ; +0x91, 0x1001f9d01\nadd     rsp, 8                                                         ; +0x96, 0x1001f9d06\npop     rbx                                                            ; +0x9a, 0x1001f9d0a\npop     r14                                                            ; +0x9b, 0x1001f9d0b\npop     r15                                                            ; +0x9d, 0x1001f9d0d\npop     rbp                                                            ; +0x9f, 0x1001f9d0f\nretn                                                                   ; +0xa0, 0x1001f9d10", "xrefs": ["<???> @ 0x1008da0b0"], "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"}