//
// EditLevelLayer::textInputOpened from 0x49fd54 to 0x49fdfc (168 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditLevelLayer::textInputOpened @ 0x49fe0c
//
// 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:49:49 +0000
//
int __fastcall EditLevelLayer::textInputOpened(EditLevelLayer *this, CCTextInputNode *a2)
{
_BOOL4 v3; // r8
unsigned __int8 v5[12]; // [sp+0h] [bp-28h] BYREF
int v6[3]; // [sp+Ch] [bp-1Ch] BYREF
int v7[3]; // [sp+18h] [bp-10h] BYREF
CCTextInputNode::getString((CCTextInputNode *)v5, (int)a2);
if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
memset(v6, 0, sizeof(v6));
std::string::__init(v6, &unk_B6B226, 0);
v3 = sub_49F398(v5, (unsigned __int8 *)v6);
std::string::~string((int)v6);
if ( v3 )
{
memset(v7, 0, sizeof(v7));
std::string::__init(v7, " ", 1u);
CCTextInputNode::updateLabel((float *)a2, (int)v7);
std::string::~string((int)v7);
}
}
else
{
(*(void (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
}
return std::string::~string((int)v5);
}