//
// LevelSettingsLayer::textChanged from 0x6aa370 to 0x6aa40a (154 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelSettingsLayer::textChanged @ 0x6aa414
//
// 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:56:34 +0000
//
int __fastcall LevelSettingsLayer::textChanged(int this, CCTextInputNode *a2)
{
int v2; // r6
char *v4; // r0
int v5; // r4
char *v6; // r0
int v7; // r4
char v8; // [sp+0h] [bp-14h] BYREF
_BYTE v9[7]; // [sp+1h] [bp-13h] BYREF
char *v10; // [sp+8h] [bp-Ch]
v2 = this;
if ( !*(_BYTE *)(this + 636) )
{
if ( (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2) == 1 )
{
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
if ( (v8 & 1) != 0 )
v4 = v10;
else
v4 = v9;
v5 = atoi(v4);
this = std::string::~string((int)&v8);
*(_DWORD *)(*(_DWORD *)(v2 + 596) + 312) = v5;
}
else
{
this = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);
if ( this == 2 )
{
CCTextInputNode::getString((CCTextInputNode *)&v8, (int)a2);
if ( (v8 & 1) != 0 )
v6 = v10;
else
v6 = v9;
v7 = atoi(v6);
this = std::string::~string((int)&v8);
*(_DWORD *)(*(_DWORD *)(v2 + 596) + 316) = v7;
}
}
}
return this;
}