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.Tt, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C1014Tt extends TypeAdapter implements HJa { private InterfaceC15734iCu a; private Gson b; private PYE e; public C1014Tt(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.b = gson; this.a = 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; } TK tk = (TK) obj; Gson gson = this.b; PYE pye = this.e; jsonWriter.beginObject(); if (tk != tk.a) { pye.c(jsonWriter, 439); String str = tk.a; DTh.b(gson, String.class, str).write(jsonWriter, str); } if (tk != tk.e) { pye.c(jsonWriter, 325); String str2 = tk.e; DTh.b(gson, String.class, str2).write(jsonWriter, str2); } 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; } TK tk = new TK(); Gson gson = this.b; InterfaceC15734iCu interfaceC15734iCu = this.a; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 134) { if (e != 478) { jsonReader.skipValue(); } else if (z) { tk.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { tk.a = null; jsonReader.nextNull(); } } else if (z) { tk.e = (String) gson.getAdapter(String.class).read2(jsonReader); } else { tk.e = null; jsonReader.nextNull(); } } jsonReader.endObject(); return tk; } }