//
// cocos2d::CCAnimationFrame::initWithSpriteFrame from 0x100280b50 to 0x100280bd5 (133 bytes)
//
// 2 xrefs:
// > cocos2d::CCAnimationCache::parseVersion1 @ 0x100461a8f
// > cocos2d::CCAnimationCache::parseVersion2 @ 0x100461d63
//
// 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:27:43 +0000
//
char __fastcall cocos2d::CCAnimationFrame::initWithSpriteFrame(__int64 a1, __int64 a2, __int64 a3, float a4)
{
__int64 v6; // rdi
__int64 v7; // rdi
v6 = *(_QWORD *)(a1 + 56);
if ( v6 != a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v6 = *(_QWORD *)(a1 + 56);
}
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 56) = a2;
}
*(float *)(a1 + 64) = a4;
v7 = *(_QWORD *)(a1 + 72);
if ( v7 != a3 )
{
if ( a3 )
{
cocos2d::CCObject::retain(a3);
v7 = *(_QWORD *)(a1 + 72);
}
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)(a1 + 72) = a3;
}
return 1;
}