{"type": "func", "start": 4295148304, "end": 4295148362, "name": "EditorUI::onCopyState", "pseudocode": "// \n// EditorUI::onCopyState from 0x10002c310 to 0x10002c34a (58 bytes)\n// \n// 1 xrefs:\n// > EditorUI::init @ 0x10000ad22\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 EditorUI::onCopyState(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v2; // rax\n\n  if ( a1->m_selectedObject )\n  {\n    v2 = GameManager::sharedState();\n    LevelEditorLayer::copyObjectState(v2->m_levelEditorLayer, a1->m_selectedObject);\n    EditorUI::updateButtons(a1);\n  }\n}", "assembly": "; \n; EditorUI::onCopyState from 0x10002c310 to 0x10002c34a (58 bytes)\n; \n; 1 xrefs:\n; > EditorUI::init @ 0x10000ad22\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+520h], 0                                        ; +0x0, 0x10002c310\njz      short locret_10002C349                                         ; +0x8, 0x10002c318\npush    rbp                                                            ; +0xa, 0x10002c31a\nmov     rbp, rsp                                                       ; +0xb, 0x10002c31b\npush    rbx                                                            ; +0xe, 0x10002c31e\npush    rax                                                            ; +0xf, 0x10002c31f\nmov     rbx, rdi                                                       ; +0x10, 0x10002c320\ncall    GameManager__sharedState                                       ; +0x13, 0x10002c323\nmov     rdi, [rax+200h]                                                ; +0x18, 0x10002c328\nmov     rsi, [rbx+520h]                                                ; +0x1f, 0x10002c32f\ncall    LevelEditorLayer__copyObjectState                              ; +0x26, 0x10002c336\nmov     rdi, rbx                                                       ; +0x2b, 0x10002c33b\nadd     rsp, 8                                                         ; +0x2e, 0x10002c33e\npop     rbx                                                            ; +0x32, 0x10002c342\npop     rbp                                                            ; +0x33, 0x10002c343\njmp     EditorUI__updateButtons                                        ; +0x34, 0x10002c344\nretn                                                                   ; +0x39, 0x10002c349", "xrefs": ["EditorUI::init @ 0x10000ad22"], "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"}