//
// EditorUI::transformResetRotation from 0x1006128c0 to 0x10061298b (203 bytes)
//
// 2 xrefs:
// > sub_100612990 @ 0x10061299c
// > ??> @ 0x100ab5118
//
// 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:35 +0000
//
__int64 __fastcall EditorUI::transformResetRotation(__int64 a1)
{
__int64 result; // rax
float v2; // xmm0_4
__int64 v4; // rdi
__int64 v5; // r14
__int64 v6; // rdi
_QWORD v7[5]; // [rsp-28h] [rbp-28h] BYREF
v2 = *(float *)(a1 + 512);
*(float *)(a1 + 528) = v2;
if ( v2 != 0.0 )
{
v7[0] = result;
*(_QWORD *)(a1 + 512) = 0;
v4 = *(_QWORD *)(a1 + 896);
if ( v4 )
{
result = sub_1007FEF90(v4);
if ( (_DWORD)result )
{
v5 = *(_QWORD *)(a1 + 896);
if ( !v5 )
return result;
LABEL_8:
sub_1002782D0(v7, (_QWORD *)(a1 + 768));
return EditorUI::transformObjects(
a1,
v5,
(float *)v7,
*(float *)(a1 + 504),
*(float *)(a1 + 508),
*(float *)(a1 + 512),
*(float *)(a1 + 516),
*(float *)(a1 + 520),
*(float *)(a1 + 524));
}
}
v6 = *(_QWORD *)(a1 + 1496);
if ( v6 )
{
result = sub_1007FE9A0(v6);
v5 = result;
if ( result )
goto LABEL_8;
}
}
return result;
}