{"type": "func", "start": 5370576912, "end": 5370577352, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x1401c8010 to 0x1401c81c8 (440 bytes)\n// \n// 5 xrefs:\n// > EditorCommandsPopup::onCommand @ 0x14017dc40\n// > EditorCommandsPopup::onCommand @ 0x14017dc58\n// > EditorUI::handleEditorAction @ 0x1401c34e3\n// > EditorUI::handleEditorAction @ 0x1401c34fc\n// > <???> @ 0x14091a7f8\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::selectAllWithDirection(__int64 a1, char a2)\n{\n  cocos2d::CCArray *v4; // rbp\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  __int64 v8; // rcx\n  unsigned int v9; // edi\n  cocos2d::CCArray *v10; // r14\n  struct cocos2d::CCObject *v11; // rbx\n  int v12; // edx\n  int v13; // eax\n  float *v14; // rax\n  __int64 v15; // rcx\n  __int64 v16; // rcx\n  float v18; // [rsp+60h] [rbp+8h] BYREF\n  float v19; // [rsp+64h] [rbp+Ch]\n  float v20; // [rsp+70h] [rbp+18h] BYREF\n  char v21; // [rsp+78h] [rbp+20h] BYREF\n\n  v4 = *(cocos2d::CCArray **)(*(_QWORD *)(a1 + 1512) + 3536LL);\n  v5 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v5, &v18);\n  v6 = *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v21,\n    v18 * 0.5,\n    (float)(*(float *)(a1 + 904) * 0.5) + (float)(v19 * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(v6, &v20, v7);\n  v9 = 0;\n  v10 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8);\n  if ( cocos2d::CCArray::count(v4) )\n  {\n    while ( 1 )\n    {\n      v11 = cocos2d::CCArray::objectAtIndex(v4, v9);\n      v12 = *((__int16 *)v11 + 606);\n      v13 = *(__int16 *)(*(_QWORD *)(a1 + 1512) + 14866LL);\n      if ( !*((_WORD *)v11 + 606) )\n        v12 = -1;\n      if ( (_WORD)v13 != 0xFFFF && (_WORD)v13 != *((_WORD *)v11 + 605) && v13 != v12 )\n        goto LABEL_12;\n      v14 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11);\n      if ( a2 )\n        break;\n      if ( *v14 > v20 )\n        goto LABEL_11;\nLABEL_12:\n      if ( ++v9 >= cocos2d::CCArray::count(v4) )\n        goto LABEL_13;\n    }\n    if ( v20 <= *v14 )\n      goto LABEL_12;\nLABEL_11:\n    cocos2d::CCArray::addObject(v10, v11);\n    goto LABEL_12;\n  }\nLABEL_13:\n  EditorUI::processSelectObjects(a1, v10);\n  v15 = *(_QWORD *)(a1 + 808);\n  *(_DWORD *)(a1 + 744) = -1;\n  if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v15 + 344LL))(v15) )\n  {\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 808) + 336LL))(*(_QWORD *)(a1 + 808), 0);\n    GJRotationControl::finishTouch(*(_QWORD *)(a1 + 808));\n    v16 = *(_QWORD *)(*(_QWORD *)(a1 + 808) + 464LL);\n    if ( v16 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 1032LL))(v16, 0);\n  }\n  EditorUI::deactivateScaleControl(a1);\n  return EditorUI::deactivateTransformControl(a1);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x1401c8010 to 0x1401c81c8 (440 bytes)\n; \n; 5 xrefs:\n; > EditorCommandsPopup::onCommand @ 0x14017dc40\n; > EditorCommandsPopup::onCommand @ 0x14017dc58\n; > EditorUI::handleEditorAction @ 0x1401c34e3\n; > EditorUI::handleEditorAction @ 0x1401c34fc\n; > <???> @ 0x14091a7f8\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; \npush    rbx                                                            ; +0x0, 0x1401c8010\npush    rbp                                                            ; +0x2, 0x1401c8012\npush    rsi                                                            ; +0x3, 0x1401c8013\npush    rdi                                                            ; +0x4, 0x1401c8014\npush    r12                                                            ; +0x5, 0x1401c8015\npush    r14                                                            ; +0x7, 0x1401c8017\npush    r15                                                            ; +0x9, 0x1401c8019\nsub     rsp, 20h                                                       ; +0xb, 0x1401c801b\nmov     rax, [rcx+5E8h]                                                ; +0xf, 0x1401c801f\nmovzx   r15d, dl                                                       ; +0x16, 0x1401c8026\nmov     rsi, rcx                                                       ; +0x1a, 0x1401c802a\nmov     rbp, [rax+0DD0h]                                               ; +0x1d, 0x1401c802d\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x1401c8034\nmov     rcx, rax                                                       ; +0x2a, 0x1401c803a\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x2d, 0x1401c803d\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x32, 0x1401c8042\nmovss   xmm3, cs:dword_140834F20                                       ; +0x38, 0x1401c8048\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x40, 0x1401c8050\nmovss   xmm2, dword ptr [rsi+388h]                                     ; +0x45, 0x1401c8055\nmovss   xmm0, [rsp+58h+arg_4]                                          ; +0x4d, 0x1401c805d\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0x53, 0x1401c8063\nmov     rax, [rsi+5E8h]                                                ; +0x59, 0x1401c8069\nmulss   xmm2, xmm3                                                     ; +0x60, 0x1401c8070\nmulss   xmm0, xmm3                                                     ; +0x64, 0x1401c8074\nmov     rbx, [rax+10C8h]                                               ; +0x68, 0x1401c8078\nmulss   xmm1, xmm3                                                     ; +0x6f, 0x1401c807f\naddss   xmm2, xmm0                                                     ; +0x73, 0x1401c8083\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x77, 0x1401c8087\nlea     rdx, [rsp+58h+arg_10]                                          ; +0x7d, 0x1401c808d\nmov     rcx, rbx                                                       ; +0x82, 0x1401c8092\nmov     r8, rax                                                        ; +0x85, 0x1401c8095\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x88, 0x1401c8098\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x8e, 0x1401c809e\nmov     rcx, rbp                                                       ; +0x94, 0x1401c80a4\nxor     edi, edi                                                       ; +0x97, 0x1401c80a7\nmov     r14, rax                                                       ; +0x99, 0x1401c80a9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x1401c80ac\nmov     r12d, 0FFFFFFFFh                                               ; +0xa2, 0x1401c80b2\ntest    eax, eax                                                       ; +0xa8, 0x1401c80b8\njz      loc_1401C8147                                                  ; +0xaa, 0x1401c80ba\nmov     edx, edi                                                       ; +0xb0, 0x1401c80c0\nmov     rcx, rbp                                                       ; +0xb2, 0x1401c80c2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x1401c80c5\nmov     rcx, [rsi+5E8h]                                                ; +0xbb, 0x1401c80cb\nmov     rbx, rax                                                       ; +0xc2, 0x1401c80d2\nmovsx   edx, word ptr [rax+4BCh]                                       ; +0xc5, 0x1401c80d5\nmovsx   eax, word ptr [rcx+3A12h]                                      ; +0xcc, 0x1401c80dc\ntest    edx, edx                                                       ; +0xd3, 0x1401c80e3\ncmovz   edx, r12d                                                      ; +0xd5, 0x1401c80e5\ncmp     ax, r12w                                                       ; +0xd9, 0x1401c80e9\njz      short loc_1401C80FC                                            ; +0xdd, 0x1401c80ed\ncmp     ax, [rbx+4BAh]                                                 ; +0xdf, 0x1401c80ef\njz      short loc_1401C80FC                                            ; +0xe6, 0x1401c80f6\ncmp     eax, edx                                                       ; +0xe8, 0x1401c80f8\njnz     short loc_1401C8134                                            ; +0xea, 0x1401c80fa\nmov     rax, [rbx]                                                     ; +0xec, 0x1401c80fc\nmov     rcx, rbx                                                       ; +0xef, 0x1401c80ff\nmov     rdx, [rax+0C8h]                                                ; +0xf2, 0x1401c8102\ncall    rdx                                                            ; +0xf9, 0x1401c8109\ntest    r15b, r15b                                                     ; +0xfb, 0x1401c810b\njz      short loc_1401C811D                                            ; +0xfe, 0x1401c810e\nmovss   xmm0, [rsp+58h+arg_10]                                         ; +0x100, 0x1401c8110\ncomiss  xmm0, dword ptr [rax]                                          ; +0x106, 0x1401c8116\nja      short loc_1401C8128                                            ; +0x109, 0x1401c8119\njmp     short loc_1401C8134                                            ; +0x10b, 0x1401c811b\nmovss   xmm0, dword ptr [rax]                                          ; +0x10d, 0x1401c811d\ncomiss  xmm0, [rsp+58h+arg_10]                                         ; +0x111, 0x1401c8121\njbe     short loc_1401C8134                                            ; +0x116, 0x1401c8126\nmov     rdx, rbx                                                       ; +0x118, 0x1401c8128\nmov     rcx, r14                                                       ; +0x11b, 0x1401c812b\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x11e, 0x1401c812e\nmov     rcx, rbp                                                       ; +0x124, 0x1401c8134\ninc     edi                                                            ; +0x127, 0x1401c8137\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x129, 0x1401c8139\ncmp     edi, eax                                                       ; +0x12f, 0x1401c813f\njb      loc_1401C80C0                                                  ; +0x131, 0x1401c8141\nmov     rdx, r14                                                       ; +0x137, 0x1401c8147\nmov     rcx, rsi                                                       ; +0x13a, 0x1401c814a\ncall    EditorUI__processSelectObjects                                 ; +0x13d, 0x1401c814d\nmov     rcx, [rsi+328h]                                                ; +0x142, 0x1401c8152\nmov     [rsi+2E8h], r12d                                               ; +0x149, 0x1401c8159\nmov     rax, [rcx]                                                     ; +0x150, 0x1401c8160\ncall    qword ptr [rax+158h]                                           ; +0x153, 0x1401c8163\ntest    al, al                                                         ; +0x159, 0x1401c8169\njz      short loc_1401C81A9                                            ; +0x15b, 0x1401c816b\nmov     rcx, [rsi+328h]                                                ; +0x15d, 0x1401c816d\nxor     edx, edx                                                       ; +0x164, 0x1401c8174\nmov     rax, [rcx]                                                     ; +0x166, 0x1401c8176\ncall    qword ptr [rax+150h]                                           ; +0x169, 0x1401c8179\nmov     rcx, [rsi+328h]                                                ; +0x16f, 0x1401c817f\ncall    GJRotationControl__finishTouch                                 ; +0x176, 0x1401c8186\nmov     rax, [rsi+328h]                                                ; +0x17b, 0x1401c818b\nmov     rcx, [rax+1D0h]                                                ; +0x182, 0x1401c8192\ntest    rcx, rcx                                                       ; +0x189, 0x1401c8199\njz      short loc_1401C81A9                                            ; +0x18c, 0x1401c819c\nmov     rax, [rcx]                                                     ; +0x18e, 0x1401c819e\nxor     edx, edx                                                       ; +0x191, 0x1401c81a1\ncall    qword ptr [rax+408h]                                           ; +0x193, 0x1401c81a3\nmov     rcx, rsi                                                       ; +0x199, 0x1401c81a9\ncall    EditorUI__deactivateScaleControl                               ; +0x19c, 0x1401c81ac\nmov     rcx, rsi                                                       ; +0x1a1, 0x1401c81b1\ncall    EditorUI__deactivateTransformControl                           ; +0x1a4, 0x1401c81b4\nadd     rsp, 20h                                                       ; +0x1a9, 0x1401c81b9\npop     r15                                                            ; +0x1ad, 0x1401c81bd\npop     r14                                                            ; +0x1af, 0x1401c81bf\npop     r12                                                            ; +0x1b1, 0x1401c81c1\npop     rdi                                                            ; +0x1b3, 0x1401c81c3\npop     rsi                                                            ; +0x1b4, 0x1401c81c4\npop     rbp                                                            ; +0x1b5, 0x1401c81c5\npop     rbx                                                            ; +0x1b6, 0x1401c81c6\nretn                                                                   ; +0x1b7, 0x1401c81c7", "xrefs": ["EditorCommandsPopup::onCommand @ 0x14017dc40", "EditorCommandsPopup::onCommand @ 0x14017dc58", "EditorUI::handleEditorAction @ 0x1401c34e3", "EditorUI::handleEditorAction @ 0x1401c34fc", "<???> @ 0x14091a7f8"], "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"}