{"type": "func", "start": 4297030912, "end": 4297031107, "name": "CustomizeObjectLayer::onLiveEdit", "pseudocode": "// \n// CustomizeObjectLayer::onLiveEdit from 0x1001f7d00 to 0x1001f7dc3 (195 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f6514\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::onLiveEdit(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int ActiveMode; // ebx\n  CCTextInputNode *m_customColorInput; // rdi\n  CCTextInputNode *m_textInput; // rdi\n  GameManager *v6; // rax\n  GameManager *v7; // rax\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\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  v6 = GameManager::sharedState();\n  EditorUI::updateObjectInfoLabel(v6->m_levelEditorLayer->m_editorUI);\n  ((void (__fastcall *)(CustomizeObjectLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(CustomizeObjectLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n  v7 = GameManager::sharedState();\n  EditorUI::showLiveColorSelectForModeSpecial(v7->m_levelEditorLayer->m_editorUI, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onLiveEdit from 0x1001f7d00 to 0x1001f7dc3 (195 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f6514\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, 0x1001f7d00\nmov     rbp, rsp                                                       ; +0x1, 0x1001f7d01\npush    r14                                                            ; +0x4, 0x1001f7d04\npush    rbx                                                            ; +0x6, 0x1001f7d06\nmov     r14, rdi                                                       ; +0x7, 0x1001f7d07\nmov     esi, 1                                                         ; +0xa, 0x1001f7d0a\ncall    CustomizeObjectLayer__getActiveMode                            ; +0xf, 0x1001f7d0f\nmov     ebx, eax                                                       ; +0x14, 0x1001f7d14\nmov     rdi, [r14+318h]                                                ; +0x16, 0x1001f7d16\nmov     qword ptr [rdi+220h], 0                                        ; +0x1d, 0x1001f7d1d\nmov     rax, [rdi]                                                     ; +0x28, 0x1001f7d28\nxor     esi, esi                                                       ; +0x2b, 0x1001f7d2b\ncall    qword ptr [rax+478h]                                           ; +0x2d, 0x1001f7d2d\nmov     rdi, [r14+320h]                                                ; +0x33, 0x1001f7d33\ntest    rdi, rdi                                                       ; +0x3a, 0x1001f7d3a\njz      short loc_1001F7D5C                                            ; +0x3d, 0x1001f7d3d\nmov     rax, [rdi]                                                     ; +0x3f, 0x1001f7d3f\nxor     esi, esi                                                       ; +0x42, 0x1001f7d42\ncall    qword ptr [rax+478h]                                           ; +0x44, 0x1001f7d44\nmov     rax, [r14+320h]                                                ; +0x4a, 0x1001f7d4a\nmov     qword ptr [rax+220h], 0                                        ; +0x51, 0x1001f7d51\ncall    GameManager__sharedState                                       ; +0x5c, 0x1001f7d5c\nmov     ecx, [r14+2D4h]                                                ; +0x61, 0x1001f7d61\nmov     [rax+398h], ecx                                                ; +0x68, 0x1001f7d68\ncall    GameManager__sharedState                                       ; +0x6e, 0x1001f7d6e\nmov     rax, [rax+200h]                                                ; +0x73, 0x1001f7d73\nmov     rdi, [rax+3670h]                                               ; +0x7a, 0x1001f7d7a\ncall    EditorUI__updateObjectInfoLabel                                ; +0x81, 0x1001f7d81\nmov     rax, [r14]                                                     ; +0x86, 0x1001f7d86\nmov     rdi, r14                                                       ; +0x89, 0x1001f7d89\nxor     esi, esi                                                       ; +0x8c, 0x1001f7d8c\ncall    qword ptr [rax+420h]                                           ; +0x8e, 0x1001f7d8e\nmov     rax, [r14]                                                     ; +0x94, 0x1001f7d94\nmov     rdi, r14                                                       ; +0x97, 0x1001f7d97\nmov     esi, 1                                                         ; +0x9a, 0x1001f7d9a\ncall    qword ptr [rax+200h]                                           ; +0x9f, 0x1001f7d9f\ncall    GameManager__sharedState                                       ; +0xa5, 0x1001f7da5\nmov     rax, [rax+200h]                                                ; +0xaa, 0x1001f7daa\nmov     rdi, [rax+3670h]                                               ; +0xb1, 0x1001f7db1\nmov     esi, ebx                                                       ; +0xb8, 0x1001f7db8\npop     rbx                                                            ; +0xba, 0x1001f7dba\npop     r14                                                            ; +0xbb, 0x1001f7dbb\npop     rbp                                                            ; +0xbd, 0x1001f7dbd\njmp     EditorUI__showLiveColorSelectForModeSpecial                    ; +0xbe, 0x1001f7dbe", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f6514"], "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"}