//
// IDNameInput::textInputClosed from 0x796d1c to 0x796e02 (230 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'IDNameInput::textInputClosed @ 0x796e0c
//
// 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:59:46 +0000
//
int __fastcall IDNameInput::textInputClosed(IDNameInput *this, CCTextInputNode *a2)
{
int v4; // r1
int v5; // lr
size_t v6; // r2
int v7; // r12
int v8; // r1
char *v9; // r0
unsigned __int8 *v10; // r1
char *v11; // r0
unsigned __int8 *v12; // r2
int v13; // t1
size_t v14; // r3
int v15; // r0
unsigned __int8 v17; // [sp+0h] [bp-14h] BYREF
char v18; // [sp+1h] [bp-13h] BYREF
size_t v19; // [sp+4h] [bp-10h]
char *v20; // [sp+8h] [bp-Ch]
IDNameInput::dismissAutocomplete((int)this);
CCTextInputNode::getString((CCTextInputNode *)&v17, (int)a2);
v4 = *((unsigned __int8 *)this + 348);
v5 = v17 & 1;
if ( v5 )
v6 = v19;
else
v6 = (int)v17 >> 1;
v7 = v4 & 1;
if ( (v4 & 1) != 0 )
v8 = *((_DWORD *)this + 88);
else
v8 = v4 >> 1;
if ( v6 != v8 )
{
if ( !v5 )
{
LABEL_25:
v14 = (int)v17 >> 1;
goto LABEL_26;
}
LABEL_24:
v14 = v19;
LABEL_26:
if ( v14 && !IDNameInput::textIsPureInt(&v17) && !IDNameInput::commitTypedName(this) )
IDNameInput::revertToLastID((int)this);
goto LABEL_30;
}
if ( v5 )
v9 = v20;
else
v9 = &v18;
if ( v7 )
v10 = *((unsigned __int8 **)this + 89);
else
v10 = (unsigned __int8 *)this + 349;
if ( v5 )
{
if ( !v6 || !memcmp(v9, v10, v6) )
goto LABEL_30;
goto LABEL_24;
}
v11 = v9 - 1;
v12 = &v10[v6];
while ( v10 != v12 )
{
v13 = (unsigned __int8)*++v11;
if ( v13 != *v10 )
goto LABEL_25;
++v10;
}
LABEL_30:
v15 = *((_DWORD *)this + 72);
if ( v15 )
(*(void (__fastcall **)(int, CCTextInputNode *))(*(_DWORD *)v15 + 8))(v15, a2);
IDNameInput::refreshLabel(this);
return std::string::~string((int)&v17);
}