//
// LevelSettingsLayer::textChanged from 0xb62268 to 0xb62394 (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelSettingsLayer::textChanged @ 0xb62398
// > ??> @ 0x6e440
// > ??> @ 0x14c3e28
//
// 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:12 +0000
//
__int64 __fastcall LevelSettingsLayer::textChanged(LevelSettingsLayer *this, CCTextInputNode *a2)
{
int v4; // w21
char *v5; // x22
int v6; // w21
char *v7; // x22
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
char *v10; // [xsp+50h] [xbp+50h]
if ( !*((_BYTE *)this + 896) )
{
if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
CCTextInputNode::getString(a2, v9);
if ( (v9[0] & 1) != 0 )
{
v5 = v10;
v6 = atoi(v10);
operator delete(v5);
}
else
{
v6 = atoi((const char *)v9 + 1);
}
*(_DWORD *)(*((_QWORD *)this + 102) + 372LL) = v6;
}
else if ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
CCTextInputNode::getString(a2, v9);
if ( (v9[0] & 1) != 0 )
{
v7 = v10;
v4 = atoi(v10);
operator delete(v7);
}
else
{
v4 = atoi((const char *)v9 + 1);
}
*(_DWORD *)(*((_QWORD *)this + 102) + 376LL) = v4;
}
}
return _stack_chk_guard;
}