//
// cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x18008c9d0 to 0x18008ca4c (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bfc7c
//
// 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 11:22:06 +0000
//
void __fastcall cocos2d::CCAnimation::addSpriteFrameWithFileName(cocos2d::CCArray **this, const char *a2)
{
cocos2d::CCTextureCache *v4; // rax
struct cocos2d::CCTexture2D *v5; // rbx
_DWORD *v6; // rax
struct cocos2d::CCSpriteFrame *v7; // rax
_BYTE v8[8]; // [rsp+20h] [rbp-18h] BYREF
_DWORD v9[4]; // [rsp+28h] [rbp-10h] BYREF
char v10; // [rsp+50h] [rbp+18h] BYREF
v4 = cocos2d::CCTextureCache::sharedTextureCache();
v5 = cocos2d::CCTextureCache::addImage(v4, a2, 0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v8, (const struct cocos2d::CCRect *)&unk_1801B2818);
v6 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *, char *))(*(_QWORD *)v5 + 136LL))(v5, &v10);
cocos2d::CCSize::operator=(v9, v6);
v7 = cocos2d::CCSpriteFrame::createWithTexture(v5, (const struct cocos2d::CCRect *)v8);
cocos2d::CCAnimation::addSpriteFrame(this, v7);
}