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