//
// IDNameInput::setType from 0x1403c8900 to 0x1403c897a (122 bytes)
//
// 12 xrefs:
// > SetItemIDLayer::valueDidChange @ 0x140598aba
// > SetupAdvFollowEditPhysicsPopup::valueDidChange @ 0x14059f764
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x1405a00b9
// > SetupAdvFollowRetargetPopup::valueDidChange @ 0x1405a00cd
// > SetupPulsePopup::onSelectTargetMode @ 0x1405d0870
// > SetupItemEditTriggerPopup::onCustomToggleTriggerValue @ 0x14060381b
// > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0x140605384
// > SetupPersistentItemTriggerPopup::valueDidChange @ 0x140606922
// > SetupStopTriggerPopup::valueDidChange @ 0x1406098b2
// > ??> @ 0x1408c2734
// > ??> @ 0x1408c2744
// > ??> @ 0x140924380
//
// This function is hookable on this platform (idp: pc, 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 11:31:31 +0000
//
__int64 __fastcall IDNameInput::setType(__int64 a1, int a2)
{
__int64 v3; // rcx
char v4; // bl
__int64 result; // rax
if ( *(_DWORD *)(a1 + 376) != a2 )
{
*(_DWORD *)(a1 + 376) = a2;
v3 = *(_QWORD *)(a1 + 440);
if ( v3 )
{
*(_QWORD *)(a1 + 440) = 0;
(**(void (__fastcall ***)(__int64))(v3 + 336))(v3 + 336);
}
v4 = *(_DWORD *)(a1 + 376) != 0;
sub_1403C7350(*(_QWORD *)(a1 + 408), v4);
sub_1403C7350(*(_QWORD *)(a1 + 416), v4);
return IDNameInput::refreshLabel(a1);
}
return result;
}