//
// LevelListLayer::textChanged from 0xbae710 to 0xbae854 (324 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelListLayer::textChanged @ 0xbae858
// > ??> @ 0xa0348
// > ??> @ 0x14dbf20
//
// 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:02:54 +0000
//
__int64 __fastcall LevelListLayer::textChanged(LevelListLayer *this, CCTextInputNode *a2)
{
__int64 v4; // x20
char *v5; // x22
size_t v6; // x0
__int64 *v7; // x0
__int64 v9[2]; // [xsp+48h] [xbp+48h] BYREF
void *v10; // [xsp+58h] [xbp+58h]
__int64 v11; // [xsp+60h] [xbp+60h] BYREF
size_t v12; // [xsp+68h] [xbp+68h]
void *v13; // [xsp+70h] [xbp+70h]
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 1002 )
{
v4 = *((_QWORD *)this + 114);
v5 = (char *)v9 + 1;
CCTextInputNode::getString(a2, v9);
if ( (v9[0] & 1) != 0 )
v5 = (char *)v10;
v11 = 0;
v12 = 0;
v13 = nullptr;
v6 = strlen(v5);
std::string::__init(&v11, v5, v6);
v7 = (__int64 *)(v4 + 432);
if ( (__int64 *)(v4 + 432) != &v11 )
{
if ( (v11 & 1) != 0 )
std::string::assign(v7, v13, v12);
else
std::string::assign(v7, (char *)&v11 + 1, (unsigned __int8)v11 >> 1);
}
if ( (v11 & 1) != 0 )
operator delete(v13);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
}
return _stack_chk_guard;
}