//
// cocos2d::CCAnimation::init from 0x180089e40 to 0x180089e95 (85 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5a00
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall cocos2d::CCAnimation::init(cocos2d::CCAnimation *this)
{
cocos2d::CCArray *v2; // rax
cocos2d::CCArray *v3; // rbx
cocos2d::CCArray *m_pFrames; // rcx
this->m_uLoops = 1;
this->m_fDelayPerUnit = 0.0;
v2 = cocos2d::CCArray::create();
v3 = v2;
if ( this->m_pFrames != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
m_pFrames = this->m_pFrames;
if ( m_pFrames )
cocos2d::CCObject::release(m_pFrames);
this->m_pFrames = v3;
}
return 1;
}