//
// LevelListLayer::textChanged from 0x6d8398 to 0x6d8432 (154 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelListLayer::textChanged @ 0x6d843c
//
// 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:57:08 +0000
//
int __fastcall LevelListLayer::textChanged(LevelListLayer *this, CCTextInputNode *a2)
{
char *v2; // r7
int result; // r0
int v6; // r8
size_t v7; // r0
char v8; // [sp+4h] [bp-1Ch] BYREF
char v9; // [sp+5h] [bp-1Bh] BYREF
char *v10; // [sp+Ch] [bp-14h]
int v11[3]; // [sp+10h] [bp-10h] BYREF
result = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 1002 )
{
v6 = *((_DWORD *)this + 160);
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
if ( (v8 & 1) == 0 )
v2 = &v9;
v11[0] = 0;
if ( (v8 & 1) != 0 )
v2 = v10;
v11[1] = 0;
v11[2] = 0;
v7 = strlen(v2);
std::string::__init(v11, v2, v7);
std::string::operator=((unsigned __int8 *)(v6 + 348), (unsigned __int8 *)v11);
std::string::~string((int)v11);
return std::string::~string((int)&v8);
}
return result;
}