{"type": "func", "start": 5771252, "end": 5771342, "name": "CustomizeObjectLayer::recreateLayer", "pseudocode": "// \n// CustomizeObjectLayer::recreateLayer from 0x580ff4 to 0x58104e (90 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectSettingsPopup::onClose @ 0x581080\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:52:53 +0000\n// \n\nint __fastcall CustomizeObjectLayer::recreateLayer(CustomizeObjectLayer **this)\n{\n  cocos2d::CCObject *v1; // r6\n  CustomizeObjectLayer *v2; // r5\n  cocos2d::CCObject *v3; // r4\n  int v4; // r0\n  cocos2d::CCTouchDispatcher *v5; // r0\n  cocos2d::CCArray *v6; // r2\n  FLAlertLayer *v7; // r0\n  int result; // r0\n\n  v1 = (cocos2d::CCObject *)this;\n  v2 = *(this + 133);\n  v3 = *(this + 134);\n  if ( v2 )\n    this = (CustomizeObjectLayer **)cocos2d::CCObject::retain(*(this + 133));\n  if ( v3 )\n    this = (CustomizeObjectLayer **)cocos2d::CCObject::retain(v3);\n  v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);\n  v5 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 80))(v4);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, v1);\n  CustomizeObjectLayer::onClose(v1, nullptr);\n  v7 = CustomizeObjectLayer::create(v2, v3, v6);\n  result = (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v7 + 656))(v7);\n  if ( v2 )\n    result = cocos2d::CCObject::release(v2);\n  if ( v3 )\n    return cocos2d::CCObject::release(v3);\n  return result;\n}", "assembly": "; \n; CustomizeObjectLayer::recreateLayer from 0x580ff4 to 0x58104e (90 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectSettingsPopup::onClose @ 0x581080\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:52:53 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x580ff4\nMOV             R6, R0                                                 ; +0x2, 0x580ff6\nLDR.W           R5, [R0,#0x214]                                        ; +0x4, 0x580ff8\nLDR.W           R4, [R0,#0x218]                                        ; +0x8, 0x580ffc\nCBZ             R5, loc_581008                                         ; +0xc, 0x581000\nMOV             R0, R5; this                                           ; +0xe, 0x581002\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x10, 0x581004\nCBZ             R4, loc_581010                                         ; +0x14, 0x581008\nMOV             R0, R4; this                                           ; +0x16, 0x58100a\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x18, 0x58100c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1c, 0x581010\nLDR             R3, [R0]                                               ; +0x20, 0x581014\nLDR             R3, [R3,#0x50]                                         ; +0x22, 0x581016\nBLX             R3                                                     ; +0x24, 0x581018\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x26, 0x58101a\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x28, 0x58101c\nMOV             R0, R6; this                                           ; +0x2c, 0x581020\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x2e, 0x581022\nBL              _ZN20CustomizeObjectLayer7onCloseEPN7cocos2d8CCObjectE; CustomizeObjectLayer::onClose(cocos2d::CCObject *) ; +0x30, 0x581024\nMOV             R0, R5; this                                           ; +0x34, 0x581028\nMOV             R1, R4; GameObject *                                   ; +0x36, 0x58102a\nBL              _ZN20CustomizeObjectLayer6createEP10GameObjectPN7cocos2d7CCArrayE; CustomizeObjectLayer::create(GameObject *,cocos2d::CCArray *) ; +0x38, 0x58102c\nLDR             R3, [R0]                                               ; +0x3c, 0x581030\nLDR.W           R3, [R3,#0x290]                                        ; +0x3e, 0x581032\nBLX             R3                                                     ; +0x42, 0x581036\nCBZ             R5, loc_581040                                         ; +0x44, 0x581038\nMOV             R0, R5; this                                           ; +0x46, 0x58103a\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x48, 0x58103c\nCBZ             R4, locret_58104C                                      ; +0x4c, 0x581040\nMOV             R0, R4; this                                           ; +0x4e, 0x581042\nPOP.W           {R4-R6,LR}                                             ; +0x50, 0x581044\nB.W             _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x54, 0x581048\nPOP             {R4-R6,PC}                                             ; +0x58, 0x58104c", "xrefs": ["CustomizeObjectSettingsPopup::onClose @ 0x581080"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}