//
// cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x100281510 to 0x10028158f (127 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall cocos2d::CCAnimation::addSpriteFrameWithFileName(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // r14
__int64 v4; // rax
__m128 v6; // [rsp+8h] [rbp-38h] BYREF
_QWORD v7[5]; // [rsp+18h] [rbp-28h] BYREF
v2 = cocos2d::CCTextureCache::sharedTextureCache(a1);
v3 = cocos2d::CCTextureCache::addImage(v2, a2, 0);
sub_1002787F0(&v6, (unsigned __int64 *)&unk_100BE2480);
(*(void (__fastcall **)(_QWORD *, __int64))(*(_QWORD *)v3 + 144LL))(v7, v3);
sub_100278660(&v6.i64[1], v7);
v4 = cocos2d::CCSpriteFrame::createWithTexture_1(v3, &v6);
return cocos2d::CCAnimation::addSpriteFrame(a1, v4);
}