//
// EffectGameObject::setTargetID2 from 0x100182b40 to 0x100182b60 (32 bytes)
//
// 6 xrefs:
// > EditorUI::replaceGroupID @ 0x100016231
// > SetupTriggerPopup::valueChanged @ 0x10021ce8a
// > SetupRandTriggerPopup::textChanged @ 0x1006b9fda
// > SetupRandTriggerPopup::textChanged @ 0x1006ba028
// > SetupRandTriggerPopup::updateTargetID2 @ 0x1006ba1db
// > SetupRandTriggerPopup::updateTargetID2 @ 0x1006ba218
//
// 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 12:25:34 +0000
//
__int64 __fastcall EffectGameObject::setTargetID2(__int64 a1, int a2)
{
__int64 result; // rax
int v3; // ecx
result = 0;
if ( a2 > 0 )
result = (unsigned int)a2;
v3 = 9999;
if ( (int)result < 9999 )
v3 = result;
*(_DWORD *)(a1 + 1468) = v3;
return result;
}