//
// LevelListLayer::textInputOpened from 0xbacbf4 to 0xbacd40 (332 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelListLayer::textInputOpened @ 0xbacd44
// > ??> @ 0x6ce50
// > ??> @ 0x14dbf10
//
// 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:53 +0000
//
__int64 __fastcall LevelListLayer::textInputOpened(LevelListLayer *this, CCTextInputNode *a2)
{
_BOOL4 v4; // w21
__int64 v5[3]; // [xsp+30h] [xbp+30h] BYREF
__int64 v6[2]; // [xsp+48h] [xbp+48h] BYREF
void *v7; // [xsp+58h] [xbp+58h]
__int64 v8[2]; // [xsp+60h] [xbp+60h] BYREF
void *v9; // [xsp+70h] [xbp+70h]
CCTextInputNode::getString(a2, v5);
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 1002 )
{
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(v6, &byte_11B8890, 0);
v4 = sub_BA8AE8((__int64)v5, (__int64)v6);
if ( (v6[0] & 1) != 0 )
{
operator delete(v7);
if ( !v4 )
goto LABEL_2;
}
else if ( !v4 )
{
goto LABEL_2;
}
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, &byte_11E1A70, 1u);
CCTextInputNode::updateLabel((__int64)a2, (__int64)v8);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
LABEL_2:
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return _stack_chk_guard;
}