//
// LevelSettingsObject::touchIDUsage from 0x46fa94 to 0x46fb08 (116 bytes)
//
// 4 xrefs:
// > IDNameBrowserPopup::onSelectRow @ 0x78f25e
// > IDNameBrowserPopup::onFormAdd @ 0x793586
// > IDNameInput::onAutocompleteRow @ 0x793a9a
// > IDNameInput::commitTypedName @ 0x796d0a
//
// 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:49:03 +0000
//
char *__fastcall LevelSettingsObject::touchIDUsage(char *this, int a2, unsigned int a3)
{
char **v3; // r0
char *v4; // r5
char **v5; // r4
char *v6; // r1
_DWORD *v7; // r3
size_t v8; // r5
char *v9; // r5
char *v10; // r3
int v11; // r2
char *v12; // r3
unsigned int v13; // [sp+0h] [bp-Ch] BYREF
_DWORD v14[2]; // [sp+4h] [bp-8h] BYREF
v14[1] = a3;
v14[0] = a2;
v13 = a3;
if ( a2 > 0 )
{
v3 = (char **)std::unordered_map>::operator[]((int)(this + 432), &v13);
v4 = v3[1];
v5 = v3;
v6 = *v3;
while ( 1 )
{
v7 = v6;
if ( v6 == v4 )
break;
v6 += 4;
if ( *v7 == v14[0] )
{
v8 = v4 - v6;
if ( v8 >> 2 )
v7 = memmove(v7, v6, v8);
v9 = (char *)v7 + v8;
while ( 1 )
{
v10 = v5[1];
if ( v9 == v10 )
break;
v5[1] = v10 - 4;
}
break;
}
}
this = std::vector::insert(v5, *v5, (char *)v14);
if ( v5[1] - *v5 > 2003 )
{
v11 = (int)(*v5 + 2000);
while ( 1 )
{
v12 = v5[1];
if ( (char *)v11 == v12 )
break;
v5[1] = v12 - 4;
}
}
}
return this;
}