//
// EffectGameObject::setTargetID from 0x100182b20 to 0x100182b40 (32 bytes)
//
// 44 xrefs:
// > EditorUI::replaceGroupID @ 0x10001621e
// > EditorUI::createNewKeyframeAnim @ 0x10001673a
// > EditorUI::createLoop @ 0x100016c64
// > EditorUI::createLoop @ 0x100016e68
// > EditorUI::onTargetIDChange @ 0x10001a0da
// > SetupOpacityPopup::textChanged @ 0x10001dae6
// > SetupOpacityPopup::textChanged @ 0x10001db28
// > SetupOpacityPopup::updateTargetID @ 0x10001dc9b
// > SetupOpacityPopup::updateTargetID @ 0x10001dcd8
// > SetupTriggerPopup::valueChanged @ 0x10021c04f
// > SetupTouchTogglePopup::textChanged @ 0x1002a7a20
// > SetupTouchTogglePopup::textChanged @ 0x1002a7a68
// > sub_1002A7A90 @ 0x1002a7acb
// > sub_1002A7A90 @ 0x1002a7b08
// > SetupPulsePopup::onSelectTargetMode @ 0x1003970bb
// > SetupPulsePopup::onSelectTargetMode @ 0x100397128
// > SetupPulsePopup::updateTargetID @ 0x100397dd0
// > SetupPulsePopup::updateTargetID @ 0x100397e08
// > SetupPulsePopup::colorSelectClosed @ 0x10039872d
// > SetupPulsePopup::colorSelectClosed @ 0x100398788
// > SetupPulsePopup::textChanged @ 0x10039986f
// > SetupPulsePopup::textChanged @ 0x100399a48
// > SetupAnimationPopup::textChanged @ 0x1003bef68
// > SetupAnimationPopup::textChanged @ 0x1003befb8
// > SetupAnimationPopup::updateTargetID @ 0x1003bf01b
// > SetupAnimationPopup::updateTargetID @ 0x1003bf058
// > SetupCameraEdgePopup::onUnlockEdge @ 0x1006490f2
// > SetupCameraEdgePopup::onUnlockEdge @ 0x100649148
// > SetupCameraEdgePopup::updateTargetID @ 0x10064929b
// > SetupCameraEdgePopup::updateTargetID @ 0x1006492d8
// > SetupCameraEdgePopup::textChanged @ 0x10064937c
// > SetupCameraEdgePopup::textChanged @ 0x1006493c8
// > SetupRandTriggerPopup::textChanged @ 0x1006b9ef2
// > SetupRandTriggerPopup::textChanged @ 0x1006b9f78
// > SetupRandTriggerPopup::updateTargetID @ 0x1006ba13b
// > SetupRandTriggerPopup::updateTargetID @ 0x1006ba178
// > SetupInstantCountPopup::textChanged @ 0x1006bd478
// > SetupInstantCountPopup::textChanged @ 0x1006bd518
// > SetupInstantCountPopup::updateTargetID @ 0x1006bd61b
// > SetupInstantCountPopup::updateTargetID @ 0x1006bd658
// > SetupEndPopup::textChanged @ 0x1007489ec
// > SetupEndPopup::textChanged @ 0x100748a38
// > sub_100748A60 @ 0x100748a9b
// > sub_100748A60 @ 0x100748ad8
//
// 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::setTargetID(__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 + 1464) = v3;
return result;
}