// // EditorUI::getGroupCenter from 0x10060ff40 to 0x100610146 (518 bytes) // // 14 xrefs: // > EditorUI::onCreateObject @ 0x1000115e6 // > KeyframeGameObject::updateShadowObjects @ 0x1001a736c // > EditorUI::copyObjectsDetailed @ 0x1005b7b75 // > EditorUI::repositionObjectsToCenter @ 0x1005b8127 // > EditorUI::findObject @ 0x1005b9b01 // > EditorUI::handleEditorAction @ 0x10060ccf6 // > EditorUI::activateRotationControl @ 0x10060eb37 // > EditorUI::rotateObjects @ 0x10060f515 // > EditorUI::scaleObjects @ 0x1006102dd // > EditorUI::transformObjects @ 0x100610847 // > EditorUI::alignObjectsOnAxis @ 0x100610e29 // > EditorUI::alignObjects @ 0x1006113c5 // > EditorUI::activateScaleControl @ 0x100612d67 // > EditorUI::showTransformControl @ 0x10061358b // // This function is hookable on this platform (idp: pc, 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 12:34:34 +0000 // float *__fastcall EditorUI::getGroupCenter(float *a1, __int64 a2, __int64 a3, char a4) { float *v6; // r15 __int64 v7; // rbx _QWORD *v8; // rax _BYTE *v9; // r12 float v10; // xmm0_4 float v11; // xmm1_4 unsigned int v12; // ebx _BYTE *v13; // r15 __m128 v14; // xmm0 __m128 inserted; // xmm1 char v16; // al unsigned int v17; // eax float v18; // xmm2_4 float v19; // xmm3_4 float v21[4]; // [rsp+0h] [rbp-80h] BYREF __m128 v22; // [rsp+10h] [rbp-70h] __m128 v23; // [rsp+20h] [rbp-60h] __int64 v24; // [rsp+38h] [rbp-48h] float *v25; // [rsp+40h] [rbp-40h] float v26; // [rsp+48h] [rbp-38h] float v27; // [rsp+4Ch] [rbp-34h] float v28; // [rsp+50h] [rbp-30h] float v29; // [rsp+54h] [rbp-2Ch] v6 = a1; if ( (unsigned int)sub_1007FEF90(a3) == 1 ) { v7 = sub_1007FEFE0(a3, 0); GameObject::updateStartPos(v7); v8 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7); sub_1002782D0(a1, v8); } else { if ( (unsigned int)sub_1007FEF90(a3) ) { v25 = a1; v23 = (__m128)xmmword_100A0D750; v9 = nullptr; v10 = -999999.0; v11 = -999999.0; v24 = a3; v12 = 0; do { v26 = v11; v27 = v10; v13 = v9; v9 = (_BYTE *)sub_1007FEFE0(v24, v12); GameObject::updateStartPos(v9); v14 = (__m128)0x3F800000u; (*(void (__fastcall **)(float *, _BYTE *, float, float))(*(_QWORD *)v9 + 1336LL))(v21, v9, 1.0, 1.0); v28 = sub_1002788A0(v21); v14.f32[0] = sub_1002788E0((__int64)v21); v22 = v14; v29 = sub_1002788F0((__int64)v21); v14.f32[0] = sub_100278930((__int64)v21); v28 = fmaxf(v28, v27); inserted = _mm_insert_ps(v14, (__m128)v22.u32[0], 16); v23 = _mm_blendv_ps( v23, inserted, _mm_or_ps(_mm_cmplt_ps(inserted, v23), _mm_cmpeq_ps(v23, (__m128)xmmword_100A03670))); v29 = fmaxf(v29, v26); v16 = v9[1150]; if ( v13 ) v9 = v13; a4 |= v16 & (v13 != nullptr); if ( !v16 ) v9 = v13; ++v12; v17 = sub_1007FEF90(v24); v11 = v29; v10 = v28; } while ( v12 < v17 ); v18 = v23.f32[0]; if ( !(a4 & 1 | (v9 == nullptr)) ) { v6 = v25; (*(void (__fastcall **)(float *, _BYTE *, float, float, double))(*(_QWORD *)v9 + 1360LL))( v25, v9, v28, v29, *(double *)v23.i64); return v6; } v19 = _mm_movehdup_ps(v23).f32[0]; v6 = v25; } else { v19 = 999999.0; v10 = -999999.0; v11 = -999999.0; v18 = 999999.0; } sub_100278250(v6, (float)((float)(v10 - v19) * 0.5) + v19, (float)((float)(v11 - v18) * 0.5) + v18); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source