//
// cocos2d::CCLabelBMFont::getLetterPosXRight from 0x7d31e4 to 0x7d3246 (98 bytes)
//
// 3 xrefs:
// > CCTextInputNode::updateCursorPosition @ 0x3e22b0
// > CCTextInputNode::updateCursorPosition @ 0x3e238a
// > cocos2d::CCLabelBMFont::updateLabel @ 0x7d4066
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:36 +0000
//
float __fastcall cocos2d::CCLabelBMFont::getLetterPosXRight(
cocos2d::CCLabelBMFont *this,
cocos2d::CCSprite *a2,
float a3)
{
float v6; // s16
float *v7; // r0
float v8; // s15
float v9; // s17
v6 = *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 164))(a2);
if ( v6 <= 0.0 )
v6 = a3 * 1.5;
v7 = (float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 96))(a2);
v8 = *((float *)this + 15);
v9 = v8 * *v7;
return v9
+ (float)((float)(v6 * v8) * *(float *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)a2 + 152))(a2));
}