//
// cocos2d::FNTConfigLoadFile from 0x5cc984 to 0x5cca16 (146 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelBMFont::setFntFile @ 0x5cd490
// > cocos2d::CCLabelBMFont::initWithString @ 0x5cdb92
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCBMFontConfiguration *cocos2d::FNTConfigLoadFile(const char *a1)
{
cocos2d::CCDictionary *v2; // r5
int v3; // r5
cocos2d::CCBMFontConfiguration *v4; // r5
int v5; // r9
const char *v7; // [sp+8h] [bp-Ch] BYREF
if ( !dword_AC8B6C )
{
v2 = (cocos2d::CCDictionary *)operator new(0x3Cu);
cocos2d::CCDictionary::CCDictionary(v2);
dword_AC8B6C = (int)v2;
}
v3 = dword_AC8B6C;
sub_776584((int)&v7, (char *)a1);
v4 = (cocos2d::CCBMFontConfiguration *)cocos2d::CCDictionary::objectForKey(v3, &v7);
sub_774008(&v7);
if ( !v4 )
{
v4 = cocos2d::CCBMFontConfiguration::create(a1);
if ( v4 )
{
v5 = dword_AC8B6C;
sub_776584((int)&v7, (char *)a1);
cocos2d::CCDictionary::setObject(v5, v4, &v7);
sub_774008(&v7);
}
}
return v4;
}