//
// cocos2d::CCFadeTo::copyWithZone from 0xd356e4 to 0xd357b8 (212 bytes)
//
// 2 xrefs:
// > ??> @ 0x56860
// > ??> @ 0x1514440
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:23 +0000
//
cocos2d::CCFadeTo *__fastcall cocos2d::CCFadeTo::copyWithZone(cocos2d::CCFadeTo *this, cocos2d::CCZone *a2)
{
cocos2d::CCFadeTo *v3; // x19
cocos2d::CCAction *v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCFadeTo **)a2) != nullptr )
{
cocos2d::CCActionInterval::copyWithZone(this, a2);
cocos2d::CCFadeTo::initWithDuration(v3, *((float *)this + 20), *((_BYTE *)this + 89));
return v3;
}
else
{
v5 = (cocos2d::CCAction *)operator new(0x60u);
*(_QWORD *)v5 = 0;
*((_QWORD *)v5 + 1) = 0;
*((_QWORD *)v5 + 2) = 0;
*((_QWORD *)v5 + 3) = 0;
*((_QWORD *)v5 + 4) = 0;
*((_QWORD *)v5 + 5) = 0;
*((_QWORD *)v5 + 6) = 0;
*((_QWORD *)v5 + 7) = 0;
*((_QWORD *)v5 + 8) = 0;
*((_QWORD *)v5 + 9) = 0;
*((_QWORD *)v5 + 10) = 0;
*((_QWORD *)v5 + 11) = 0;
cocos2d::CCAction::CCAction(v5);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &off_1514440;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, v5);
cocos2d::CCActionInterval::copyWithZone(this, v6);
cocos2d::CCFadeTo::initWithDuration(v5, *((float *)this + 20), *((_BYTE *)this + 89));
operator delete(v6);
return v5;
}
}