//
// GJBigSprite::unloadSprite from 0x97f42c to 0x97f488 (92 bytes)
//
// 4 xrefs:
// > GJBigSprite::unloadAll @ 0x97f524
// > GJBigSprite::finishedLoadingSpriteAsync @ 0x97f6ac
// > GJBigSprite::updateSpriteVisibility @ 0x97f9f4
// > ??> @ 0x9ed90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall GJBigSprite::unloadSprite(__int64 a1, const char **a2, int a3)
{
cocos2d::CCTextureCache *v4; // x0
__int64 v5; // x3
unsigned __int64 v6; // x1
__int64 result; // x0
v4 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v4, *a2);
v5 = *(_QWORD *)(a1 + 320);
v6 = (unsigned __int64)a3 >> 6;
result = *(_QWORD *)(v5 + 8 * v6);
*(_QWORD *)(v5 + 8 * v6) = result & ~(1LL << (a3 & 0x3F));
return result;
}