{"type": "func", "start": 4297031568, "end": 4297031764, "name": "CustomizeObjectLayer::onBreakApart", "pseudocode": "// \n// CustomizeObjectLayer::onBreakApart from 0x1001f7f90 to 0x1001f8054 (196 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f6d40\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::onBreakApart(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_customColorInput; // rdi\n  CCTextInputNode *m_textInput; // rdi\n  GameManager *v5; // rax\n  GameManager *v6; // rax\n\n  if ( a1->m_targetObject )\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    v6 = GameManager::sharedState();\n    LevelEditorLayer::breakApartTextObject(v6->m_levelEditorLayer, (TextGameObject *)a1->m_targetObject);\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::onBreakApart from 0x1001f7f90 to 0x1001f8054 (196 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f6d40\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\ncmp     qword ptr [rdi+298h], 0                                        ; +0x0, 0x1001f7f90\njz      locret_1001F8053                                               ; +0x8, 0x1001f7f98\npush    rbp                                                            ; +0xe, 0x1001f7f9e\nmov     rbp, rsp                                                       ; +0xf, 0x1001f7f9f\npush    rbx                                                            ; +0x12, 0x1001f7fa2\npush    rax                                                            ; +0x13, 0x1001f7fa3\nmov     rbx, rdi                                                       ; +0x14, 0x1001f7fa4\nmov     rdi, [rdi+318h]                                                ; +0x17, 0x1001f7fa7\nmov     qword ptr [rdi+220h], 0                                        ; +0x1e, 0x1001f7fae\nmov     rax, [rdi]                                                     ; +0x29, 0x1001f7fb9\nxor     esi, esi                                                       ; +0x2c, 0x1001f7fbc\ncall    qword ptr [rax+478h]                                           ; +0x2e, 0x1001f7fbe\nmov     rdi, [rbx+320h]                                                ; +0x34, 0x1001f7fc4\ntest    rdi, rdi                                                       ; +0x3b, 0x1001f7fcb\njz      short loc_1001F7FED                                            ; +0x3e, 0x1001f7fce\nmov     rax, [rdi]                                                     ; +0x40, 0x1001f7fd0\nxor     esi, esi                                                       ; +0x43, 0x1001f7fd3\ncall    qword ptr [rax+478h]                                           ; +0x45, 0x1001f7fd5\nmov     rax, [rbx+320h]                                                ; +0x4b, 0x1001f7fdb\nmov     qword ptr [rax+220h], 0                                        ; +0x52, 0x1001f7fe2\ncall    GameManager__sharedState                                       ; +0x5d, 0x1001f7fed\nmov     ecx, [rbx+2D4h]                                                ; +0x62, 0x1001f7ff2\nmov     [rax+398h], ecx                                                ; +0x68, 0x1001f7ff8\ncall    GameManager__sharedState                                       ; +0x6e, 0x1001f7ffe\nmov     rax, [rax+200h]                                                ; +0x73, 0x1001f8003\nmov     rdi, [rax+3670h]                                               ; +0x7a, 0x1001f800a\ncall    EditorUI__updateObjectInfoLabel                                ; +0x81, 0x1001f8011\nmov     rax, [rbx]                                                     ; +0x86, 0x1001f8016\nmov     rdi, rbx                                                       ; +0x89, 0x1001f8019\nxor     esi, esi                                                       ; +0x8c, 0x1001f801c\ncall    qword ptr [rax+420h]                                           ; +0x8e, 0x1001f801e\nmov     rax, [rbx]                                                     ; +0x94, 0x1001f8024\nmov     rdi, rbx                                                       ; +0x97, 0x1001f8027\nmov     esi, 1                                                         ; +0x9a, 0x1001f802a\ncall    qword ptr [rax+200h]                                           ; +0x9f, 0x1001f802f\ncall    GameManager__sharedState                                       ; +0xa5, 0x1001f8035\nmov     rdi, [rax+200h]                                                ; +0xaa, 0x1001f803a\nmov     rsi, [rbx+298h]                                                ; +0xb1, 0x1001f8041\nadd     rsp, 8                                                         ; +0xb8, 0x1001f8048\npop     rbx                                                            ; +0xbc, 0x1001f804c\npop     rbp                                                            ; +0xbd, 0x1001f804d\njmp     LevelEditorLayer__breakApartTextObject                         ; +0xbe, 0x1001f804e\nretn                                                                   ; +0xc3, 0x1001f8053", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f6d40"], "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"}