//
// cocos2d::CCFollow::copyWithZone from 0xab3ef0 to 0xab3fc4 (212 bytes)
//
// 2 xrefs:
// > ??> @ 0xc7f68
// > ??> @ 0x11fb450
//
// 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::CCFollow::copyWithZone(cocos2d::CCFollow *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCObject **)a2) != nullptr )
{
cocos2d::CCAction::copyWithZone(a1, a2);
v3[1].m_nTag = a1->cocos2d::CCAction::m_nTag;
return v3;
}
else
{
v5 = operator new(0x80u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_QWORD *)(v5 + 80) = 0;
*(_BYTE *)(v5 + 88) = 0;
*(_QWORD *)v5 = &off_11FB450;
*(_BYTE *)(v5 + 89) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 92));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 100));
*(_DWORD *)(v5 + 108) = 0;
*(_DWORD *)(v5 + 112) = 0;
*(_DWORD *)(v5 + 116) = 0;
*(_DWORD *)(v5 + 120) = 0;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCAction::copyWithZone(a1, v6);
*(_DWORD *)(v5 + 72) = a1->cocos2d::CCAction::m_nTag;
operator delete(v6);
return (cocos2d::CCObject *)v5;
}
}