//
// GJBigSprite::unloadSprite from 0x63f63c to 0x63f672 (54 bytes)
//
// 3 xrefs:
// > GJBigSprite::unloadAll @ 0x640086
// > GJBigSprite::finishedLoadingSpriteAsync @ 0x640152
// > GJBigSprite::updateSpriteVisibility @ 0x64036c
//
// 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 11:55:27 +0000
//
int __fastcall GJBigSprite::unloadSprite(cocos2d::CCTextureCache *a1, int a2, unsigned int a3)
{
cocos2d::CCTextureCache *v6; // r0
const char *v7; // r1
int result; // r0
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(a1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v7 = *(const char **)(a2 + 8);
else
v7 = (const char *)(a2 + 1);
result = cocos2d::CCTextureCache::removeTextureForKey(v6, v7);
*(_DWORD *)(*((_DWORD *)a1 + 66) + 4 * (a3 >> 5)) &= ~(1 << (a3 & 0x1F));
return result;
}