//
// GJBigSprite::unloadSprite from 0xac23d4 to 0xac243c (104 bytes)
//
// 4 xrefs:
// > GJBigSprite::unloadAll @ 0xac3168
// > GJBigSprite::finishedLoadingSpriteAsync @ 0xac3310
// > GJBigSprite::updateSpriteVisibility @ 0xac35fc
// > ??> @ 0xec6b0
//
// 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:01:05 +0000
//
__int64 __fastcall GJBigSprite::unloadSprite(cocos2d::CCTextureCache *a1, __int64 a2, int a3)
{
cocos2d::CCTextureCache *v6; // x0
const char *v7; // x1
__int64 v8; // x3
unsigned __int64 v9; // x1
__int64 result; // x0
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(a1);
v7 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v7 = *(const char **)(a2 + 16);
cocos2d::CCTextureCache::removeTextureForKey(v6, v7);
v8 = *((_QWORD *)a1 + 40);
v9 = (unsigned __int64)a3 >> 6;
result = *(_QWORD *)(v8 + 8 * v9);
*(_QWORD *)(v8 + 8 * v9) = result & ~(1LL << (a3 & 0x3F));
return result;
}