//
// cocos2d::CCBMFontConfiguration::create from 0x1002f8e48 to 0x1002f8ed0 (136 bytes)
//
// 1 xrefs:
// > cocos2d::FNTConfigLoadFile @ 0x1002f8dc8
//
// 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 *__fastcall cocos2d::CCBMFontConfiguration::create(const char *a1)
{
char *v2; // x19
std::set *v3; // x0
v2 = (char *)operator new(0x80u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = off_1007E9A88;
*((_DWORD *)v2 + 16) = 0;
*((_QWORD *)v2 + 7) = 0;
*(_OWORD *)(v2 + 88) = 0u;
*(_OWORD *)(v2 + 104) = 0u;
*((_QWORD *)v2 + 15) = 0;
v3 = cocos2d::CCBMFontConfiguration::parseConfigFile((cocos2d::CCBMFontConfiguration *)v2, a1);
*((_QWORD *)v2 + 15) = v3;
if ( v3 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCBMFontConfiguration *)v2;
}