//
// SelectFontLayer2::dSelectFontLayer2 from 0x14058d8c0 to 0x14058d9bd (253 bytes)
//
// 3 xrefs:
// > sub_14058E334 @ 0x14058e33b
// > ??> @ 0x1407e3b68
// > ??> @ 0x14092cbf4
//
// 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 11:34:30 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall SelectFontLayer2::dSelectFontLayer2(_QWORD *Block, __int64 a2)
{
char v2; // di
cocos2d::CCSpriteFrameCache *v4; // rax
__int64 v5; // rcx
cocos2d::CCTextureCache *v6; // rax
v2 = a2;
*Block = &SelectFontLayer2::`vftable';
Block[40] = &SelectFontLayer2::`vftable';
Block[41] = &SelectFontLayer2::`vftable';
Block[42] = &SelectFontLayer2::`vftable';
Block[43] = &SelectFontLayer2::`vftable';
Block[44] = &SelectFontLayer2::`vftable';
Block[51] = &SelectFontLayer2::`vftable';
Block[54] = &SelectFontLayer2::`vftable';
Block[68] = &SelectFontLayer2::`vftable';
Block[83] = &SelectFontLayer2::`vftable';
if ( *((_BYTE *)Block + 688) )
{
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(Block, a2);
cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(v4, "GJ_FontSheet.plist");
v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v5);
cocos2d::CCTextureCache::removeTextureForKey(v6, "GJ_FontSheet.png");
*((_BYTE *)Block + 688) = 0;
}
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (v2 & 1) != 0 )
j_j_free(Block);
return Block;
}