//
// cocos2d::CCRotateTo::startWithTarget from 0xac00b8 to 0xac01c0 (264 bytes)
//
// 2 xrefs:
// > ??> @ 0x7f098
// > ??> @ 0x11fe318
//
// 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 cocos2d::CCRotateTo::startWithTarget(cocos2d::CCRotateTo *a1, cocos2d::CCNode *a2)
{
float v4; // s0
float v5; // s0
float v6; // s0
float v7; // s0
int v8; // s0
int v9; // s0
cocos2d::CCActionInterval::startWithTarget(a1, a2);
v4 = a2->getRotationX(a2);
*(float *)&a1[1].__vftable = v4;
if ( v4 <= 0.0 )
v5 = fmodf(v4, -360.0);
else
v5 = fmodf(v4, 360.0);
*(float *)&a1[1].__vftable = v5;
v6 = *((float *)&a1->m_bFirstTick + 1) - v5;
if ( v6 > 180.0 )
v6 = v6 - 360.0;
*((float *)&a1[1].__vftable + 1) = v6;
if ( v6 < -180.0 )
*((float *)&a1[1].__vftable + 1) = v6 + 360.0;
v7 = a1->m_pTarget->getRotationY(a1->m_pTarget);
*(float *)&a1[1].m_nLuaID = v7;
if ( v7 <= 0.0 )
*(float *)&v8 = fmodf(v7, -360.0);
else
*(float *)&v8 = fmodf(v7, 360.0);
a1[1].m_nLuaID = v8;
*(float *)&v9 = *(float *)&a1[1].m_uID - *(float *)&v8;
if ( *(float *)&v9 > 180.0 )
*(float *)&v9 = *(float *)&v9 - 360.0;
a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = v9;
if ( *(float *)&v9 < -180.0 )
*(float *)&a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = *(float *)&v9 + 360.0;
}