//
// cocos2d::CCLabelBMFont::getLetterPosXRight from 0x180049e80 to 0x180049f15 (149 bytes)
//
// 3 xrefs:
// > cocos2d::CCLabelBMFont::updateLabel @ 0x18004ed23
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bbb84
//
// This function is hookable on this platform (idp: pc, 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 11:21:42 +0000
//
float __fastcall cocos2d::CCLabelBMFont::getLetterPosXRight(
cocos2d::CCLabelBMFont *this,
struct cocos2d::CCSprite *a2,
float a3)
{
float v5; // xmm6_4
float *v6; // rbx
v5 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2);
if ( v5 <= 0.0 )
v5 = a3 * 1.5;
v6 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 200LL))(a2);
return (float)((float)(*((float *)this + 16) * v5)
* *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 296LL))(a2))
+ (float)(*((float *)this + 16) * *v6);
}