//
// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x7efd2c to 0x7efd6c (64 bytes)
//
// 5 xrefs:
// > cocos2d::CCAnimationFrame::copyWithZone @ 0x7efdba
// > cocos2d::CCAnimation::initWithSpriteFrames @ 0x7efe36
// > cocos2d::CCAnimation::addSpriteFrame @ 0x7effc2
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x7f034e
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x7f0598
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:03 +0000
//
int __fastcall cocos2d::CCAnimationFrame::initWithSpriteFrame(
_DWORD *a1,
cocos2d::CCObject *this,
int a3,
cocos2d::CCObject *a4)
{
_DWORD *v8; // r0
cocos2d::CCObject *v9; // r3
_DWORD *v10; // r0
if ( (cocos2d::CCObject *)a1[13] != this )
{
if ( this )
cocos2d::CCObject::retain((int)this);
v8 = (_DWORD *)a1[13];
if ( v8 )
cocos2d::CCObject::release(v8);
a1[13] = this;
}
v9 = (cocos2d::CCObject *)a1[15];
a1[14] = a3;
if ( v9 != a4 )
{
if ( a4 )
cocos2d::CCObject::retain((int)a4);
v10 = (_DWORD *)a1[15];
if ( v10 )
cocos2d::CCObject::release(v10);
a1[15] = a4;
}
return 1;
}