//
// sub_100995AA0 from 0x100995aa0 to 0x100995b8c (236 bytes)
//
// 2 xrefs:
// > sub_100969480 @ 0x100969d9c
// > sub_100998310 @ 0x1009999ac
//
// 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:39:10 +0000
//
void *__fastcall sub_100995AA0(char *a1, __int64 a2, float a3)
{
char v4; // al
const char *v5; // rdi
const char *v6; // rsi
const char *v7; // rdx
char *v8; // rax
__int64 CString; // rax
void *v10; // rbx
float v12; // [rsp+0h] [rbp-20h] BYREF
float v13; // [rsp+8h] [rbp-18h]
__int16 v14; // [rsp+Ch] [rbp-14h] BYREF
char v15; // [rsp+Eh] [rbp-12h]
v13 = a3;
v4 = *a1;
if ( (*a1 & 1) != 0 )
{
if ( *((_QWORD *)a1 + 1) )
{
v6 = *((const char **)a1 + 2);
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_8;
}
else
{
v6 = "?";
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_8;
}
LABEL_10:
v7 = (const char *)(a2 + 1);
goto LABEL_11;
}
v5 = a1 + 1;
v6 = "?";
if ( v4 )
v6 = v5;
if ( (*(_BYTE *)a2 & 1) == 0 )
goto LABEL_10;
LABEL_8:
v7 = *(const char **)(a2 + 16);
LABEL_11:
v8 = sub_10088E820("Viewed by %s %s ago", v6, v7);
CString = cocos2d::CCString::getCString((__int64)v8);
v10 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"chatFont.fnt");
sub_100278250(&v12, 1.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v10 + 296LL))(v10, &v12);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v10, 150.0, (__m128)LODWORD(v13), (__m128)0x3E4CCCCDu);
v15 = -1;
v14 = -9066;
(*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v10 + 1072LL))(v10, &v14);
return v10;
}