//
// cocos2d::CCLabelTTF::enableShadow from 0xd5b114 to 0xd5b198 (132 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelTTF::_updateWithTextDefinition @ 0xd5b3d0
// > ??> @ 0x63700
//
// 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::enableShadow(
__int64 this,
const cocos2d::CCSize *a2,
float a3,
float a4,
char a5)
{
int v5; // w3
v5 = 0;
if ( !*(_BYTE *)(this + 664) )
{
v5 = 1;
*(_BYTE *)(this + 664) = 1;
}
if ( *(float *)(this + 668) != *(float *)a2 || *(float *)(this + 672) != *((float *)a2 + 1) )
{
*(_DWORD *)(this + 668) = *(_DWORD *)a2;
v5 = 1;
*(_DWORD *)(this + 672) = *((_DWORD *)a2 + 1);
}
if ( *(float *)(this + 676) != a3 )
{
v5 = 1;
*(float *)(this + 676) = a3;
}
if ( *(float *)(this + 680) == a4 )
{
if ( !v5 )
return this;
}
else
{
*(float *)(this + 680) = a4;
}
if ( a5 )
return cocos2d::CCLabelTTF::updateTexture((cocos2d::CCLabelTTF *)this);
return this;
}