//
// cocos2d::CCAnimate::reverse from 0x100220b60 to 0x100220c10 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fbc28
//
// This function is hookable on this platform (idp: arm, 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:01:08 +0000
//
void *__fastcall cocos2d::CCAnimate::reverse(__int64 a1)
{
__int64 v2; // x21
__int64 v3; // x0
__int64 v4; // x20
int v5; // w0
bool v6; // zf
unsigned int *v7; // x8
__int64 v8; // x9
unsigned __int64 v9; // x21
__int64 (__fastcall ****v10)(_QWORD, _QWORD); // x22
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // x0
v2 = *(_QWORD *)(*(_QWORD *)(a1 + 96) + 72LL);
v3 = sub_1002E757C(v2);
v4 = sub_1002E7510(v3);
v5 = sub_1002E757C(v2);
if ( v2 )
v6 = v5 == 0;
else
v6 = 1;
if ( !v6 )
{
v7 = *(unsigned int **)(v2 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((_QWORD *)v7 + 2);
v10 = (__int64 (__fastcall ****)(_QWORD, _QWORD))(v9 + 8 * v8 - 8);
do
{
if ( !*v10 )
break;
v11 = sub_10008EA20(*v10);
v12 = cocos2d::CCObject::autorelease(v11);
sub_1002E74E0(v4, v12);
--v10;
}
while ( (unsigned __int64)v10 >= v9 );
}
}
v13 = cocos2d::CCAnimation::create(
v4,
*(unsigned int *)(*(_QWORD *)(a1 + 96) + 84LL),
*(float *)(*(_QWORD *)(a1 + 96) + 60LL));
*(_BYTE *)(v13 + 80) = *(_BYTE *)(*(_QWORD *)(a1 + 96) + 80LL);
return cocos2d::CCAnimate::create(v13);
}