//
// cocos2d::CCLabelTTF::createWithFontDefinition from 0x18004df60 to 0x18004dfe7 (135 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1c44
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLabelTTF *__fastcall cocos2d::CCLabelTTF::createWithFontDefinition(
const char *a1,
struct cocos2d::_ccFontDefinition *a2)
{
cocos2d::CCLabelTTF *v4; // rax
cocos2d::CCLabelTTF *v5; // rbx
v4 = (cocos2d::CCLabelTTF *)operator new(0x2C0u);
if ( v4 )
v5 = cocos2d::CCLabelTTF::CCLabelTTF(v4);
else
v5 = nullptr;
if ( v5 )
{
if ( cocos2d::CCLabelTTF::initWithStringAndTextDefinition(v5, a1, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
((void (__fastcall *)(cocos2d::CCLabelTTF *, __int64))v5->~CCLabelTTF)(v5, 1);
}
return nullptr;
}