//
// cocos2d::CCFollow::copyWithZone from 0xd25a28 to 0xd25afc (212 bytes)
//
// 2 xrefs:
// > ??> @ 0x1040f8
// > ??> @ 0x1510d60
//
// 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:14 +0000
//
__int64 __fastcall cocos2d::CCFollow::copyWithZone(cocos2d::CCFollow *this, cocos2d::CCZone *a2)
{
__int64 v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(_QWORD *)a2) != 0 )
{
cocos2d::CCAction::copyWithZone(this, a2);
*(_DWORD *)(v3 + 72) = *((_DWORD *)this + 18);
return v3;
}
else
{
v5 = operator new(0x80u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_QWORD *)(v5 + 80) = 0;
*(_BYTE *)(v5 + 88) = 0;
*(_QWORD *)v5 = &off_1510D60;
*(_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(this, v6);
*(_DWORD *)(v5 + 72) = *((_DWORD *)this + 18);
operator delete(v6);
return v5;
}
}