//
// sub_100931770 from 0x100931770 to 0x10093184a (218 bytes)
//
// 3 xrefs:
// > sub_100931280 @ 0x100931321
// > ThreadViewPopup::textChanged @ 0x10093a052
// > sub_10093A0A0 @ 0x10093a0bd
//
// 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:38:24 +0000
//
void __fastcall sub_100931770(__int64 a1)
{
__int64 v1; // rsi
int v2; // eax
int v3; // r14d
void *v4; // rsi
__int64 v5; // rbx
char *v6; // rax
__int64 CString; // rax
void *v8[5]; // [rsp+8h] [rbp-28h] BYREF
if ( *(_QWORD *)(a1 + 1016) )
{
v1 = *(_QWORD *)(a1 + 928);
if ( v1 )
{
CCTextInputNode::getString(v8, v1);
v2 = EmoteSprite::maxEmotesMessage();
v3 = EmoteSprite::effectiveLength((unsigned __int8 *)v8, v2);
if ( ((__int64)v8[0] & 1) != 0 )
operator delete(v8[2]);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1016) + 344LL))(*(_QWORD *)(a1 + 1016), v3 >= 350);
v4 = &unk_100A14382;
if ( v3 >= 501 )
v4 = &unk_100A14323;
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1016) + 1072LL))(*(_QWORD *)(a1 + 1016), v4);
v5 = *(_QWORD *)(a1 + 1016);
v6 = sub_10088E820("%i", 500 - v3);
CString = cocos2d::CCString::getCString((__int64)v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 928LL))(v5, CString);
}
}
}