{"type": "func", "start": 4297028304, "end": 4297028464, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x1001f72d0 to 0x1001f7370 (160 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f52fe\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; // rdi\n  CCTextInputNode *m_textInput; // rdi\n  GameManager *v5; // rax\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 0x1001f72d0 to 0x1001f7370 (160 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f52fe\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\npush    rbp                                                            ; +0x0, 0x1001f72d0\nmov     rbp, rsp                                                       ; +0x1, 0x1001f72d1\npush    rbx                                                            ; +0x4, 0x1001f72d4\npush    rax                                                            ; +0x5, 0x1001f72d5\nmov     rbx, rdi                                                       ; +0x6, 0x1001f72d6\nmov     rdi, [rdi+318h]                                                ; +0x9, 0x1001f72d9\nmov     qword ptr [rdi+220h], 0                                        ; +0x10, 0x1001f72e0\nmov     rax, [rdi]                                                     ; +0x1b, 0x1001f72eb\nxor     esi, esi                                                       ; +0x1e, 0x1001f72ee\ncall    qword ptr [rax+478h]                                           ; +0x20, 0x1001f72f0\nmov     rdi, [rbx+320h]                                                ; +0x26, 0x1001f72f6\ntest    rdi, rdi                                                       ; +0x2d, 0x1001f72fd\njz      short loc_1001F731F                                            ; +0x30, 0x1001f7300\nmov     rax, [rdi]                                                     ; +0x32, 0x1001f7302\nxor     esi, esi                                                       ; +0x35, 0x1001f7305\ncall    qword ptr [rax+478h]                                           ; +0x37, 0x1001f7307\nmov     rax, [rbx+320h]                                                ; +0x3d, 0x1001f730d\nmov     qword ptr [rax+220h], 0                                        ; +0x44, 0x1001f7314\ncall    GameManager__sharedState                                       ; +0x4f, 0x1001f731f\nmov     ecx, [rbx+2D4h]                                                ; +0x54, 0x1001f7324\nmov     [rax+398h], ecx                                                ; +0x5a, 0x1001f732a\ncall    GameManager__sharedState                                       ; +0x60, 0x1001f7330\nmov     rax, [rax+200h]                                                ; +0x65, 0x1001f7335\nmov     rdi, [rax+3670h]                                               ; +0x6c, 0x1001f733c\ncall    EditorUI__updateObjectInfoLabel                                ; +0x73, 0x1001f7343\nmov     rax, [rbx]                                                     ; +0x78, 0x1001f7348\nmov     rdi, rbx                                                       ; +0x7b, 0x1001f734b\nxor     esi, esi                                                       ; +0x7e, 0x1001f734e\ncall    qword ptr [rax+420h]                                           ; +0x80, 0x1001f7350\nmov     rax, [rbx]                                                     ; +0x86, 0x1001f7356\nmov     rax, [rax+200h]                                                ; +0x89, 0x1001f7359\nmov     rdi, rbx                                                       ; +0x90, 0x1001f7360\nmov     esi, 1                                                         ; +0x93, 0x1001f7363\nadd     rsp, 8                                                         ; +0x98, 0x1001f7368\npop     rbx                                                            ; +0x9c, 0x1001f736c\npop     rbp                                                            ; +0x9d, 0x1001f736d\njmp     rax                                                            ; +0x9e, 0x1001f736e", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f52fe"], "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"}