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 com.kofax.mobile.sdk.extract.id.LocalProjectProvider; import java.io.IOException; /* renamed from: o.kkk, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C16053kkk extends TypeAdapter implements HJa { private InterfaceC15734iCu b; private PYE d; private Gson e; public C16053kkk(Gson gson, InterfaceC15734iCu interfaceC15734iCu, PYE pye) { this.e = gson; this.b = interfaceC15734iCu; this.d = pye; } /* JADX WARN: Multi-variable type inference failed */ @Override // com.google.gson.TypeAdapter public final void write(JsonWriter jsonWriter, Object obj) throws IOException { if (obj == null) { jsonWriter.nullValue(); return; } LocalProjectProvider.VersionTable versionTable = (LocalProjectProvider.VersionTable) obj; Gson gson = this.e; PYE pye = this.d; jsonWriter.beginObject(); if (versionTable != versionTable.VersionList) { pye.c(jsonWriter, 636); LocalProjectProvider.VersionTable.VersionList[] versionListArr = versionTable.VersionList; DTh.b(gson, LocalProjectProvider.VersionTable.VersionList[].class, versionListArr).write(jsonWriter, versionListArr); } 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; } LocalProjectProvider.VersionTable versionTable = new LocalProjectProvider.VersionTable(); Gson gson = this.e; InterfaceC15734iCu interfaceC15734iCu = this.b; jsonReader.beginObject(); while (jsonReader.hasNext()) { int e = interfaceC15734iCu.e(jsonReader); boolean z = jsonReader.peek() != JsonToken.NULL; if (e != 144) { jsonReader.skipValue(); } else if (z) { versionTable.VersionList = (LocalProjectProvider.VersionTable.VersionList[]) gson.getAdapter(LocalProjectProvider.VersionTable.VersionList[].class).read2(jsonReader); } else { versionTable.VersionList = null; jsonReader.nextNull(); } } jsonReader.endObject(); return versionTable; } }