//
// cocos2d::CCFollow::copyWithZone from 0x1005f4c40 to 0x1005f4d69 (297 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097b9b0
//
// 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::CCFollow::copyWithZone(cocos2d::CCFollow *a1, cocos2d::CCZone *a2)
{
char *v2; // rbx
_QWORD *v3; // r15
int m_nTag; // eax
char *v5; // r12
_QWORD *v6; // r13
if ( a2 && (v2 = *(char **)a2) != nullptr )
{
*((_DWORD *)v2 + 18) = a1->cocos2d::CCAction::m_nTag;
}
else
{
v2 = (char *)operator new(0x80u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_OWORD *)(v2 + 56) = 0;
*((_QWORD *)v2 + 9) = 0x3F800000FFFFFFFFLL;
*(_QWORD *)v2 = off_10097B9B0;
*((_QWORD *)v2 + 10) = 0;
*((_WORD *)v2 + 44) = 0;
sub_10028CC30(v2 + 92);
sub_10028CC30(v2 + 100);
*(_OWORD *)(v2 + 108) = 0;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
if ( *v3 )
{
m_nTag = a1->cocos2d::CCAction::m_nTag;
*(_DWORD *)(*v3 + 72LL) = m_nTag;
}
else
{
v5 = (char *)operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v5);
*(_QWORD *)v5 = off_10097B8A8;
*(_OWORD *)(v5 + 56) = 0;
*((_QWORD *)v5 + 9) = 0x3F800000FFFFFFFFLL;
v6 = operator new(8u);
cocos2d::CCZone::CCZone(v6, (__int64)v5);
*((_DWORD *)v5 + 18) = a1->cocos2d::CCAction::m_nTag;
operator delete(v6);
m_nTag = a1->cocos2d::CCAction::m_nTag;
}
*((_DWORD *)v2 + 18) = m_nTag;
operator delete(v3);
}
return (cocos2d::CCObject *)v2;
}