{"type": "func", "start": 4296696956, "end": 4296697272, "name": "EditorUI::selectAllWithDirection", "pseudocode": "// \n// EditorUI::selectAllWithDirection from 0x1001a647c to 0x1001a65b8 (316 bytes)\n// \n// 3 xrefs:\n// > EditorUI::handleEditorAction @ 0x10016342c\n// > EditorUI::handleEditorAction @ 0x100163510\n// > EditorCommandsPopup::onCommand @ 0x1004c5bf8\n// \n// This function is hookable on this platform (idp: arm, 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:00:03 +0000\n// \n\n__int64 __fastcall EditorUI::selectAllWithDirection(__int64 a1, int a2)\n{\n  __int64 AllObjects; // x21\n  __int64 v5; // x0\n  __int64 v6; // x22\n  __n128 v7; // q0\n  _QWORD *v8; // x0\n  __int64 v9; // x22\n  __int64 v10; // x23\n  __int64 v11; // x24\n  float *v12; // x0\n  float v14; // [xsp+8h] [xbp-48h] BYREF\n  __int64 v15; // [xsp+10h] [xbp-40h] BYREF\n  __int64 v16; // [xsp+18h] [xbp-38h] BYREF\n\n  AllObjects = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440));\n  v5 = cocos2d::CCDirector::sharedDirector(AllObjects);\n  cocos2d::CCDirector::getWinSize(&v16, v5);\n  v6 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL);\n  sub_1000262BC(&v14, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + (float)(*(float *)(a1 + 856) * 0.5));\n  v8 = cocos2d::CCNode::convertToNodeSpace(&v15, v6, &v14, v7);\n  v9 = sub_1002E736C(v8);\n  if ( (unsigned int)sub_1002E757C(AllObjects) )\n  {\n    v10 = 0;\n    do\n    {\n      v11 = sub_1002E75A0(AllObjects, v10);\n      if ( (unsigned int)LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v11, 0) )\n      {\n        v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);\n        if ( !a2 )\n        {\n          if ( *v12 <= *(float *)&v15 )\n            goto LABEL_7;\nLABEL_6:\n          sub_1002E74E0(v9, v11);\n          goto LABEL_7;\n        }\n        if ( *v12 < *(float *)&v15 )\n          goto LABEL_6;\n      }\nLABEL_7:\n      v10 = (unsigned int)(v10 + 1);\n    }\n    while ( (unsigned int)v10 < (unsigned int)sub_1002E757C(AllObjects) );\n  }\n  EditorUI::processSelectObjects(a1, v9);\n  EditorUI::deactivateRotationControl(a1);\n  EditorUI::deactivateScaleControl(a1);\n  return EditorUI::deactivateTransformControl(a1);\n}", "assembly": "; \n; EditorUI::selectAllWithDirection from 0x1001a647c to 0x1001a65b8 (316 bytes)\n; \n; 3 xrefs:\n; > EditorUI::handleEditorAction @ 0x10016342c\n; > EditorUI::handleEditorAction @ 0x100163510\n; > EditorCommandsPopup::onCommand @ 0x1004c5bf8\n; \n; This function is hookable on this platform (idp: arm, 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:00:03 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1001a647c\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x1001a6480\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x1001a6484\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x1001a6488\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x1001a648c\nADD             X29, SP, #0x50                                         ; +0x14, 0x1001a6490\nMOV             X20, X1                                                ; +0x18, 0x1001a6494\nMOV             X19, X0                                                ; +0x1c, 0x1001a6498\nLDR             X0, [X0,#0x5A0]                                        ; +0x20, 0x1001a649c\nBL              LevelEditorLayer__getAllObjects                        ; +0x24, 0x1001a64a0\nMOV             X21, X0                                                ; +0x28, 0x1001a64a4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x2c, 0x1001a64a8\nADD             X8, SP, #0x50+var_38                                   ; +0x30, 0x1001a64ac\nBL              cocos2d__CCDirector__getWinSize                        ; +0x34, 0x1001a64b0\nLDR             X8, [X19,#0x5A0]                                       ; +0x38, 0x1001a64b4\nLDR             X22, [X8,#0xF50]                                       ; +0x3c, 0x1001a64b8\nFMOV            S1, #0.5                                               ; +0x40, 0x1001a64bc\nLDP             S0, S2, [SP,#0x50+var_38]                              ; +0x44, 0x1001a64c0\nFMUL            S0, S0, S1                                             ; +0x48, 0x1001a64c4\nFMUL            S2, S2, S1                                             ; +0x4c, 0x1001a64c8\nLDR             S3, [X19,#0x358]                                       ; +0x50, 0x1001a64cc\nFMUL            S1, S3, S1                                             ; +0x54, 0x1001a64d0\nFADD            S1, S2, S1                                             ; +0x58, 0x1001a64d4\nADD             X0, SP, #0x50+var_48                                   ; +0x5c, 0x1001a64d8\nBL              sub_1000262BC                                          ; +0x60, 0x1001a64dc\nADD             X8, SP, #0x50+var_40                                   ; +0x64, 0x1001a64e0\nADD             X1, SP, #0x50+var_48                                   ; +0x68, 0x1001a64e4\nMOV             X0, X22                                                ; +0x6c, 0x1001a64e8\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x70, 0x1001a64ec\nBL              sub_1002E736C                                          ; +0x74, 0x1001a64f0\nMOV             X22, X0                                                ; +0x78, 0x1001a64f4\nMOV             X0, X21                                                ; +0x7c, 0x1001a64f8\nBL              sub_1002E757C                                          ; +0x80, 0x1001a64fc\nCBZ             W0, loc_1001A657C                                      ; +0x84, 0x1001a6500\nMOV             W23, #0                                                ; +0x88, 0x1001a6504\nMOV             X0, X21                                                ; +0x8c, 0x1001a6508\nMOV             X1, X23                                                ; +0x90, 0x1001a650c\nBL              sub_1002E75A0                                          ; +0x94, 0x1001a6510\nMOV             X24, X0                                                ; +0x98, 0x1001a6514\nLDR             X0, [X19,#0x5A0]                                       ; +0x9c, 0x1001a6518\nMOV             X1, X24                                                ; +0xa0, 0x1001a651c\nMOV             W2, #0                                                 ; +0xa4, 0x1001a6520\nBL              LevelEditorLayer__validGroup                           ; +0xa8, 0x1001a6524\nCBZ             W0, loc_1001A655C                                      ; +0xac, 0x1001a6528\nLDR             X8, [X24]                                              ; +0xb0, 0x1001a652c\nLDR             X8, [X8,#0xC0]                                         ; +0xb4, 0x1001a6530\nMOV             X0, X24                                                ; +0xb8, 0x1001a6534\nBLR             X8                                                     ; +0xbc, 0x1001a6538\nLDR             S0, [X0]                                               ; +0xc0, 0x1001a653c\nLDR             S1, [SP,#0x50+var_40]                                  ; +0xc4, 0x1001a6540\nFCMP            S0, S1                                                 ; +0xc8, 0x1001a6544\nCBZ             W20, loc_1001A6574                                     ; +0xcc, 0x1001a6548\nB.PL            loc_1001A655C                                          ; +0xd0, 0x1001a654c\nMOV             X0, X22                                                ; +0xd4, 0x1001a6550\nMOV             X1, X24                                                ; +0xd8, 0x1001a6554\nBL              sub_1002E74E0                                          ; +0xdc, 0x1001a6558\nADD             W23, W23, #1                                           ; +0xe0, 0x1001a655c\nMOV             X0, X21                                                ; +0xe4, 0x1001a6560\nBL              sub_1002E757C                                          ; +0xe8, 0x1001a6564\nCMP             W23, W0                                                ; +0xec, 0x1001a6568\nB.CC            loc_1001A6508                                          ; +0xf0, 0x1001a656c\nB               loc_1001A657C                                          ; +0xf4, 0x1001a6570\nB.GT            loc_1001A6550                                          ; +0xf8, 0x1001a6574\nB               loc_1001A655C                                          ; +0xfc, 0x1001a6578\nMOV             X0, X19                                                ; +0x100, 0x1001a657c\nMOV             X1, X22                                                ; +0x104, 0x1001a6580\nBL              EditorUI__processSelectObjects                         ; +0x108, 0x1001a6584\nMOV             X0, X19                                                ; +0x10c, 0x1001a6588\nBL              EditorUI__deactivateRotationControl                    ; +0x110, 0x1001a658c\nMOV             X0, X19                                                ; +0x114, 0x1001a6590\nBL              EditorUI__deactivateScaleControl                       ; +0x118, 0x1001a6594\nMOV             X0, X19                                                ; +0x11c, 0x1001a6598\nBL              EditorUI__deactivateTransformControl                   ; +0x120, 0x1001a659c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x124, 0x1001a65a0\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x128, 0x1001a65a4\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x12c, 0x1001a65a8\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x130, 0x1001a65ac\nADD             SP, SP, #0x60 ; '`'                                    ; +0x134, 0x1001a65b0\nRET                                                                    ; +0x138, 0x1001a65b4", "xrefs": ["EditorUI::handleEditorAction @ 0x10016342c", "EditorUI::handleEditorAction @ 0x100163510", "EditorCommandsPopup::onCommand @ 0x1004c5bf8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}