//
// cocos2d::CCAnimation::addSpriteFrameWithFileName from 0xd84e8c to 0xd84f48 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x7f990
//
// 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::CCAnimation::addSpriteFrameWithFileName(cocos2d::CCArray **this, const char *a2)
{
cocos2d::CCTextureCache *v3; // x0
cocos2d::CCSpriteFrame *v4; // x22
const cocos2d::CCRect *v5; // x2
cocos2d::CCSpriteFrame *v6; // x0
__int64 v9; // [xsp+50h] [xbp+50h] BYREF
_BYTE v10[8]; // [xsp+58h] [xbp+58h] BYREF
float v11; // [xsp+60h] [xbp+60h] BYREF
v3 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(_stack_chk_guard);
v4 = (cocos2d::CCSpriteFrame *)cocos2d::CCTextureCache::addImage(v3, a2, 0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, (const cocos2d::CCRect *)&unk_1560A40);
(*(void (__fastcall **)(__int64 *__return_ptr, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 144LL))(&v9, v4);
cocos2d::CCSize::operator=(&v11, (float *)&v9);
v6 = (cocos2d::CCSpriteFrame *)cocos2d::CCSpriteFrame::createWithTexture(v4, (cocos2d::CCTexture2D *)v10, v5);
cocos2d::CCAnimation::addSpriteFrame(this, v6);
return _stack_chk_guard;
}