//
// NewThreadPopup::textChanged from 0x748cc8 to 0x748d5e (150 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'NewThreadPopup::textChanged @ 0x748d68
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:44 +0000
//
CCTextInputNode *__fastcall NewThreadPopup::textChanged(NewThreadPopup *this, CCTextInputNode *a2, int a3, int a4)
{
CCTextInputNode *result; // r0
cocos2d::CCLabelBMFont *v6; // r7
int v7; // r0
cocos2d::CCLabelBMFont *v8; // r8
int v9; // r0
int v10; // r2
int v11; // r3
int v12; // r7
int v13; // r0
_DWORD v14[4]; // [sp+0h] [bp-10h] BYREF
v14[0] = this;
v14[1] = a2;
v14[2] = a3;
v14[3] = a4;
result = *((CCTextInputNode **)this + 158);
if ( a2 == result )
{
v6 = *((cocos2d::CCLabelBMFont **)this + 156);
CCTextInputNode::getString((CCTextInputNode *)v14, (int)a2);
v7 = EmoteSprite::characterCount((unsigned __int8 *)v14);
NewThreadPopup::updateCharCount(this, v6, v7, 20);
}
else
{
if ( a2 != *((CCTextInputNode **)this + 159) )
return result;
v8 = *((cocos2d::CCLabelBMFont **)this + 157);
CCTextInputNode::getString((CCTextInputNode *)v14, (int)a2);
v9 = NewThreadPopup::bodyEmoteCap(this);
v12 = EmoteSprite::effectiveLength((unsigned __int8 *)v14, v9, v10, v11);
v13 = NewThreadPopup::bodyCharLimit(this);
NewThreadPopup::updateCharCount(this, v8, v12, v13);
}
return (CCTextInputNode *)std::string::~string((int)v14);
}