//
// TextStyleSection::create from 0x2f1040 to 0x2f1096 (86 bytes)
//
// 4 xrefs:
// > TextStyleSection::createColoredSection @ 0x2f10a6
// > TextStyleSection::createInstantSection @ 0x2f10cc
// > TextStyleSection::createShakeSection @ 0x2f10dc
// > TextStyleSection::createDelaySection @ 0x2f10f0
//
// 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)
{
TextStyleSection *v6; // r4
TextStyleSection_vtbl *v7; // r3
int *v8; // r0
v6 = (TextStyleSection *)operator new(0x54u);
cocos2d::CCObject::CCObject(v6);
v6->__vftable = (TextStyleSection_vtbl *)&off_A3FA00;
v6->m_styleType = 0;
v6->m_startIndex = 0;
v6->m_endIndex = 0;
if ( TextStyleSection::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v7 = v6->__vftable;
v8 = (int *)v6;
v6 = nullptr;
v7->~TextStyleSection_0((TextStyleSection *)v8);
}
return v6;
}