//
// cocos2d::CCLabelTTF::setHorizontalAlignment from 0xd5af2c to 0xd5af58 (44 bytes)
//
// 1 xrefs:
// > ??> @ 0xcf748
//
// 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::setHorizontalAlignment(__int64 result, int a2)
{
unsigned __int8 v2; // w2
__int64 v3; // x1
if ( *(_DWORD *)(result + 616) != a2 )
{
v2 = *(_BYTE *)(result + 640);
*(_DWORD *)(result + 616) = a2;
v3 = v2 >> 1;
if ( (v2 & 1) != 0 )
v3 = *(_QWORD *)(result + 648);
if ( v3 )
return cocos2d::CCLabelTTF::updateTexture((cocos2d::CCLabelTTF *)result);
}
return result;
}