//
// IDNameInput::setType from 0xce5d54 to 0xce5db8 (100 bytes)
//
// 9 xrefs:
// > SetupPulsePopup::onSelectTargetMode @ 0xa46518
// > SetItemIDLayer::valueDidChange @ 0xa97d48
// > SetupAdvFollowEditPhysicsPopup::valueDidChange @ 0xb471d4
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0xb4cf68
// > SetupPersistentItemTriggerPopup::valueDidChange @ 0xb71cfc
// > SetupStopTriggerPopup::valueDidChange @ 0xb71d48
// > SetupItemEditTriggerPopup::onCustomToggleTriggerValue @ 0xb7bc14
// > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0xb7c714
// > ??> @ 0xdacb0
//
// 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:39 +0000
//
__int64 __fastcall IDNameInput::setType(__int64 this, int a2)
{
__int64 v2; // x19
unsigned __int8 v3; // w20
v2 = this;
if ( *(_DWORD *)(this + 376) != a2 )
{
*(_DWORD *)(this + 376) = a2;
IDNameInput::dismissAutocomplete(this);
v3 = *(_DWORD *)(v2 + 376) != 0;
sub_CE4014(*(_QWORD *)(v2 + 408), v3);
sub_CE4014(*(_QWORD *)(v2 + 416), v3);
return IDNameInput::refreshLabel((IDNameInput *)v2);
}
return this;
}