//
// EffectGameObject::setTargetID2 from 0x4e82e2 to 0x4e82f8 (22 bytes)
//
// 11 xrefs:
// > EditorUI::replaceGroupID @ 0x482ea2
// > ShaderGameObject::customObjectSetup @ 0x4ef248
// > AdvancedFollowTriggerObject::customObjectSetup @ 0x4ef360
// > SFXTriggerGameObject::customObjectSetup @ 0x4f12be
// > CheckpointGameObject::customObjectSetup @ 0x4f1830
// > EndTriggerGameObject::customObjectSetup @ 0x4f1dc8
// > UISettingsGameObject::customObjectSetup @ 0x4f1ea6
// > SpawnParticleGameObject::customObjectSetup @ 0x4f31f8
// > SetupRandTriggerPopup::updateTargetID2 @ 0x635af2
// > SetupRandTriggerPopup::updateTargetID2 @ 0x635b1a
// > SetupTriggerPopup::valueChanged @ 0x67cb94
//
// 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:51:06 +0000
//
int __fastcall EffectGameObject::setTargetID2(int this, int a2)
{
int v2; // r1
if ( a2 > 9998 )
v2 = 9999;
else
v2 = a2 & ~(a2 >> 31);
*(_DWORD *)(this + 1288) = v2;
return this;
}