package l5; import h5.d0; import h5.h0; import h5.i0; import h5.m; import h5.t; import java.util.List; /* loaded from: classes2.dex */ public final class g implements d0.a { /* renamed from: a, reason: collision with root package name */ private final List f11605a; /* renamed from: b, reason: collision with root package name */ private final k5.g f11606b; /* renamed from: c, reason: collision with root package name */ private final c f11607c; /* renamed from: d, reason: collision with root package name */ private final k5.c f11608d; /* renamed from: e, reason: collision with root package name */ private final int f11609e; /* renamed from: f, reason: collision with root package name */ private final h0 f11610f; /* renamed from: g, reason: collision with root package name */ private final h5.i f11611g; /* renamed from: h, reason: collision with root package name */ private final t f11612h; /* renamed from: i, reason: collision with root package name */ private final int f11613i; /* renamed from: j, reason: collision with root package name */ private final int f11614j; /* renamed from: k, reason: collision with root package name */ private final int f11615k; /* renamed from: l, reason: collision with root package name */ private int f11616l; public g(List list, k5.g gVar, c cVar, k5.c cVar2, int i10, h0 h0Var, h5.i iVar, t tVar, int i11, int i12, int i13) { this.f11605a = list; this.f11608d = cVar2; this.f11606b = gVar; this.f11607c = cVar; this.f11609e = i10; this.f11610f = h0Var; this.f11611g = iVar; this.f11612h = tVar; this.f11613i = i11; this.f11614j = i12; this.f11615k = i13; } @Override // h5.d0.a public int a() { return this.f11614j; } @Override // h5.d0.a public int b() { return this.f11615k; } @Override // h5.d0.a public int c() { return this.f11613i; } @Override // h5.d0.a public h0 d() { return this.f11610f; } @Override // h5.d0.a public i0 e(h0 h0Var) { return j(h0Var, this.f11606b, this.f11607c, this.f11608d); } public h5.i f() { return this.f11611g; } public m g() { return this.f11608d; } public t h() { return this.f11612h; } public c i() { return this.f11607c; } public i0 j(h0 h0Var, k5.g gVar, c cVar, k5.c cVar2) { if (this.f11609e >= this.f11605a.size()) { throw new AssertionError(); } this.f11616l++; if (this.f11607c != null && !this.f11608d.s(h0Var.h())) { throw new IllegalStateException("network interceptor " + this.f11605a.get(this.f11609e - 1) + " must retain the same host and port"); } if (this.f11607c != null && this.f11616l > 1) { throw new IllegalStateException("network interceptor " + this.f11605a.get(this.f11609e - 1) + " must call proceed() exactly once"); } g gVar2 = new g(this.f11605a, gVar, cVar, cVar2, this.f11609e + 1, h0Var, this.f11611g, this.f11612h, this.f11613i, this.f11614j, this.f11615k); d0 d0Var = (d0) this.f11605a.get(this.f11609e); i0 a10 = d0Var.a(gVar2); if (cVar != null && this.f11609e + 1 < this.f11605a.size() && gVar2.f11616l != 1) { throw new IllegalStateException("network interceptor " + d0Var + " must call proceed() exactly once"); } if (a10 == null) { throw new NullPointerException("interceptor " + d0Var + " returned null"); } if (a10.c() != null) { return a10; } throw new IllegalStateException("interceptor " + d0Var + " returned a mobonResponse with no body"); } public k5.g k() { return this.f11606b; } }