//
// cocos2d::CCAnimation::init from 0x100296890 to 0x1002968df (79 bytes)
//
// 0 xrefs:
//
// 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
//
bool __fastcall cocos2d::CCAnimation::init(cocos2d::CCAnimation *a1)
{
__int64 v1; // rsi
cocos2d::CCObject *v3; // rax
cocos2d::CCArray *m_pFrames; // rdi
cocos2d::CCArray *v5; // r14
a1->m_uLoops = 1;
a1->m_fDelayPerUnit = 0.0;
v3 = (cocos2d::CCObject *)sub_10071F9E0(a1, v1);
m_pFrames = a1->m_pFrames;
if ( m_pFrames != v3 )
{
v5 = (cocos2d::CCArray *)v3;
if ( v3 )
{
cocos2d::CCObject::retain(v3);
m_pFrames = a1->m_pFrames;
}
if ( m_pFrames )
cocos2d::CCObject::release(m_pFrames);
a1->m_pFrames = v5;
}
return 1;
}