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 org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.PIz, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C0808PIz extends TypeAdapter implements HJa { private Gson b; private PYE d; private InterfaceC15734iCu e; public C0808PIz(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.b = gson; this.e = interfaceC15734iCu; this.d = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } JsH jsH = (JsH) obj; Gson gson = this.b; PYE pye = this.d; jsonWriter.beginObject(); Xay xay = jsH.c; pye.c(jsonWriter, CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256); Xay xay2 = jsH.c; DTh.b(gson, Xay.class, xay2).write(jsonWriter, xay2); QLa qLa = jsH.b; pye.c(jsonWriter, 433); QLa qLa2 = jsH.b; DTh.b(gson, QLa.class, qLa2).write(jsonWriter, qLa2); 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; } JsH jsH = new JsH(); Gson gson = this.b; InterfaceC15734iCu interfaceC15734iCu = this.e; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 479) { if (e != 515) { jsonReader.skipValue(); } else if (z) { jsH.b = (QLa) gson.getAdapter(QLa.class).read2(jsonReader); } else { jsH.b = null; jsonReader.nextNull(); } } else if (z) { jsH.c = (Xay) gson.getAdapter(Xay.class).read2(jsonReader); } else { jsH.c = null; jsonReader.nextNull(); } } jsonReader.endObject(); return jsH; } }