//
// cocos2d::CCAnimate::reverse from 0xac4888 to 0xac4948 (192 bytes)
//
// 2 xrefs:
// > ??> @ 0x632b8
// > ??> @ 0x11fee70
//
// 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_start; // x19
cocos2d::CCArray *v3; // x0
unsigned int v4; // w1
cocos2d::CCArray *v5; // x21
cocos2d::ccArray *data; // x1
unsigned __int64 arr; // x22
__int64 v8; // x0
cocos2d::CCObject **v9; // x19
cocos2d::CCObject *v10; // x0
cocos2d::CCObject *v11; // x0
cocos2d::CCObject *v12; // x0
cocos2d::CCAnimation *v13; // x0
m_start = (cocos2d::CCArray *)a1->m_pSplitTimes[3].m_start;
v3 = (cocos2d::CCArray *)cocos2d::CCArray::count(m_start);
v5 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v3, v4);
if ( (unsigned int)cocos2d::CCArray::count(m_start) )
{
if ( m_start )
{
data = m_start->data;
if ( data->num )
{
arr = (unsigned __int64)data->arr;
v8 = 8LL * data->num - 8;
v9 = (cocos2d::CCObject **)(arr + v8);
if ( arr <= arr + v8 )
{
v10 = *(cocos2d::CCObject **)(arr + v8);
if ( v10 )
{
do
{
v11 = (cocos2d::CCObject *)cocos2d::CCObject::copy(v10);
--v9;
v12 = cocos2d::CCObject::autorelease(v11);
cocos2d::CCArray::addObject(v5, v12);
if ( arr > (unsigned __int64)v9 )
break;
v10 = *v9;
}
while ( *v9 );
}
}
}
}
}
v13 = cocos2d::CCAnimation::create();
v13->m_bRestoreOriginalFrame = (bool)a1->m_pSplitTimes[3].m_finish;
return cocos2d::CCAnimate::create(v13);
}