//
// cocos2d::CCLabelBMFont::getLetterPosXRight from 0x180048840 to 0x1800488f1 (177 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1944
//
// 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 __fastcall cocos2d::CCLabelBMFont::getLetterPosXRight(
cocos2d::CCLabelBMFont *this,
struct cocos2d::CCSprite *a2,
float a3,
char a4)
{
float v7; // xmm8_4
float *v8; // rax
float m_fScaleX; // xmm7_4
float v10; // xmm6_4
v7 = *(float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getContentSize)(a2);
if ( !a4 && v7 <= 0.0 )
v7 = a3 * 1.5;
v8 = (float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getAnchorPoint)(a2);
m_fScaleX = this->m_fScaleX;
v10 = *v8;
return (float)((float)(m_fScaleX * v7) * v10)
+ (float)(m_fScaleX * *(float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getPosition_0)(a2));
}