//
// sub_140191790 from 0x140191790 to 0x1401918a6 (278 bytes)
//
// 3 xrefs:
// > sub_1401918B0 @ 0x14019190d
// > sub_1401918B0 @ 0x140191963
// > ??> @ 0x14091931c
//
// 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:27:43 +0000
//
__int64 __fastcall sub_140191790(__int64 a1, const char *a2, float a3, float a4)
{
struct cocos2d::CCLabelBMFont *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
void (__fastcall **v8)(char *, __int16 *); // rax
__int64 v9; // rdx
__int64 v10; // rbx
__int64 v11; // rax
char v13; // [rsp+50h] [rbp+8h] BYREF
__int16 v14; // [rsp+60h] [rbp+18h] BYREF
char v15; // [rsp+62h] [rbp+1Ah]
v5 = cocos2d::CCLabelBMFont::create(a2, "chatFont.fnt");
v6 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v6 + 288))(v5, v7);
v8 = *((void (__fastcall ***)(char *, __int16 *))v5 + 46);
v14 = 0;
v15 = 0;
(*v8)((char *)v5 + 368, &v14);
LOBYTE(v9) = -81;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v5 + 46) + 40LL))((__int64)v5 + 368, v9);
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 90.0, 0.60000002, 0.0);
v10 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (float)(*(float *)(*(_QWORD *)a1 + 528LL) - a3) - 21.0, a4);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v10 + 184))(v5, v11);
return (*(__int64 (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(*(_QWORD *)a1 + 544LL)
+ 464LL))(
*(_QWORD *)(*(_QWORD *)a1 + 544LL),
v5);
}