//
// cocos2d::CCAnimation::create_1 from 0x1002967a0 to 0x100296828 (136 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
//
cocos2d::CCAnimation *__fastcall cocos2d::CCAnimation::create_1()
{
__int64 v0; // rsi
cocos2d::CCAnimation *v1; // rbx
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *m_pFrames; // rdi
cocos2d::CCObject *v4; // r14
v1 = (cocos2d::CCAnimation *)operator new(0x58u);
cocos2d::CCObject::CCObject(v1);
v1->__vftable = (cocos2d::CCAnimation_vtbl *)off_1008F7808;
v1->m_fDuration = 0.0;
v1->m_pFrames = nullptr;
v1->m_bRestoreOriginalFrame = 0;
v1->m_uLoops = 1;
*(_QWORD *)&v1->m_fTotalDelayUnits = 0;
v2 = (cocos2d::CCObject *)sub_10071F9E0(v1, v0);
m_pFrames = v1->m_pFrames;
if ( m_pFrames != v2 )
{
v4 = v2;
if ( v2 )
{
cocos2d::CCObject::retain(v2);
m_pFrames = v1->m_pFrames;
}
if ( m_pFrames )
cocos2d::CCObject::release(m_pFrames);
v1->m_pFrames = (cocos2d::CCArray *)v4;
}
cocos2d::CCObject::autorelease(v1);
return v1;
}