{"type": "func", "start": 4295295972, "end": 4295296132, "name": "CustomizeObjectLayer::recreateLayer", "pseudocode": "// \n// CustomizeObjectLayer::recreateLayer from 0x1000503e4 to 0x100050484 (160 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectSettingsPopup::onClose @ 0x1000510c8\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 CustomizeObjectLayer::recreateLayer(CustomizeObjectLayer *a1)\n{\n  GameObject *m_targetObject; // x20\n  cocos2d::CCArray *m_targetObjects; // x19\n  cocos2d::CCDirector *v4; // x0\n  cocos2d::CCTouchDispatcher *v5; // x0\n  cocos2d::CCObject *v6; // x1\n  CustomizeObjectLayer *v7; // x0\n\n  m_targetObject = a1->m_targetObject;\n  m_targetObjects = a1->m_targetObjects;\n  if ( m_targetObject )\n    cocos2d::CCObject::retain(a1->m_targetObject);\n  if ( m_targetObjects )\n    cocos2d::CCObject::retain(m_targetObjects);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v4->getTouchDispatcher)(v4);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);\n  CustomizeObjectLayer::onClose(a1, v6);\n  v7 = CustomizeObjectLayer::create(m_targetObject, m_targetObjects);\n  ((void (__fastcall *)(CustomizeObjectLayer *))v7->show)(v7);\n  if ( m_targetObject )\n    cocos2d::CCObject::release(m_targetObject);\n  if ( m_targetObjects )\n    cocos2d::CCObject::release(m_targetObjects);\n}", "assembly": "; \n; CustomizeObjectLayer::recreateLayer from 0x1000503e4 to 0x100050484 (160 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectSettingsPopup::onClose @ 0x1000510c8\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, 0x1000503e4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000503e8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000503ec\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000503f0\nMOV             X21, X0                                                ; +0x10, 0x1000503f4\nLDR             X20, [X0,#0x298]                                       ; +0x14, 0x1000503f8\nLDR             X19, [X0,#0x2A0]                                       ; +0x18, 0x1000503fc\nCBZ             X20, loc_10005040C                                     ; +0x1c, 0x100050400\nMOV             X0, X20                                                ; +0x20, 0x100050404\nBL              cocos2d__CCObject__retain                              ; +0x24, 0x100050408\nCBZ             X19, loc_100050418                                     ; +0x28, 0x10005040c\nMOV             X0, X19                                                ; +0x2c, 0x100050410\nBL              cocos2d__CCObject__retain                              ; +0x30, 0x100050414\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x34, 0x100050418\nLDR             X8, [X0]                                               ; +0x38, 0x10005041c\nLDR             X8, [X8,#0xA0]                                         ; +0x3c, 0x100050420\nBLR             X8                                                     ; +0x40, 0x100050424\nMOV             X1, X21                                                ; +0x44, 0x100050428\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x48, 0x10005042c\nMOV             X0, X21                                                ; +0x4c, 0x100050430\nBL              CustomizeObjectLayer__onClose                          ; +0x50, 0x100050434\nMOV             X0, X20                                                ; +0x54, 0x100050438\nMOV             X1, X19                                                ; +0x58, 0x10005043c\nBL              CustomizeObjectLayer__create                           ; +0x5c, 0x100050440\nLDR             X8, [X0]                                               ; +0x60, 0x100050444\nLDR             X8, [X8,#0x508]                                        ; +0x64, 0x100050448\nBLR             X8                                                     ; +0x68, 0x10005044c\nCBZ             X20, loc_10005045C                                     ; +0x6c, 0x100050450\nMOV             X0, X20                                                ; +0x70, 0x100050454\nBL              cocos2d__CCObject__release                             ; +0x74, 0x100050458\nCBZ             X19, loc_100050474                                     ; +0x78, 0x10005045c\nMOV             X0, X19                                                ; +0x7c, 0x100050460\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x100050464\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x100050468\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x88, 0x10005046c\nB               cocos2d__CCObject__release                             ; +0x8c, 0x100050470\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x90, 0x100050474\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x94, 0x100050478\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x98, 0x10005047c\nRET                                                                    ; +0x9c, 0x100050480", "xrefs": ["CustomizeObjectSettingsPopup::onClose @ 0x1000510c8"], "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"}