//
// GJBaseGameLayer::rotateObject from 0x59422c to 0x594288 (92 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x59453e
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x5bc572
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:08 +0000
//
int __fastcall GJBaseGameLayer::rotateObject(GJBaseGameLayer *this, GameObject *a2, float a3)
{
int result; // r0
if ( a3 != 0.0 )
{
if ( *((_BYTE *)a2 + 736) )
{
*((float *)a2 + 144) = *((float *)a2 + 144) + a3;
*((float *)a2 + 146) = *((float *)a2 + 146) + a3;
result = GameObject::addRotation(a2, a3);
if ( *((_DWORD *)a2 + 196) != 7 )
{
*((_BYTE *)a2 + 732) = 1;
*((_BYTE *)a2 + 733) = 1;
if ( !*((_BYTE *)a2 + 636) )
return GameObject::calculateOrientedBox(a2);
}
}
}
return result;
}