{"type": "func", "start": 4295291816, "end": 4295291964, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x10004f3a8 to 0x10004f43c (148 bytes)\n// \n// 6 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x10004fc6c\n// > CustomizeObjectLayer::onBreakApart @ 0x10004fe38\n// > CustomizeObjectLayer::recreateLayer @ 0x100050434\n// > CustomizeObjectLayer::keyBackClicked @ 0x100050c90\n// > sub_100050C94 @ 0x100050c98\n// > CustomizeObjectLayer::init @ 0x10004d734\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::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_customColorInput; // x0\n  CCTextInputNode *m_textInput; // x0\n  GameManager *v5; // x0\n\n  m_customColorInput = a1->m_customColorInput;\n  m_customColorInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_customColorInput->onClickTrackNode)(m_customColorInput, 0);\n  m_textInput = a1->m_textInput;\n  if ( m_textInput )\n  {\n    ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_textInput->onClickTrackNode)(m_textInput, 0);\n    a1->m_textInput->m_delegate = nullptr;\n  }\n  GameManager::sharedState()->m_currentColorChannel = a1->m_customColorChannel;\n  v5 = GameManager::sharedState();\n  EditorUI::updateObjectInfoLabel(v5->m_levelEditorLayer->m_editorUI);\n  ((void (__fastcall *)(CustomizeObjectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(CustomizeObjectLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x10004f3a8 to 0x10004f43c (148 bytes)\n; \n; 6 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x10004fc6c\n; > CustomizeObjectLayer::onBreakApart @ 0x10004fe38\n; > CustomizeObjectLayer::recreateLayer @ 0x100050434\n; > CustomizeObjectLayer::keyBackClicked @ 0x100050c90\n; > sub_100050C94 @ 0x100050c98\n; > CustomizeObjectLayer::init @ 0x10004d734\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10004f3a8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10004f3ac\nADD             X29, SP, #0x10                                         ; +0x8, 0x10004f3b0\nMOV             X19, X0                                                ; +0xc, 0x10004f3b4\nLDR             X0, [X0,#0x318]                                        ; +0x10, 0x10004f3b8\nSTR             XZR, [X0,#0x220]                                       ; +0x14, 0x10004f3bc\nLDR             X8, [X0]                                               ; +0x18, 0x10004f3c0\nLDR             X8, [X8,#0x478]                                        ; +0x1c, 0x10004f3c4\nMOV             W1, #0                                                 ; +0x20, 0x10004f3c8\nBLR             X8                                                     ; +0x24, 0x10004f3cc\nLDR             X0, [X19,#0x320]                                       ; +0x28, 0x10004f3d0\nCBZ             X0, loc_10004F3F0                                      ; +0x2c, 0x10004f3d4\nLDR             X8, [X0]                                               ; +0x30, 0x10004f3d8\nLDR             X8, [X8,#0x478]                                        ; +0x34, 0x10004f3dc\nMOV             W1, #0                                                 ; +0x38, 0x10004f3e0\nBLR             X8                                                     ; +0x3c, 0x10004f3e4\nLDR             X8, [X19,#0x320]                                       ; +0x40, 0x10004f3e8\nSTR             XZR, [X8,#0x220]                                       ; +0x44, 0x10004f3ec\nBL              GameManager__sharedState                               ; +0x48, 0x10004f3f0\nLDR             W8, [X19,#0x2D4]                                       ; +0x4c, 0x10004f3f4\nSTR             W8, [X0,#0x398]                                        ; +0x50, 0x10004f3f8\nBL              GameManager__sharedState                               ; +0x54, 0x10004f3fc\nLDR             X8, [X0,#0x200]                                        ; +0x58, 0x10004f400\nLDR             X0, [X8,#0x36A0]                                       ; +0x5c, 0x10004f404\nBL              EditorUI__updateObjectInfoLabel                        ; +0x60, 0x10004f408\nLDR             X8, [X19]                                              ; +0x64, 0x10004f40c\nLDR             X8, [X8,#0x420]                                        ; +0x68, 0x10004f410\nMOV             X0, X19                                                ; +0x6c, 0x10004f414\nMOV             W1, #0                                                 ; +0x70, 0x10004f418\nBLR             X8                                                     ; +0x74, 0x10004f41c\nLDR             X8, [X19]                                              ; +0x78, 0x10004f420\nLDR             X2, [X8,#0x200]                                        ; +0x7c, 0x10004f424\nMOV             X0, X19                                                ; +0x80, 0x10004f428\nMOV             W1, #1                                                 ; +0x84, 0x10004f42c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x10004f430\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10004f434\nBR              X2                                                     ; +0x90, 0x10004f438", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x10004fc6c", "CustomizeObjectLayer::onBreakApart @ 0x10004fe38", "CustomizeObjectLayer::recreateLayer @ 0x100050434", "CustomizeObjectLayer::keyBackClicked @ 0x100050c90", "sub_100050C94 @ 0x100050c98", "CustomizeObjectLayer::init @ 0x10004d734"], "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"}