//
// cocos2d::CCRotateTo::startWithTarget from 0x1800363a0 to 0x1800364b4 (276 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e95a8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b08d0
//
// 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 cocos2d::CCRotateTo::startWithTarget(cocos2d::CCRotateTo *this, struct cocos2d::CCNode *a2)
{
float v4; // xmm0_4
float v5; // xmm1_4
float v6; // xmm0_4
float v7; // xmm0_4
float v8; // xmm0_4
float v9; // xmm1_4
float v10; // xmm0_4
float v11; // xmm0_4
cocos2d::CCAction::startWithTarget(this, a2);
this->m_elapsed = 0.0;
this->m_bFirstTick = 1;
v4 = ((float (__fastcall *)(struct cocos2d::CCNode *))a2->getRotationX)(a2);
if ( v4 <= 0.0 )
v5 = -360.0;
else
v5 = 360.0;
v6 = fmodf(v4, v5);
*((float *)this + 25) = v6;
v7 = *((float *)this + 24) - v6;
*((float *)this + 26) = v7;
if ( v7 > 180.0 )
{
v7 = v7 - 360.0;
*((float *)this + 26) = v7;
}
if ( v7 < -180.0 )
*((float *)this + 26) = v7 + 360.0;
v8 = ((float (__fastcall *)(cocos2d::CCNode *))this->m_pTarget->getRotationY)(this->m_pTarget);
if ( v8 <= 0.0 )
v9 = -360.0;
else
v9 = 360.0;
v10 = fmodf(v8, v9);
*((float *)this + 28) = v10;
v11 = *((float *)this + 27) - v10;
*((float *)this + 29) = v11;
if ( v11 > 180.0 )
{
v11 = v11 - 360.0;
*((float *)this + 29) = v11;
}
if ( v11 < -180.0 )
*((float *)this + 29) = v11 + 360.0;
}