//
// cocos2d::CCTintTo::update from 0xabfe98 to 0xabff78 (224 bytes)
//
// 2 xrefs:
// > ??> @ 0xb3028
// > ??> @ 0x11febe8
//
// 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::CCTintTo::update(cocos2d::CCTintTo *a1, float a2)
{
cocos2d::CCNode *m_pTarget; // x0
void (__fastcall ***v4)(void *, _BYTE *); // x0
int v5; // w7
float v6; // s4
float v7; // s3
void (__fastcall *v8)(void *, _BYTE *); // x7
float v9; // s2
float v10; // s0
_BYTE v12[8]; // [xsp+30h] [xbp+30h] BYREF
m_pTarget = a1->m_pTarget;
if ( m_pTarget )
{
v4 = (void (__fastcall ***)(void *, _BYTE *))_dynamic_cast(
m_pTarget,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v4 )
{
v5 = *((unsigned __int8 *)&a1->m_bFirstTick + 5);
v6 = (float)(*((unsigned __int8 *)&a1->m_bFirstTick + 2) - v5);
v7 = (float)v5;
v8 = **v4;
v9 = (float)*((unsigned __int8 *)&a1->m_bFirstTick + 6)
+ (float)((float)(*((unsigned __int8 *)&a1->m_bFirstTick + 3) - *((unsigned __int8 *)&a1->m_bFirstTick + 6))
* a2);
v10 = (float)*((unsigned __int8 *)&a1->m_bFirstTick + 4)
+ (float)((float)(*((unsigned __int8 *)&a1->m_bFirstTick + 1) - *((unsigned __int8 *)&a1->m_bFirstTick + 4))
* a2);
v12[1] = (int)(float)(v7 + (float)(v6 * a2));
v12[2] = (int)v9;
v12[0] = (unsigned int)v10;
v8(v4, v12);
}
}
}