//
// LevelSettingsLayer::textChanged from 0x100258ca0 to 0x100258d73 (211 bytes)
//
// 2 xrefs:
// > sub_100258D80 @ 0x100258d8c
// > ??> @ 0x100af2490
//
// This function is hookable on this platform (idp: pc, 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 12:27:27 +0000
//
void __fastcall LevelSettingsLayer::textChanged(__int64 a1, __int64 a2)
{
int v2; // r14d
int v3; // r14d
char *v4; // r15
char *v5; // r15
_QWORD v6[2]; // [rsp-38h] [rbp-38h] BYREF
char *v7; // [rsp-28h] [rbp-28h]
if ( !*(_BYTE *)(a1 + 896) )
{
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
{
CCTextInputNode::getString(v6, a2);
if ( (v6[0] & 1) != 0 )
{
v4 = v7;
v2 = atoi(v7);
operator delete(v4);
}
else
{
v2 = atoi((const char *)v6 + 1);
}
*(_DWORD *)(*(_QWORD *)(a1 + 816) + 372LL) = v2;
}
else if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 2 )
{
CCTextInputNode::getString(v6, a2);
if ( (v6[0] & 1) != 0 )
{
v5 = v7;
v3 = atoi(v7);
operator delete(v5);
}
else
{
v3 = atoi((const char *)v6 + 1);
}
*(_DWORD *)(*(_QWORD *)(a1 + 816) + 376LL) = v3;
}
}
}