//
// cocos2d::CCTintTo::copyWithZone from 0x10018cf88 to 0x10018d058 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5e68
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCTintTo::copyWithZone(cocos2d::CCTintTo *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // x21
char *v4; // x19
cocos2d::CCZone *v5; // x22
float m_fDuration; // s0
char v7; // w8
__int16 v8; // w9
if ( a2 && (v3 = a2, (v4 = *(char **)a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = (char *)operator new(0x60u);
*(_OWORD *)v4 = 0u;
*((_OWORD *)v4 + 1) = 0u;
*((_OWORD *)v4 + 2) = 0u;
*((_OWORD *)v4 + 3) = 0u;
*((_OWORD *)v4 + 4) = 0u;
*((_OWORD *)v4 + 5) = 0u;
cocos2d::CCAction::CCAction();
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = &off_1007A5E68;
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
m_fDuration = a1->m_fDuration;
v7 = *(&a1->m_bFirstTick + 3);
if ( m_fDuration == 0.0 )
m_fDuration = 0.00000011921;
*((float *)v4 + 20) = m_fDuration;
*((_DWORD *)v4 + 21) = 0;
v4[88] = 1;
v8 = *(_WORD *)(&a1->m_bFirstTick + 1);
v4[91] = v7;
*(_WORD *)(v4 + 89) = v8;
if ( v5 )
operator delete(v5);
return (cocos2d::CCObject *)v4;
}