//
// GJBigSprite::unloadSprite from 0x1002542e0 to 0x10025433b (91 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:27:25 +0000
//
__int64 __fastcall GJBigSprite::unloadSprite(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // rax
__int64 v5; // r15
__int64 result; // rax
v4 = cocos2d::CCTextureCache::sharedTextureCache(a1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(_QWORD *)(a2 + 16);
else
v5 = a2 + 1;
cocos2d::CCTextureCache::removeTextureForKey(v4, v5);
result = *(_QWORD *)(a1 + 320);
*(_QWORD *)(result + 8 * ((unsigned __int64)a3 >> 6)) &= __ROL8__(-2, a3);
return result;
}