//
// LabelGameObject::updateLabelAlign from 0x87a694 to 0x87a75c (200 bytes)
//
// 5 xrefs:
// > LabelGameObject::customObjectSetup @ 0x87a86c
// > LabelGameObject::customObjectSetup @ 0x87a934
// > LabelGameObject::createLabel @ 0x89a1dc
// > SetItemIDLayer::valueDidChange @ 0xa97d64
// > ??> @ 0x781f0
//
// 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 12:55:51 +0000
//
__int64 __fastcall LabelGameObject::updateLabelAlign(LabelGameObject *this, int a2)
{
__int64 *v2; // x20
float v3; // s0
__int64 v4; // x2
float v5; // s1
void (__fastcall *v6)(__int64 *, _BYTE *); // x21
_BYTE v8[8]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((__int64 **)this + 230);
*((_DWORD *)this + 471) = a2;
if ( v2 )
{
if ( a2 == 1 )
{
v4 = *v2;
v3 = 0.0;
v5 = 0.5;
}
else
{
if ( a2 == 2 )
{
v4 = *v2;
v3 = 1.0;
}
else
{
v3 = 0.5;
v4 = *v2;
}
v5 = 0.5;
}
v6 = *(void (__fastcall **)(__int64 *, _BYTE *))(v4 + 296);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v3, v5);
v6(v2, v8);
}
return _stack_chk_guard;
}