//
// cocos2d::CCRepeatForever::copyWithZone from 0xd33a0c to 0xd33adc (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x485f8
// > ??> @ 0x1513ab0
//
// 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 13:07:22 +0000
//
cocos2d::CCRepeatForever *__fastcall cocos2d::CCRepeatForever::copyWithZone(
cocos2d::CCObject **this,
cocos2d::CCZone *a2)
{
cocos2d::CCRepeatForever *v3; // x19
cocos2d::CCObject *v4; // x0
cocos2d::CCActionInterval *v5; // x0
__int64 v7; // x19
cocos2d::CCZone *v8; // x21
cocos2d::CCObject *v9; // x0
cocos2d::CCActionInterval *v10; // x0
if ( a2 && (v3 = *(cocos2d::CCRepeatForever **)a2) != nullptr )
{
cocos2d::CCActionInterval::copyWithZone((cocos2d::CCActionInterval *)this, a2);
v4 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(this + 12));
v5 = (cocos2d::CCActionInterval *)cocos2d::CCObject::autorelease(v4);
cocos2d::CCRepeatForever::initWithAction(v3, v5);
return v3;
}
else
{
v7 = operator new(0x68u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v7);
*(_DWORD *)(v7 + 80) = 0;
*(_QWORD *)(v7 + 96) = 0;
*(_QWORD *)v7 = &off_1513AB0;
v8 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v8, (cocos2d::CCObject *)v7);
cocos2d::CCActionInterval::copyWithZone((cocos2d::CCActionInterval *)this, v8);
v9 = (cocos2d::CCObject *)cocos2d::CCObject::copy(*(this + 12));
v10 = (cocos2d::CCActionInterval *)cocos2d::CCObject::autorelease(v9);
cocos2d::CCRepeatForever::initWithAction((cocos2d::CCRepeatForever *)v7, v10);
operator delete(v8);
return (cocos2d::CCRepeatForever *)v7;
}
}