//
// CCTextInputNode::textChanged from 0x140057110 to 0x1400571ea (218 bytes)
//
// 2 xrefs:
// > ??> @ 0x14070d518
// > ??> @ 0x1409103f4
//
// 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 11:25:40 +0000
//
void __fastcall CCTextInputNode::textChanged(_QWORD *a1, __int64 a2)
{
cocos2d::CCObject *v2; // rdi
_BYTE *v4; // rax
size_t v5; // r8
void (__fastcall ***v6)(_QWORD, __int64); // rcx
void (__fastcall ***v7)(_QWORD, __int64); // rcx
__int128 v8; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
v2 = (cocos2d::CCObject *)a1[35];
if ( v2 )
{
a1[35] = 0;
LOBYTE(a2) = 1;
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 520LL))(v2, a2);
cocos2d::CCObject::release(v2);
}
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1[22] + 600LL) + 8LL))(a1[22] + 600LL);
v9 = 0;
v8 = 0;
v10 = 0;
v5 = -1;
do
++v5;
while ( v4[v5] );
sub_14003D230(&v8, v4, v5);
CCTextInputNode::updateLabel((__int64)(a1 - 52), (__int64 *)&v8);
v6 = (void (__fastcall ***)(_QWORD, __int64))a1[23];
if ( v6 )
(**v6)(v6, (__int64)(a1 - 52));
v7 = (void (__fastcall ***)(_QWORD, __int64))a1[12];
if ( v7 )
(**v7)(v7, (__int64)(a1 - 52));
}