//
// LevelListLayer::textChanged from 0x140308d70 to 0x140308ecc (348 bytes)
//
// 2 xrefs:
// > ??> @ 0x140589660
// > ??> @ 0x1406d45d4
//
// 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=2
void LevelListLayer::textChanged(LevelListLayer *a1, CCTextInputNode *a2)
{
const char *v4; // rax
size_t v5; // rbx
size_t v6; // r8
void **v7; // rdx
void **v8; // rcx
void **v9; // rdx
void *v10; // rcx
void *Src[2]; // [rsp+28h] [rbp-50h] BYREF
size_t Size; // [rsp+38h] [rbp-40h]
unsigned __int64 v13; // [rsp+40h] [rbp-38h]
void *Block[2]; // [rsp+48h] [rbp-30h] BYREF
__int128 v15; // [rsp+58h] [rbp-20h]
if ( a2->getTag(a2) == 1002 )
{
v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);
*(_OWORD *)Block = 0;
v15 = 0;
v5 = -1;
v6 = -1;
do
++v6;
while ( v4[v6] );
sub_14003A930(Block, v4, v6);
v7 = Block;
if ( *((_QWORD *)&v15 + 1) > 0xFu )
v7 = (void **)Block[0];
*(_OWORD *)Src = 0;
Size = 0;
v13 = 0;
do
++v5;
while ( *((_BYTE *)v7 + v5) );
sub_14003A930(Src, v7, v5);
v8 = (void **)(*(_QWORD *)&a1->m_fVertexZ + 432LL);
if ( v8 != Src )
{
v9 = Src;
if ( v13 > 0xF )
v9 = (void **)Src[0];
sub_14003CCE0(v8, v9, Size);
}
sub_14003A830((__int64)Src);
if ( *((_QWORD *)&v15 + 1) > 0xFu )
{
v10 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v10);
}
}
}