//
// cocos2d::CCAnimation::init from 0x18008ce60 to 0x18008ceb5 (85 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfcd0
//
// 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 11:22:06 +0000
//
char __fastcall cocos2d::CCAnimation::init(cocos2d::CCAnimation *this)
{
struct cocos2d::CCArray *v2; // rax
struct cocos2d::CCArray *v3; // rbx
cocos2d::CCObject *v4; // rcx
*((_DWORD *)this + 21) = 1;
*((_DWORD *)this + 15) = 0;
v2 = cocos2d::CCArray::create();
v3 = v2;
if ( *((struct cocos2d::CCArray **)this + 9) != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
v4 = *((cocos2d::CCObject **)this + 9);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 9) = v3;
}
return 1;
}