//
// cocos2d::CCAnimate::reverse from 0x1003a5ed0 to 0x1003a5f79 (169 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b323f0
//
// 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 12:29:21 +0000
//
char *__fastcall cocos2d::CCAnimate::reverse(__int64 a1)
{
__int64 v1; // r15
unsigned int v2; // eax
__int64 v3; // r14
int v4; // eax
unsigned int *v5; // rax
unsigned __int64 v6; // r15
_QWORD *v7; // r12
__int64 v8; // rax
__int64 v9; // rax
_DWORD *v10; // rax
v1 = *(_QWORD *)(*(_QWORD *)(a1 + 96) + 72LL);
v2 = sub_1007FEF90(v1);
v3 = sub_1007FEC20(v2);
v4 = sub_1007FEF90(v1);
if ( v1 )
{
if ( v4 )
{
v5 = *(unsigned int **)(v1 + 56);
if ( *v5 )
{
v6 = *((_QWORD *)v5 + 2);
v7 = (_QWORD *)(v6 + 8LL * *v5 - 8);
do
{
if ( !*v7 )
break;
v8 = sub_1004800C0(*v7);
v9 = cocos2d::CCObject::autorelease(v8);
sub_1007FEBF0(v3, v9);
--v7;
}
while ( (unsigned __int64)v7 >= v6 );
}
}
}
v10 = cocos2d::CCAnimation::create(
v3,
*(_DWORD *)(*(_QWORD *)(a1 + 96) + 84LL),
*(float *)(*(_QWORD *)(a1 + 96) + 60LL));
*((_BYTE *)v10 + 80) = *(_BYTE *)(*(_QWORD *)(a1 + 96) + 80LL);
return cocos2d::CCAnimate::create((__int64)v10);
}