//
// sub_10031642C from 0x10031642c to 0x1003164b8 (140 bytes)
//
// 1 xrefs:
// > SelectFontLayer2::init @ 0x1003162d8
//
// 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 11:03:15 +0000
//
void __fastcall sub_10031642C(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x0
unsigned __int64 v4; // x9
unsigned __int8 v5; // w8
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
unsigned __int8 v8; // [xsp+1Fh] [xbp-11h]
if ( (*(_BYTE *)(a1 + 688) & 1) == 0 )
{
v2 = cocos2d::CCFileUtils::sharedFileUtils();
v3 = (*(_QWORD *(__fastcall **)(void **__return_ptr, __int64, const char *, _QWORD))(*(_QWORD *)v2 + 48LL))(
__p,
v2,
"GJ_FontSheet.png",
0);
v4 = v8;
v5 = v8;
if ( (v8 & 0x80u) != 0 )
v4 = (unsigned __int64)__p[1];
if ( v4 )
{
v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v6, "GJ_FontSheet.plist");
*(_BYTE *)(a1 + 688) = 1;
v5 = v8;
}
if ( (v5 & 0x80) != 0 )
operator delete(__p[0]);
}
}