//
// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0xd84914 to 0xd849a4 (144 bytes)
//
// 8 xrefs:
// > cocos2d::CCAnimationFrame::copyWithZone @ 0xd84a04
// > cocos2d::CCAnimationFrame::copyWithZone @ 0xd84a70
// > cocos2d::CCAnimationFrame::copyWithZone @ 0xd84a80
// > cocos2d::CCAnimation::initWithSpriteFrames @ 0xd84b3c
// > cocos2d::CCAnimation::addSpriteFrame @ 0xd84e58
// > cocos2d::CCAnimationCache::parseVersion1 @ 0xd85504
// > cocos2d::CCAnimationCache::parseVersion2 @ 0xd8582c
// > ??> @ 0xa9bd0
//
// 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 13:08:12 +0000
//
__int64 __fastcall cocos2d::CCAnimationFrame::initWithSpriteFrame(
__int64 a1,
cocos2d::CCObject *this,
cocos2d::CCObject *a3,
float a4)
{
cocos2d::CCObject *v6; // x0
cocos2d::CCObject *v9; // x0
v6 = *(cocos2d::CCObject **)(a1 + 56);
if ( this != v6 )
{
if ( this )
{
cocos2d::CCObject::retain((__int64)this);
v6 = *(cocos2d::CCObject **)(a1 + 56);
}
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 56) = this;
}
v9 = *(cocos2d::CCObject **)(a1 + 72);
*(float *)(a1 + 64) = a4;
if ( v9 != a3 )
{
if ( a3 )
{
cocos2d::CCObject::retain((__int64)a3);
v9 = *(cocos2d::CCObject **)(a1 + 72);
}
if ( v9 )
cocos2d::CCObject::release(v9);
*(_QWORD *)(a1 + 72) = a3;
}
return 1;
}