//
// cocos2d::CCSequence::copyWithZone from 0x10021d564 to 0x10021d638 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fba20
//
// 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:06 +0000
//
_OWORD *__fastcall cocos2d::CCSequence::copyWithZone(__int64 a1, void **a2)
{
void **v3; // x22
_OWORD *v4; // x19
void **v5; // x21
__int64 v6; // x0
__int64 v7; // x22
__int64 v8; // x0
__int64 v9; // x0
if ( a2 && (v3 = a2, (v4 = *a2) != nullptr) )
{
v5 = nullptr;
}
else
{
v4 = operator new(0x78u);
*v4 = 0u;
v4[1] = 0u;
v4[2] = 0u;
v4[3] = 0u;
v4[4] = 0u;
v4[5] = 0u;
v4[6] = 0u;
*((_QWORD *)v4 + 14) = 0;
cocos2d::CCAction::CCAction();
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = off_1008FBA20;
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, v3);
v6 = sub_10008EA20(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(a1 + 96));
v7 = cocos2d::CCObject::autorelease(v6);
v8 = sub_10008EA20(*(__int64 (__fastcall ****)(_QWORD, _QWORD))(a1 + 104));
v9 = cocos2d::CCObject::autorelease(v8);
cocos2d::CCSequence::initWithTwoActions((__int64)v4, v7, v9);
if ( v5 )
operator delete(v5);
return v4;
}