{"type": "func", "start": 5370576592, "end": 5370576899, "name": "EditorUI::selectAll", "pseudocode": "// \n// EditorUI::selectAll from 0x1401c7ed0 to 0x1401c8003 (307 bytes)\n// \n// 3 xrefs:\n// > EditorCommandsPopup::onCommand @ 0x14017dc28\n// > EditorUI::handleEditorAction @ 0x1401c34ca\n// > <???> @ 0x14091a7ec\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:06 +0000\n// \n\n__int64 __fastcall EditorUI::selectAll(__int64 a1)\n{\n  cocos2d::CCArray *v2; // rsi\n  unsigned int v3; // ebx\n  cocos2d::CCArray *i; // rbp\n  struct cocos2d::CCObject *v5; // rax\n  int v6; // r8d\n  int v7; // edx\n  __int64 v8; // rcx\n  __int64 v9; // rcx\n\n  v2 = *(cocos2d::CCArray **)(*(_QWORD *)(a1 + 1512) + 3536LL);\n  v3 = 0;\n  for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v3 < cocos2d::CCArray::count(v2); ++v3 )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(v2, v3);\n    v6 = *((__int16 *)v5 + 606);\n    v7 = *(__int16 *)(*(_QWORD *)(a1 + 1512) + 14866LL);\n    if ( !*((_WORD *)v5 + 606) )\n      v6 = -1;\n    if ( (_WORD)v7 == 0xFFFF || (_WORD)v7 == *((_WORD *)v5 + 605) || v7 == v6 )\n      cocos2d::CCArray::addObject(i, v5);\n  }\n  EditorUI::processSelectObjects(a1, i);\n  v8 = *(_QWORD *)(a1 + 808);\n  *(_DWORD *)(a1 + 744) = -1;\n  if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v8 + 344LL))(v8) )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0);\n    GJRotationControl::finishTouch(*(_QWORD *)(a1 + 808));\n    v9 = *(_QWORD *)(*(_QWORD *)(a1 + 808) + 464LL);\n    if ( v9 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1032LL))(v9, 0);\n  }\n  EditorUI::deactivateScaleControl(a1);\n  return EditorUI::deactivateTransformControl(a1);\n}", "assembly": "; \n; EditorUI::selectAll from 0x1401c7ed0 to 0x1401c8003 (307 bytes)\n; \n; 3 xrefs:\n; > EditorCommandsPopup::onCommand @ 0x14017dc28\n; > EditorUI::handleEditorAction @ 0x1401c34ca\n; > <???> @ 0x14091a7ec\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401c7ed0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401c7ed5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1401c7eda\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1401c7edf\npush    r14                                                            ; +0x14, 0x1401c7ee4\nsub     rsp, 20h                                                       ; +0x16, 0x1401c7ee6\nmov     rax, [rcx+5E8h]                                                ; +0x1a, 0x1401c7eea\nmov     rdi, rcx                                                       ; +0x21, 0x1401c7ef1\nmov     rsi, [rax+0DD0h]                                               ; +0x24, 0x1401c7ef4\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x2b, 0x1401c7efb\nmov     rcx, rsi                                                       ; +0x31, 0x1401c7f01\nxor     ebx, ebx                                                       ; +0x34, 0x1401c7f04\nmov     rbp, rax                                                       ; +0x36, 0x1401c7f06\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x39, 0x1401c7f09\nmov     r14d, 0FFFFFFFFh                                               ; +0x3f, 0x1401c7f0f\ntest    eax, eax                                                       ; +0x45, 0x1401c7f15\njz      short loc_1401C7F77                                            ; +0x47, 0x1401c7f17\nnop     dword ptr [rax+00000000h]                                      ; +0x49, 0x1401c7f19\nmov     edx, ebx                                                       ; +0x50, 0x1401c7f20\nmov     rcx, rsi                                                       ; +0x52, 0x1401c7f22\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x55, 0x1401c7f25\nmov     rcx, [rdi+5E8h]                                                ; +0x5b, 0x1401c7f2b\nmovsx   r8d, word ptr [rax+4BCh]                                       ; +0x62, 0x1401c7f32\nmovsx   edx, word ptr [rcx+3A12h]                                      ; +0x6a, 0x1401c7f3a\ntest    r8d, r8d                                                       ; +0x71, 0x1401c7f41\ncmovz   r8d, r14d                                                      ; +0x74, 0x1401c7f44\ncmp     dx, r14w                                                       ; +0x78, 0x1401c7f48\njz      short loc_1401C7F5C                                            ; +0x7c, 0x1401c7f4c\ncmp     dx, [rax+4BAh]                                                 ; +0x7e, 0x1401c7f4e\njz      short loc_1401C7F5C                                            ; +0x85, 0x1401c7f55\ncmp     edx, r8d                                                       ; +0x87, 0x1401c7f57\njnz     short loc_1401C7F68                                            ; +0x8a, 0x1401c7f5a\nmov     rdx, rax                                                       ; +0x8c, 0x1401c7f5c\nmov     rcx, rbp                                                       ; +0x8f, 0x1401c7f5f\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x92, 0x1401c7f62\nmov     rcx, rsi                                                       ; +0x98, 0x1401c7f68\ninc     ebx                                                            ; +0x9b, 0x1401c7f6b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9d, 0x1401c7f6d\ncmp     ebx, eax                                                       ; +0xa3, 0x1401c7f73\njb      short loc_1401C7F20                                            ; +0xa5, 0x1401c7f75\nmov     rdx, rbp                                                       ; +0xa7, 0x1401c7f77\nmov     rcx, rdi                                                       ; +0xaa, 0x1401c7f7a\ncall    EditorUI__processSelectObjects                                 ; +0xad, 0x1401c7f7d\nmov     rcx, [rdi+328h]                                                ; +0xb2, 0x1401c7f82\nmov     [rdi+2E8h], r14d                                               ; +0xb9, 0x1401c7f89\nmov     rax, [rcx]                                                     ; +0xc0, 0x1401c7f90\ncall    qword ptr [rax+158h]                                           ; +0xc3, 0x1401c7f93\ntest    al, al                                                         ; +0xc9, 0x1401c7f99\njz      short loc_1401C7FD9                                            ; +0xcb, 0x1401c7f9b\nmov     rcx, [rdi+328h]                                                ; +0xcd, 0x1401c7f9d\nxor     edx, edx                                                       ; +0xd4, 0x1401c7fa4\nmov     rax, [rcx]                                                     ; +0xd6, 0x1401c7fa6\ncall    qword ptr [rax+150h]                                           ; +0xd9, 0x1401c7fa9\nmov     rcx, [rdi+328h]                                                ; +0xdf, 0x1401c7faf\ncall    GJRotationControl__finishTouch                                 ; +0xe6, 0x1401c7fb6\nmov     rax, [rdi+328h]                                                ; +0xeb, 0x1401c7fbb\nmov     rcx, [rax+1D0h]                                                ; +0xf2, 0x1401c7fc2\ntest    rcx, rcx                                                       ; +0xf9, 0x1401c7fc9\njz      short loc_1401C7FD9                                            ; +0xfc, 0x1401c7fcc\nmov     rax, [rcx]                                                     ; +0xfe, 0x1401c7fce\nxor     edx, edx                                                       ; +0x101, 0x1401c7fd1\ncall    qword ptr [rax+408h]                                           ; +0x103, 0x1401c7fd3\nmov     rcx, rdi                                                       ; +0x109, 0x1401c7fd9\ncall    EditorUI__deactivateScaleControl                               ; +0x10c, 0x1401c7fdc\nmov     rcx, rdi                                                       ; +0x111, 0x1401c7fe1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x114, 0x1401c7fe4\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x119, 0x1401c7fe9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x11e, 0x1401c7fee\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x123, 0x1401c7ff3\nadd     rsp, 20h                                                       ; +0x128, 0x1401c7ff8\npop     r14                                                            ; +0x12c, 0x1401c7ffc\njmp     EditorUI__deactivateTransformControl                           ; +0x12e, 0x1401c7ffe", "xrefs": ["EditorCommandsPopup::onCommand @ 0x14017dc28", "EditorUI::handleEditorAction @ 0x1401c34ca", "<???> @ 0x14091a7ec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}