{"type": "func", "start": 7081912, "end": 7082152, "name": "EditorUI::selectObjectsInRect", "pseudocode": "// \n// EditorUI::selectObjectsInRect from 0x6c0fb8 to 0x6c10a8 (240 bytes)\n// \n// 2 xrefs:\n// > EditorUI::ccTouchEnded @ 0x6c2f38\n// > <???> @ 0x984a8\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::selectObjectsInRect(EditorUI *a1, cocos2d::CCRect a2)\n{\n  const cocos2d::CCRect *v2; // x1\n  LevelEditorLayer *m_editorLayer; // x21\n  unsigned int v5; // w19\n  cocos2d::CCArray *v6; // x21\n  __int64 v7; // x1\n  GameObject *m_selectedObject; // x0\n  cocos2d::CCRect v9; // [xsp+38h] [xbp+38h] BYREF\n  cocos2d::CCRect v10; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4\n\n  m_editorLayer = a1->m_editorLayer;\n  cocos2d::CCRect::CCRect(&v9, v2);\n  v5 = 0;\n  v6 = LevelEditorLayer::objectsInRect(m_editorLayer, v10, (bool)&v9);\n  if ( (unsigned int)cocos2d::CCArray::count(v6) )\n  {\n    while ( v5 < (unsigned int)cocos2d::CCArray::count(v6) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(v6, v5);\n      m_selectedObject = a1->m_selectedObject;\n      if ( m_selectedObject && m_selectedObject->m_uniqueID != *(_DWORD *)(v7 + 900)\n        || !(unsigned __int8)cocos2d::CCArray::containsObject(a1->m_selectedObjects, (cocos2d::CCObject *)v7) )\n      {\n        EditorUI::createUndoSelectObject(a1, 0);\n        break;\n      }\n      ++v5;\n    }\n    EditorUI::selectObjects(a1, v6, 0);\n    EditorUI::updateSpecialUIElements(a1);\n  }\n}", "assembly": "; \n; EditorUI::selectObjectsInRect from 0x6c0fb8 to 0x6c10a8 (240 bytes)\n; \n; 2 xrefs:\n; > EditorUI::ccTouchEnded @ 0x6c2f38\n; > <???> @ 0x984a8\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6c0fb8\nMOV             X29, SP                                                ; +0x4, 0x6c0fbc\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x8, 0x6c0fc0\nADRP            X22, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6c0fc4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x10, 0x6c0fc8\nMOV             X20, X0                                                ; +0x14, 0x6c0fcc\nADD             X19, X29, #0x50+var_18                                 ; +0x18, 0x6c0fd0\nLDR             X2, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6c0fd4\nMOV             X0, X19; this                                          ; +0x20, 0x6c0fd8\nLDR             X21, [X20,#0x4F8]                                      ; +0x24, 0x6c0fdc\nLDR             X2, [X2]                                               ; +0x28, 0x6c0fe0\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x2c, 0x6c0fe4\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x30, 0x6c0fe8\nMOV             X1, X19                                                ; +0x34, 0x6c0fec\nMOV             X0, X21                                                ; +0x38, 0x6c0ff0\nMOV             W2, #0                                                 ; +0x3c, 0x6c0ff4\nMOV             W19, #0                                                ; +0x40, 0x6c0ff8\nBL              _ZN16LevelEditorLayer13objectsInRectEN7cocos2d6CCRectEb; LevelEditorLayer::objectsInRect(cocos2d::CCRect,bool) ; +0x44, 0x6c0ffc\nMOV             X21, X0                                                ; +0x48, 0x6c1000\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x6c1004\nCBZ             W0, loc_6C1068                                         ; +0x50, 0x6c1008\nMOV             X0, X21; this                                          ; +0x54, 0x6c100c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x58, 0x6c1010\nCMP             W19, W0                                                ; +0x5c, 0x6c1014\nB.CS            loc_6C1050                                             ; +0x60, 0x6c1018\nMOV             W1, W19; unsigned int                                  ; +0x64, 0x6c101c\nMOV             X0, X21; this                                          ; +0x68, 0x6c1020\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x6c, 0x6c1024\nMOV             X1, X0; cocos2d::CCObject *                            ; +0x70, 0x6c1028\nLDR             X0, [X20,#0x530]                                       ; +0x74, 0x6c102c\nCBZ             X0, loc_6C108C                                         ; +0x78, 0x6c1030\nLDR             W2, [X0,#0x384]                                        ; +0x7c, 0x6c1034\nLDR             W0, [X1,#0x384]                                        ; +0x80, 0x6c1038\nCMP             W2, W0                                                 ; +0x84, 0x6c103c\nB.EQ            loc_6C108C                                             ; +0x88, 0x6c1040\nMOV             X0, X20; this                                          ; +0x8c, 0x6c1044\nMOV             W1, #0; bool                                           ; +0x90, 0x6c1048\nBL              _ZN8EditorUI22createUndoSelectObjectEb; EditorUI::createUndoSelectObject(bool) ; +0x94, 0x6c104c\nMOV             X0, X20; this                                          ; +0x98, 0x6c1050\nMOV             X1, X21; cocos2d::CCArray *                            ; +0x9c, 0x6c1054\nMOV             W2, #0; bool                                           ; +0xa0, 0x6c1058\nBL              _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0xa4, 0x6c105c\nMOV             X0, X20; this                                          ; +0xa8, 0x6c1060\nBL              _ZN8EditorUI23updateSpecialUIElementsEv; EditorUI::updateSpecialUIElements(void) ; +0xac, 0x6c1064\nLDR             X22, [X22,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb0, 0x6c1068\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xb4, 0x6c106c\nLDR             X0, [X22]                                              ; +0xb8, 0x6c1070\nCMP             X1, X0                                                 ; +0xbc, 0x6c1074\nB.NE            loc_6C10A4                                             ; +0xc0, 0x6c1078\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xc4, 0x6c107c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xc8, 0x6c1080\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xcc, 0x6c1084\nRET                                                                    ; +0xd0, 0x6c1088\nLDR             X0, [X20,#0x338]; this                                 ; +0xd4, 0x6c108c\nBL              _ZNK7cocos2d7CCArray14containsObjectEPNS_8CCObjectE; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0xd8, 0x6c1090\nUXTB            W0, W0                                                 ; +0xdc, 0x6c1094\nCBZ             W0, loc_6C1044                                         ; +0xe0, 0x6c1098\nADD             W19, W19, #1                                           ; +0xe4, 0x6c109c\nB               loc_6C100C                                             ; +0xe8, 0x6c10a0\nBL              .__stack_chk_fail                                      ; +0xec, 0x6c10a4", "xrefs": ["EditorUI::ccTouchEnded @ 0x6c2f38", "<???> @ 0x984a8"], "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"}