//
// cocos2d::CCAnimation::initWithAnimationFrames from 0x100239264 to 0x1002392e4 (128 bytes)
//
// 2 xrefs:
// > cocos2d::CCAnimation::create @ 0x10023922c
// > cocos2d::CCAnimation::copyWithZone @ 0x100239474
//
// 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:20 +0000
//
__int64 __fastcall cocos2d::CCAnimation::initWithAnimationFrames(__int64 a1, __int64 a2, int a3, float a4)
{
__int64 v5; // x0
__int64 v6; // x8
unsigned int *v7; // x8
__int64 v8; // x9
unsigned __int64 v9; // x8
unsigned __int64 v10; // x9
*(float *)(a1 + 60) = a4;
*(_DWORD *)(a1 + 84) = a3;
v5 = sub_1002E74E8(a2);
sub_1001E3D38(a1, v5);
v6 = *(_QWORD *)(a1 + 72);
if ( v6 )
{
v7 = *(unsigned int **)(v6 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((_QWORD *)v7 + 2);
v10 = v9 + 8 * v8 - 8;
do
{
if ( !*(_QWORD *)v9 )
break;
*(float *)(a1 + 56) = *(float *)(*(_QWORD *)v9 + 64LL) + *(float *)(a1 + 56);
v9 += 8LL;
}
while ( v9 <= v10 );
}
}
return 1;
}