//
// GJTransformControl::applyRotation from 0x1401a8020 to 0x1401a808b (107 bytes)
//
// 7 xrefs:
// > EditorUI::handleEditorAction @ 0x1401c3bfe
// > EditorUI::handleEditorAction @ 0x1401c3ddc
// > EditorUI::handleEditorAction @ 0x1401c4061
// > EditorUI::transformObjectCall_1 @ 0x1401ff4f5
// > EditorUI::transformObjectCall_1 @ 0x1401ff5cd
// > EditorUI::updateTransformControl @ 0x1402037d6
// > ??> @ 0x140919c40
//
// 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 11:27:51 +0000
//
__int64 __fastcall GJTransformControl::applyRotation(__int64 a1, float a2)
{
__int64 v4; // rcx
if ( *(_BYTE *)(a1 + 603) )
return GJTransformControl::applyFreeRotation(a1);
if ( a2 != *(float *)(a1 + 608) )
{
*(float *)(a1 + 608) = a2;
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 352LL))(*(_QWORD *)(a1 + 416));
v4 = *(_QWORD *)(a1 + 440);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 40LL))(v4);
}
return GJTransformControl::updateButtons(a1, 0, 0);
}