//
// SecretLayer2::textInputOpened from 0xa8f270 to 0xa8f378 (264 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SecretLayer2::textInputOpened @ 0xa8f37c
// > ??> @ 0x88d50
// > ??> @ 0x1499cb0
//
// 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:00:39 +0000
//
__int64 __fastcall SecretLayer2::textInputOpened(SecretLayer2 *this, CCTextInputNode *a2)
{
__int64 v4; // x20
__int64 v5[3]; // [xsp+38h] [xbp+38h] BYREF
__int64 v6; // [xsp+50h] [xbp+50h] BYREF
__int64 v7; // [xsp+58h] [xbp+58h]
void *v8; // [xsp+60h] [xbp+60h]
CCTextInputNode::getString(a2, v5);
v6 = 0;
v7 = 0;
v8 = nullptr;
if ( sub_A8A3DC((__int64)v5, (__int64)&v6) )
{
v4 = *((_QWORD *)this + 57);
v6 = 0;
v7 = 0;
v8 = nullptr;
std::string::__init(&v6, &byte_11E1A70, 1u);
CCTextInputNode::updateLabel(v4, (__int64)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
}
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return _stack_chk_guard;
}