//
// NewThreadPopup::textChanged from 0xc67e5c to 0xc67f68 (268 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'NewThreadPopup::textChanged @ 0xc67f6c
// > ??> @ 0xbbc00
// > ??> @ 0x14efc00
//
// 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 13:05:26 +0000
//
__int64 __fastcall NewThreadPopup::textChanged(NewThreadPopup *this, CCTextInputNode *a2)
{
CCTextInputNode *v3; // x0
CCTextInputNode *v4; // x0
cocos2d::CCLabelBMFont *v6; // x22
int v7; // w0
int v8; // w21
int v9; // w0
cocos2d::CCLabelBMFont *v10; // x22
int v11; // w0
__int64 v12[3]; // [xsp+30h] [xbp+30h] BYREF
v3 = *((CCTextInputNode **)this + 110);
if ( v3 == a2 )
{
v10 = *((cocos2d::CCLabelBMFont **)this + 108);
CCTextInputNode::getString(v3, v12);
v11 = EmoteSprite::characterCount((__int64)v12);
NewThreadPopup::updateCharCount(this, v10, v11, 20);
}
else
{
v4 = *((CCTextInputNode **)this + 111);
if ( v4 != a2 )
return _stack_chk_guard;
v6 = *((cocos2d::CCLabelBMFont **)this + 109);
CCTextInputNode::getString(v4, v12);
v7 = NewThreadPopup::bodyEmoteCap(this);
v8 = EmoteSprite::effectiveLength((char *)v12, v7);
v9 = NewThreadPopup::bodyCharLimit(this);
NewThreadPopup::updateCharCount(this, v6, v8, v9);
}
if ( (v12[0] & 1) != 0 )
operator delete((void *)v12[2]);
return _stack_chk_guard;
}