//
// cocos2d::CCBMFontConfiguration::dCCBMFontConfiguration from 0x1006a7610 to 0x1006a7697 (135 bytes)
//
// 2 xrefs:
// > sub_1006A7940 @ 0x1006a7945
// > sub_1006A7950 @ 0x1006a7959
//
// 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 12:35:20 +0000
//
__int64 *__fastcall cocos2d::CCBMFontConfiguration::dCCBMFontConfiguration(__int64 a1)
{
_QWORD **v1; // r14
*(_QWORD *)a1 = off_100B86BE0;
cocos2d::CCBMFontConfiguration::purgeFontDefDictionary();
cocos2d::CCBMFontConfiguration::purgeKerningDictionary(a1);
if ( (*(_BYTE *)(a1 + 88) & 1) != 0 )
{
**(_BYTE **)(a1 + 104) = 0;
*(_QWORD *)(a1 + 96) = 0;
v1 = *(_QWORD ***)(a1 + 120);
if ( !v1 )
goto LABEL_6;
goto LABEL_5;
}
*(_WORD *)(a1 + 88) = 0;
v1 = *(_QWORD ***)(a1 + 120);
if ( v1 )
{
LABEL_5:
sub_10001ADF0((__int64)v1, v1[1]);
operator delete(v1);
*(_QWORD *)(a1 + 120) = 0;
}
LABEL_6:
if ( (*(_BYTE *)(a1 + 88) & 1) != 0 )
operator delete(*(void **)(a1 + 104));
return sub_10047FF60(a1);
}