//
// cocos2d::CCRotateTo::startWithTarget from 0x10021e228 to 0x10021e308 (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fbe20
//
// This function is hookable on this platform (idp: arm, 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:01:07 +0000
//
void __fastcall cocos2d::CCRotateTo::startWithTarget(__int64 a1, __int64 a2)
{
float v4; // s0
float v5; // s1
float v6; // s0
float v7; // s1
float v8; // s0
float v9; // s1
float v10; // s0
float v11; // s1
cocos2d::CCAction::startWithTarget();
*(_DWORD *)(a1 + 84) = 0;
*(_BYTE *)(a1 + 88) = 1;
v4 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 384LL))(a2);
if ( v4 <= 0.0 )
v5 = -360.0;
else
v5 = 360.0;
v6 = fmodf(v4, v5);
v7 = *(float *)(a1 + 92) - v6;
if ( v7 > 180.0 )
v7 = v7 + -360.0;
if ( v7 < -180.0 )
v7 = v7 + 360.0;
*(float *)(a1 + 96) = v6;
*(float *)(a1 + 100) = v7;
v8 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 64) + 400LL))(*(_QWORD *)(a1 + 64));
if ( v8 <= 0.0 )
v9 = -360.0;
else
v9 = 360.0;
v10 = fmodf(v8, v9);
v11 = *(float *)(a1 + 104) - v10;
if ( v11 > 180.0 )
v11 = v11 + -360.0;
if ( v11 < -180.0 )
v11 = v11 + 360.0;
*(float *)(a1 + 108) = v10;
*(float *)(a1 + 112) = v11;
}