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.cid, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C7138cid extends TypeAdapter implements HJa { private InterfaceC15734iCu a; private Gson b; private PYE d; public C7138cid(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.b = gson; this.a = 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; } myN myn = (myN) obj; Gson gson = this.b; PYE pye = this.d; jsonWriter.beginObject(); String str = myn.d; pye.c(jsonWriter, 416); String str2 = myn.d; DTh.b(gson, String.class, str2).write(jsonWriter, str2); String str3 = myn.b; pye.c(jsonWriter, 142); String str4 = myn.b; 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; } myN myn = new myN(); 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 != 585) { if (e != 649) { jsonReader.skipValue(); } else if (z) { myn.d = (String) gson.getAdapter(String.class).read2(jsonReader); } else { myn.d = null; jsonReader.nextNull(); } } else if (z) { myn.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { myn.b = null; jsonReader.nextNull(); } } jsonReader.endObject(); return myn; } }