//
// GJTransformControl::applyRotation from 0xbd3cd0 to 0xbd3d60 (144 bytes)
//
// 4 xrefs:
// > EditorUI::transformObjectCall @ 0xc018d0
// > EditorUI::transformObjectCall @ 0xc019d4
// > EditorUI::updateTransformControl @ 0xc044dc
// > ??> @ 0xcded0
//
// 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 13:03:38 +0000
//
__int64 __fastcall GJTransformControl::applyRotation(GJTransformControl *this, float a2)
{
__int64 v3; // x1
__int64 v4; // x0
if ( *((_BYTE *)this + 603) )
return GJTransformControl::applyFreeRotation(this, a2);
if ( *((float *)this + 152) == a2 )
return GJTransformControl::updateButtons(this, 0, 0);
v3 = *((_QWORD *)this + 52);
*((float *)this + 152) = a2;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 360LL))(v3);
v4 = *((_QWORD *)this + 55);
if ( !v4 )
return GJTransformControl::updateButtons(this, 0, 0);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 40LL))(v4, *((float *)this + 152));
return GJTransformControl::updateButtons(this, 0, 0);
}