//
// cocos2d::CCSprite::initWithFile from 0xd86158 to 0xd861bc (100 bytes)
//
// 84 xrefs:
// > CCSpriteWithHue::create @ 0x6dd4dc
// > CCSpriteGrayscale::create @ 0x6de204
// > ??> @ 0x64900
// > ??> @ 0x1413a00
// > ??> @ 0x1413fc0
// > ??> @ 0x1414d70
// > ??> @ 0x14175e0
// > ??> @ 0x1417b80
// > ??> @ 0x141b4a0
// > ??> @ 0x141bad0
// > ??> @ 0x141cf50
// > ??> @ 0x1421b80
// > ??> @ 0x1422130
// > ??> @ 0x1423af0
// > ??> @ 0x14240a0
// > ??> @ 0x1424670
// > ??> @ 0x1429050
// > ??> @ 0x14336c0
// > ??> @ 0x1433ec0
// > ??> @ 0x14344b0
// > ??> @ 0x1434c90
// > ??> @ 0x14354a0
// > ??> @ 0x143a430
// > ??> @ 0x1443800
// > ??> @ 0x1444010
// > ??> @ 0x1444820
// > ??> @ 0x1445030
// > ??> @ 0x1445840
// > ??> @ 0x1446050
// > ??> @ 0x1446860
// > ??> @ 0x1447070
// > ??> @ 0x1447850
// > ??> @ 0x1448060
// > ??> @ 0x1448870
// > ??> @ 0x1449080
// > ??> @ 0x1449890
// > ??> @ 0x144a0e0
// > ??> @ 0x144a8f0
// > ??> @ 0x144b100
// > ??> @ 0x144b910
// > ??> @ 0x144c120
// > ??> @ 0x144c940
// > ??> @ 0x144d150
// > ??> @ 0x144d960
// > ??> @ 0x144e170
// > ??> @ 0x144e980
// > ??> @ 0x144f190
// > ??> @ 0x144f9a0
// > ??> @ 0x14501b0
// > ??> @ 0x14509c0
// > ??> @ 0x14511d0
// > ??> @ 0x14519e0
// > ??> @ 0x14521f0
// > ??> @ 0x1452a00
// > ??> @ 0x1453210
// > ??> @ 0x1453a20
// > ??> @ 0x1454230
// > ??> @ 0x1454a40
// > ??> @ 0x1455250
// > ??> @ 0x1455a60
// > ??> @ 0x1456270
// > ??> @ 0x1456a80
// > ??> @ 0x1457290
// > ??> @ 0x1457aa0
// > ??> @ 0x14582b0
// > ??> @ 0x1458ac0
// > ??> @ 0x14592f0
// > ??> @ 0x145b1e0
// > ??> @ 0x145b780
// > ??> @ 0x1477870
// > ??> @ 0x1479920
// > ??> @ 0x1486d80
// > ??> @ 0x1487330
// > ??> @ 0x1491c60
// > ??> @ 0x14970a0
// > ??> @ 0x14995f0
// > ??> @ 0x14c1f20
// > ??> @ 0x14d9920
// > ??> @ 0x150cd40
// > ??> @ 0x1517c00
// > ??> @ 0x15181a0
// > ??> @ 0x1518d20
// > ??> @ 0x152e780
// > ??> @ 0x152ff80
//
// 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::CCSprite::initWithFile(cocos2d::CCSprite *this, const char *a2, const cocos2d::CCRect *a3)
{
cocos2d::CCTextureCache *v5; // x0
__int64 v6; // x1
v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(this);
v6 = cocos2d::CCTextureCache::addImage(v5, a2, 0);
if ( v6 )
return (*(unsigned __int8 (__fastcall **)(cocos2d::CCSprite *, __int64, const cocos2d::CCRect *))(*(_QWORD *)this + 1016LL))(
this,
v6,
a3);
else
return 0;
}