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.gko, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C15228gko extends TypeAdapter implements HJa { private PYE c; private Gson d; private InterfaceC15734iCu e; public C15228gko(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.d = gson; this.e = interfaceC15734iCu; this.c = pye; } @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } C17766zbW c17766zbW = (C17766zbW) obj; Gson gson = this.d; PYE pye = this.c; jsonWriter.beginObject(); String str = c17766zbW.b; pye.c(jsonWriter, 533); String str2 = c17766zbW.b; DTh.b(gson, String.class, str2).write(jsonWriter, str2); String str3 = c17766zbW.a; pye.c(jsonWriter, 277); String str4 = c17766zbW.a; DTh.b(gson, String.class, str4).write(jsonWriter, str4); String str5 = c17766zbW.d; pye.c(jsonWriter, 98); String str6 = c17766zbW.d; DTh.b(gson, String.class, str6).write(jsonWriter, str6); 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; } C17766zbW c17766zbW = new C17766zbW(); Gson gson = this.d; InterfaceC15734iCu interfaceC15734iCu = this.e; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 133) { if (e != 216) { if (e != 239) { jsonReader.skipValue(); } else if (z) { c17766zbW.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { c17766zbW.b = null; jsonReader.nextNull(); } } else if (z) { c17766zbW.d = (String) gson.getAdapter(String.class).read2(jsonReader); } else { c17766zbW.d = null; jsonReader.nextNull(); } } else if (z) { c17766zbW.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { c17766zbW.a = null; jsonReader.nextNull(); } } jsonReader.endObject(); return c17766zbW; } }