//
// GJBaseGameLayer::rotateObject from 0x14022c100 to 0x14022c193 (147 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x14022c5b5
// > GJBaseGameLayer::processAdvancedFollowAction @ 0x1402303d4
// > ??> @ 0x1406cdbf0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::rotateObject(GJBaseGameLayer *a1, GameObject *a2, float a3)
{
float v4; // xmm0_4
bool v5; // zf
GameObject_vtbl *v6; // rax
if ( a3 != 0.0 && a2->m_canRotateFree )
{
v4 = a3 + a2->m_rotationXOffset;
a2->m_rotationYOffset = a3 + a2->m_rotationYOffset;
a2->m_rotationXOffset = v4;
GameObject::addRotation(a2, a3);
if ( a2->m_objectType != Decoration )
{
v5 = !a2->m_shouldUseOuterOb;
*(_WORD *)&a2->m_isObjectRectDirty = 257;
if ( v5 )
{
v6 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a2->m_shouldUseOuterOb = 1;
v6->updateOrientedBox(a2);
a2->getObjectRect_0(a2);
}
}
}
}