//
// cocos2d::CCLabelTTF::updateTexture from 0xd5ad64 to 0xd5ae80 (284 bytes)
//
// 13 xrefs:
// > cocos2d::CCLabelTTF::setString @ 0xd5aef8
// > cocos2d::CCLabelTTF::setHorizontalAlignment @ 0xd5af54
// > cocos2d::CCLabelTTF::setVerticalAlignment @ 0xd5af80
// > cocos2d::CCLabelTTF::setDimensions @ 0xd5afe8
// > cocos2d::CCLabelTTF::setFontSize @ 0xd5b014
// > cocos2d::CCLabelTTF::setFontName @ 0xd5b110
// > cocos2d::CCLabelTTF::enableShadow @ 0xd5b178
// > cocos2d::CCLabelTTF::disableShadow @ 0xd5b1b0
// > cocos2d::CCLabelTTF::enableStroke @ 0xd5b20c
// > cocos2d::CCLabelTTF::disableStroke @ 0xd5b254
// > cocos2d::CCLabelTTF::setFontFillColor @ 0xd5b284
// > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0xd5b378
// > ??> @ 0x8c0f8
//
// This function is hookable on this platform (idp: arm, 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 13:07:46 +0000
//
__int64 __fastcall cocos2d::CCLabelTTF::updateTexture(cocos2d::CCLabelTTF *this)
{
cocos2d::CCTexture2D *v2; // x23
char *v3; // x1
__int64 v5; // [xsp+50h] [xbp+50h] BYREF
_BYTE v6[8]; // [xsp+58h] [xbp+58h] BYREF
float v7; // [xsp+60h] [xbp+60h] BYREF
_BYTE v8[16]; // [xsp+68h] [xbp+68h] BYREF
void *v9; // [xsp+78h] [xbp+78h]
v2 = (cocos2d::CCTexture2D *)operator new(0x68u);
cocos2d::CCTexture2D::CCTexture2D(v2);
cocos2d::CCLabelTTF::_prepareTextDefinition(this, 1u, (__int64)v8);
v3 = (char *)this + 641;
if ( (*((_BYTE *)this + 640) & 1) != 0 )
v3 = *((char **)this + 82);
cocos2d::CCTexture2D::initWithString(v2, v3, v8);
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, cocos2d::CCTexture2D *))(*(_QWORD *)this + 1064LL))(this, v2);
cocos2d::CCObject::release(v2);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, (const cocos2d::CCRect *)&unk_15602B0);
(*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**((_QWORD **)this + 52) + 144LL))(
&v5,
*((_QWORD *)this + 52));
cocos2d::CCSize::operator=(&v7, (float *)&v5);
(*(void (__fastcall **)(cocos2d::CCLabelTTF *, _BYTE *))(*(_QWORD *)this + 1136LL))(this, v6);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
return 1;
}