//
// GJBigSprite::unloadSprite from 0x50ec88 to 0x50ecd4 (76 bytes)
//
// 3 xrefs:
// > GJBigSprite::unloadAll @ 0x50ed34
// > GJBigSprite::finishedLoadingSpriteAsync @ 0x50edf4
// > GJBigSprite::updateSpriteVisibility @ 0x50f00c
//
// 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
//
int __fastcall GJBigSprite::unloadSprite(int a1, const char **a2, unsigned int a3)
{
cocos2d::CCTextureCache *v6; // r0
_DWORD v8[2]; // [sp+4h] [bp-10h] BYREF
v6 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v6, *a2);
v8[0] = *(_DWORD *)(a1 + 264) + 4 * (a3 >> 5);
v8[1] = 1 << (a3 & 0x1F);
return std::_Bit_reference::operator=((int)v8, 0);
}