//
// TextStyleSection::create from 0x58a038 to 0x58a0f4 (188 bytes)
//
// 5 xrefs:
// > TextStyleSection::createColoredSection @ 0x58a10c
// > TextStyleSection::createInstantSection @ 0x58a140
// > TextStyleSection::createShakeSection @ 0x58a16c
// > TextStyleSection::createDelaySection @ 0x58a19c
// > ??> @ 0x341e8
//
// 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
//
TextStyleSection *TextStyleSection::create(int a1, int a2, TextStyleType a3)
{
__int64 v6; // x19
v6 = operator new(0x58u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v6);
*(_DWORD *)(v6 + 56) = 0;
*(_DWORD *)(v6 + 60) = 0;
*(_QWORD *)v6 = &off_113D140;
*(_DWORD *)(v6 + 64) = 0;
if ( TextStyleSection::init((TextStyleSection *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (TextStyleSection *)v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
}