//
// cocos2d::CCAnimationFrame::copyWithZone from 0x100238eac to 0x100238f8c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009048e0
//
// This function is hookable on this platform (idp: arm, 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:01:20 +0000
//
_QWORD *__fastcall cocos2d::CCAnimationFrame::copyWithZone(__int64 a1, void **a2)
{
_QWORD *v3; // x19
void *v4; // x21
__int64 v5; // x0
__int64 v6; // x22
int v7; // s8
__int64 (__fastcall ***v8)(_QWORD, _QWORD); // x0
__int64 v9; // x0
__int64 v10; // x20
if ( a2 && (v3 = *a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v3);
*v3 = off_1009048E0;
v3[7] = 0;
*((_DWORD *)v3 + 16) = 0;
v3[9] = 0;
*((_DWORD *)v3 + 7) = 14;
v4 = operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
}
v5 = sub_10008EA20(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(a1 + 56));
v6 = cocos2d::CCObject::autorelease(v5);
v7 = *(_DWORD *)(a1 + 64);
v8 = *(__int64 (__fastcall ****)(_QWORD, _QWORD))(a1 + 72);
if ( v8 )
{
v9 = sub_10008EA20(v8);
v10 = cocos2d::CCObject::autorelease(v9);
}
else
{
v10 = 0;
}
sub_100004430((__int64)v3, v6);
*((_DWORD *)v3 + 16) = v7;
sub_1001E3D38((__int64)v3, v10);
if ( v4 )
operator delete(v4);
return v3;
}