//
// cocos2d::CCFollow::copyWithZone from 0x180024460 to 0x18002451b (187 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ed478
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b91e4
//
// 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 11:21:29 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCObject *__fastcall cocos2d::CCFollow::copyWithZone(
cocos2d::CCFollow *this,
struct cocos2d::CCObject **a2)
{
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCFollow *v5; // rax
struct cocos2d::CCObject **v6; // rdi
cocos2d::CCFollow *v7; // rbx
tinyxml2::XMLHandle *v8; // rax
if ( a2 && (v3 = *a2) != nullptr )
{
cocos2d::CCAction::copyWithZone(this, a2);
*((_DWORD *)v3 + 18) = *((_DWORD *)this + 18);
return v3;
}
else
{
v5 = (cocos2d::CCFollow *)sub_1800E4AC0(0x80u);
v6 = nullptr;
if ( v5 )
v7 = cocos2d::CCFollow::CCFollow(v5);
else
v7 = nullptr;
v8 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v8 )
v6 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v7);
cocos2d::CCAction::copyWithZone(this, v6);
*((_DWORD *)v7 + 18) = *((_DWORD *)this + 18);
if ( v6 )
j_j_free_0(v6);
return v7;
}
}