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.AFi, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C0133AFi extends TypeAdapter implements HJa { private Gson a; private InterfaceC15734iCu d; private PYE e; public C0133AFi(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.a = gson; this.d = 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; } Yms yms = (Yms) obj; Gson gson = this.a; PYE pye = this.e; jsonWriter.beginObject(); String str = yms.b; pye.c(jsonWriter, 511); String str2 = yms.b; DTh.b(gson, String.class, str2).write(jsonWriter, str2); String str3 = yms.a; pye.c(jsonWriter, 313); String str4 = yms.a; DTh.b(gson, String.class, str4).write(jsonWriter, str4); String str5 = yms.d; pye.c(jsonWriter, 498); String str6 = yms.d; DTh.b(gson, String.class, str6).write(jsonWriter, str6); Integer num = yms.e; pye.c(jsonWriter, 81); Integer num2 = yms.e; DTh.b(gson, Integer.class, num2).write(jsonWriter, num2); 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; } Yms yms = new Yms(); Gson gson = this.a; InterfaceC15734iCu interfaceC15734iCu = this.d; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 80) { if (e != 231) { if (e != 307) { if (e != 580) { jsonReader.skipValue(); } else if (z) { yms.e = (Integer) gson.getAdapter(Integer.class).read2(jsonReader); } else { yms.e = null; jsonReader.nextNull(); } } else if (z) { yms.a = (String) gson.getAdapter(String.class).read2(jsonReader); } else { yms.a = null; jsonReader.nextNull(); } } else if (z) { yms.b = (String) gson.getAdapter(String.class).read2(jsonReader); } else { yms.b = null; jsonReader.nextNull(); } } else if (z) { yms.d = (String) gson.getAdapter(String.class).read2(jsonReader); } else { yms.d = null; jsonReader.nextNull(); } } jsonReader.endObject(); return yms; } }