//
// sub_100017EB4 from 0x100017eb4 to 0x100017f10 (92 bytes)
//
// 41 xrefs:
// > GJEffectManager::handleObjectCollision @ 0x100010330
// > GJEffectManager::prepareMoveActions @ 0x1000138b4
// > GJEffectManager::updateSpawnTriggers @ 0x100014980
// > GJEffectManager::playerButton @ 0x100014e50
// > GJEffectManager::playerDied @ 0x100014fd0
// > GJEffectManager::updateCountForItem @ 0x100015490
// > GJEffectManager::updateTimers @ 0x100016094
// > GJEffectManager::updateTimers @ 0x1000161fc
// > sub_1000195F0 @ 0x100019698
// > sub_1000206EC @ 0x100020754
// > sub_10002123C @ 0x1000212a4
// > sub_100021698 @ 0x100021700
// > sub_100021B64 @ 0x100021bcc
// > sub_100021E20 @ 0x100021e80
// > sub_100022278 @ 0x1000222f4
// > sub_100022644 @ 0x1000226ac
// > sub_1001247EC @ 0x100124854
// > sub_1001252B4 @ 0x10012534c
// > sub_100126280 @ 0x1001262dc
// > GJBaseGameLayer::gameEventTriggered @ 0x1001e46fc
// > sub_100211F64 @ 0x100211fa8
// > sub_100211FC8 @ 0x1002120a8
// > EffectGameObject::triggerObject @ 0x100385390
// > EffectGameObject::triggerObject @ 0x100385508
// > EffectGameObject::triggerObject @ 0x100385af0
// > EffectGameObject::triggerObject @ 0x100385b40
// > EffectGameObject::triggerObject @ 0x100385c1c
// > EffectGameObject::triggerObject @ 0x100385da4
// > EffectGameObject::triggerObject @ 0x100386094
// > EffectGameObject::triggerObject @ 0x100386160
// > EffectGameObject::triggerObject @ 0x100386328
// > EffectGameObject::triggerObject @ 0x1003863a8
// > EffectGameObject::triggerObject @ 0x100386430
// > RandTriggerGameObject::triggerObject @ 0x100389a40
// > SequenceTriggerGameObject::triggerObject @ 0x10038a4c8
// > EventLinkTrigger::triggerObject @ 0x10038e250
// > CountTriggerGameObject::triggerObject @ 0x1003908fc
// > CountTriggerGameObject::triggerObject @ 0x100390960
// > EndTriggerGameObject::triggerObject @ 0x100391fbc
// > TimerTriggerGameObject::triggerObject @ 0x1003941c4
// > ItemTriggerGameObject::triggerObject @ 0x100394ce4
//
// 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
//
__int64 *__fastcall sub_100017EB4(__int64 *result, const void *a2, __int64 a3, unsigned __int64 a4)
{
__int64 *v6; // x19
__int64 v7; // x22
size_t v8; // x21
if ( a4 )
{
v6 = result;
result = (__int64 *)sub_1000179B0(result, a4);
v7 = v6[1];
v8 = a3 - (_QWORD)a2;
if ( v8 )
result = (__int64 *)memmove((void *)v6[1], a2, v8);
v6[1] = v7 + v8;
}
return result;
}