{"type": "func", "start": 3819088, "end": 3819228, "name": "EditorUI::selectObjectsInRect", "pseudocode": "// \n// EditorUI::selectObjectsInRect from 0x3a4650 to 0x3a46dc (140 bytes)\n// \n// 1 xrefs:\n// > EditorUI::ccTouchEnded @ 0x3a57f4\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  LevelEditorLayer *m_editorLayer; // r7\n  cocos2d::CCArray *v4; // r7\n  unsigned int i; // r4\n  cocos2d::CCObject *v6; // r0\n  GameObject *m_selectedObject; // r3\n  float v8; // r3\n  float v9; // [sp+0h] [bp-1Ch]\n  cocos2d::CCRect v10; // [sp+4h] [bp-18h] BYREF\n  cocos2d::CCRect v11; // 0:kr00_16.16\n\n  m_editorLayer = a1->m_editorLayer;\n  cocos2d::CCRect::CCRect(&v10, (const cocos2d::CCRect *)LODWORD(a2.origin.x));\n  LODWORD(v11.origin.x) = &v10;\n  v11.origin.y = 0.0;\n  v11.size.width = v8;\n  v11.size.height = v9;\n  v4 = LevelEditorLayer::objectsInRect(m_editorLayer, v11, SLOBYTE(v10.origin.x));\n  if ( cocos2d::CCArray::count(v4) )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )\n    {\n      v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v4, i);\n      m_selectedObject = a1->m_selectedObject;\n      if ( m_selectedObject && m_selectedObject->m_uniqueID != v6[14].m_uOrderOfArrival\n        || !cocos2d::CCArray::containsObject(a1->m_selectedObjects, v6) )\n      {\n        EditorUI::createUndoSelectObject(a1, 0);\n        break;\n      }\n    }\n    EditorUI::selectObjects(a1, v4, 0);\n    EditorUI::updateSpecialUIElements(a1);\n  }\n}", "assembly": "; \n; EditorUI::selectObjectsInRect from 0x3a4650 to 0x3a46dc (140 bytes)\n; \n; 1 xrefs:\n; > EditorUI::ccTouchEnded @ 0x3a57f4\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3a4650\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x3a4652\nLDR             R5, =(__stack_chk_guard_ptr - 0x3A4662)                ; +0x4, 0x3a4654\nADD             R4, SP, #0x1C+var_18                                   ; +0x6, 0x3a4656\nLDR.W           R7, [R0,#0x340]                                        ; +0x8, 0x3a4658\nMOV             R6, R0                                                 ; +0xc, 0x3a465c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3a465e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x3a4660\nMOV             R0, R4; this                                           ; +0x12, 0x3a4662\nLDR             R3, [R5]                                               ; +0x14, 0x3a4664\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x16, 0x3a4666\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x18, 0x3a4668\nMOV             R0, R7                                                 ; +0x1c, 0x3a466c\nMOV             R1, R4                                                 ; +0x1e, 0x3a466e\nMOVS            R2, #0                                                 ; +0x20, 0x3a4670\nBL              _ZN16LevelEditorLayer13objectsInRectEN7cocos2d6CCRectEb; LevelEditorLayer::objectsInRect(cocos2d::CCRect,bool) ; +0x22, 0x3a4672\nMOV             R7, R0                                                 ; +0x26, 0x3a4676\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x3a4678\nCBZ             R0, loc_3A46CC                                         ; +0x2c, 0x3a467c\nMOVS            R4, #0                                                 ; +0x2e, 0x3a467e\nMOV             R0, R7; this                                           ; +0x30, 0x3a4680\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x32, 0x3a4682\nCMP             R4, R0                                                 ; +0x36, 0x3a4686\nBCS             loc_3A46BC                                             ; +0x38, 0x3a4688\nMOV             R1, R4; unsigned int                                   ; +0x3a, 0x3a468a\nMOV             R0, R7; this                                           ; +0x3c, 0x3a468c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3e, 0x3a468e\nLDR.W           R3, [R6,#0x374]                                        ; +0x42, 0x3a4692\nMOV             R1, R0; cocos2d::CCObject *                            ; +0x46, 0x3a4696\nCBZ             R3, loc_3A46A6                                         ; +0x48, 0x3a4698\nLDR.W           R2, [R3,#0x304]                                        ; +0x4a, 0x3a469a\nLDR.W           R3, [R0,#0x304]                                        ; +0x4e, 0x3a469e\nCMP             R2, R3                                                 ; +0x52, 0x3a46a2\nBNE             loc_3A46B4                                             ; +0x54, 0x3a46a4\nLDR.W           R0, [R6,#0x260]; this                                  ; +0x56, 0x3a46a6\nBL              _ZNK7cocos2d7CCArray14containsObjectEPNS_8CCObjectE; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x5a, 0x3a46aa\nCBZ             R0, loc_3A46B4                                         ; +0x5e, 0x3a46ae\nADDS            R4, #1                                                 ; +0x60, 0x3a46b0\nB               loc_3A4680                                             ; +0x62, 0x3a46b2\nMOV             R0, R6; this                                           ; +0x64, 0x3a46b4\nMOVS            R1, #0; bool                                           ; +0x66, 0x3a46b6\nBL              _ZN8EditorUI22createUndoSelectObjectEb; EditorUI::createUndoSelectObject(bool) ; +0x68, 0x3a46b8\nMOV             R0, R6; this                                           ; +0x6c, 0x3a46bc\nMOV             R1, R7; cocos2d::CCArray *                             ; +0x6e, 0x3a46be\nMOVS            R2, #0; bool                                           ; +0x70, 0x3a46c0\nBL              _ZN8EditorUI13selectObjectsEPN7cocos2d7CCArrayEb; EditorUI::selectObjects(cocos2d::CCArray *,bool) ; +0x72, 0x3a46c2\nMOV             R0, R6; this                                           ; +0x76, 0x3a46c6\nBL              _ZN8EditorUI23updateSpecialUIElementsEv; EditorUI::updateSpecialUIElements(void) ; +0x78, 0x3a46c8\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x7c, 0x3a46cc\nLDR             R3, [R5]                                               ; +0x7e, 0x3a46ce\nCMP             R2, R3                                                 ; +0x80, 0x3a46d0\nBEQ             loc_3A46D8                                             ; +0x82, 0x3a46d2\nBLX             __stack_chk_fail                                       ; +0x84, 0x3a46d4\nADD             SP, SP, #0x1C                                          ; +0x88, 0x3a46d8\nPOP             {R4-R7,PC}                                             ; +0x8a, 0x3a46da", "xrefs": ["EditorUI::ccTouchEnded @ 0x3a57f4"], "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"}