//
// BitmapFontCache::fontWithConfigFile from 0x687464 to 0x6875f4 (400 bytes)
//
// 3 xrefs:
// > MultilineBitmapFont::initWithFont @ 0x6ac054
// > sub_6C2C04 @ 0x6c2fdc
// > ??> @ 0x67ee8
//
// 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 12:50:31 +0000
//
cocos2d::CCObject *__fastcall BitmapFontCache::fontWithConfigFile(BitmapFontCache *this, char *a2, float a3)
{
cocos2d::CCString *v6; // x0
char *CString; // x21
size_t v8; // x0
__int64 v9; // x23
const char *v10; // x1
__int64 v11; // x23
size_t v12; // x0
__int64 v13; // x22
cocos2d::CCObject *v14; // x23
size_t v16; // x0
__int64 v17; // x22
__int64 v18; // [xsp+50h] [xbp+50h] BYREF
__int64 v19; // [xsp+58h] [xbp+58h]
void *v20; // [xsp+60h] [xbp+60h]
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%f", a2, a3);
v18 = 0;
CString = (char *)cocos2d::CCString::getCString(v6);
v19 = 0;
v20 = nullptr;
v8 = strlen(CString);
v9 = *((_QWORD *)this + 7);
std::string::__init(&v18, CString, v8);
v11 = cocos2d::CCDictionary::objectForKey(v9, &v18);
if ( (v18 & 1) == 0 )
{
if ( v11 )
goto LABEL_3;
LABEL_6:
v14 = FontObject::createWithConfigFile((FontObject *)a2, v10, a3);
v18 = 0;
v19 = 0;
v20 = nullptr;
v16 = strlen(CString);
v17 = *((_QWORD *)this + 7);
std::string::__init(&v18, CString, v16);
cocos2d::CCDictionary::setObject(v17, v14);
if ( (v18 & 1) == 0 )
return v14;
LABEL_7:
operator delete(v20);
return v14;
}
operator delete(v20);
if ( !v11 )
goto LABEL_6;
LABEL_3:
v18 = 0;
v19 = 0;
v20 = nullptr;
v12 = strlen(CString);
v13 = *((_QWORD *)this + 7);
std::string::__init(&v18, CString, v12);
v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v13, &v18);
if ( (v18 & 1) != 0 )
goto LABEL_7;
return v14;
}