//
// GameObject::addRotation from 0x76e7f4 to 0x76e890 (156 bytes)
//
// 5 xrefs:
// > GameObject::fastRotateObject @ 0x770b94
// > GJBaseGameLayer::rotateObject @ 0x9a5ddc
// > GJBaseGameLayer::processRotationActions @ 0x9c02d4
// > GJBaseGameLayer::processRotationActions @ 0x9c037c
// > ??> @ 0xf3010
//
// 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 12:53:12 +0000
//
__int64 __fastcall GameObject::addRotation(GameObject *this, float a2)
{
__int64 v4; // x1
__int64 (__fastcall *v5)(GameObject *, float); // x20
float v6; // s0
void (__fastcall *v8)(GameObject *, float); // x20
float v9; // s0
v4 = *(_QWORD *)this;
if ( *((float *)this + 14) == *((float *)this + 15) )
{
v5 = *(__int64 (__fastcall **)(GameObject *, float))(v4 + 360);
v6 = (*(float (**)(void))(v4 + 368))();
}
else
{
v8 = *(void (__fastcall **)(GameObject *, float))(v4 + 376);
v9 = (*(float (**)(void))(v4 + 384))();
v8(this, a2 + v9);
v5 = *(__int64 (__fastcall **)(GameObject *, float))(*(_QWORD *)this + 392LL);
v6 = (*(float (__fastcall **)(GameObject *))(*(_QWORD *)this + 400LL))(this);
}
return v5(this, a2 + v6);
}