//
// LabelGameObject::updateLabelAlign from 0x7619e4 to 0x761aac (200 bytes)
//
// 5 xrefs:
// > LabelGameObject::customObjectSetup @ 0x761b64
// > LabelGameObject::customObjectSetup @ 0x761bf4
// > LabelGameObject::createLabel @ 0x761f64
// > SetItemIDLayer::valueDidChange @ 0x94b8cc
// > ??> @ 0x570c0
//
// 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)
{
cocos2d::CCLabelBMFont *m_label; // x20
float v3; // s0
cocos2d::CCLabelBMFont_vtbl *v4; // x2
float v5; // s1
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCPoint v7; // [xsp+40h] [xbp+40h] BYREF
m_label = a1->m_label;
a1->m_alignment = a2;
if ( m_label )
{
if ( a2 == 1 )
{
v4 = m_label->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v3 = 0.0;
v5 = 0.5;
}
else
{
if ( a2 == 2 )
{
v4 = m_label->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v3 = 1.0;
}
else
{
v3 = 0.5;
v4 = m_label->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
}
v5 = 0.5;
}
setAnchorPoint = v4->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v7, v3, v5);
setAnchorPoint(m_label, &v7);
}
}