Assigns a register at the given `index` to `reg` and an optional `type_id`.
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected