{"type": "func", "start": 4299071524, "end": 4299071776, "name": "EditorUI::findAndSelectObject", "pseudocode": "// \n// EditorUI::findAndSelectObject from 0x1003ea024 to 0x1003ea120 (252 bytes)\n// \n// 1 xrefs:\n// > EditorUI::setIDPopupClosed @ 0x1003e9f94\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::findAndSelectObject(EditorUI *a1, int a2, bool a3)\n{\n  LevelEditorLayer *m_editorLayer; // x0\n  GameObject *GameObject; // x0\n  GameObject *v6; // x20\n  cocos2d::CCLayer *m_objectLayer; // x21\n  const cocos2d::CCPoint *v8; // x0\n  CCCircleWave *v9; // x20\n  __int64 v10; // [xsp+0h] [xbp-30h] BYREF\n  __int64 v11; // [xsp+8h] [xbp-28h] BYREF\n\n  m_editorLayer = a1->m_editorLayer;\n  if ( a3 )\n    GameObject = LevelEditorLayer::findGameObject(m_editorLayer, a2);\n  else\n    GameObject = GJBaseGameLayer::tryGetObject(m_editorLayer, a2);\n  v6 = GameObject;\n  if ( GameObject )\n  {\n    EditorUI::selectObject(a1, GameObject, 0);\n    EditorUI::centerCameraOnObject(a1, v6);\n    m_objectLayer = a1->m_editorLayer->m_objectLayer;\n    v8 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(GameObject *))v6->getPosition)(v6);\n    cocos2d::CCNode::convertToWorldSpace(m_objectLayer, v8);\n    sub_1000229B8(&v10, &v11);\n    v9 = CCCircleWave::create(1.0, 50.0, 0.8, 0, 0);\n    v9->m_color.b = -1;\n    *(_WORD *)&v9->m_color.r = -1;\n    ((void (__fastcall *)(CCCircleWave *, __int64 *))v9->setPosition)(v9, &v10);\n    ((void (__fastcall *)(EditorUI *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v9, 0);\n    v9->m_circleMode = Outline;\n  }\n}", "assembly": "; \n; EditorUI::findAndSelectObject from 0x1003ea024 to 0x1003ea120 (252 bytes)\n; \n; 1 xrefs:\n; > EditorUI::setIDPopupClosed @ 0x1003e9f94\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003ea024\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003ea028\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003ea02c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003ea030\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003ea034\nMOV             X19, X0                                                ; +0x14, 0x1003ea038\nLDR             X0, [X0,#0x4E8]                                        ; +0x18, 0x1003ea03c\nTBZ             W2, #0, loc_1003EA04C                                  ; +0x1c, 0x1003ea040\nBL              LevelEditorLayer__findGameObject                       ; +0x20, 0x1003ea044\nB               loc_1003EA050                                          ; +0x24, 0x1003ea048\nBL              GJBaseGameLayer__tryGetObject                          ; +0x28, 0x1003ea04c\nMOV             X20, X0                                                ; +0x2c, 0x1003ea050\nCBZ             X0, loc_1003EA10C                                      ; +0x30, 0x1003ea054\nMOV             X0, X19                                                ; +0x34, 0x1003ea058\nMOV             X1, X20                                                ; +0x38, 0x1003ea05c\nMOV             W2, #0                                                 ; +0x3c, 0x1003ea060\nBL              EditorUI__selectObject                                 ; +0x40, 0x1003ea064\nMOV             X0, X19                                                ; +0x44, 0x1003ea068\nMOV             X1, X20                                                ; +0x48, 0x1003ea06c\nBL              EditorUI__centerCameraOnObject                         ; +0x4c, 0x1003ea070\nLDR             X8, [X19,#0x4E8]                                       ; +0x50, 0x1003ea074\nLDR             X21, [X8,#0xEE0]                                       ; +0x54, 0x1003ea078\nLDR             X8, [X20]                                              ; +0x58, 0x1003ea07c\nLDR             X8, [X8,#0xC0]                                         ; +0x5c, 0x1003ea080\nMOV             X0, X20                                                ; +0x60, 0x1003ea084\nBLR             X8                                                     ; +0x64, 0x1003ea088\nMOV             X1, X0                                                 ; +0x68, 0x1003ea08c\nADD             X8, SP, #0x30+var_28                                   ; +0x6c, 0x1003ea090\nMOV             X0, X21                                                ; +0x70, 0x1003ea094\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x74, 0x1003ea098\nMOV             X0, SP                                                 ; +0x78, 0x1003ea09c\nADD             X1, SP, #0x30+var_28                                   ; +0x7c, 0x1003ea0a0\nBL              sub_1000229B8                                          ; +0x80, 0x1003ea0a4\nMOV             W8, #0x42480000                                        ; +0x84, 0x1003ea0a8\nFMOV            S1, W8                                                 ; +0x88, 0x1003ea0ac\nADRP            X8, #dword_100635340@PAGE                              ; +0x8c, 0x1003ea0b0\nLDR             S2, [X8,#dword_100635340@PAGEOFF]                      ; +0x90, 0x1003ea0b4\nFMOV            S0, #1.0                                               ; +0x94, 0x1003ea0b8\nMOV             W0, #0                                                 ; +0x98, 0x1003ea0bc\nMOV             W1, #0                                                 ; +0x9c, 0x1003ea0c0\nBL              CCCircleWave__create                                   ; +0xa0, 0x1003ea0c4\nMOV             X20, X0                                                ; +0xa4, 0x1003ea0c8\nMOV             W8, #0xFF                                              ; +0xa8, 0x1003ea0cc\nSTRB            W8, [X0,#0x156]                                        ; +0xac, 0x1003ea0d0\nMOV             W8, #0xFFFF                                            ; +0xb0, 0x1003ea0d4\nSTRH            W8, [X0,#0x154]                                        ; +0xb4, 0x1003ea0d8\nLDR             X8, [X0]                                               ; +0xb8, 0x1003ea0dc\nLDR             X8, [X8,#0xB8]                                         ; +0xbc, 0x1003ea0e0\nMOV             X1, SP                                                 ; +0xc0, 0x1003ea0e4\nBLR             X8                                                     ; +0xc4, 0x1003ea0e8\nLDR             X8, [X19]                                              ; +0xc8, 0x1003ea0ec\nLDR             X8, [X8,#0x1C0]                                        ; +0xcc, 0x1003ea0f0\nMOV             X0, X19                                                ; +0xd0, 0x1003ea0f4\nMOV             X1, X20                                                ; +0xd4, 0x1003ea0f8\nMOV             W2, #0                                                 ; +0xd8, 0x1003ea0fc\nBLR             X8                                                     ; +0xdc, 0x1003ea100\nMOV             W8, #1                                                 ; +0xe0, 0x1003ea104\nSTR             W8, [X20,#0x160]                                       ; +0xe4, 0x1003ea108\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xe8, 0x1003ea10c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xec, 0x1003ea110\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xf0, 0x1003ea114\nADD             SP, SP, #0x40 ; '@'                                    ; +0xf4, 0x1003ea118\nRET                                                                    ; +0xf8, 0x1003ea11c", "xrefs": ["EditorUI::setIDPopupClosed @ 0x1003e9f94"], "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"}