//
// cocos2d::CCToggleVisibility::copyWithZone from 0xabda78 to 0xabdb0c (148 bytes)
//
// 2 xrefs:
// > ??> @ 0x7a5f8
// > ??> @ 0x11fd700
//
// 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::CCToggleVisibility::copyWithZone(cocos2d::CCToggleVisibility *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x19
cocos2d::CCActionInstant *v5; // x19
cocos2d::CCZone *v6; // x20
if ( a2 && (v3 = *(cocos2d::CCObject **)a2) != nullptr )
{
cocos2d::CCActionInstant::copyWithZone(a1, a2);
return v3;
}
else
{
v5 = (cocos2d::CCActionInstant *)operator new(0x58u);
cocos2d::CCActionInstant::CCActionInstant(v5);
v5->__vftable = (cocos2d::CCActionInstant_vtbl *)&off_11FD700;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, v5);
cocos2d::CCActionInstant::copyWithZone(a1, v6);
operator delete(v6);
return v5;
}
}