{"type": "func", "start": 3812996, "end": 3813122, "name": "EditorUI::findAndSelectObject", "pseudocode": "// \n// EditorUI::findAndSelectObject from 0x3a2e84 to 0x3a2f02 (126 bytes)\n// \n// 1 xrefs:\n// > EditorUI::setIDPopupClosed @ 0x3a2fd6\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 EditorUI::findAndSelectObject(EditorUI *a1, int a2, bool a3)\n{\n  LevelEditorLayer *m_editorLayer; // r0\n  GameObject *GameObject; // r0\n  GameObject *v6; // r4\n  cocos2d::CCLayer *m_objectLayer; // r8\n  const cocos2d::CCPoint *v8; // r0\n  cocos2d::CCPoint v9; // r1\n  float v10; // [sp+0h] [bp-18h]\n  cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] 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 = v6->getPosition(v6);\n    cocos2d::CCNode::convertToWorldSpace(&v11, m_objectLayer, v8);\n    cocos2d::CCPoint::CCPoint(&v12, &v11);\n    LODWORD(v9.x) = &v12;\n    v9.y = 50.0;\n    EditorUI::playCircleAnim(a1, v9, 0.8, v10);\n  }\n}", "assembly": "; \n; EditorUI::findAndSelectObject from 0x3a2e84 to 0x3a2f02 (126 bytes)\n; \n; 1 xrefs:\n; > EditorUI::setIDPopupClosed @ 0x3a2fd6\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             R3, =(__stack_chk_guard_ptr - 0x3A2E8E)                ; +0x0, 0x3a2e84\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x3a2e86\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3a2e8a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3a2e8c\nMOV             R6, R0                                                 ; +0xa, 0x3a2e8e\nSUB             SP, SP, #0x18                                          ; +0xc, 0x3a2e90\nLDR             R0, [R3]                                               ; +0xe, 0x3a2e92\nMOV             R5, R3                                                 ; +0x10, 0x3a2e94\nSTR             R0, [SP,#0x18+var_4]                                   ; +0x12, 0x3a2e96\nLDR.W           R0, [R6,#0x340]; this                                  ; +0x14, 0x3a2e98\nCBNZ            R2, loc_3A2EA4                                         ; +0x18, 0x3a2e9c\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0x1a, 0x3a2e9e\nB               loc_3A2EA8                                             ; +0x1e, 0x3a2ea2\nBL              _ZN16LevelEditorLayer14findGameObjectEi; LevelEditorLayer::findGameObject(int) ; +0x20, 0x3a2ea4\nMOV             R4, R0                                                 ; +0x24, 0x3a2ea8\nCBZ             R0, loc_3A2EF0                                         ; +0x26, 0x3a2eaa\nMOVS            R2, #0; bool                                           ; +0x28, 0x3a2eac\nMOV             R1, R4; GameObject *                                   ; +0x2a, 0x3a2eae\nMOV             R0, R6; this                                           ; +0x2c, 0x3a2eb0\nADD             R7, SP, #0x18+var_14                                   ; +0x2e, 0x3a2eb2\nBL              _ZN8EditorUI12selectObjectEP10GameObjectb; EditorUI::selectObject(GameObject *,bool) ; +0x30, 0x3a2eb4\nMOV             R1, R4; GameObject *                                   ; +0x34, 0x3a2eb8\nMOV             R0, R6; this                                           ; +0x36, 0x3a2eba\nBL              _ZN8EditorUI20centerCameraOnObjectEP10GameObject; EditorUI::centerCameraOnObject(GameObject *) ; +0x38, 0x3a2ebc\nLDR.W           R3, [R6,#0x340]                                        ; +0x3c, 0x3a2ec0\nMOV             R0, R4                                                 ; +0x40, 0x3a2ec4\nLDR.W           R8, [R3,#0x9F0]                                        ; +0x42, 0x3a2ec6\nLDR             R3, [R4]                                               ; +0x46, 0x3a2eca\nADD             R4, SP, #0x18+var_C                                    ; +0x48, 0x3a2ecc\nLDR             R3, [R3,#0x60]                                         ; +0x4a, 0x3a2ece\nBLX             R3                                                     ; +0x4c, 0x3a2ed0\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x4e, 0x3a2ed2\nMOV             R2, R0                                                 ; +0x50, 0x3a2ed4\nMOV             R0, R7; this                                           ; +0x52, 0x3a2ed6\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x54, 0x3a2ed8\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x58, 0x3a2edc\nMOV             R0, R4; this                                           ; +0x5a, 0x3a2ede\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x5c, 0x3a2ee0\nMOV             R0, R6                                                 ; +0x60, 0x3a2ee4\nMOV             R1, R4                                                 ; +0x62, 0x3a2ee6\nLDR             R2, =0x42480000                                        ; +0x64, 0x3a2ee8\nLDR             R3, =0x3F4CCCCD                                        ; +0x66, 0x3a2eea\nBL              _ZN8EditorUI14playCircleAnimEN7cocos2d7CCPointEff; EditorUI::playCircleAnim(cocos2d::CCPoint,float,float) ; +0x68, 0x3a2eec\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6c, 0x3a2ef0\nLDR             R3, [R5]                                               ; +0x6e, 0x3a2ef2\nCMP             R2, R3                                                 ; +0x70, 0x3a2ef4\nBEQ             loc_3A2EFC                                             ; +0x72, 0x3a2ef6\nBLX             __stack_chk_fail                                       ; +0x74, 0x3a2ef8\nADD             SP, SP, #0x18                                          ; +0x78, 0x3a2efc\nPOP.W           {R4-R8,PC}                                             ; +0x7a, 0x3a2efe", "xrefs": ["EditorUI::setIDPopupClosed @ 0x3a2fd6"], "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"}