//
// cocos2d::CCLabelTTF::_updateWithTextDefinition from 0x7d676c to 0x7d6832 (198 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::setTextDefinition @ 0x7d683c
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x7d6b58
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:39 +0000
//
cocos2d::CCLabelTTF *__fastcall cocos2d::CCLabelTTF::_updateWithTextDefinition(
cocos2d::CCLabelTTF *this,
cocos2d::_ccFontDefinition *a2,
int a3)
{
int *v6; // r0
int *v7; // r6
int v8; // r1
int v9; // r2
cocos2d::CCLabelTTF *result; // r0
float v11[2]; // [sp+Ch] [bp-Ch] BYREF
cocos2d::CCSize::CCSize(v11, *((float *)a2 + 6), *((float *)a2 + 7));
cocos2d::CCSize::operator=((float *)this + 128, v11);
*((_DWORD *)this + 130) = *((_DWORD *)a2 + 4);
*((_DWORD *)this + 131) = *((_DWORD *)a2 + 5);
v6 = (int *)operator new(0xCu);
*v6 = 0;
v7 = v6;
v6[1] = 0;
v6[2] = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
std::string::__init(v6, *((const void **)a2 + 2), *((_DWORD *)a2 + 1));
}
else
{
v8 = *((_DWORD *)a2 + 1);
v9 = *((_DWORD *)a2 + 2);
*v6 = *(_DWORD *)a2;
v6[1] = v8;
v6[2] = v9;
}
*((_DWORD *)this + 132) = v7;
*((float *)this + 133) = (float)*((int *)a2 + 3);
if ( *((_BYTE *)a2 + 36) )
cocos2d::CCLabelTTF::enableShadow(
(int)this,
(cocos2d::_ccFontDefinition *)((char *)a2 + 40),
*((float *)a2 + 13),
*((float *)a2 + 12),
0);
if ( *((_BYTE *)a2 + 56) )
cocos2d::CCLabelTTF::enableStroke(this, (unsigned __int8 *)a2 + 57, *((float *)a2 + 15), 0);
result = cocos2d::CCLabelTTF::setFontFillColor(this, (unsigned __int8 *)a2 + 32, 0);
if ( a3 )
return (cocos2d::CCLabelTTF *)cocos2d::CCLabelTTF::updateTexture(this);
return result;
}