//
// cocos2d::CCFadeTo::update from 0xabfdc0 to 0xabfe38 (120 bytes)
//
// 2 xrefs:
// > ??> @ 0x7c560
// > ??> @ 0x11feb58
//
// 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 cocos2d::CCFadeTo::update(cocos2d::CCFadeTo *a1, float a2)
{
cocos2d::CCNode *m_pTarget; // x0
cocos2d::CCFadeTo *v4; // x19
void *v6; // x0
m_pTarget = a1->m_pTarget;
if ( m_pTarget )
{
v4 = a1;
v6 = _dynamic_cast(
m_pTarget,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v6 )
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v6 + 40LL))(
v6,
(unsigned int)(float)((float)*((unsigned __int8 *)&v4->m_bFirstTick + 2)
+ (float)((float)(*((unsigned __int8 *)&v4->m_bFirstTick + 1)
- *((unsigned __int8 *)&v4->m_bFirstTick + 2))
* a2)));
}
}