//
// cocos2d::CCFollow::copyWithZone from 0x1006c7990 to 0x1006c7ab9 (297 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b8ee58
//
// This function is hookable on this platform (idp: pc, 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 12:35:34 +0000
//
char *__fastcall cocos2d::CCFollow::copyWithZone(__int64 a1, void **a2)
{
char *v2; // rbx
_QWORD *v3; // r15
int v4; // eax
char *v5; // r12
_QWORD *v6; // r13
if ( a2 && (v2 = (char *)*a2) != nullptr )
{
*((_DWORD *)v2 + 18) = *(_DWORD *)(a1 + 72);
}
else
{
v2 = (char *)operator new(0x80u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_OWORD *)(v2 + 56) = 0;
*((_QWORD *)v2 + 9) = 0x3F800000FFFFFFFFLL;
*(_QWORD *)v2 = off_100B8EE58;
*((_QWORD *)v2 + 10) = 0;
*((_WORD *)v2 + 44) = 0;
sub_1002782A0(v2 + 92);
sub_1002782A0(v2 + 100);
*(_OWORD *)(v2 + 108) = 0;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
if ( *v3 )
{
v4 = *(_DWORD *)(a1 + 72);
*(_DWORD *)(*v3 + 72LL) = v4;
}
else
{
v5 = (char *)operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v5);
*(_QWORD *)v5 = off_100B8ED50;
*(_OWORD *)(v5 + 56) = 0;
*((_QWORD *)v5 + 9) = 0x3F800000FFFFFFFFLL;
v6 = operator new(8u);
cocos2d::CCZone::CCZone(v6, (__int64)v5);
*((_DWORD *)v5 + 18) = *(_DWORD *)(a1 + 72);
operator delete(v6);
v4 = *(_DWORD *)(a1 + 72);
}
*((_DWORD *)v2 + 18) = v4;
operator delete(v3);
}
return v2;
}