//
// IDNameInput::commitTypedName from 0x796c50 to 0x796d16 (198 bytes)
//
// 1 xrefs:
// > IDNameInput::textInputClosed @ 0x796dbe
//
// 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:45 +0000
//
int __fastcall IDNameInput::commitTypedName(IDNameInput *this)
{
int v1; // r1
int v3; // r6
int *v4; // r0
int v5; // r9
GameManager *v6; // r0
GameManager *v7; // r0
int v9; // r0
unsigned __int8 v10[12]; // [sp+4h] [bp-20h] BYREF
int *v11; // [sp+10h] [bp-14h] BYREF
int *v12; // [sp+14h] [bp-10h]
int v13; // [sp+18h] [bp-Ch]
v1 = *((_DWORD *)this + 75);
if ( !v1 )
return 0;
v3 = *(unsigned __int8 *)(v1 + 484);
if ( *(_BYTE *)(v1 + 484) )
{
CCTextInputNode::getString((CCTextInputNode *)v10, v1);
if ( IDNameInput::textIsPureInt(v10) )
{
v3 = 0;
}
else
{
v11 = nullptr;
v12 = nullptr;
v13 = 0;
v4 = IDNameInput::collectMatches((int)this, v10, &v11);
if ( v11 == v12 )
{
v3 = 0;
}
else
{
v5 = *v11;
v6 = (GameManager *)GameManager::sharedState((GameManager *)v4);
if ( *((_DWORD *)v6 + 102) )
{
v7 = (GameManager *)GameManager::sharedState(v6);
if ( *(_DWORD *)(*((_DWORD *)v7 + 102) + 2084) )
{
v9 = GameManager::sharedState(v7);
LevelSettingsObject::touchIDUsage(*(char **)(*(_DWORD *)(v9 + 408) + 2084), v5, *((_DWORD *)this + 73));
}
}
IDNameInput::commitID((int)this, v5);
}
std::__vector_base::~__vector_base((void **)&v11);
}
std::string::~string((int)v10);
}
return v3;
}