{"type": "func", "start": 4295299176, "end": 4295299340, "name": "CustomizeObjectSettingsPopup::onClose", "pseudocode": "// \n// CustomizeObjectSettingsPopup::onClose from 0x100051068 to 0x10005110c (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100771ca0\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  _BOOL4 m_settingsChanged; // w21\n  cocos2d::CCDirector *v5; // x0\n  cocos2d::CCTouchDispatcher *v6; // x0\n  cocos2d::CCDirector *v7; // x0\n  cocos2d::CCTouchDispatcher *v8; // x0\n\n  if ( a1->m_customizeLayer )\n  {\n    m_settingsChanged = a1->m_settingsChanged;\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    if ( m_settingsChanged )\n      CustomizeObjectLayer::recreateLayer(a1->m_customizeLayer);\n  }\n  else\n  {\n    v7 = cocos2d::CCDirector::sharedDirector();\n    v8 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v7->getTouchDispatcher)(v7);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, a1);\n    SetupTriggerPopup::onClose(a1, a2);\n  }\n}", "assembly": "; \n; CustomizeObjectSettingsPopup::onClose from 0x100051068 to 0x10005110c (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100771ca0\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100051068\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10005106c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100051070\nADD             X29, SP, #0x20                                         ; +0xc, 0x100051074\nMOV             X20, X1                                                ; +0x10, 0x100051078\nMOV             X19, X0                                                ; +0x14, 0x10005107c\nLDR             X8, [X0,#0x3B0]                                        ; +0x18, 0x100051080\nCBZ             X8, loc_1000510CC                                      ; +0x1c, 0x100051084\nLDRB            W21, [X19,#0x3B8]                                      ; +0x20, 0x100051088\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x24, 0x10005108c\nLDR             X8, [X0]                                               ; +0x28, 0x100051090\nLDR             X8, [X8,#0xA0]                                         ; +0x2c, 0x100051094\nBLR             X8                                                     ; +0x30, 0x100051098\nMOV             X1, X19                                                ; +0x34, 0x10005109c\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x38, 0x1000510a0\nMOV             X0, X19                                                ; +0x3c, 0x1000510a4\nMOV             X1, X20                                                ; +0x40, 0x1000510a8\nBL              SetupTriggerPopup__onClose                             ; +0x44, 0x1000510ac\nCMP             W21, #1                                                ; +0x48, 0x1000510b0\nB.NE            loc_1000510FC                                          ; +0x4c, 0x1000510b4\nLDR             X0, [X19,#0x3B0]                                       ; +0x50, 0x1000510b8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1000510bc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1000510c0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1000510c4\nB               CustomizeObjectLayer__recreateLayer                    ; +0x60, 0x1000510c8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x64, 0x1000510cc\nLDR             X8, [X0]                                               ; +0x68, 0x1000510d0\nLDR             X8, [X8,#0xA0]                                         ; +0x6c, 0x1000510d4\nBLR             X8                                                     ; +0x70, 0x1000510d8\nMOV             X1, X19                                                ; +0x74, 0x1000510dc\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x78, 0x1000510e0\nMOV             X0, X19                                                ; +0x7c, 0x1000510e4\nMOV             X1, X20                                                ; +0x80, 0x1000510e8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1000510ec\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1000510f0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1000510f4\nB               SetupTriggerPopup__onClose                             ; +0x90, 0x1000510f8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x1000510fc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100051100\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x100051104\nRET                                                                    ; +0xa0, 0x100051108", "xrefs": ["<???> @ 0x100771ca0"], "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"}