{"type": "func", "start": 5758924, "end": 5759034, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x57dfcc to 0x57e03a (110 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onBreakApart @ 0x57e046\n// > CustomizeObjectLayer::keyBackClicked @ 0x57e062\n// > CustomizeObjectLayer::onLiveEdit @ 0x57e6a8\n// > CustomizeObjectLayer::recreateLayer @ 0x581024\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:50 +0000\n// \n\nint __fastcall CustomizeObjectLayer::onClose(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r0\n  GameManager *v4; // r0\n  int v5; // r0\n\n  *(_DWORD *)(*((_DWORD *)this + 150) + 420) = 0;\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 580))(*((_DWORD *)this + 150), 0);\n  v3 = *((GameManager **)this + 151);\n  if ( v3 )\n  {\n    v3 = (GameManager *)(*(int (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v3 + 580))(v3, 0);\n    *(_DWORD *)(*((_DWORD *)this + 151) + 420) = 0;\n  }\n  v4 = (GameManager *)GameManager::sharedState(v3);\n  *((_DWORD *)v4 + 190) = *((_DWORD *)this + 141);\n  v5 = GameManager::sharedState(v4);\n  EditorUI::updateObjectInfoLabel(*(cocos2d::CCArray ***)(*(_DWORD *)(v5 + 408) + 11856));\n  (*(void (__fastcall **)(CustomizeObjectLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);\n  return (*(int (__fastcall **)(CustomizeObjectLayer *, int))(*(_DWORD *)this + 264))(this, 1);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x57dfcc to 0x57e03a (110 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onBreakApart @ 0x57e046\n; > CustomizeObjectLayer::keyBackClicked @ 0x57e062\n; > CustomizeObjectLayer::onLiveEdit @ 0x57e6a8\n; > CustomizeObjectLayer::recreateLayer @ 0x581024\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:50 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x57dfcc\nMOV             R4, R0                                                 ; +0x2, 0x57dfce\nLDR.W           R3, [R0,#0x258]                                        ; +0x4, 0x57dfd0\nMOVS            R5, #0                                                 ; +0x8, 0x57dfd4\nMOV             R1, R5                                                 ; +0xa, 0x57dfd6\nSTR.W           R5, [R3,#0x1A4]                                        ; +0xc, 0x57dfd8\nLDR.W           R0, [R0,#0x258]                                        ; +0x10, 0x57dfdc\nLDR             R3, [R0]                                               ; +0x14, 0x57dfe0\nLDR.W           R3, [R3,#0x244]                                        ; +0x16, 0x57dfe2\nBLX             R3                                                     ; +0x1a, 0x57dfe6\nLDR.W           R0, [R4,#0x25C]                                        ; +0x1c, 0x57dfe8\nCBZ             R0, loc_57E000                                         ; +0x20, 0x57dfec\nLDR             R3, [R0]                                               ; +0x22, 0x57dfee\nMOV             R1, R5                                                 ; +0x24, 0x57dff0\nLDR.W           R3, [R3,#0x244]                                        ; +0x26, 0x57dff2\nBLX             R3                                                     ; +0x2a, 0x57dff6\nLDR.W           R3, [R4,#0x25C]                                        ; +0x2c, 0x57dff8\nSTR.W           R5, [R3,#0x1A4]                                        ; +0x30, 0x57dffc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x57e000\nLDR.W           R3, [R4,#0x234]                                        ; +0x38, 0x57e004\nSTR.W           R3, [R0,#0x2F8]                                        ; +0x3c, 0x57e008\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x57e00c\nMOVW            R3, #0x2E50                                            ; +0x44, 0x57e010\nLDR.W           R2, [R0,#0x198]                                        ; +0x48, 0x57e014\nLDR             R0, [R2,R3]; this                                      ; +0x4c, 0x57e018\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x4e, 0x57e01a\nLDR             R3, [R4]                                               ; +0x52, 0x57e01e\nMOV             R0, R4                                                 ; +0x54, 0x57e020\nMOVS            R1, #0                                                 ; +0x56, 0x57e022\nLDR.W           R3, [R3,#0x218]                                        ; +0x58, 0x57e024\nBLX             R3                                                     ; +0x5c, 0x57e028\nLDR             R3, [R4]                                               ; +0x5e, 0x57e02a\nMOV             R0, R4                                                 ; +0x60, 0x57e02c\nMOVS            R1, #1                                                 ; +0x62, 0x57e02e\nPOP.W           {R4-R6,LR}                                             ; +0x64, 0x57e030\nLDR.W           R3, [R3,#0x108]                                        ; +0x68, 0x57e034\nBX              R3                                                     ; +0x6c, 0x57e038", "xrefs": ["CustomizeObjectLayer::onBreakApart @ 0x57e046", "CustomizeObjectLayer::keyBackClicked @ 0x57e062", "CustomizeObjectLayer::onLiveEdit @ 0x57e6a8", "CustomizeObjectLayer::recreateLayer @ 0x581024"], "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"}