//
// cocos2d::CCLabelBMFont::getLetterPosXRight from 0xd55e6c to 0xd55f00 (148 bytes)
//
// 4 xrefs:
// > CCTextInputNode::updateCursorPosition @ 0x6c188c
// > CCTextInputNode::updateCursorPosition @ 0x6c1994
// > cocos2d::CCLabelBMFont::updateLabel @ 0xd57598
// > ??> @ 0x7d578
//
// This function is hookable on this platform (idp: arm, 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 13:07:43 +0000
//
float __fastcall cocos2d::CCLabelBMFont::getLetterPosXRight(
cocos2d::CCLabelBMFont *this,
cocos2d::CCSprite *a2,
long double a3)
{
float v5; // s8
float *v6; // x0
float v7; // s9
float v8; // s10
v5 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 328LL))(a2);
if ( v5 <= 0.0 )
v5 = *(float *)&a3 * 1.5;
v6 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *, long double))(*(_QWORD *)a2 + 192LL))(a2, a3);
v7 = *((float *)this + 16);
v8 = *v6;
return (float)((float)(v5 * v7)
* *(float *)(*(__int64 (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)a2 + 304LL))(a2))
+ (float)(v8 * v7);
}