//
// GameObject::addRotation from 0x44cd54 to 0x44cdc0 (108 bytes)
//
// 4 xrefs:
// > GameObject::fastRotateObject @ 0x44e4b8
// > GJBaseGameLayer::rotateObject @ 0x594260
// > GJBaseGameLayer::processRotationActions @ 0x5a362a
// > GJBaseGameLayer::processRotationActions @ 0x5a367c
//
// 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:48:35 +0000
//
int __fastcall GameObject::addRotation(GameObject *this, float a2)
{
int v4; // r3
void (__fastcall *v5)(GameObject *, _DWORD); // r5
float v6; // r0
int (__fastcall *v7)(GameObject *, _DWORD); // r5
float v8; // r0
v4 = *(_DWORD *)this;
if ( *((float *)this + 13) == *((float *)this + 14) )
{
v7 = *(int (__fastcall **)(GameObject *, _DWORD))(v4 + 180);
v8 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(v4 + 184))(this));
}
else
{
v5 = *(void (__fastcall **)(GameObject *, _DWORD))(v4 + 188);
v6 = COERCE_FLOAT((*(int (**)(void))(v4 + 192))());
v5(this, v6 + a2);
v7 = *(int (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 196);
v8 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 200))(this));
}
return v7(this, v8 + a2);
}