//
// cocos2d::CCSprite::initWithFile from 0x7f0a48 to 0x7f0a72 (42 bytes)
//
// 1 xrefs:
// > CCSpriteGrayscale::create @ 0x3f2d68
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:04 +0000
//
int __fastcall cocos2d::CCSprite::initWithFile(cocos2d::CCSprite *this, const char *a2, const cocos2d::CCRect *a3)
{
cocos2d::CCTextureCache *v6; // r0
int result; // r0
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(this);
result = cocos2d::CCTextureCache::addImage(v6, a2, 0);
if ( result )
return (*(int (__fastcall **)(cocos2d::CCSprite *, int, const cocos2d::CCRect *))(*(_DWORD *)this + 508))(
this,
result,
a3);
return result;
}