//
// cocos2d::CCLabelTTF::_updateWithTextDefinition from 0x1003a6e60 to 0x1003a6f11 (177 bytes)
//
// 3 xrefs:
// > cocos2d::CCLabelTTF::createWithFontDefinition @ 0x1003a6d06
// > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x1003a6ddb
// > cocos2d::CCLabelTTF::setTextDefinition @ 0x1003a753f
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:29:22 +0000
//
void *__fastcall cocos2d::CCLabelTTF::_updateWithTextDefinition(__int64 a1, __int64 a2, char a3)
{
_QWORD *v4; // rax
_QWORD *v5; // r12
void *result; // rax
float v7[10]; // [rsp+8h] [rbp-28h] BYREF
sub_100278260(v7, *(float *)(a2 + 36), *(float *)(a2 + 40));
sub_100278660((_QWORD *)(a1 + 608), v7);
*(_QWORD *)(a1 + 616) = *(_QWORD *)(a2 + 28);
v4 = operator new(0x18u);
v5 = v4;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
result = sub_10001AD30(v4, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8));
}
else
{
result = *(void **)(a2 + 16);
v5[2] = result;
*(_OWORD *)v5 = *(_OWORD *)a2;
}
*(_QWORD *)(a1 + 624) = v5;
*(float *)(a1 + 632) = (float)*(int *)(a2 + 24);
if ( a3 )
return (void *)cocos2d::CCLabelTTF::updateTexture(a1);
return result;
}