//
// cocos2d::CCAnimate::reverse from 0x1800360b0 to 0x1800361aa (250 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800eff98
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba8e8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:35 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCActionInterval *__fastcall cocos2d::CCAnimate::reverse(cocos2d::CCAnimate *this)
{
cocos2d::CCArray *v2; // rbx
unsigned int v3; // eax
cocos2d::CCArray *v4; // rsi
unsigned int *v5; // rdi
__int64 v6; // rax
unsigned __int64 v7; // rdi
cocos2d::CCObject **i; // rbx
cocos2d::CCObject *v9; // rax
struct cocos2d::CCObject *v10; // rax
struct cocos2d::CCAnimation *v11; // rdi
cocos2d::CCAnimate *v12; // rax
cocos2d::CCAnimate *v13; // rbx
v2 = *(cocos2d::CCArray **)(*((_QWORD *)this + 12) + 72LL);
v3 = cocos2d::CCArray::count(v2);
v4 = cocos2d::CCArray::createWithCapacity(v3);
if ( (unsigned int)cocos2d::CCArray::count(v2) )
{
if ( v2 )
{
v5 = *((unsigned int **)v2 + 7);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
for ( i = (cocos2d::CCObject **)(v7 + 8 * (v6 - 1)); (unsigned __int64)i >= v7; --i )
{
if ( !*i )
break;
v9 = cocos2d::CCObject::copy(*i);
v10 = cocos2d::CCObject::autorelease(v9);
cocos2d::CCArray::addObject(v4, v10);
}
}
}
}
v11 = cocos2d::CCAnimation::create(
v4,
*(float *)(*((_QWORD *)this + 12) + 60LL),
*(_DWORD *)(*((_QWORD *)this + 12) + 84LL));
*((_BYTE *)v11 + 80) = *(_BYTE *)(*((_QWORD *)this + 12) + 80LL);
v12 = (cocos2d::CCAnimate *)sub_1800E4AC0(0x88u);
if ( v12 )
v13 = cocos2d::CCAnimate::CCAnimate(v12);
else
v13 = nullptr;
cocos2d::CCAnimate::initWithAnimation(v13, v11);
cocos2d::CCObject::autorelease(v13);
return v13;
}