//
// cocos2d::CCTintBy::copyWithZone from 0x5b8c38 to 0x5b8ca4 (108 bytes)
//
// 0 xrefs:
//
// 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 *cocos2d::CCTintBy::copyWithZone(cocos2d::CCTintBy *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r6
cocos2d::CCTintBy *v4; // r4
cocos2d::CCZone *v5; // r7
v3 = a2;
if ( a2 && (v4 = *(cocos2d::CCTintBy **)a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCTintBy *)operator new(0x5Cu);
memset(v4, 0, 0x5Cu);
cocos2d::CCActionInterval::CCActionInterval(v4);
v4->__vftable = (cocos2d::CCTintBy_vtbl *)&off_AA0928;
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
cocos2d::CCTintBy::initWithDuration(
v4,
a1->m_fDuration,
*((unsigned __int8 *)&a1->m_bFirstTick + 2),
LOBYTE(a1[1].__vftable),
BYTE2(a1[1].__vftable));
if ( v5 )
operator delete(v5);
return v4;
}