//
// GameObject::setRRotation from 0x35257c to 0x3525e6 (106 bytes)
//
// 0 xrefs:
//
// 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 GameObject::setRRotation(GameObject *a1, float a2)
{
GameObject *v2; // r4
GameObject_vtbl *v3; // r3
float v4; // s15
bool v6; // fzf
float v7; // s15
void (__fastcall *setRotation)(GameObject *__hidden, float); // r3
v2 = a1;
v3 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v4 = a1->m_startRotationX + a1->m_rotationXOffset;
v6 = v4 == (float)(a1->m_startRotationY + a1->m_rotationYOffset);
v7 = v4 + a2;
if ( v6 )
{
setRotation = v3->setRotation;
}
else
{
((void (*)(void))v3->setRotationX)();
a1 = v2;
setRotation = v2->setRotationY;
v7 = (float)(v2->m_startRotationY + v2->m_rotationYOffset) + a2;
}
((void (__fastcall *)(GameObject *, _DWORD))setRotation)(a1, LODWORD(v7));
}