//
// cocos2d::CCBMFontConfiguration::create from 0x1005d4e70 to 0x1005d4eec (124 bytes)
//
// 0 xrefs:
//
// 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 *v1; // rbx
std::set *v2; // rax
v1 = (char *)operator new(0x80u);
cocos2d::CCObject::CCObject((__int64)v1);
*(_QWORD *)v1 = off_100974060;
*((_DWORD *)v1 + 16) = 0;
*((_QWORD *)v1 + 7) = 0;
*(_OWORD *)(v1 + 88) = 0;
*(_OWORD *)(v1 + 104) = 0;
*((_QWORD *)v1 + 15) = 0;
v2 = cocos2d::CCBMFontConfiguration::parseConfigFile((cocos2d::CCBMFontConfiguration *)v1, a1);
*((_QWORD *)v1 + 15) = v2;
if ( v2 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (cocos2d::CCBMFontConfiguration *)v1;
}