//
// LabelGameObject::updateLabelAlign from 0x4e8ac8 to 0x4e8b22 (90 bytes)
//
// 3 xrefs:
// > LabelGameObject::customObjectSetup @ 0x4e8bf2
// > LabelGameObject::createLabel @ 0x4f6030
// > SetItemIDLayer::valueDidChange @ 0x6235da
//
// 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 11:51:07 +0000
//
int __fastcall LabelGameObject::updateLabelAlign(int this, int a2)
{
int v2; // r5
int v3; // r2
int (__fastcall *v4)(int, _BYTE *); // r7
float v5; // r1
_BYTE v6[8]; // [sp+4h] [bp-10h] BYREF
int v7; // [sp+Ch] [bp-8h]
v2 = *(_DWORD *)(this + 1648);
v3 = _stack_chk_guard;
*(_DWORD *)(this + 1672) = a2;
v7 = v3;
if ( v2 )
{
v4 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v2 + 148);
if ( a2 == 1 )
{
v5 = 0.0;
}
else if ( a2 == 2 )
{
v5 = 1.0;
}
else
{
v5 = 0.5;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v6, v5, 0.5);
return v4(v2, v6);
}
return this;
}