//
// cocos2d::CCRotateBy::update from 0x180037300 to 0x18003736a (106 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e95f8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0abc
//
// 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::CCRotateBy::update(cocos2d::CCRotateBy *this, float a2)
{
cocos2d::CCNode *m_pTarget; // rcx
cocos2d::CCNode_vtbl *v4; // rax
m_pTarget = this->m_pTarget;
if ( m_pTarget )
{
v4 = m_pTarget->__vftable;
if ( (float)((float)(a2 * *((float *)this + 24)) + *((float *)this + 25)) == (float)((float)(a2
* *((float *)this + 26))
+ *((float *)this + 27)) )
{
((void (*)(void))v4->setRotation)();
}
else
{
((void (*)(void))v4->setRotationX)();
((void (__fastcall *)(cocos2d::CCNode *))this->m_pTarget->setRotationY)(this->m_pTarget);
}
}
}