{"type": "func", "start": 5369828784, "end": 5369829212, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x1401115b0 to 0x14011175c (428 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onSelectAllLeft @ 0x1400dcee0\n// > EditorPauseLayer::onSelectAllRight @ 0x1400dcf00\n// > <???> @ 0x1406c8f70\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::selectAllWithDirection(EditorUI *a1, bool a2)\n{\n  cocos2d::CCArray *m_objects; // r14\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCLayer *m_objectLayer; // rbx\n  __int64 v7; // rcx\n  unsigned int v8; // edi\n  cocos2d::CCArray *i; // rbp\n  __int16 *v10; // rbx\n  __int64 v11; // r8\n  int v12; // eax\n  int m_currentLayer; // edx\n  float *v14; // rax\n  GJRotationControl *m_rotationControl; // rcx\n  float v17; // [rsp+60h] [rbp+8h]\n  float v18; // [rsp+64h] [rbp+Ch]\n  struct cocos2d::CCPoint v19; // [rsp+70h] [rbp+18h] BYREF\n  cocos2d::CCPoint v20; // [rsp+78h] [rbp+20h] BYREF\n\n  m_objects = a1->m_editorLayer->m_objects;\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v5);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v20, v17 * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v18 * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v19);\n  v8 = 0;\n  for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); v8 < cocos2d::CCArray::count(m_objects); ++v8 )\n  {\n    v10 = (__int16 *)cocos2d::CCArray::objectAtIndex(m_objects, v8);\n    v11 = (unsigned int)v10[605];\n    v12 = v10[606];\n    m_currentLayer = a1->m_editorLayer->m_currentLayer;\n    if ( !v10[606] )\n      v12 = -1;\n    if ( (_WORD)m_currentLayer == 0xFFFF || m_currentLayer == (_DWORD)v11 || m_currentLayer == v12 )\n    {\n      v14 = (float *)(*(__int64 (__fastcall **)(__int16 *, _QWORD, __int64))(*(_QWORD *)v10 + 200LL))(\n                       v10,\n                       *(_QWORD *)(*(_QWORD *)v10 + 200LL),\n                       v11);\n      if ( !(a2 ? v19.x <= *v14 : *v14 <= v19.x) )\n        cocos2d::CCArray::addObject(i, (struct cocos2d::CCObject *)v10);\n    }\n  }\n  EditorUI::processSelectObjects(a1, i);\n  EditorUI::updateButtons(a1);\n  m_rotationControl = a1->m_rotationControl;\n  a1->m_rotationTouchID = -1;\n  if ( m_rotationControl->isVisible(m_rotationControl) )\n  {\n    a1->m_rotationControl->setVisible(a1->m_rotationControl, 0);\n    GJRotationControl::finishTouch(a1->m_rotationControl);\n  }\n  EditorUI::deactivateScaleControl(a1);\n  EditorUI::deactivateTransformControl(a1);\n  EditorUI::updateObjectInfoLabel(a1);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x1401115b0 to 0x14011175c (428 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onSelectAllLeft @ 0x1400dcee0\n; > EditorPauseLayer::onSelectAllRight @ 0x1400dcf00\n; > <???> @ 0x1406c8f70\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    rbx                                                            ; +0x0, 0x1401115b0\npush    rbp                                                            ; +0x2, 0x1401115b2\npush    rsi                                                            ; +0x3, 0x1401115b3\npush    rdi                                                            ; +0x4, 0x1401115b4\npush    r12                                                            ; +0x5, 0x1401115b5\npush    r14                                                            ; +0x7, 0x1401115b7\npush    r15                                                            ; +0x9, 0x1401115b9\nsub     rsp, 20h                                                       ; +0xb, 0x1401115bb\nmov     rax, [rcx+500h]                                                ; +0xf, 0x1401115bf\nmovzx   r15d, dl                                                       ; +0x16, 0x1401115c6\nmov     rsi, rcx                                                       ; +0x1a, 0x1401115ca\nmov     r14, [rax+0DB8h]                                               ; +0x1d, 0x1401115cd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x1401115d4\nmov     rcx, rax                                                       ; +0x2a, 0x1401115da\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x2d, 0x1401115dd\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x32, 0x1401115e2\nmovss   xmm3, cs:dword_140622B08                                       ; +0x38, 0x1401115e8\nlea     rcx, [rsp+58h+arg_18]                                          ; +0x40, 0x1401115f0\nmovss   xmm2, dword ptr [rsi+318h]                                     ; +0x45, 0x1401115f5\nmovss   xmm0, [rsp+58h+arg_4]                                          ; +0x4d, 0x1401115fd\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0x53, 0x140111603\nmov     rax, [rsi+500h]                                                ; +0x59, 0x140111609\nmulss   xmm2, xmm3                                                     ; +0x60, 0x140111610\nmulss   xmm0, xmm3                                                     ; +0x64, 0x140111614\nmov     rbx, [rax+0FE8h]                                               ; +0x68, 0x140111618\nmulss   xmm1, xmm3                                                     ; +0x6f, 0x14011161f\naddss   xmm2, xmm0                                                     ; +0x73, 0x140111623\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x77, 0x140111627\nlea     rdx, [rsp+58h+arg_10]                                          ; +0x7d, 0x14011162d\nmov     rcx, rbx                                                       ; +0x82, 0x140111632\nmov     r8, rax                                                        ; +0x85, 0x140111635\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x88, 0x140111638\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x8e, 0x14011163e\nmov     rcx, r14                                                       ; +0x94, 0x140111644\nxor     edi, edi                                                       ; +0x97, 0x140111647\nmov     rbp, rax                                                       ; +0x99, 0x140111649\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9c, 0x14011164c\nlea     r12d, [rdi-1]                                                  ; +0xa2, 0x140111652\ntest    eax, eax                                                       ; +0xa6, 0x140111656\njz      loc_1401116E9                                                  ; +0xa8, 0x140111658\nxchg    ax, ax                                                         ; +0xae, 0x14011165e\nmov     edx, edi                                                       ; +0xb0, 0x140111660\nmov     rcx, r14                                                       ; +0xb2, 0x140111662\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb5, 0x140111665\nmov     rcx, [rsi+500h]                                                ; +0xbb, 0x14011166b\nmov     rbx, rax                                                       ; +0xc2, 0x140111672\nmovsx   r8d, word ptr [rax+4BAh]                                       ; +0xc5, 0x140111675\nmovsx   eax, word ptr [rax+4BCh]                                       ; +0xcd, 0x14011167d\nmovsx   edx, word ptr [rcx+387Ah]                                      ; +0xd4, 0x140111684\ntest    eax, eax                                                       ; +0xdb, 0x14011168b\ncmovz   eax, r12d                                                      ; +0xdd, 0x14011168d\ncmp     dx, r12w                                                       ; +0xe1, 0x140111691\njz      short loc_1401116A0                                            ; +0xe5, 0x140111695\ncmp     edx, r8d                                                       ; +0xe7, 0x140111697\njz      short loc_1401116A0                                            ; +0xea, 0x14011169a\ncmp     edx, eax                                                       ; +0xec, 0x14011169c\njnz     short loc_1401116D6                                            ; +0xee, 0x14011169e\nmov     rax, [rbx]                                                     ; +0xf0, 0x1401116a0\nmov     rcx, rbx                                                       ; +0xf3, 0x1401116a3\nmov     rdx, [rax+0C8h]                                                ; +0xf6, 0x1401116a6\ncall    rdx                                                            ; +0xfd, 0x1401116ad\ntest    r15b, r15b                                                     ; +0xff, 0x1401116af\njz      short loc_1401116BF                                            ; +0x102, 0x1401116b2\nmovss   xmm0, dword ptr [rsp+58h+arg_10]                               ; +0x104, 0x1401116b4\ncomiss  xmm0, dword ptr [rax]                                          ; +0x10a, 0x1401116ba\njmp     short loc_1401116C8                                            ; +0x10d, 0x1401116bd\nmovss   xmm0, dword ptr [rax]                                          ; +0x10f, 0x1401116bf\ncomiss  xmm0, dword ptr [rsp+58h+arg_10]                               ; +0x113, 0x1401116c3\njbe     short loc_1401116D6                                            ; +0x118, 0x1401116c8\nmov     rdx, rbx                                                       ; +0x11a, 0x1401116ca\nmov     rcx, rbp                                                       ; +0x11d, 0x1401116cd\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x120, 0x1401116d0\nmov     rcx, r14                                                       ; +0x126, 0x1401116d6\ninc     edi                                                            ; +0x129, 0x1401116d9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x12b, 0x1401116db\ncmp     edi, eax                                                       ; +0x131, 0x1401116e1\njb      loc_140111660                                                  ; +0x133, 0x1401116e3\nmov     rdx, rbp                                                       ; +0x139, 0x1401116e9\nmov     rcx, rsi                                                       ; +0x13c, 0x1401116ec\ncall    EditorUI__processSelectObjects                                 ; +0x13f, 0x1401116ef\nmov     rcx, rsi                                                       ; +0x144, 0x1401116f4\ncall    EditorUI__updateButtons                                        ; +0x147, 0x1401116f7\nmov     rcx, [rsi+2B8h]                                                ; +0x14c, 0x1401116fc\nmov     [rsi+2A0h], r12d                                               ; +0x153, 0x140111703\nmov     rax, [rcx]                                                     ; +0x15a, 0x14011170a\ncall    qword ptr [rax+148h]                                           ; +0x15d, 0x14011170d\ntest    al, al                                                         ; +0x163, 0x140111713\njz      short loc_140111735                                            ; +0x165, 0x140111715\nmov     rcx, [rsi+2B8h]                                                ; +0x167, 0x140111717\nxor     edx, edx                                                       ; +0x16e, 0x14011171e\nmov     rax, [rcx]                                                     ; +0x170, 0x140111720\ncall    qword ptr [rax+140h]                                           ; +0x173, 0x140111723\nmov     rcx, [rsi+2B8h]                                                ; +0x179, 0x140111729\ncall    GJRotationControl__finishTouch                                 ; +0x180, 0x140111730\nmov     rcx, rsi                                                       ; +0x185, 0x140111735\ncall    EditorUI__deactivateScaleControl                               ; +0x188, 0x140111738\nmov     rcx, rsi                                                       ; +0x18d, 0x14011173d\ncall    EditorUI__deactivateTransformControl                           ; +0x190, 0x140111740\nmov     rcx, rsi                                                       ; +0x195, 0x140111745\ncall    EditorUI__updateObjectInfoLabel                                ; +0x198, 0x140111748\nadd     rsp, 20h                                                       ; +0x19d, 0x14011174d\npop     r15                                                            ; +0x1a1, 0x140111751\npop     r14                                                            ; +0x1a3, 0x140111753\npop     r12                                                            ; +0x1a5, 0x140111755\npop     rdi                                                            ; +0x1a7, 0x140111757\npop     rsi                                                            ; +0x1a8, 0x140111758\npop     rbp                                                            ; +0x1a9, 0x140111759\npop     rbx                                                            ; +0x1aa, 0x14011175a\nretn                                                                   ; +0x1ab, 0x14011175b", "xrefs": ["EditorPauseLayer::onSelectAllLeft @ 0x1400dcee0", "EditorPauseLayer::onSelectAllRight @ 0x1400dcf00", "<???> @ 0x1406c8f70"], "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"}