//
// sub_1002AF580 from 0x1002af580 to 0x1002af5f8 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b0e508
//
// 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 12:28:00 +0000
//
__int64 __fastcall sub_1002AF580(__int64 a1, __int64 a2, int a3)
{
int v3; // esi
__int64 v4; // r14
__int64 v5; // rax
__int64 CString; // rax
char v8; // [rsp+0h] [rbp-10h]
if ( a3 <= 0 )
a3 = 0;
v3 = 999;
if ( a3 < 999 )
v3 = a3;
*(_DWORD *)(*(_QWORD *)(a1 + 40) + 916LL) = v3;
v4 = *(_QWORD *)(a1 + 136);
v5 = sub_10088E820("%i", v8);
CString = cocos2d::CCString::getCString(v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 928LL))(v4, CString);
return cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 136), 24.0, 0.55000001, 0.0);
}