//
// EditorUI::transformObjects from 0x1006107f0 to 0x100610c18 (1064 bytes)
//
// 22 xrefs:
// > EditorUI::transformObjectsActive @ 0x1006107d5
// > EditorUI::transformObjectsReset @ 0x100610ca6
// > EditorUI::transformScaleXChanged @ 0x100611e3d
// > sub_100611E50 @ 0x100611ee4
// > EditorUI::transformScaleYChanged @ 0x100611f9d
// > sub_100611FB0 @ 0x100612044
// > EditorUI::transformScaleXYChanged @ 0x100612105
// > sub_100612120 @ 0x1006121b9
// > EditorUI::transformSkewXChanged @ 0x10061226d
// > sub_100612280 @ 0x100612314
// > EditorUI::transformSkewYChanged @ 0x1006123cd
// > sub_1006123E0 @ 0x100612474
// > EditorUI::transformRotationXChanged @ 0x10061252d
// > sub_100612540 @ 0x1006125d4
// > EditorUI::transformRotationYChanged @ 0x10061268d
// > sub_1006126A0 @ 0x100612734
// > EditorUI::transformRotationChanged @ 0x1006127f5
// > sub_100612810 @ 0x1006128a9
// > EditorUI::transformResetRotation @ 0x10061297b
// > EditorUI::transformRestoreRotation @ 0x100612a68
// > EditorUI::updateTransformControl @ 0x100613791
// > GJTransformControl::applyFreeRotation @ 0x100647645
//
// 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
//
__int64 __fastcall EditorUI::transformObjects(
__int64 a1,
__int64 a2,
float *a3,
float a4,
float a5,
float a6,
float a7,
float a8,
float a9)
{
__int64 v10; // r12
_QWORD *v11; // rsi
int v12; // eax
float v13; // ecx
__int64 v14; // r13
__int64 v15; // r15
char *v16; // r14
__int64 v17; // rbx
_QWORD *v18; // r12
__int64 v19; // rax
_QWORD *v20; // rdi
__m128 v21; // xmm0
unsigned __int64 *v22; // rax
unsigned int v23; // eax
__int64 v24; // rbx
__int64 v26; // [rsp+0h] [rbp-A0h] BYREF
unsigned __int64 v27; // [rsp+8h] [rbp-98h] BYREF
float *v28; // [rsp+10h] [rbp-90h]
float *v29; // [rsp+18h] [rbp-88h]
__m128 v30; // [rsp+20h] [rbp-80h]
unsigned __int64 v31; // [rsp+34h] [rbp-6Ch] BYREF
float v32; // [rsp+3Ch] [rbp-64h]
unsigned __int64 *v33; // [rsp+40h] [rbp-60h] BYREF
float v34; // [rsp+48h] [rbp-58h]
float v35; // [rsp+4Ch] [rbp-54h]
float v36; // [rsp+50h] [rbp-50h]
float v37; // [rsp+54h] [rbp-4Ch]
__int64 v38; // [rsp+58h] [rbp-48h]
float v39; // [rsp+64h] [rbp-3Ch]
float v40; // [rsp+68h] [rbp-38h]
float v41; // [rsp+6Ch] [rbp-34h]
float v42; // [rsp+70h] [rbp-30h]
float v43; // [rsp+74h] [rbp-2Ch]
v42 = a9;
v39 = a8;
v43 = a7;
v40 = a6;
v41 = a5;
v30.f32[0] = a4;
v10 = a2;
if ( sub_100278420(a3, (float *)&qword_100BE59F8) )
{
EditorUI::getGroupCenter((float *)&v33, (__int64)&qword_100BE59F8, a2, 0);
sub_100278300(a3, &v33);
}
v32 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 168LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));
v11 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL));
sub_1002782D0(&v26, v11);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 160LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),
1.0);
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL),
&qword_100BE59F8);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 800) + 184LL))(*(_QWORD *)(a1 + 800), a3);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 128LL))(*(_QWORD *)(a1 + 800), v30.f32[0]);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 144LL))(*(_QWORD *)(a1 + 800), v41);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 376LL))(*(_QWORD *)(a1 + 800), v40);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 392LL))(*(_QWORD *)(a1 + 800), v43);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 264LL))(*(_QWORD *)(a1 + 800), v39);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 800) + 280LL))(*(_QWORD *)(a1 + 800), v42);
(*(void (__fastcall **)(unsigned __int64 **))(**(_QWORD **)(a1 + 800) + 824LL))(&v33);
v12 = sub_1007FEF90(v10);
v28 = a3;
v38 = a1;
if ( v12 )
{
v29 = (float *)(v38 + 464);
v13 = 0.0;
v14 = v38;
do
{
v42 = v13;
v15 = sub_1007FEFE0(v10, LODWORD(v13));
LODWORD(v31) = *(_DWORD *)(v15 + 916);
v33 = &v31;
v16 = sub_1000DFF80(v29, (int *)&v31, (__int64)&unk_100A0D790, (_DWORD **)&v33);
v17 = v10;
v18 = *(_QWORD **)(v14 + 808);
sub_100278370((double *)&v33, (unsigned __int64 *)(v16 + 20), (unsigned __int64 *)v28);
v19 = *v18;
v20 = v18;
v10 = v17;
(*(void (__fastcall **)(_QWORD *))(v19 + 184))(v20);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v14 + 808) + 128LL))(
*(_QWORD *)(v14 + 808),
*((float *)v16 + 7) * *(float *)(v15 + 1312));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v14 + 808) + 144LL))(
*(_QWORD *)(v14 + 808),
*((float *)v16 + 8) * *(float *)(v15 + 1316));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v14 + 808) + 376LL))(
*(_QWORD *)(v14 + 808),
*((float *)v16 + 9));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v14 + 808) + 392LL))(
*(_QWORD *)(v14 + 808),
*((float *)v16 + 10));
(*(void (__fastcall **)(unsigned __int64 **))(**(_QWORD **)(v14 + 808) + 824LL))(&v33);
v43 = *((float *)&v33 + 1);
LODWORD(v40) = (_DWORD)v33;
v39 = fsqrt((float)(*(float *)&v33 * *(float *)&v33) + (float)(*((float *)&v33 + 1) * *((float *)&v33 + 1)));
v21 = (__m128)LODWORD(v35);
v41 = fsqrt((float)(v34 * v34) + (float)(v21.f32[0] * v21.f32[0]));
v21.f32[0] = (float)(atan2f(v35, v34) * 57.29578) + -90.0;
v30 = _mm_xor_ps(v21, (__m128)xmmword_100A035F0);
v43 = atan2f(v43, v40);
GameObject::updateCustomScaleX(v15);
GameObject::updateCustomScaleY(v15, v41);
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)v15 + 376LL))(v15, *(double *)v30.i64);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 392LL))(v15, v43 * -57.29578);
sub_100278250((float *)&v31, v36, v37);
v22 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 192LL))(v15);
sub_100278370((double *)&v27, &v31, v22);
EditorUI::moveObject(v14, v15, &v27);
++LODWORD(v42);
v23 = sub_1007FEF90(v17);
v13 = v42;
}
while ( LODWORD(v42) < v23 );
}
v24 = v38;
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(*(_QWORD *)(v38 + 1440) + 3920LL) + 160LL))(
*(_QWORD *)(*(_QWORD *)(v38 + 1440) + 3920LL),
v32);
return (*(__int64 (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(*(_QWORD *)(v24 + 1440) + 3920LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(v24 + 1440) + 3920LL),
&v26);
}