//
// cocos2d::CCAnimate::reverse from 0x1003bcad0 to 0x1003bcb79 (169 bytes)
//
// 1 xrefs:
// > ??> @ 0x100929c38
//
// 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 *__fastcall cocos2d::CCAnimate::reverse(cocos2d::CCAnimate *a1)
{
std::__vector_base::pointer begin; // r15
unsigned int v2; // eax
cocos2d::CCArray *v3; // r14
int v4; // eax
unsigned int *v5; // rax
unsigned __int64 v6; // r15
_QWORD *v7; // r12
cocos2d::CCObject *v8; // rax
cocos2d::CCObject *v9; // rax
cocos2d::CCAnimation *v10; // rax
begin = a1->m_pSplitTimes[3].__begin_;
v2 = sub_100720070(begin);
v3 = (cocos2d::CCArray *)sub_10071FD00(v2);
v4 = sub_100720070(begin);
if ( begin )
{
if ( v4 )
{
v5 = *((unsigned int **)begin + 7);
if ( *v5 )
{
v6 = *((_QWORD *)v5 + 2);
v7 = (_QWORD *)(v6 + 8LL * *v5 - 8);
do
{
if ( !*v7 )
break;
v8 = (cocos2d::CCObject *)sub_10048AAA0();
v9 = cocos2d::CCObject::autorelease(v8);
sub_10071FCD0(v3, v9);
--v7;
}
while ( (unsigned __int64)v7 >= v6 );
}
}
}
v10 = cocos2d::CCAnimation::create(
v3,
*((float *)&a1->m_pSplitTimes[2].__end_ + 1),
HIDWORD(a1->m_pSplitTimes[3].__end_));
v10->m_bRestoreOriginalFrame = (bool)a1->m_pSplitTimes[3].__end_;
return cocos2d::CCAnimate::create(v10);
}