package o; import com.google.protobuf.InvalidProtocolBufferException; import java.io.IOException; import java.util.List; import o.Nvr; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class uCO implements lfg { private int a; private int b; private int c = 0; private final cKE e; /* JADX INFO: Access modifiers changed from: package-private */ public uCO(cKE cke) { cKE cke2 = (cKE) MTP.c(cke, "input"); this.e = cke2; cke2.e = this; } @Override // o.lfg public final int e() throws IOException { int i = this.c; if (i != 0) { this.a = i; this.c = 0; } else { this.a = this.e.s(); } int i2 = this.a; if (i2 == 0 || i2 == this.b) { return Integer.MAX_VALUE; } return Nvr.b(i2); } @Override // o.lfg public final boolean s() throws IOException { int i; if (this.e.a() || (i = this.a) == this.b) { return false; } return this.e.b(i); } @Override // o.lfg public final double c() throws IOException { if (Nvr.c(this.a) == 1) { return this.e.f(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final float i() throws IOException { if (Nvr.c(this.a) == 5) { return this.e.i(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final long q() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.v(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final long o() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.k(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int g() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.l(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final long h() throws IOException { if (Nvr.c(this.a) == 1) { return this.e.g(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int f() throws IOException { if (Nvr.c(this.a) == 5) { return this.e.j(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final boolean a() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.b(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final String p() throws IOException { if (Nvr.c(this.a) == 2) { return this.e.t(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final String r() throws IOException { if (Nvr.c(this.a) == 2) { return this.e.r(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final T b(Wnq wnq, ZjA zjA) throws IOException { if (Nvr.c(this.a) == 2) { return (T) e(wnq, zjA); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final T d(Wnq wnq, ZjA zjA) throws IOException { if (Nvr.c(this.a) == 3) { return (T) a(wnq, zjA); } throw InvalidProtocolBufferException.e(); } private T e(Wnq wnq, ZjA zjA) throws IOException { int y = this.e.y(); if (this.e.b >= this.e.c) { throw InvalidProtocolBufferException.h(); } int d = this.e.d(y); T e = wnq.e(); this.e.b++; wnq.c(e, this, zjA); wnq.e(e); this.e.e(); cKE cke = this.e; cke.b--; this.e.e(d); return e; } private T a(Wnq wnq, ZjA zjA) throws IOException { int i = this.b; this.b = Nvr.c(Nvr.b(this.a), 4); try { T e = wnq.e(); wnq.c(e, this, zjA); wnq.e(e); if (this.a == this.b) { return e; } throw InvalidProtocolBufferException.f(); } finally { this.b = i; } } @Override // o.lfg public final QwV b() throws IOException { if (Nvr.c(this.a) == 2) { return this.e.c(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int t() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.y(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int j() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.h(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int n() throws IOException { if (Nvr.c(this.a) == 5) { return this.e.m(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final long l() throws IOException { if (Nvr.c(this.a) == 1) { return this.e.o(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final int m() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.q(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final long k() throws IOException { if (Nvr.c(this.a) == 0) { return this.e.p(); } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final void a(List list) throws IOException { int s; int s2; if (list instanceof Wqp) { Wqp wqp = (Wqp) list; int c = Nvr.c(this.a); if (c != 1) { if (c == 2) { int y = this.e.y(); if ((y & 7) == 0) { int d = this.e.d(); do { wqp.c(this.e.f()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { wqp.c(this.e.f()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 1) { if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 7) == 0) { int d2 = this.e.d(); do { list.add(Double.valueOf(this.e.f())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { list.add(Double.valueOf(this.e.f())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void f(List list) throws IOException { int s; int s2; if (list instanceof HFd) { HFd hFd = (HFd) list; int c = Nvr.c(this.a); if (c == 2) { int y = this.e.y(); if ((y & 3) == 0) { int d = this.e.d(); do { hFd.d(this.e.i()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } if (c != 5) { throw InvalidProtocolBufferException.e(); } do { hFd.d(this.e.i()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 3) == 0) { int d2 = this.e.d(); do { list.add(Float.valueOf(this.e.i())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } if (c2 != 5) { throw InvalidProtocolBufferException.e(); } do { list.add(Float.valueOf(this.e.i())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void r(List list) throws IOException { int s; int s2; if (list instanceof C15673heO) { C15673heO c15673heO = (C15673heO) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { c15673heO.e(this.e.v()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { c15673heO.e(this.e.v()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Long.valueOf(this.e.v())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Long.valueOf(this.e.v())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void j(List list) throws IOException { int s; int s2; if (list instanceof C15673heO) { C15673heO c15673heO = (C15673heO) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { c15673heO.e(this.e.k()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { c15673heO.e(this.e.k()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Long.valueOf(this.e.k())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Long.valueOf(this.e.k())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void g(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { rjv.a(this.e.l()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.l()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Integer.valueOf(this.e.l())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.l())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void i(List list) throws IOException { int s; int s2; if (list instanceof C15673heO) { C15673heO c15673heO = (C15673heO) list; int c = Nvr.c(this.a); if (c != 1) { if (c == 2) { int y = this.e.y(); if ((y & 7) == 0) { int d = this.e.d(); do { c15673heO.e(this.e.g()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { c15673heO.e(this.e.g()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 1) { if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 7) == 0) { int d2 = this.e.d(); do { list.add(Long.valueOf(this.e.g())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { list.add(Long.valueOf(this.e.g())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void d(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c == 2) { int y = this.e.y(); if ((y & 3) == 0) { int d = this.e.d(); do { rjv.a(this.e.j()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } if (c != 5) { throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.j()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 3) == 0) { int d2 = this.e.d(); do { list.add(Integer.valueOf(this.e.j())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } if (c2 != 5) { throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.j())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void e(List list) throws IOException { int s; int s2; if (list instanceof Twb) { Twb twb = (Twb) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { twb.b(this.e.b()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { twb.b(this.e.b()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Boolean.valueOf(this.e.b())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Boolean.valueOf(this.e.b())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void l(List list) throws IOException { e(list, false); } @Override // o.lfg public final void o(List list) throws IOException { e(list, true); } private void e(List list, boolean z) throws IOException { String t; int s; if (Nvr.c(this.a) != 2) { throw InvalidProtocolBufferException.e(); } if ((list instanceof VWY) && !z) { VWY vwy = (VWY) list; while (Nvr.c(this.a) == 2) { vwy.c(this.e.c()); if (this.e.a()) { return; } int s2 = this.e.s(); if (s2 != this.a) { this.c = s2; return; } } throw InvalidProtocolBufferException.e(); } do { if (z) { if (Nvr.c(this.a) != 2) { throw InvalidProtocolBufferException.e(); } t = this.e.r(); } else { if (Nvr.c(this.a) != 2) { throw InvalidProtocolBufferException.e(); } t = this.e.t(); } list.add(t); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } /* JADX WARN: Multi-variable type inference failed */ @Override // o.lfg public final void a(List list, Wnq wnq, ZjA zjA) throws IOException { int s; if (Nvr.c(this.a) != 2) { throw InvalidProtocolBufferException.e(); } int i = this.a; do { list.add(e(wnq, zjA)); if (this.e.a() || this.c != 0) { return; } else { s = this.e.s(); } } while (s == i); this.c = s; } /* JADX WARN: Multi-variable type inference failed */ @Override // o.lfg public final void b(List list, Wnq wnq, ZjA zjA) throws IOException { int s; if (Nvr.c(this.a) != 3) { throw InvalidProtocolBufferException.e(); } int i = this.a; do { list.add(a(wnq, zjA)); if (this.e.a() || this.c != 0) { return; } else { s = this.e.s(); } } while (s == i); this.c = s; } @Override // o.lfg public final void c(List list) throws IOException { if (Nvr.c(this.a) != 2) { throw InvalidProtocolBufferException.e(); } while (Nvr.c(this.a) == 2) { list.add(this.e.c()); if (this.e.a()) { return; } int s = this.e.s(); if (s != this.a) { this.c = s; return; } } throw InvalidProtocolBufferException.e(); } @Override // o.lfg public final void q(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { rjv.a(this.e.y()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.y()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Integer.valueOf(this.e.y())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.y())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void b(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { rjv.a(this.e.h()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.h()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Integer.valueOf(this.e.h())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.h())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void h(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c == 2) { int y = this.e.y(); if ((y & 3) == 0) { int d = this.e.d(); do { rjv.a(this.e.m()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } if (c != 5) { throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.m()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 3) == 0) { int d2 = this.e.d(); do { list.add(Integer.valueOf(this.e.m())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } if (c2 != 5) { throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.m())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void m(List list) throws IOException { int s; int s2; if (list instanceof C15673heO) { C15673heO c15673heO = (C15673heO) list; int c = Nvr.c(this.a); if (c != 1) { if (c == 2) { int y = this.e.y(); if ((y & 7) == 0) { int d = this.e.d(); do { c15673heO.e(this.e.o()); } while (this.e.d() < d + y); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { c15673heO.e(this.e.o()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 1) { if (c2 == 2) { int y2 = this.e.y(); if ((y2 & 7) == 0) { int d2 = this.e.d(); do { list.add(Long.valueOf(this.e.o())); } while (this.e.d() < d2 + y2); return; } throw InvalidProtocolBufferException.f(); } throw InvalidProtocolBufferException.e(); } do { list.add(Long.valueOf(this.e.o())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void n(List list) throws IOException { int s; int s2; if (list instanceof Rjv) { Rjv rjv = (Rjv) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { rjv.a(this.e.q()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { rjv.a(this.e.q()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Integer.valueOf(this.e.q())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Integer.valueOf(this.e.q())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } @Override // o.lfg public final void k(List list) throws IOException { int s; int s2; if (list instanceof C15673heO) { C15673heO c15673heO = (C15673heO) list; int c = Nvr.c(this.a); if (c != 0) { if (c == 2) { int d = this.e.d() + this.e.y(); do { c15673heO.e(this.e.p()); } while (this.e.d() < d); if (this.e.d() != d) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { c15673heO.e(this.e.p()); if (this.e.a()) { return; } else { s2 = this.e.s(); } } while (s2 == this.a); this.c = s2; return; } int c2 = Nvr.c(this.a); if (c2 != 0) { if (c2 == 2) { int d2 = this.e.d() + this.e.y(); do { list.add(Long.valueOf(this.e.p())); } while (this.e.d() < d2); if (this.e.d() != d2) { throw InvalidProtocolBufferException.g(); } return; } throw InvalidProtocolBufferException.e(); } do { list.add(Long.valueOf(this.e.p())); if (this.e.a()) { return; } else { s = this.e.s(); } } while (s == this.a); this.c = s; } /* JADX WARN: Code restructure failed: missing block: B:40:0x0060, code lost: r8.put(r2, r3); */ /* JADX WARN: Code restructure failed: missing block: B:42:0x0068, code lost: return; */ /* JADX WARN: Multi-variable type inference failed */ @Override // o.lfg /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void a(java.util.Map r8, o.xdS.IeS r9, o.ZjA r10) throws java.io.IOException { /* r7 = this; int r0 = r7.a int r0 = o.Nvr.c(r0) r1 = 2 if (r0 != r1) goto L70 o.cKE r0 = r7.e int r0 = r0.y() o.cKE r2 = r7.e int r0 = r2.d(r0) K r2 = r9.a V r3 = r9.e L19: int r4 = r7.e() // Catch: java.lang.Throwable -> L69 r5 = 2147483647(0x7fffffff, float:NaN) if (r4 == r5) goto L60 o.cKE r5 = r7.e // Catch: java.lang.Throwable -> L69 boolean r5 = r5.a() // Catch: java.lang.Throwable -> L69 if (r5 != 0) goto L60 r5 = 1 java.lang.String r6 = "Unable to parse map entry." if (r4 == r5) goto L4b if (r4 == r1) goto L3e boolean r4 = r7.s() // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 if (r4 == 0) goto L38 goto L19 L38: com.google.protobuf.InvalidProtocolBufferException r4 = new com.google.protobuf.InvalidProtocolBufferException // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 r4.(r6) // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 throw r4 // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 L3e: o.Nvr$HBt r4 = r9.b // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 V r5 = r9.e // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 java.lang.Class r5 = r5.getClass() // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 java.lang.Object r3 = r7.e(r4, r5, r10) // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 goto L19 L4b: o.Nvr$HBt r4 = r9.d // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 r5 = 0 java.lang.Object r2 = r7.e(r4, r5, r5) // Catch: com.google.protobuf.InvalidProtocolBufferException.InvalidWireTypeException -> L53 java.lang.Throwable -> L69 goto L19 L53: boolean r4 = r7.s() // Catch: java.lang.Throwable -> L69 if (r4 == 0) goto L5a goto L19 L5a: com.google.protobuf.InvalidProtocolBufferException r8 = new com.google.protobuf.InvalidProtocolBufferException // Catch: java.lang.Throwable -> L69 r8.(r6) // Catch: java.lang.Throwable -> L69 throw r8 // Catch: java.lang.Throwable -> L69 L60: r8.put(r2, r3) // Catch: java.lang.Throwable -> L69 o.cKE r8 = r7.e r8.e(r0) return L69: r8 = move-exception o.cKE r9 = r7.e r9.e(r0) throw r8 L70: com.google.protobuf.InvalidProtocolBufferException$InvalidWireTypeException r8 = com.google.protobuf.InvalidProtocolBufferException.e() throw r8 */ throw new UnsupportedOperationException("Method not decompiled: o.uCO.a(java.util.Map, o.xdS$IeS, o.ZjA):void"); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.uCO$1, reason: invalid class name */ /* loaded from: classes2.dex */ public static /* synthetic */ class AnonymousClass1 { static final int[] e; static { int[] iArr = new int[Nvr.HBt.values().length]; e = iArr; try { iArr[Nvr.HBt.BOOL.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { e[Nvr.HBt.BYTES.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } try { e[Nvr.HBt.DOUBLE.ordinal()] = 3; } catch (NoSuchFieldError unused3) { } try { e[Nvr.HBt.ENUM.ordinal()] = 4; } catch (NoSuchFieldError unused4) { } try { e[Nvr.HBt.FIXED32.ordinal()] = 5; } catch (NoSuchFieldError unused5) { } try { e[Nvr.HBt.FIXED64.ordinal()] = 6; } catch (NoSuchFieldError unused6) { } try { e[Nvr.HBt.FLOAT.ordinal()] = 7; } catch (NoSuchFieldError unused7) { } try { e[Nvr.HBt.INT32.ordinal()] = 8; } catch (NoSuchFieldError unused8) { } try { e[Nvr.HBt.INT64.ordinal()] = 9; } catch (NoSuchFieldError unused9) { } try { e[Nvr.HBt.MESSAGE.ordinal()] = 10; } catch (NoSuchFieldError unused10) { } try { e[Nvr.HBt.SFIXED32.ordinal()] = 11; } catch (NoSuchFieldError unused11) { } try { e[Nvr.HBt.SFIXED64.ordinal()] = 12; } catch (NoSuchFieldError unused12) { } try { e[Nvr.HBt.SINT32.ordinal()] = 13; } catch (NoSuchFieldError unused13) { } try { e[Nvr.HBt.SINT64.ordinal()] = 14; } catch (NoSuchFieldError unused14) { } try { e[Nvr.HBt.STRING.ordinal()] = 15; } catch (NoSuchFieldError unused15) { } try { e[Nvr.HBt.UINT32.ordinal()] = 16; } catch (NoSuchFieldError unused16) { } try { e[Nvr.HBt.UINT64.ordinal()] = 17; } catch (NoSuchFieldError unused17) { } } } private Object e(Nvr.HBt hBt, Class cls, ZjA zjA) throws IOException { switch (AnonymousClass1.e[hBt.ordinal()]) { case 1: if (Nvr.c(this.a) == 0) { return Boolean.valueOf(this.e.b()); } throw InvalidProtocolBufferException.e(); case 2: if (Nvr.c(this.a) == 2) { return this.e.c(); } throw InvalidProtocolBufferException.e(); case 3: if (Nvr.c(this.a) == 1) { return Double.valueOf(this.e.f()); } throw InvalidProtocolBufferException.e(); case 4: if (Nvr.c(this.a) == 0) { return Integer.valueOf(this.e.h()); } throw InvalidProtocolBufferException.e(); case 5: if (Nvr.c(this.a) == 5) { return Integer.valueOf(this.e.j()); } throw InvalidProtocolBufferException.e(); case 6: if (Nvr.c(this.a) == 1) { return Long.valueOf(this.e.g()); } throw InvalidProtocolBufferException.e(); case 7: if (Nvr.c(this.a) == 5) { return Float.valueOf(this.e.i()); } throw InvalidProtocolBufferException.e(); case 8: if (Nvr.c(this.a) == 0) { return Integer.valueOf(this.e.l()); } throw InvalidProtocolBufferException.e(); case 9: if (Nvr.c(this.a) == 0) { return Long.valueOf(this.e.k()); } throw InvalidProtocolBufferException.e(); case 10: if (Nvr.c(this.a) == 2) { return e(MvG.a().b(cls), zjA); } throw InvalidProtocolBufferException.e(); case 11: if (Nvr.c(this.a) == 5) { return Integer.valueOf(this.e.m()); } throw InvalidProtocolBufferException.e(); case 12: if (Nvr.c(this.a) == 1) { return Long.valueOf(this.e.o()); } throw InvalidProtocolBufferException.e(); case 13: if (Nvr.c(this.a) == 0) { return Integer.valueOf(this.e.q()); } throw InvalidProtocolBufferException.e(); case 14: if (Nvr.c(this.a) == 0) { return Long.valueOf(this.e.p()); } throw InvalidProtocolBufferException.e(); case 15: if (Nvr.c(this.a) == 2) { return this.e.r(); } throw InvalidProtocolBufferException.e(); case 16: if (Nvr.c(this.a) == 0) { return Integer.valueOf(this.e.y()); } throw InvalidProtocolBufferException.e(); case 17: if (Nvr.c(this.a) == 0) { return Long.valueOf(this.e.v()); } throw InvalidProtocolBufferException.e(); default: throw new RuntimeException("unsupported field type."); } } @Override // o.lfg public final int d() { return this.a; } }