//
// NewThreadPopup::textChanged from 0x10050b880 to 0x10050b950 (208 bytes)
//
// 2 xrefs:
// > sub_10050B970 @ 0x10050b974
// > ??> @ 0x100998a50
//
// This function is hookable on this platform (idp: arm, 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:06:59 +0000
//
void __fastcall NewThreadPopup::textChanged(__int64 a1, __int64 a2)
{
__int64 v3; // x20
int v4; // w1
__int64 v5; // x19
__int64 v6; // x0
__int64 v7; // x0
int v8; // w3
std::string __p; // [xsp+8h] [xbp-28h] BYREF
if ( *(_QWORD *)(a1 + 880) == a2 )
{
v5 = *(_QWORD *)(a1 + 864);
CCTextInputNode::getString(a2, &__p);
v6 = EmoteSprite::characterCount((__int64)&__p);
sub_10050A488(v6, v5, v6, 20);
}
else
{
if ( *(_QWORD *)(a1 + 888) != a2 )
return;
v3 = *(_QWORD *)(a1 + 872);
CCTextInputNode::getString(a2, &__p);
if ( *(_BYTE *)(a1 + 737) == 1 )
v4 = EmoteSprite::maxEmotesMessage();
else
v4 = EmoteSprite::maxEmotesComment();
v7 = EmoteSprite::effectiveLength(&__p, v4);
if ( *(_BYTE *)(a1 + 737) )
v8 = 500;
else
v8 = 300;
sub_10050A488(v7, v3, v7, v8);
}
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}