{"type": "func", "start": 4592320, "end": 4592430, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x4612c0 to 0x46132e (110 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onBreakApart @ 0x46133a\n// > CustomizeObjectLayer::keyBackClicked @ 0x461356\n// > CustomizeObjectLayer::onLiveEdit @ 0x461b70\n// > CustomizeObjectLayer::recreateLayer @ 0x463d54\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 CustomizeObjectLayer::onClose(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_textInput; // r0\n  GameManager *v4; // r0\n\n  a1->m_customColorInput->m_delegate = nullptr;\n  a1->m_customColorInput->onClickTrackNode(a1->m_customColorInput, 0);\n  m_textInput = a1->m_textInput;\n  if ( m_textInput )\n  {\n    m_textInput->onClickTrackNode(m_textInput, 0);\n    a1->m_textInput->m_delegate = nullptr;\n  }\n  GameManager::sharedState()->m_currentColorChannel = a1->m_customColorChannel;\n  v4 = GameManager::sharedState();\n  EditorUI::updateObjectInfoLabel(v4->m_levelEditorLayer->m_editorUI);\n  a1->setKeypadEnabled(a1, 0);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x4612c0 to 0x46132e (110 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onBreakApart @ 0x46133a\n; > CustomizeObjectLayer::keyBackClicked @ 0x461356\n; > CustomizeObjectLayer::onLiveEdit @ 0x461b70\n; > CustomizeObjectLayer::recreateLayer @ 0x463d54\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\nLDR.W           R3, [R0,#0x244]                                        ; +0x0, 0x4612c0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x4612c4\nMOV             R4, R0                                                 ; +0x6, 0x4612c6\nMOVS            R5, #0                                                 ; +0x8, 0x4612c8\nSTR.W           R5, [R3,#0x180]                                        ; +0xa, 0x4612ca\nLDR.W           R0, [R0,#0x244]                                        ; +0xe, 0x4612ce\nMOV             R1, R5                                                 ; +0x12, 0x4612d2\nLDR             R3, [R0]                                               ; +0x14, 0x4612d4\nLDR.W           R3, [R3,#0x23C]                                        ; +0x16, 0x4612d6\nBLX             R3                                                     ; +0x1a, 0x4612da\nLDR.W           R0, [R4,#0x248]                                        ; +0x1c, 0x4612dc\nCBZ             R0, loc_4612F4                                         ; +0x20, 0x4612e0\nLDR             R3, [R0]                                               ; +0x22, 0x4612e2\nMOV             R1, R5                                                 ; +0x24, 0x4612e4\nLDR.W           R3, [R3,#0x23C]                                        ; +0x26, 0x4612e6\nBLX             R3                                                     ; +0x2a, 0x4612ea\nLDR.W           R3, [R4,#0x248]                                        ; +0x2c, 0x4612ec\nSTR.W           R5, [R3,#0x180]                                        ; +0x30, 0x4612f0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x4612f4\nLDR.W           R3, [R4,#0x220]                                        ; +0x38, 0x4612f8\nSTR.W           R3, [R0,#0x2B8]                                        ; +0x3c, 0x4612fc\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x461300\nMOVW            R3, #0x2E94                                            ; +0x44, 0x461304\nLDR.W           R2, [R0,#0x170]                                        ; +0x48, 0x461308\nLDR             R0, [R2,R3]; this                                      ; +0x4c, 0x46130c\nBL              _ZN8EditorUI21updateObjectInfoLabelEv; EditorUI::updateObjectInfoLabel(void) ; +0x4e, 0x46130e\nLDR             R3, [R4]                                               ; +0x52, 0x461312\nMOV             R0, R4                                                 ; +0x54, 0x461314\nMOVS            R1, #0                                                 ; +0x56, 0x461316\nLDR.W           R3, [R3,#0x210]                                        ; +0x58, 0x461318\nBLX             R3                                                     ; +0x5c, 0x46131c\nLDR             R3, [R4]                                               ; +0x5e, 0x46131e\nMOV             R0, R4                                                 ; +0x60, 0x461320\nMOVS            R1, #1                                                 ; +0x62, 0x461322\nPOP.W           {R4-R6,LR}                                             ; +0x64, 0x461324\nLDR.W           R3, [R3,#0x100]                                        ; +0x68, 0x461328\nBX              R3                                                     ; +0x6c, 0x46132c", "xrefs": ["CustomizeObjectLayer::onBreakApart @ 0x46133a", "CustomizeObjectLayer::keyBackClicked @ 0x461356", "CustomizeObjectLayer::onLiveEdit @ 0x461b70", "CustomizeObjectLayer::recreateLayer @ 0x463d54"], "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"}