//
// cocos2d::CCBMFontConfiguration::create from 0x180049070 to 0x180049144 (212 bytes)
//
// 3 xrefs:
// > cocos2d::FNTConfigLoadFile @ 0x180048d8a
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbb00
//
// This function is hookable on this platform (idp: pc, 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:21:41 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCBMFontConfiguration *__fastcall cocos2d::CCBMFontConfiguration::create(const char *a1)
{
cocos2d::CCObject *v2; // rax
cocos2d::CCObject *v3; // rbx
__int64 v4; // rax
cocos2d::CCBMFontConfiguration *(__fastcall *v6)(cocos2d::CCBMFontConfiguration *, char); // r8
v2 = (cocos2d::CCObject *)sub_1800E4AC0(0x88u);
v3 = v2;
if ( v2 )
{
cocos2d::CCObject::CCObject(v2);
*(_QWORD *)v3 = &cocos2d::CCBMFontConfiguration::`vftable';
*((_QWORD *)v3 + 7) = 0;
*((_DWORD *)v3 + 16) = 0;
*(_OWORD *)((char *)v3 + 88) = 0;
*((_QWORD *)v3 + 13) = 0;
*((_QWORD *)v3 + 14) = 15;
*((_BYTE *)v3 + 88) = 0;
*((_QWORD *)v3 + 15) = 0;
*((_QWORD *)v3 + 16) = 0;
}
else
{
v3 = nullptr;
}
*((_QWORD *)v3 + 15) = 0;
*((_QWORD *)v3 + 7) = 0;
v4 = cocos2d::CCBMFontConfiguration::parseConfigFile(v3, a1);
*((_QWORD *)v3 + 16) = v4;
if ( v4 )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
v6 = *(cocos2d::CCBMFontConfiguration *(__fastcall **)(cocos2d::CCBMFontConfiguration *, char))(*(_QWORD *)v3 + 8LL);
if ( v6 == sub_180048A60 )
sub_180048A60(v3, 1);
else
v6(v3, 1);
return nullptr;
}
}