//
// cocos2d::CCRotateBy::update from 0x10018b688 to 0x10018b704 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5850
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCRotateBy::update(cocos2d::CCRotateBy *a1, float a2)
{
cocos2d::CCNode *m_pTarget; // x0
float v4; // s1
float v5; // s8
cocos2d::CCNode_vtbl *v6; // x8
void (__fastcall *setRotation)(__n128); // x1
m_pTarget = a1->m_pTarget;
if ( m_pTarget )
{
v4 = a2;
a2 = *(float *)&a1[1].__vftable + (float)(*((float *)&a1->m_bFirstTick + 1) * a2);
v5 = *(float *)&a1[1].m_uID + (float)(*((float *)&a1[1].__vftable + 1) * v4);
v6 = m_pTarget->__vftable;
if ( a2 == v5 )
{
setRotation = (void (__fastcall *)(__n128))v6->setRotation;
}
else
{
((void (*)(void))v6->setRotationX)();
setRotation = (void (__fastcall *)(__n128))a1->m_pTarget->setRotationY;
a2 = v5;
}
setRotation(*(__n128 *)&a2);
}
}