//
// EffectGameObject::setTargetID from 0x3e8e40 to 0x3e8e56 (22 bytes)
//
// 41 xrefs:
// > EditorUI::replaceGroupID @ 0x37e442
// > EditorUI::onTargetIDChange @ 0x3811ca
// > EditorUI::createLoop @ 0x39ddc0
// > EditorUI::createLoop @ 0x39df54
// > EditorUI::createNewKeyframeAnim @ 0x3a35d6
// > ObjectControlGameObject::customObjectSetup @ 0x3e8e7c
// > ShaderGameObject::customObjectSetup @ 0x3e9282
// > AdvancedFollowTriggerObject::customObjectSetup @ 0x3e933e
// > SFXTriggerGameObject::customObjectSetup @ 0x3e9f64
// > CheckpointGameObject::customObjectSetup @ 0x3ea2aa
// > EndTriggerGameObject::customObjectSetup @ 0x3ea31c
// > UISettingsGameObject::customObjectSetup @ 0x3ea3ae
// > SpawnParticleGameObject::customObjectSetup @ 0x3ea460
// > TriggerControlGameObject::customObjectSetup @ 0x3ecb46
// > SetupOpacityPopup::updateTargetID @ 0x4bb528
// > SetupOpacityPopup::updateTargetID @ 0x4bb550
// > SetupPulsePopup::updateTargetID @ 0x4bdb74
// > SetupPulsePopup::updateTargetID @ 0x4bdb9c
// > GJFollowCommandLayer::updateTargetGroupID @ 0x4dc9bc
// > GJFollowCommandLayer::updateTargetGroupID @ 0x4dc9ca
// > GJPFollowCommandLayer::updateTargetGroupID @ 0x4de5a8
// > GJPFollowCommandLayer::updateTargetGroupID @ 0x4de5b6
// > GJRotateCommandLayer::updateTargetGroupID @ 0x4e0660
// > GJRotateCommandLayer::updateTargetGroupID @ 0x4e066e
// > SetupAnimationPopup::updateTargetID @ 0x4f39ac
// > SetupAnimationPopup::updateTargetID @ 0x4f39d4
// > SetupCollisionTriggerPopup::updateTargetID @ 0x4f5264
// > SetupCollisionTriggerPopup::updateTargetID @ 0x4f528c
// > SetupCountTriggerPopup::updateTargetID @ 0x4f6b86
// > SetupCountTriggerPopup::updateTargetID @ 0x4f6bae
// > SetupInstantCountPopup::updateTargetID @ 0x4f8386
// > SetupInstantCountPopup::updateTargetID @ 0x4f83ae
// > SetupTouchTogglePopup::updateTargetID @ 0x4faf18
// > SetupTouchTogglePopup::updateTargetID @ 0x4faf40
// > SetupRandTriggerPopup::updateTargetID @ 0x505860
// > SetupRandTriggerPopup::updateTargetID @ 0x505888
// > SetupEndPopup::updateTargetID @ 0x5064a0
// > SetupEndPopup::updateTargetID @ 0x5064c8
// > SetupTriggerPopup::valueChanged @ 0x546b96
// > SetupCameraEdgePopup::updateTargetID @ 0x5496a0
// > SetupCameraEdgePopup::updateTargetID @ 0x5496c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EffectGameObject::setTargetID(EffectGameObject *a1, int a2)
{
int v2; // r1
if ( a2 > 9998 )
v2 = 9999;
else
v2 = a2 & ~(a2 >> 31);
a1->m_targetGroupID = v2;
}