//
// IDNameInput::onAutocompleteRow from 0xce4a14 to 0xce4ab4 (160 bytes)
//
// 3 xrefs:
// > ??> @ 0x62a58
// > IDNameInput::updateAutocomplete @ 0xcef49c
// > ??> @ 0x15425c8
//
// This function is hookable on this platform (idp: arm, 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 13:06:38 +0000
//
GameManager *__fastcall IDNameInput::onAutocompleteRow(GameManager *this, cocos2d::CCObject *a2)
{
int *v2; // x20
int v4; // w19
GameManager *v5; // x0
GameManager *v6; // x0
__int64 v7; // x0
if ( a2 )
{
v2 = (int *)this;
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
this = (GameManager *)IDNameInput::dismissAutocomplete((__int64)v2);
if ( v4 > 0 )
{
v5 = *(GameManager **)(GameManager::sharedState(this) + 552);
if ( v5 )
{
v6 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v5) + 552) + 3272LL);
if ( v6 )
{
v7 = GameManager::sharedState(v6);
LevelSettingsObject::touchIDUsage(*(LevelSettingsObject **)(*(_QWORD *)(v7 + 552) + 3272LL), v4, v2[94]);
}
}
return (GameManager *)IDNameInput::commitID((IDNameInput *)v2, v4);
}
}
return this;
}