//
// GameObject::addRotation from 0x10025b1ec to 0x10025b278 (140 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x1001f8368
// > GJBaseGameLayer::processRotationActions @ 0x1001f8428
// > GJBaseGameLayer::rotateObject @ 0x1001f8dc4
// > GameObject::fastRotateObject @ 0x100261b88
//
// 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 __fastcall GameObject::addRotation(GameObject *a1, float a2)
{
GameObject_vtbl *v4; // x8
float v5; // s0
float (__cdecl **p_getRotation)(cocos2d::CCNode *__hidden); // x8
__int64 v7; // x20
float v8; // s0
v4 = a1->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a1->m_fRotationX == a1->m_fRotationY )
{
p_getRotation = &v4->getRotation;
v7 = 344;
}
else
{
v5 = ((float (__fastcall *)(GameObject *))v4->getRotationX)(a1);
((void (__fastcall *)(GameObject *, float))a1->setRotationX)(a1, v5 + a2);
p_getRotation = &a1->getRotationY;
v7 = 376;
}
v8 = ((float (__fastcall *)(GameObject *))*p_getRotation)(a1) + a2;
(*(void (__fastcall **)(GameObject *, float))((char *)&a1->copyWithZone + v7))(a1, v8);
}