//
// cocos2d::CCAnimationFrame::copyWithZone from 0x100280cd0 to 0x100280e06 (310 bytes)
//
// 1 xrefs:
// > ??> @ 0x100afe198
//
// 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:27:43 +0000
//
_QWORD *__fastcall cocos2d::CCAnimationFrame::copyWithZone(__int64 a1, void **a2)
{
_QWORD *v2; // rbx
_QWORD *v3; // r14
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // r12
__int64 v7; // rdi
__int64 v8; // rax
__int64 v9; // r15
__int64 v10; // rdi
__int64 v11; // rdi
int v13; // [rsp+Ch] [rbp-24h]
if ( a2 && (v2 = *a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x50u);
cocos2d::CCObject::CCObject(v2);
*v2 = off_100AFE198;
v2[7] = 0;
*((_DWORD *)v2 + 16) = 0;
v2[9] = 0;
*((_DWORD *)v2 + 7) = 14;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
}
v4 = sub_1004800C0(*(_QWORD *)(a1 + 56));
v5 = cocos2d::CCObject::autorelease(v4);
v6 = v5;
v13 = *(_DWORD *)(a1 + 64);
v7 = *(_QWORD *)(a1 + 72);
if ( v7 )
{
v8 = sub_1004800C0(v7);
v9 = cocos2d::CCObject::autorelease(v8);
v10 = v2[7];
if ( v10 == v6 )
goto LABEL_14;
}
else
{
v9 = 0;
v10 = v2[7];
if ( v10 == v5 )
goto LABEL_14;
}
if ( v6 )
{
cocos2d::CCObject::retain(v6);
v10 = v2[7];
}
if ( v10 )
cocos2d::CCObject::release(v10);
v2[7] = v6;
LABEL_14:
*((_DWORD *)v2 + 16) = v13;
v11 = v2[9];
if ( v11 != v9 )
{
if ( v9 )
{
cocos2d::CCObject::retain(v9);
v11 = v2[9];
}
if ( v11 )
cocos2d::CCObject::release(v11);
v2[9] = v9;
}
if ( v3 )
operator delete(v3);
return v2;
}