//
// EffectGameObject::setTargetID from 0x4e82cc to 0x4e82e2 (22 bytes)
//
// 31 xrefs:
// > EditorUI::replaceGroupID @ 0x482e92
// > EditorUI::createNewKeyframeAnim @ 0x4830f2
// > EditorUI::onTargetIDChange @ 0x4845ca
// > EditorUI::createLoop @ 0x4854d2
// > EditorUI::createLoop @ 0x48565e
// > ShaderGameObject::customObjectSetup @ 0x4ef222
// > AdvancedFollowTriggerObject::customObjectSetup @ 0x4ef33a
// > SFXTriggerGameObject::customObjectSetup @ 0x4f1290
// > CheckpointGameObject::customObjectSetup @ 0x4f180a
// > EndTriggerGameObject::customObjectSetup @ 0x4f1da2
// > UISettingsGameObject::customObjectSetup @ 0x4f1e80
// > ObjectControlGameObject::customObjectSetup @ 0x4f30c0
// > SpawnParticleGameObject::customObjectSetup @ 0x4f31ce
// > TriggerControlGameObject::customObjectSetup @ 0x4f61aa
// > SetupOpacityPopup::updateTargetID @ 0x5e94d8
// > SetupOpacityPopup::updateTargetID @ 0x5e9500
// > SetupPulsePopup::updateTargetID @ 0x5ec40e
// > SetupPulsePopup::updateTargetID @ 0x5ec436
// > SetupAnimationPopup::updateTargetID @ 0x624446
// > SetupAnimationPopup::updateTargetID @ 0x62446e
// > SetupInstantCountPopup::updateTargetID @ 0x627a42
// > SetupInstantCountPopup::updateTargetID @ 0x627a6a
// > SetupTouchTogglePopup::updateTargetID @ 0x62a870
// > SetupTouchTogglePopup::updateTargetID @ 0x62a898
// > SetupRandTriggerPopup::updateTargetID @ 0x635a9c
// > SetupRandTriggerPopup::updateTargetID @ 0x635ac4
// > SetupEndPopup::updateTargetID @ 0x636a30
// > SetupEndPopup::updateTargetID @ 0x636a58
// > SetupTriggerPopup::valueChanged @ 0x67cb84
// > SetupCameraEdgePopup::updateTargetID @ 0x67ecb0
// > SetupCameraEdgePopup::updateTargetID @ 0x67ecd8
//
// 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::setTargetID(int this, int a2)
{
int v2; // r1
if ( a2 > 9998 )
v2 = 9999;
else
v2 = a2 & ~(a2 >> 31);
*(_DWORD *)(this + 1284) = v2;
return this;
}