//
// GameObject::setRRotation from 0x640304 to 0x640394 (144 bytes)
//
// 48 xrefs:
// > ??> @ 0x37110
// > ??> @ 0x1152c98
// > ??> @ 0x1153a68
// > ??> @ 0x1154238
// > ??> @ 0x1154a38
// > ??> @ 0x11623e8
// > ??> @ 0x1162be8
// > ??> @ 0x11633e8
// > ??> @ 0x1163be8
// > ??> @ 0x11643e8
// > ??> @ 0x1164be8
// > ??> @ 0x11653e8
// > ??> @ 0x1165be8
// > ??> @ 0x11663b8
// > ??> @ 0x1166bb8
// > ??> @ 0x11673b8
// > ??> @ 0x1167bb8
// > ??> @ 0x11683b8
// > ??> @ 0x1168bf8
// > ??> @ 0x11693f8
// > ??> @ 0x1169bf8
// > ??> @ 0x116a3f8
// > ??> @ 0x116abf8
// > ??> @ 0x116b408
// > ??> @ 0x116bc08
// > ??> @ 0x116c408
// > ??> @ 0x116cc08
// > ??> @ 0x116d408
// > ??> @ 0x116dc08
// > ??> @ 0x116e408
// > ??> @ 0x116ec08
// > ??> @ 0x116f408
// > ??> @ 0x116fc08
// > ??> @ 0x1170408
// > ??> @ 0x1170c08
// > ??> @ 0x1171408
// > ??> @ 0x1171c08
// > ??> @ 0x1172408
// > ??> @ 0x1172c08
// > ??> @ 0x1173408
// > ??> @ 0x1173c08
// > ??> @ 0x1174408
// > ??> @ 0x1174c08
// > ??> @ 0x1175408
// > ??> @ 0x1175c08
// > ??> @ 0x1176408
// > ??> @ 0x1176c08
// > ??> @ 0x1177428
//
// 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_vtbl *v4; // x1
float v5; // s0
bool v6; // zf
float v7; // s0
v4 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5 = a1->m_startRotationX + a1->m_rotationXOffset;
v6 = v5 == (float)(a1->m_startRotationY + a1->m_rotationYOffset);
v7 = v5 + a2;
if ( v6 )
{
((void (__fastcall *)(float))v4->setRotation)(v7);
}
else
{
((void (__fastcall *)(float))v4->setRotationX)(v7);
a1->setRotationY(a1, (float)(a1->m_startRotationY + a1->m_rotationYOffset) + a2);
}
}