//
// cocos2d::CCLabelBMFont::getLetterPosXLeft from 0x5ccbfc to 0x5ccc62 (102 bytes)
//
// 3 xrefs:
// > CCTextInputNode::updateBlinkLabelToChar @ 0x2fa72e
// > CCTextInputNode::updateCursorPosition @ 0x2fb474
// > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd84c
//
// 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
//
float cocos2d::CCLabelBMFont::getLetterPosXLeft(cocos2d::CCLabelBMFont *a1, cocos2d::CCSprite *a2, float a3, bool a4)
{
_BOOL4 v4; // r6
float width; // s16
const cocos2d::CCPoint *v9; // r0
float m_fScaleX; // s15
float v11; // s17
v4 = a4;
width = a2->getContentSize(a2)->width;
if ( v4 && width <= 0.0 )
width = a3 * 1.5;
v9 = a2->getPosition(a2);
m_fScaleX = a1->m_fScaleX;
v11 = m_fScaleX * v9->x;
return v11 - (float)((float)(width * m_fScaleX) * a2->getAnchorPoint(a2)->x);
}