//
// InfoLayer::refreshUserTitle from 0x1403d2c40 to 0x1403d2d2d (237 bytes)
//
// 3 xrefs:
// > InfoLayer::init @ 0x1403ce112
// > InfoLayer::toggleModRoom @ 0x1403d2d49
// > ??> @ 0x1409247c4
//
// 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:31:35 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall InfoLayer::refreshUserTitle(__int64 a1)
{
__int64 v2; // rdx
char v3; // bl
const char *v4; // rdx
const char *v5; // r8
cocos2d::CCString *v6; // rax
const char *CString; // rbx
_QWORD v8[4]; // [rsp+28h] [rbp-30h] BYREF
if ( *(_QWORD *)(a1 + 896) )
{
v2 = *(_QWORD *)(a1 + 704);
if ( v2 )
{
v3 = *(_BYTE *)(a1 + 888);
sub_14003F4F0((__int64)v8, v2 + 320);
v4 = (const char *)v8;
if ( v8[3] > 0xFu )
v4 = (const char *)v8[0];
v5 = "comments";
if ( v3 )
v5 = "notes";
v6 = cocos2d::CCString::createWithFormat("%s's %s", v4, v5);
CString = cocos2d::CCString::getCString(v6);
sub_14003D310((__int64)v8);
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 896) + 360LL))(
*(_QWORD *)(a1 + 896) + 360LL,
CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 896), 180.0, 0.55000001, 0.0);
}
}
}