//
// GameObject::setRRotation from 0x10025b278 to 0x10025b2fc (132 bytes)
//
// 47 xrefs:
// > ??> @ 0x1007c4170
// > ??> @ 0x1007cfe40
// > ??> @ 0x1007d0628
// > ??> @ 0x1007d0e38
// > ??> @ 0x1007f56a8
// > ??> @ 0x1007f5ee0
// > ??> @ 0x1007f66d8
// > ??> @ 0x1007f6ed0
// > ??> @ 0x1007f76c8
// > ??> @ 0x1007f7ec0
// > ??> @ 0x1007f86b8
// > ??> @ 0x1007f8eb0
// > ??> @ 0x1007f9698
// > ??> @ 0x1007f9ea8
// > ??> @ 0x1007fa710
// > ??> @ 0x1007faf20
// > ??> @ 0x1007fb730
// > ??> @ 0x1007fbf40
// > ??> @ 0x1007fc750
// > ??> @ 0x1007fcf60
// > ??> @ 0x1007fd770
// > ??> @ 0x1007fdf80
// > ??> @ 0x1007fe790
// > ??> @ 0x1007fefa0
// > ??> @ 0x1007ff7c8
// > ??> @ 0x100800020
// > ??> @ 0x100800848
// > ??> @ 0x100801070
// > ??> @ 0x100801898
// > ??> @ 0x1008020c0
// > ??> @ 0x1008028d0
// > ??> @ 0x1008030e0
// > ??> @ 0x1008038f0
// > ??> @ 0x100804100
// > ??> @ 0x100804910
// > ??> @ 0x100805120
// > ??> @ 0x100805930
// > ??> @ 0x100806140
// > ??> @ 0x100806950
// > ??> @ 0x100807160
// > ??> @ 0x100807970
// > ??> @ 0x100808180
// > ??> @ 0x100808990
// > ??> @ 0x1008091a0
// > ??> @ 0x1008099b0
// > ??> @ 0x10080a1c0
// > ??> @ 0x1008164e0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GameObject::setRRotation(GameObject *a1, float a2)
{
float v2; // s8
float v4; // s1
GameObject_vtbl *v5; // x8
void (__cdecl **p_setRotation)(GameObject *__hidden, float); // x8
v2 = a2;
v4 = a1->m_startRotationX + a1->m_rotationXOffset;
a2 = v4 + a2;
v5 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v4 == (float)(a1->m_startRotationY + a1->m_rotationYOffset) )
{
p_setRotation = &v5->setRotation;
}
else
{
((void (__fastcall *)(GameObject *, float))v5->setRotationX)(a1, a2);
a2 = (float)(a1->m_startRotationY + a1->m_rotationYOffset) + v2;
p_setRotation = &a1->setRotationY;
}
((void (__fastcall *)(GameObject *, __n128))*p_setRotation)(a1, *(__n128 *)&a2);
}