{"type": "func", "start": 4295215984, "end": 4295216240, "name": "EditorUI::selectObjectsInRect", "pseudocode": "// \n// EditorUI::selectObjectsInRect from 0x10003cb70 to 0x10003cc70 (256 bytes)\n// \n// 1 xrefs:\n// > EditorUI::ccTouchEnded @ 0x10004ffbe\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  LevelEditorLayer *m_editorLayer; // r14\n  cocos2d::CCArray *v3; // r14\n  unsigned int v4; // r15d\n  __int64 v5; // rax\n  GameObject *m_selectedObject; // rcx\n  cocos2d::CCArray *SelectedObjects; // rax\n  UndoObject *v8; // rax\n  _BYTE v9[40]; // [rsp+8h] [rbp-28h] BYREF\n\n  m_editorLayer = a1->m_editorLayer;\n  *(double *)&a2.origin = sub_10028D180(v9);\n  v3 = LevelEditorLayer::objectsInRect(m_editorLayer, a2, (bool)v9);\n  if ( (unsigned int)sub_100720070(v3) )\n  {\n    if ( (unsigned int)sub_100720070(v3) )\n    {\n      v4 = 0;\n      while ( 1 )\n      {\n        v5 = sub_1007200C0(v3, v4);\n        m_selectedObject = a1->m_selectedObject;\n        if ( m_selectedObject )\n        {\n          if ( m_selectedObject->m_uniqueID != *(_DWORD *)(v5 + 916) )\n            break;\n        }\n        if ( !(unsigned __int8)sub_100720160(a1->m_selectedObjects, v5) )\n          break;\n        if ( ++v4 >= (unsigned int)sub_100720070(v3) )\n          goto LABEL_10;\n      }\n      SelectedObjects = EditorUI::getSelectedObjects(a1);\n      v8 = UndoObject::createWithArray(SelectedObjects, Select);\n      v8->m_redo = 0;\n      LevelEditorLayer::addToUndoList(a1->m_editorLayer, v8, 0);\n    }\nLABEL_10:\n    EditorUI::selectObjects(a1, v3, 0);\n    EditorUI::updateObjectInfoLabel(a1);\n    ((void (__fastcall *)(EditorUI *))a1->updateScaleControl)(a1);\n  }\n}", "assembly": "; \n; EditorUI::selectObjectsInRect from 0x10003cb70 to 0x10003cc70 (256 bytes)\n; \n; 1 xrefs:\n; > EditorUI::ccTouchEnded @ 0x10004ffbe\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    rbp                                                            ; +0x0, 0x10003cb70\nmov     rbp, rsp                                                       ; +0x1, 0x10003cb71\npush    r15                                                            ; +0x4, 0x10003cb74\npush    r14                                                            ; +0x6, 0x10003cb76\npush    rbx                                                            ; +0x8, 0x10003cb78\nsub     rsp, 18h                                                       ; +0x9, 0x10003cb79\nmov     rbx, rdi                                                       ; +0xd, 0x10003cb7d\nmov     r14, [rdi+4E8h]                                                ; +0x10, 0x10003cb80\nlea     r15, [rbp+var_28]                                              ; +0x17, 0x10003cb87\nmov     rdi, r15                                                       ; +0x1b, 0x10003cb8b\ncall    sub_10028D180                                                  ; +0x1e, 0x10003cb8e\nmov     rdi, r14                                                       ; +0x23, 0x10003cb93\nmov     rsi, r15                                                       ; +0x26, 0x10003cb96\nxor     edx, edx                                                       ; +0x29, 0x10003cb99\ncall    LevelEditorLayer__objectsInRect                                ; +0x2b, 0x10003cb9b\nmov     r14, rax                                                       ; +0x30, 0x10003cba0\nmov     rdi, rax                                                       ; +0x33, 0x10003cba3\ncall    sub_100720070                                                  ; +0x36, 0x10003cba6\ntest    eax, eax                                                       ; +0x3b, 0x10003cbab\njz      loc_10003CC65                                                  ; +0x3d, 0x10003cbad\nmov     rdi, r14                                                       ; +0x43, 0x10003cbb3\ncall    sub_100720070                                                  ; +0x46, 0x10003cbb6\ntest    eax, eax                                                       ; +0x4b, 0x10003cbbb\njz      loc_10003CC44                                                  ; +0x4d, 0x10003cbbd\nxor     r15d, r15d                                                     ; +0x53, 0x10003cbc3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x10003cbc6\nmov     rdi, r14                                                       ; +0x60, 0x10003cbd0\nmov     esi, r15d                                                      ; +0x63, 0x10003cbd3\ncall    sub_1007200C0                                                  ; +0x66, 0x10003cbd6\nmov     rcx, [rbx+520h]                                                ; +0x6b, 0x10003cbdb\ntest    rcx, rcx                                                       ; +0x72, 0x10003cbe2\njz      short loc_10003CBF5                                            ; +0x75, 0x10003cbe5\nmov     ecx, [rcx+394h]                                                ; +0x77, 0x10003cbe7\ncmp     ecx, [rax+394h]                                                ; +0x7d, 0x10003cbed\njnz     short loc_10003CC1A                                            ; +0x83, 0x10003cbf3\nmov     rdi, [rbx+328h]                                                ; +0x85, 0x10003cbf5\nmov     rsi, rax                                                       ; +0x8c, 0x10003cbfc\ncall    sub_100720160                                                  ; +0x8f, 0x10003cbff\ntest    al, al                                                         ; +0x94, 0x10003cc04\njz      short loc_10003CC1A                                            ; +0x96, 0x10003cc06\ninc     r15d                                                           ; +0x98, 0x10003cc08\nmov     rdi, r14                                                       ; +0x9b, 0x10003cc0b\ncall    sub_100720070                                                  ; +0x9e, 0x10003cc0e\ncmp     r15d, eax                                                      ; +0xa3, 0x10003cc13\njb      short loc_10003CBD0                                            ; +0xa6, 0x10003cc16\njmp     short loc_10003CC44                                            ; +0xa8, 0x10003cc18\nmov     rdi, rbx                                                       ; +0xaa, 0x10003cc1a\ncall    EditorUI__getSelectedObjects                                   ; +0xad, 0x10003cc1d\nmov     rdi, rax                                                       ; +0xb2, 0x10003cc22\nmov     esi, 6                                                         ; +0xb5, 0x10003cc25\ncall    UndoObject__createWithArray                                    ; +0xba, 0x10003cc2a\nmov     byte ptr [rax+50h], 0                                          ; +0xbf, 0x10003cc2f\nmov     rdi, [rbx+4E8h]                                                ; +0xc3, 0x10003cc33\nmov     rsi, rax                                                       ; +0xca, 0x10003cc3a\nxor     edx, edx                                                       ; +0xcd, 0x10003cc3d\ncall    LevelEditorLayer__addToUndoList                                ; +0xcf, 0x10003cc3f\nmov     rdi, rbx                                                       ; +0xd4, 0x10003cc44\nmov     rsi, r14                                                       ; +0xd7, 0x10003cc47\nxor     edx, edx                                                       ; +0xda, 0x10003cc4a\ncall    EditorUI__selectObjects                                        ; +0xdc, 0x10003cc4c\nmov     rdi, rbx                                                       ; +0xe1, 0x10003cc51\ncall    EditorUI__updateObjectInfoLabel                                ; +0xe4, 0x10003cc54\nmov     rax, [rbx]                                                     ; +0xe9, 0x10003cc59\nmov     rdi, rbx                                                       ; +0xec, 0x10003cc5c\ncall    qword ptr [rax+530h]                                           ; +0xef, 0x10003cc5f\nadd     rsp, 18h                                                       ; +0xf5, 0x10003cc65\npop     rbx                                                            ; +0xf9, 0x10003cc69\npop     r14                                                            ; +0xfa, 0x10003cc6a\npop     r15                                                            ; +0xfc, 0x10003cc6c\npop     rbp                                                            ; +0xfe, 0x10003cc6e\nretn                                                                   ; +0xff, 0x10003cc6f", "xrefs": ["EditorUI::ccTouchEnded @ 0x10004ffbe"], "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"}