// // EditorUI::selectAllWithDirection from 0x1001a647c to 0x1001a65b8 (316 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0x10016342c // > EditorUI::handleEditorAction @ 0x100163510 // > EditorCommandsPopup::onCommand @ 0x1004c5bf8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:00:03 +0000 // __int64 __fastcall EditorUI::selectAllWithDirection(__int64 a1, int a2) { __int64 AllObjects; // x21 __int64 v5; // x0 __int64 v6; // x22 __n128 v7; // q0 _QWORD *v8; // x0 __int64 v9; // x22 __int64 v10; // x23 __int64 v11; // x24 float *v12; // x0 float v14; // [xsp+8h] [xbp-48h] BYREF __int64 v15; // [xsp+10h] [xbp-40h] BYREF __int64 v16; // [xsp+18h] [xbp-38h] BYREF AllObjects = LevelEditorLayer::getAllObjects(*(_QWORD *)(a1 + 1440)); v5 = cocos2d::CCDirector::sharedDirector(AllObjects); cocos2d::CCDirector::getWinSize(&v16, v5); v6 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL); sub_1000262BC(&v14, *(float *)&v16 * 0.5, (float)(*((float *)&v16 + 1) * 0.5) + (float)(*(float *)(a1 + 856) * 0.5)); v8 = cocos2d::CCNode::convertToNodeSpace(&v15, v6, &v14, v7); v9 = sub_1002E736C(v8); if ( (unsigned int)sub_1002E757C(AllObjects) ) { v10 = 0; do { v11 = sub_1002E75A0(AllObjects, v10); if ( (unsigned int)LevelEditorLayer::validGroup(*(_QWORD *)(a1 + 1440), v11, 0) ) { v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11); if ( !a2 ) { if ( *v12 <= *(float *)&v15 ) goto LABEL_7; LABEL_6: sub_1002E74E0(v9, v11); goto LABEL_7; } if ( *v12 < *(float *)&v15 ) goto LABEL_6; } LABEL_7: v10 = (unsigned int)(v10 + 1); } while ( (unsigned int)v10 < (unsigned int)sub_1002E757C(AllObjects) ); } EditorUI::processSelectObjects(a1, v9); EditorUI::deactivateRotationControl(a1); EditorUI::deactivateScaleControl(a1); return EditorUI::deactivateTransformControl(a1); }