//
// LabelGameObject::updateLabelAlign from 0x1404b37f0 to 0x1404b386d (125 bytes)
//
// 6 xrefs:
// > SetItemIDLayer::valueDidChange @ 0x140401ae0
// > LabelGameObject::createLabel @ 0x1404b3694
// > LabelGameObject::customObjectSetup @ 0x1404b3bfd
// > ??> @ 0x1406a8584
// > ??> @ 0x1406a8594
// > ??> @ 0x1406dcac4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void LabelGameObject::updateLabelAlign(LabelGameObject *a1, int a2)
{
float v2; // xmm0_4
cocos2d::CCLabelBMFont *m_label; // rax
cocos2d::CCLabelBMFont_vtbl *v5; // rbx
float v6; // xmm1_4
const cocos2d::CCPoint *v7; // rax
m_label = a1->m_label;
a1->m_alignment = a2;
if ( m_label )
{
v5 = m_label->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a2 == 1 )
{
v6 = 0.0;
}
else if ( a2 == 2 )
{
v6 = 1.0;
}
else
{
v6 = 0.5;
}
cocos2d::CCPoint::CCPoint(v2, v6);
v5->setAnchorPoint(a1->m_label, v7);
}
}