//
// cocos2d::CCLabelTTF::_updateWithTextDefinition from 0x5ce6e4 to 0x5ce78e (170 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::setTextDefinition @ 0x5ce798
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x5ce9cc
//
// 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
//
void cocos2d::CCLabelTTF::_updateWithTextDefinition(cocos2d::CCLabelTTF *a1, cocos2d::ccFontDefinition *a2, bool a3)
{
_BOOL4 v5; // r8
std::string *v6; // r7
int m_fontSize; // s15
_BOOL4 m_shadowEnabled; // r3
cocos2d::CCSize v9; // [sp+Ch] [bp+0h] BYREF
v5 = a3;
cocos2d::CCSize::CCSize(&v9, a2->m_dimensions.width, a2->m_dimensions.height);
cocos2d::CCSize::operator=(&a1->m_tDimensions, &v9.width);
a1->m_hAlignment = a2->m_alignment;
a1->m_vAlignment = a2->m_vertAlignment;
v6 = (std::string *)operator new(4u);
sub_775C20(v6);
m_fontSize = a2->m_fontSize;
m_shadowEnabled = a2->m_shadow.m_shadowEnabled;
a1->m_pFontName = v6;
a1->m_fFontSize = (float)m_fontSize;
if ( m_shadowEnabled )
cocos2d::CCLabelTTF::enableShadow(
a1,
&a2->m_shadow.m_shadowOffset,
a2->m_shadow.m_shadowOpacity,
a2->m_shadow.m_shadowBlur,
0);
if ( a2->m_stroke.m_strokeEnabled )
cocos2d::CCLabelTTF::enableStroke(a1, &a2->m_stroke.m_strokeColor, a2->m_stroke.m_strokeSize, 0);
cocos2d::CCLabelTTF::setFontFillColor(a1, &a2->m_fontFillColor, 0);
if ( v5 )
cocos2d::CCLabelTTF::updateTexture(a1);
}