{"type": "func", "start": 4299087452, "end": 4299087680, "name": "EditorUI::selectObjectsInRect", "pseudocode": "// \n// EditorUI::selectObjectsInRect from 0x1003ede5c to 0x1003edf40 (228 bytes)\n// \n// 1 xrefs:\n// > EditorUI::ccTouchEnded @ 0x1003f95c4\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::selectObjectsInRect(EditorUI *a1, cocos2d::CCRect a2)\n{\n  __int64 v2; // x1\n  LevelEditorLayer *m_editorLayer; // x20\n  double v5; // d0\n  cocos2d::CCArray *v6; // x20\n  unsigned int v7; // w21\n  __int64 v8; // x0\n  GameObject *m_selectedObject; // x8\n  float v10; // s1\n  float v11; // s2\n  float v12; // s3\n  _QWORD v13[2]; // [xsp+0h] [xbp-30h] BYREF\n  cocos2d::CCRect v14; // 0:kr00_16.16\n\n  m_editorLayer = a1->m_editorLayer;\n  v5 = sub_100022B98(v13, v2);\n  v14.origin.x = *(float *)&v5;\n  v14.origin.y = v10;\n  v14.size.width = v11;\n  v14.size.height = v12;\n  v6 = LevelEditorLayer::objectsInRect(m_editorLayer, v14, (bool)v13);\n  if ( (unsigned int)sub_10024A36C((__int64)v6) )\n  {\n    if ( (unsigned int)sub_10024A36C((__int64)v6) )\n    {\n      v7 = 0;\n      while ( 1 )\n      {\n        v8 = sub_10024A388((__int64)v6, v7);\n        m_selectedObject = a1->m_selectedObject;\n        if ( m_selectedObject )\n        {\n          if ( m_selectedObject->m_uniqueID != *(_DWORD *)(v8 + 916) )\n            break;\n        }\n        if ( (sub_10024A420((__int64)a1->m_selectedObjects, v8) & 1) == 0 )\n          break;\n        if ( ++v7 >= (unsigned int)sub_10024A36C((__int64)v6) )\n          goto LABEL_10;\n      }\n      EditorUI::createUndoSelectObject(a1, 0);\n    }\nLABEL_10:\n    EditorUI::selectObjects(a1, v6, 0);\n    EditorUI::updateObjectInfoLabel(a1);\n    ((void (__fastcall *)(EditorUI *))a1->updateScaleControl)(a1);\n  }\n}", "assembly": "; \n; EditorUI::selectObjectsInRect from 0x1003ede5c to 0x1003edf40 (228 bytes)\n; \n; 1 xrefs:\n; > EditorUI::ccTouchEnded @ 0x1003f95c4\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, 0x1003ede5c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1003ede60\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1003ede64\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1003ede68\nADD             X29, SP, #0x30                                         ; +0x10, 0x1003ede6c\nMOV             X19, X0                                                ; +0x14, 0x1003ede70\nLDR             X20, [X0,#0x4E8]                                       ; +0x18, 0x1003ede74\nMOV             X0, SP                                                 ; +0x1c, 0x1003ede78\nBL              sub_100022B98                                          ; +0x20, 0x1003ede7c\nMOV             X1, SP                                                 ; +0x24, 0x1003ede80\nMOV             X0, X20                                                ; +0x28, 0x1003ede84\nMOV             W2, #0                                                 ; +0x2c, 0x1003ede88\nBL              LevelEditorLayer__objectsInRect                        ; +0x30, 0x1003ede8c\nMOV             X20, X0                                                ; +0x34, 0x1003ede90\nBL              sub_10024A36C                                          ; +0x38, 0x1003ede94\nCBZ             W0, loc_1003EDF2C                                      ; +0x3c, 0x1003ede98\nMOV             X0, X20                                                ; +0x40, 0x1003ede9c\nBL              sub_10024A36C                                          ; +0x44, 0x1003edea0\nCBZ             W0, loc_1003EDF04                                      ; +0x48, 0x1003edea4\nMOV             W21, #0                                                ; +0x4c, 0x1003edea8\nMOV             X0, X20                                                ; +0x50, 0x1003edeac\nMOV             X1, X21                                                ; +0x54, 0x1003edeb0\nBL              sub_10024A388                                          ; +0x58, 0x1003edeb4\nMOV             X1, X0                                                 ; +0x5c, 0x1003edeb8\nLDR             X8, [X19,#0x520]                                       ; +0x60, 0x1003edebc\nCBZ             X8, loc_1003EDED4                                      ; +0x64, 0x1003edec0\nLDR             W8, [X8,#0x394]                                        ; +0x68, 0x1003edec4\nLDR             W9, [X1,#0x394]                                        ; +0x6c, 0x1003edec8\nCMP             W8, W9                                                 ; +0x70, 0x1003edecc\nB.NE            loc_1003EDEF8                                          ; +0x74, 0x1003eded0\nLDR             X0, [X19,#0x328]                                       ; +0x78, 0x1003eded4\nBL              sub_10024A420                                          ; +0x7c, 0x1003eded8\nTBZ             W0, #0, loc_1003EDEF8                                  ; +0x80, 0x1003ededc\nADD             W21, W21, #1                                           ; +0x84, 0x1003edee0\nMOV             X0, X20                                                ; +0x88, 0x1003edee4\nBL              sub_10024A36C                                          ; +0x8c, 0x1003edee8\nCMP             W21, W0                                                ; +0x90, 0x1003edeec\nB.CC            loc_1003EDEAC                                          ; +0x94, 0x1003edef0\nB               loc_1003EDF04                                          ; +0x98, 0x1003edef4\nMOV             X0, X19                                                ; +0x9c, 0x1003edef8\nMOV             W1, #0                                                 ; +0xa0, 0x1003edefc\nBL              EditorUI__createUndoSelectObject                       ; +0xa4, 0x1003edf00\nMOV             X0, X19                                                ; +0xa8, 0x1003edf04\nMOV             X1, X20                                                ; +0xac, 0x1003edf08\nMOV             W2, #0                                                 ; +0xb0, 0x1003edf0c\nBL              EditorUI__selectObjects                                ; +0xb4, 0x1003edf10\nMOV             X0, X19                                                ; +0xb8, 0x1003edf14\nBL              EditorUI__updateObjectInfoLabel                        ; +0xbc, 0x1003edf18\nLDR             X8, [X19]                                              ; +0xc0, 0x1003edf1c\nLDR             X8, [X8,#0x530]                                        ; +0xc4, 0x1003edf20\nMOV             X0, X19                                                ; +0xc8, 0x1003edf24\nBLR             X8                                                     ; +0xcc, 0x1003edf28\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd0, 0x1003edf2c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd4, 0x1003edf30\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xd8, 0x1003edf34\nADD             SP, SP, #0x40 ; '@'                                    ; +0xdc, 0x1003edf38\nRET                                                                    ; +0xe0, 0x1003edf3c", "xrefs": ["EditorUI::ccTouchEnded @ 0x1003f95c4"], "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"}