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; /* renamed from: o.JGo, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C0538JGo extends TypeAdapter implements HJa { private InterfaceC15734iCu c; private PYE d; private Gson e; public C0538JGo(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.e = gson; this.c = 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; } dSU dsu = (dSU) obj; Gson gson = this.e; PYE pye = this.d; jsonWriter.beginObject(); String str = dsu.b; pye.c(jsonWriter, 622); String str2 = dsu.b; DTh.b(gson, String.class, str2).write(jsonWriter, str2); String str3 = dsu.a; pye.c(jsonWriter, 552); String str4 = dsu.a; DTh.b(gson, String.class, str4).write(jsonWriter, str4); 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; } dSU dsu = new dSU(); Gson gson = this.e; InterfaceC15734iCu interfaceC15734iCu = this.c; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 28) { if (e != 350) { jsonReader.skipValue(); } else if (z) { dsu.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { dsu.b = null; jsonReader.nextNull(); } } else if (z) { dsu.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { dsu.a = null; jsonReader.nextNull(); } } jsonReader.endObject(); return dsu; } }