code: func (r *referencedNetworkEndpoint) decRef() {
  	if atomic.AddInt32(&r.refs, -1) == 0 {
  		r.nic.removeEndpoint(r)
  	}
  }
docs: // decRef decrements the ref count and cleans up the endpoint once it reaches
  // zero.