//
// LevelListLayer::textInputClosed from 0x6d82b8 to 0x6d838a (210 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelListLayer::textInputClosed @ 0x6d8394
//
// 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::textInputClosed(LevelListLayer *this, CCTextInputNode *a2)
{
char *v2; // r9
int result; // r0
int v6; // r8
size_t v7; // r0
_BYTE v8[12]; // [sp+4h] [bp-38h] BYREF
int v9[3]; // [sp+10h] [bp-2Ch] BYREF
char v10; // [sp+1Ch] [bp-20h] BYREF
char v11; // [sp+1Dh] [bp-1Fh] BYREF
char *v12; // [sp+24h] [bp-18h]
int v13[3]; // [sp+28h] [bp-14h] BYREF
result = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( result == 1002 )
{
CCTextInputNode::getString((CCTextInputNode *)v8, (int)a2);
v6 = *((_DWORD *)this + 160);
std::string::basic_string(v9, (int)v8);
std::string::operator=((unsigned __int8 *)(v6 + 348), (unsigned __int8 *)v9);
std::string::~string((int)v9);
CCTextInputNode::getString((CCTextInputNode *)&v10, (int)a2);
if ( (v10 & 1) == 0 )
v2 = &v11;
v13[0] = 0;
if ( (v10 & 1) != 0 )
v2 = v12;
v13[1] = 0;
v13[2] = 0;
v7 = strlen(v2);
std::string::__init(v13, v2, v7);
CCTextInputNode::updateLabel((float *)a2, (int)v13);
std::string::~string((int)v13);
std::string::~string((int)&v10);
return std::string::~string((int)v8);
}
return result;
}