//
// cocos2d::CCAnimation::initWithAnimationFrames from 0xb133e8 to 0xb13498 (176 bytes)
//
// 5 xrefs:
// > cocos2d::CCAnimation::create @ 0xb135a8
// > cocos2d::CCAnimation::copyWithZone @ 0xb135f4
// > cocos2d::CCAnimation::copyWithZone @ 0xb13648
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xb14130
// > ??> @ 0xc2610
//
// 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 cocos2d::CCAnimation::initWithAnimationFrames(
cocos2d::CCAnimation *a1,
cocos2d::CCArray *a2,
float a3,
unsigned int a4)
{
cocos2d::CCObject *v5; // x0
cocos2d::CCArray *v6; // x20
cocos2d::CCArray *m_pFrames; // x1
cocos2d::ccArray *data; // x0
unsigned int num; // w1
cocos2d::CCObject **arr; // x0
cocos2d::CCObject **v11; // x2
cocos2d::CCObject *v12; // x1
float m_fTotalDelayUnits; // s0
a1->m_fDelayPerUnit = a3;
a1->m_uLoops = a4;
v5 = cocos2d::CCArray::createWithArray(a2, a2);
v6 = (cocos2d::CCArray *)v5;
m_pFrames = a1->m_pFrames;
if ( v5 != m_pFrames )
{
if ( v5 )
{
cocos2d::CCObject::retain(v5);
m_pFrames = a1->m_pFrames;
}
if ( m_pFrames )
cocos2d::CCObject::release(m_pFrames);
a1->m_pFrames = v6;
}
if ( v6 )
{
data = v6->data;
num = data->num;
if ( data->num )
{
arr = data->arr;
v11 = &arr[num - 1];
if ( arr <= v11 )
{
v12 = *arr;
if ( *arr )
{
m_fTotalDelayUnits = a1->m_fTotalDelayUnits;
do
{
++arr;
m_fTotalDelayUnits = m_fTotalDelayUnits + *(float *)&v12[1].m_uID;
a1->m_fTotalDelayUnits = m_fTotalDelayUnits;
if ( v11 < arr )
break;
v12 = *arr;
}
while ( *arr );
}
}
}
}
return 1;
}