//
// cocos2d::CCAnimate::reverse from 0x5b91b6 to 0x5b9226 (112 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::CCActionInterval *cocos2d::CCAnimate::reverse(cocos2d::CCAnimate *a1)
{
cocos2d::CCArray *m_finish; // r4
cocos2d::CCArray *v3; // r0
unsigned int v4; // r1
cocos2d::CCArray *v5; // r6
cocos2d::CCAnimation *v6; // r0
cocos2d::ccArray *data; // r3
unsigned int arr; // r7
cocos2d::CCObject **v10; // r4
cocos2d::CCObject *v11; // r0
cocos2d::CCObject *v12; // t1
cocos2d::CCObject *v13; // r0
cocos2d::CCObject *v14; // r0
m_finish = (cocos2d::CCArray *)a1->m_pSplitTimes[5].m_finish;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(m_finish);
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v3, v4);
if ( cocos2d::CCArray::count(m_finish) )
{
if ( m_finish )
{
data = m_finish->data;
if ( data->num )
{
arr = (unsigned int)data->arr;
v10 = (cocos2d::CCObject **)(arr + 4 * (data->num + 0x3FFFFFFF));
while ( (unsigned int)v10 >= arr )
{
v12 = *v10--;
v11 = v12;
if ( !v12 )
break;
v13 = (cocos2d::CCObject *)cocos2d::CCObject::copy(v11);
v14 = cocos2d::CCObject::autorelease(v13);
cocos2d::CCArray::addObject(v5, v14);
}
}
}
}
v6 = cocos2d::CCAnimation::create();
v6->m_bRestoreOriginalFrame = (bool)a1->m_pSplitTimes[5].m_reserveEnd;
return cocos2d::CCAnimate::create(v6);
}