//
// SetTextPopup::textChanged from 0x14029d8e0 to 0x14029d9ce (238 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405790c0
// > ??> @ 0x140605c88
// > ??> @ 0x1406d1e8c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void SetTextPopup::textChanged(SetTextPopup *a1, CCTextInputNode *a2)
{
const char *v3; // rax
size_t v4; // rbx
size_t v5; // r8
void **v6; // rdx
void *v7; // rcx
void *Block[2]; // [rsp+28h] [rbp-30h] BYREF
__int128 v9; // [rsp+38h] [rbp-20h]
if ( !LOBYTE(a1->m_nTag) )
{
v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)Block = 0;
v9 = 0;
v4 = -1;
v5 = -1;
do
++v5;
while ( v3[v5] );
sub_14003A930(Block, v3, v5);
v6 = Block;
if ( *((_QWORD *)&v9 + 1) > 0xFu )
v6 = (void **)Block[0];
do
++v4;
while ( *((_BYTE *)v6 + v4) );
sub_14003CCE0((void **)&a1->m_uAutoReleaseCount, v6, v4);
if ( *((_QWORD *)&v9 + 1) > 0xFu )
{
v7 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v7);
}
}
}