//
// cocos2d::CCRotateTo::startWithTarget from 0x180036a90 to 0x180036baa (282 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ef608
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba9fc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:35 +0000
//
void __fastcall cocos2d::CCRotateTo::startWithTarget(cocos2d::CCRotateTo *this, struct cocos2d::CCNode *a2)
{
float v4; // xmm0_4
float v5; // xmm8_4
float v6; // xmm1_4
float v7; // xmm0_4
float v8; // xmm1_4
float v9; // xmm0_4
float v10; // xmm0_4
float v11; // xmm1_4
cocos2d::CCAction::startWithTarget(this, a2);
*((_DWORD *)this + 22) = 0;
*((_BYTE *)this + 92) = 1;
v4 = (*(float (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 376LL))(a2);
v5 = -360.0;
if ( v4 <= 0.0 )
v6 = -360.0;
else
v6 = 360.0;
v7 = fmodf(v4, v6);
v8 = *((float *)this + 24) - v7;
*((float *)this + 25) = v7;
*((float *)this + 26) = v8;
if ( v8 > 180.0 )
{
v8 = v8 - 360.0;
*((float *)this + 26) = v8;
}
if ( v8 < -180.0 )
*((float *)this + 26) = v8 + 360.0;
v9 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 392LL))(*((_QWORD *)this + 8));
if ( v9 > 0.0 )
v5 = 360.0;
v10 = fmodf(v9, v5);
v11 = *((float *)this + 27) - v10;
*((float *)this + 28) = 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;
}