package o; import android.os.SystemClock; import com.android.volley.VolleyError; import java.io.IOException; import java.io.InputStream; import java.util.Collections; import java.util.List; import o.nle; /* loaded from: classes.dex */ public final class Sev implements ZFL { private final WBD a; @Deprecated private IoY b; private UgZ e; public Sev(WBD wbd) { this(wbd, new UgZ()); } private Sev(WBD wbd, UgZ ugZ) { this.a = wbd; this.b = wbd; this.e = ugZ; } @Override // o.ZFL public final DrQ e(HJP hjp) throws VolleyError { IOException e; Object obj; noY d; int i; List unmodifiableList; long elapsedRealtime = SystemClock.elapsedRealtime(); while (true) { Collections.emptyList(); noY noy = null; try { d = this.a.d(hjp, HNc.a(hjp.getCacheEntry())); try { i = d.b; unmodifiableList = Collections.unmodifiableList(d.e); break; } catch (IOException e2) { e = e2; obj = null; noy = d; } } catch (IOException e3) { e = e3; obj = null; } Object[] objArr = {hjp, e, Long.valueOf(elapsedRealtime), noy, obj}; nle.a(hjp, (nle.IeS) nle.d(objArr)); } if (i == 304) { return nle.b(hjp, SystemClock.elapsedRealtime() - elapsedRealtime, unmodifiableList); } InputStream inputStream = d.d; if (inputStream == null) { byte[] bArr = d.a; inputStream = null; } byte[] d2 = inputStream != null ? nle.d(inputStream, d.c, this.e) : new byte[0]; nle.e(SystemClock.elapsedRealtime() - elapsedRealtime, hjp, d2, i); if (i < 200 || i > 299) { throw new IOException(); } return new DrQ(i, d2, false, SystemClock.elapsedRealtime() - elapsedRealtime, unmodifiableList); } }