package o; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import java.io.IOException; import java.util.List; import org.bouncycastle.crypto.tls.CipherSuite; import org.jmrtd.cbeff.ISO781611; /* loaded from: classes.dex */ public final class ZgW extends TypeAdapter implements HJa { private InterfaceC15734iCu b; private Gson d; private PYE e; public ZgW(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.d = gson; this.b = interfaceC15734iCu; this.e = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } iKd ikd = (iKd) obj; Gson gson = this.d; PYE pye = this.e; jsonWriter.beginObject(); if (ikd != ikd.b) { pye.c(jsonWriter, 557); String str = ikd.b; DTh.b(gson, String.class, str).write(jsonWriter, str); } if (ikd != ikd.c) { pye.c(jsonWriter, 631); String str2 = ikd.c; DTh.b(gson, String.class, str2).write(jsonWriter, str2); } if (ikd != ikd.d) { pye.c(jsonWriter, 605); String str3 = ikd.d; DTh.b(gson, String.class, str3).write(jsonWriter, str3); } if (ikd != ikd.a) { pye.c(jsonWriter, 681); String str4 = ikd.a; DTh.b(gson, String.class, str4).write(jsonWriter, str4); } if (ikd != ikd.e) { pye.c(jsonWriter, 48); String str5 = ikd.e; DTh.b(gson, String.class, str5).write(jsonWriter, str5); } if (ikd != ikd.f) { pye.c(jsonWriter, 422); String str6 = ikd.f; DTh.b(gson, String.class, str6).write(jsonWriter, str6); } if (ikd != ikd.h) { pye.c(jsonWriter, 79); String str7 = ikd.h; DTh.b(gson, String.class, str7).write(jsonWriter, str7); } if (ikd != ikd.g) { pye.c(jsonWriter, 580); String str8 = ikd.g; DTh.b(gson, String.class, str8).write(jsonWriter, str8); } if (ikd != ikd.i) { pye.c(jsonWriter, 500); String str9 = ikd.i; DTh.b(gson, String.class, str9).write(jsonWriter, str9); } if (ikd != ikd.j) { pye.c(jsonWriter, 567); String str10 = ikd.j; DTh.b(gson, String.class, str10).write(jsonWriter, str10); } if (ikd != ikd.k) { pye.c(jsonWriter, 305); String str11 = ikd.k; DTh.b(gson, String.class, str11).write(jsonWriter, str11); } if (ikd != ikd.n) { pye.c(jsonWriter, 683); String str12 = ikd.n; DTh.b(gson, String.class, str12).write(jsonWriter, str12); } if (ikd != ikd.l) { pye.c(jsonWriter, 126); String str13 = ikd.l; DTh.b(gson, String.class, str13).write(jsonWriter, str13); } if (ikd != ikd.f9170o) { pye.c(jsonWriter, 339); String str14 = ikd.f9170o; DTh.b(gson, String.class, str14).write(jsonWriter, str14); } pye.c(jsonWriter, 459); Class cls = Integer.TYPE; Integer valueOf = Integer.valueOf(ikd.m); DTh.b(gson, cls, valueOf).write(jsonWriter, valueOf); if (ikd != ikd.r) { pye.c(jsonWriter, 593); String str15 = ikd.r; DTh.b(gson, String.class, str15).write(jsonWriter, str15); } if (ikd != ikd.p) { pye.c(jsonWriter, 684); String str16 = ikd.p; DTh.b(gson, String.class, str16).write(jsonWriter, str16); } if (ikd != ikd.s) { pye.c(jsonWriter, 418); String str17 = ikd.s; DTh.b(gson, String.class, str17).write(jsonWriter, str17); } if (ikd != ikd.q) { pye.c(jsonWriter, 346); String str18 = ikd.q; DTh.b(gson, String.class, str18).write(jsonWriter, str18); } pye.c(jsonWriter, 68); Class cls2 = Integer.TYPE; Integer valueOf2 = Integer.valueOf(ikd.t); DTh.b(gson, cls2, valueOf2).write(jsonWriter, valueOf2); if (ikd != ikd.w) { pye.c(jsonWriter, 491); String str19 = ikd.w; DTh.b(gson, String.class, str19).write(jsonWriter, str19); } if (ikd != ikd.x) { pye.c(jsonWriter, 231); String str20 = ikd.x; DTh.b(gson, String.class, str20).write(jsonWriter, str20); } if (ikd != ikd.u) { pye.c(jsonWriter, 16); String str21 = ikd.u; DTh.b(gson, String.class, str21).write(jsonWriter, str21); } if (ikd != ikd.v) { pye.c(jsonWriter, 447); String str22 = ikd.v; DTh.b(gson, String.class, str22).write(jsonWriter, str22); } if (ikd != ikd.y) { pye.c(jsonWriter, CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA384); String str23 = ikd.y; DTh.b(gson, String.class, str23).write(jsonWriter, str23); } if (ikd != ikd.D) { pye.c(jsonWriter, 530); String str24 = ikd.D; DTh.b(gson, String.class, str24).write(jsonWriter, str24); } if (ikd != ikd.B) { pye.c(jsonWriter, CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA); String str25 = ikd.B; DTh.b(gson, String.class, str25).write(jsonWriter, str25); } if (ikd != ikd.z) { pye.c(jsonWriter, 237); String str26 = ikd.z; DTh.b(gson, String.class, str26).write(jsonWriter, str26); } if (ikd != ikd.C) { pye.c(jsonWriter, 376); String str27 = ikd.C; DTh.b(gson, String.class, str27).write(jsonWriter, str27); } if (ikd != ikd.A) { pye.c(jsonWriter, 654); String str28 = ikd.A; DTh.b(gson, String.class, str28).write(jsonWriter, str28); } if (ikd != ikd.H) { pye.c(jsonWriter, 64); String str29 = ikd.H; DTh.b(gson, String.class, str29).write(jsonWriter, str29); } if (ikd != ikd.G) { pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_SEED_CBC_SHA); Agj agj = new Agj(); List list = ikd.G; DTh.a(gson, agj, list).write(jsonWriter, list); } if (ikd != ikd.F) { pye.c(jsonWriter, 198); String str30 = ikd.F; DTh.b(gson, String.class, str30).write(jsonWriter, str30); } pye.c(jsonWriter, 409); Class cls3 = Integer.TYPE; Integer valueOf3 = Integer.valueOf(ikd.E); DTh.b(gson, cls3, valueOf3).write(jsonWriter, valueOf3); if (ikd != ikd.I) { pye.c(jsonWriter, 236); String str31 = ikd.I; DTh.b(gson, String.class, str31).write(jsonWriter, str31); } if (ikd != ikd.N) { pye.c(jsonWriter, 301); String str32 = ikd.N; DTh.b(gson, String.class, str32).write(jsonWriter, str32); } if (ikd != ikd.K) { pye.c(jsonWriter, 298); String str33 = ikd.K; DTh.b(gson, String.class, str33).write(jsonWriter, str33); } if (ikd != ikd.L) { pye.c(jsonWriter, 425); String str34 = ikd.L; DTh.b(gson, String.class, str34).write(jsonWriter, str34); } if (ikd != ikd.J) { pye.c(jsonWriter, 199); String str35 = ikd.J; DTh.b(gson, String.class, str35).write(jsonWriter, str35); } if (ikd != ikd.M) { pye.c(jsonWriter, 559); String str36 = ikd.M; DTh.b(gson, String.class, str36).write(jsonWriter, str36); } jsonWriter.endObject(); } @Override // com.google.gson.TypeAdapter /* renamed from: read */ public final Object read2(JsonReader jsonReader) throws IOException { if (jsonReader.peek() == JsonToken.NULL) { jsonReader.skipValue(); return null; } iKd ikd = new iKd(); Gson gson = this.d; InterfaceC15734iCu interfaceC15734iCu = this.b; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; switch (e) { case 17: if (!z) { ikd.N = null; break; } else { ikd.N = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 35: if (!z) { ikd.u = null; break; } else { ikd.u = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 67: if (!z) { ikd.D = null; break; } else { ikd.D = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 105: if (!z) { ikd.K = null; break; } else { ikd.K = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 119: if (!z) { ikd.k = null; break; } else { ikd.k = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case ISO781611.CREATION_DATE_AND_TIME_TAG /* 131 */: if (!z) { ikd.v = null; break; } else { ikd.v = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case CipherSuite.TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 /* 163 */: if (!z) { ikd.w = null; break; } else { ikd.w = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256 /* 168 */: if (!z) { ikd.J = null; break; } else { ikd.J = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 /* 197 */: if (!z) { ikd.h = null; break; } else { ikd.h = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 208: if (!z) { ikd.c = null; break; } else { ikd.c = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 217: if (!z) { ikd.n = null; break; } else { ikd.n = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 232: if (!z) { ikd.z = null; break; } else { ikd.z = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 249: if (!z) { ikd.r = null; break; } else { ikd.r = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 267: if (!z) { ikd.g = null; break; } else { ikd.g = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 284: if (!z) { ikd.j = null; break; } else { ikd.j = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 290: if (!z) { ikd.B = null; break; } else { ikd.B = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 323: if (!z) { ikd.b = null; break; } else { ikd.b = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 331: if (!z) { ikd.C = null; break; } else { ikd.C = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 341: if (!z) { break; } else { ikd.E = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue(); break; } case 361: if (!z) { ikd.G = null; break; } else { ikd.G = (List) gson.getAdapter(new Agj()).read2(jsonReader); break; } case 365: if (!z) { break; } else { ikd.m = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue(); break; } case 372: if (!z) { ikd.p = null; break; } else { ikd.p = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 395: if (!z) { ikd.e = null; break; } else { ikd.e = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 397: if (!z) { ikd.L = null; break; } else { ikd.L = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 434: if (!z) { ikd.A = null; break; } else { ikd.A = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 440: if (!z) { ikd.s = null; break; } else { ikd.s = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 477: if (!z) { ikd.M = null; break; } else { ikd.M = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case com.kofax.mobile.sdk._internal.impl.camera.h.Az /* 480 */: if (!z) { ikd.f = null; break; } else { ikd.f = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 497: if (!z) { ikd.a = null; break; } else { ikd.a = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 512: if (!z) { ikd.d = null; break; } else { ikd.d = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 517: if (!z) { ikd.x = null; break; } else { ikd.x = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 535: if (!z) { break; } else { ikd.t = ((Integer) gson.getAdapter(Integer.class).read2(jsonReader)).intValue(); break; } case 551: if (!z) { ikd.f9170o = null; break; } else { ikd.f9170o = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 590: if (!z) { ikd.I = null; break; } else { ikd.I = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 603: if (!z) { ikd.y = null; break; } else { ikd.y = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 639: if (!z) { ikd.F = null; break; } else { ikd.F = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 640: if (!z) { ikd.i = null; break; } else { ikd.i = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 642: if (!z) { ikd.l = null; break; } else { ikd.l = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 651: if (!z) { ikd.q = null; break; } else { ikd.q = (String) gson.getAdapter(String.class).read2(jsonReader); break; } case 688: if (!z) { ikd.H = null; break; } else { ikd.H = (String) gson.getAdapter(String.class).read2(jsonReader); break; } default: jsonReader.skipValue(); continue; } jsonReader.nextNull(); } jsonReader.endObject(); return ikd; } }