//
// SelectFontLayer2::unloadPreviewSheet from 0xd036f0 to 0xd03738 (72 bytes)
//
// 2 xrefs:
// > SelectFontLayer2::~SelectFontLayer2 @ 0xd037a0
// > ??> @ 0xcee00
//
// 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:06:55 +0000
//
_BYTE *__fastcall SelectFontLayer2::unloadPreviewSheet(_BYTE *this)
{
_BYTE *v1; // x19
cocos2d::CCSpriteFrameCache *v2; // x0
cocos2d::CCTextureCache *v3; // x0
cocos2d::CCTextureCache *v4; // x0
if ( *(this + 688) )
{
v1 = this;
v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)this);
v3 = (cocos2d::CCTextureCache *)cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v2, "GJ_FontSheet.plist");
v4 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v3);
this = (_BYTE *)cocos2d::CCTextureCache::removeTextureForKey(v4, "GJ_FontSheet.png");
v1[688] = 0;
}
return this;
}