{"type": "func", "start": 5369613728, "end": 5369614026, "name": "EditorPauseLayer::onSelectAll", "pseudocode": "// \n// EditorPauseLayer::onSelectAll from 0x1400dcda0 to 0x1400dceca (298 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400db564\n// > <???> @ 0x1406c8958\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 EditorPauseLayer::onSelectAll(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  EditorUI *m_editorUI; // rdi\n  cocos2d::CCArray *m_objects; // rsi\n  unsigned int v4; // ebx\n  cocos2d::CCArray *i; // rbp\n  struct cocos2d::CCObject *v6; // rax\n  int m_uUnknown_low; // edx\n  int m_currentLayer; // r8d\n  GJRotationControl *m_rotationControl; // rcx\n\n  m_editorUI = a1->m_editorLayer->m_editorUI;\n  m_objects = m_editorUI->m_editorLayer->m_objects;\n  v4 = 0;\n  for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v4 < cocos2d::CCArray::count(m_objects); ++v4 )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(m_objects, v4);\n    m_uUnknown_low = SLOWORD(v6[21].m_uUnknown);\n    m_currentLayer = m_editorUI->m_editorLayer->m_currentLayer;\n    if ( !LOWORD(v6[21].m_uUnknown) )\n      m_uUnknown_low = -1;\n    if ( (_WORD)m_currentLayer == 0xFFFF\n      || m_currentLayer == SHIWORD(v6[21].m_uIndexInArray)\n      || m_currentLayer == m_uUnknown_low )\n    {\n      cocos2d::CCArray::addObject(i, v6);\n    }\n  }\n  EditorUI::processSelectObjects(m_editorUI, i);\n  EditorUI::updateButtons(m_editorUI);\n  m_rotationControl = m_editorUI->m_rotationControl;\n  m_editorUI->m_rotationTouchID = -1;\n  if ( m_rotationControl->isVisible(m_rotationControl) )\n  {\n    m_editorUI->m_rotationControl->setVisible(m_editorUI->m_rotationControl, 0);\n    GJRotationControl::finishTouch(m_editorUI->m_rotationControl);\n  }\n  EditorUI::deactivateScaleControl(m_editorUI);\n  EditorUI::deactivateTransformControl(m_editorUI);\n  EditorUI::updateObjectInfoLabel(m_editorUI);\n}", "assembly": "; \n; EditorPauseLayer::onSelectAll from 0x1400dcda0 to 0x1400dceca (298 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400db564\n; > <???> @ 0x1406c8958\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400dcda0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400dcda5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400dcdaa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1400dcdaf\npush    r14                                                            ; +0x14, 0x1400dcdb4\nsub     rsp, 20h                                                       ; +0x16, 0x1400dcdb6\nmov     rax, [rcx+248h]                                                ; +0x1a, 0x1400dcdba\nmov     rdi, [rax+38A0h]                                               ; +0x21, 0x1400dcdc1\nmov     rax, [rdi+500h]                                                ; +0x28, 0x1400dcdc8\nmov     rsi, [rax+0DB8h]                                               ; +0x2f, 0x1400dcdcf\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x36, 0x1400dcdd6\nmov     rcx, rsi                                                       ; +0x3c, 0x1400dcddc\nxor     ebx, ebx                                                       ; +0x3f, 0x1400dcddf\nmov     rbp, rax                                                       ; +0x41, 0x1400dcde1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x44, 0x1400dcde4\nlea     r14d, [rbx-1]                                                  ; +0x4a, 0x1400dcdea\ntest    eax, eax                                                       ; +0x4e, 0x1400dcdee\njz      short loc_1400DCE4C                                            ; +0x50, 0x1400dcdf0\nmov     edx, ebx                                                       ; +0x52, 0x1400dcdf2\nmov     rcx, rsi                                                       ; +0x54, 0x1400dcdf4\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x57, 0x1400dcdf7\nmov     rcx, [rdi+500h]                                                ; +0x5d, 0x1400dcdfd\nmovsx   edx, word ptr [rax+4BCh]                                       ; +0x64, 0x1400dce04\nmovsx   r8d, word ptr [rcx+387Ah]                                      ; +0x6b, 0x1400dce0b\ntest    edx, edx                                                       ; +0x73, 0x1400dce13\nmovsx   r9d, word ptr [rax+4BAh]                                       ; +0x75, 0x1400dce15\ncmovz   edx, r14d                                                      ; +0x7d, 0x1400dce1d\ncmp     r8w, r14w                                                      ; +0x81, 0x1400dce21\njz      short loc_1400DCE31                                            ; +0x85, 0x1400dce25\ncmp     r8d, r9d                                                       ; +0x87, 0x1400dce27\njz      short loc_1400DCE31                                            ; +0x8a, 0x1400dce2a\ncmp     r8d, edx                                                       ; +0x8c, 0x1400dce2c\njnz     short loc_1400DCE3D                                            ; +0x8f, 0x1400dce2f\nmov     rdx, rax                                                       ; +0x91, 0x1400dce31\nmov     rcx, rbp                                                       ; +0x94, 0x1400dce34\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x97, 0x1400dce37\nmov     rcx, rsi                                                       ; +0x9d, 0x1400dce3d\ninc     ebx                                                            ; +0xa0, 0x1400dce40\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa2, 0x1400dce42\ncmp     ebx, eax                                                       ; +0xa8, 0x1400dce48\njb      short loc_1400DCDF2                                            ; +0xaa, 0x1400dce4a\nmov     rdx, rbp                                                       ; +0xac, 0x1400dce4c\nmov     rcx, rdi                                                       ; +0xaf, 0x1400dce4f\ncall    EditorUI__processSelectObjects                                 ; +0xb2, 0x1400dce52\nmov     rcx, rdi                                                       ; +0xb7, 0x1400dce57\ncall    EditorUI__updateButtons                                        ; +0xba, 0x1400dce5a\nmov     rcx, [rdi+2B8h]                                                ; +0xbf, 0x1400dce5f\nmov     [rdi+2A0h], r14d                                               ; +0xc6, 0x1400dce66\nmov     rax, [rcx]                                                     ; +0xcd, 0x1400dce6d\ncall    qword ptr [rax+148h]                                           ; +0xd0, 0x1400dce70\ntest    al, al                                                         ; +0xd6, 0x1400dce76\njz      short loc_1400DCE98                                            ; +0xd8, 0x1400dce78\nmov     rcx, [rdi+2B8h]                                                ; +0xda, 0x1400dce7a\nxor     edx, edx                                                       ; +0xe1, 0x1400dce81\nmov     rax, [rcx]                                                     ; +0xe3, 0x1400dce83\ncall    qword ptr [rax+140h]                                           ; +0xe6, 0x1400dce86\nmov     rcx, [rdi+2B8h]                                                ; +0xec, 0x1400dce8c\ncall    GJRotationControl__finishTouch                                 ; +0xf3, 0x1400dce93\nmov     rcx, rdi                                                       ; +0xf8, 0x1400dce98\ncall    EditorUI__deactivateScaleControl                               ; +0xfb, 0x1400dce9b\nmov     rcx, rdi                                                       ; +0x100, 0x1400dcea0\ncall    EditorUI__deactivateTransformControl                           ; +0x103, 0x1400dcea3\nmov     rcx, rdi                                                       ; +0x108, 0x1400dcea8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10b, 0x1400dceab\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x110, 0x1400dceb0\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x115, 0x1400dceb5\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x11a, 0x1400dceba\nadd     rsp, 20h                                                       ; +0x11f, 0x1400dcebf\npop     r14                                                            ; +0x123, 0x1400dcec3\njmp     EditorUI__updateObjectInfoLabel                                ; +0x125, 0x1400dcec5", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400db564", "<???> @ 0x1406c8958"], "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"}