package com.amplifyframework.core.configuration;

import com.amplifyframework.core.configuration.AmplifyOutputsDataImpl;
import fq.b;
import fq.f;
import gq.a;
import iq.d;
import jq.a0;
import jq.j1;
import jq.w0;
import kotlin.Metadata;
import kotlin.jvm.internal.t;
import rm.e;

@Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\bÇ\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0013\u0010\u0014J\u001a\u0010\u0005\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00040\u0003HÖ\u0001¢\u0006\u0004\b\u0005\u0010\u0006J\u0011\u0010\t\u001a\u00020\u00022\u0006\u0010\b\u001a\u00020\u0007HÖ\u0001J\u0019\u0010\u000e\u001a\u00020\r2\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\f\u001a\u00020\u0002HÖ\u0001R\u0014\u0010\u0012\u001a\u00020\u000f8VXÖ\u0005¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0015"}, d2 = {"com/amplifyframework/core/configuration/AmplifyOutputsDataImpl.Geo.$serializer", "Ljq/a0;", "Lcom/amplifyframework/core/configuration/AmplifyOutputsDataImpl$Geo;", "", "Lfq/b;", "childSerializers", "()[Lfq/b;", "Liq/d;", "decoder", "deserialize", "Liq/e;", "encoder", "value", "Lrm/n0;", "serialize", "Lhq/e;", "getDescriptor", "()Lhq/e;", "descriptor", "<init>", "()V", "com.amplifyframework.core_release"}, k = 1, mv = {1, 9, 0})
@e
/* loaded from: classes4.dex */
public final class AmplifyOutputsDataImpl$Geo$$serializer implements a0 {
    public static final AmplifyOutputsDataImpl$Geo$$serializer INSTANCE;
    private static final /* synthetic */ w0 descriptor;

    static {
        AmplifyOutputsDataImpl$Geo$$serializer amplifyOutputsDataImpl$Geo$$serializer = new AmplifyOutputsDataImpl$Geo$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Geo$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Geo", amplifyOutputsDataImpl$Geo$$serializer, 4);
        w0Var.c("awsRegion", false);
        w0Var.c("maps", false);
        w0Var.c("searchIndices", false);
        w0Var.c("geofenceCollections", false);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Geo$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        return new b[]{j1.f25222a, a.p(AmplifyOutputsDataImpl$Geo$Maps$$serializer.INSTANCE), a.p(AmplifyOutputsDataImpl$Geo$SearchIndices$$serializer.INSTANCE), a.p(AmplifyOutputsDataImpl$Geo$GeofenceCollections$$serializer.INSTANCE)};
    }

    @Override // fq.a
    public AmplifyOutputsDataImpl.Geo deserialize(d decoder) {
        int i10;
        String str;
        AmplifyOutputsDataImpl.Geo.Maps maps;
        AmplifyOutputsDataImpl.Geo.SearchIndices searchIndices;
        AmplifyOutputsDataImpl.Geo.GeofenceCollections geofenceCollections;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        String str2 = null;
        if (a10.t()) {
            String x10 = a10.x(descriptor2, 0);
            AmplifyOutputsDataImpl.Geo.Maps maps2 = (AmplifyOutputsDataImpl.Geo.Maps) a10.l(descriptor2, 1, AmplifyOutputsDataImpl$Geo$Maps$$serializer.INSTANCE, null);
            AmplifyOutputsDataImpl.Geo.SearchIndices searchIndices2 = (AmplifyOutputsDataImpl.Geo.SearchIndices) a10.l(descriptor2, 2, AmplifyOutputsDataImpl$Geo$SearchIndices$$serializer.INSTANCE, null);
            str = x10;
            geofenceCollections = (AmplifyOutputsDataImpl.Geo.GeofenceCollections) a10.l(descriptor2, 3, AmplifyOutputsDataImpl$Geo$GeofenceCollections$$serializer.INSTANCE, null);
            searchIndices = searchIndices2;
            maps = maps2;
            i10 = 15;
        } else {
            boolean z10 = true;
            int i11 = 0;
            AmplifyOutputsDataImpl.Geo.Maps maps3 = null;
            AmplifyOutputsDataImpl.Geo.SearchIndices searchIndices3 = null;
            AmplifyOutputsDataImpl.Geo.GeofenceCollections geofenceCollections2 = null;
            while (z10) {
                int F = a10.F(descriptor2);
                if (F == -1) {
                    z10 = false;
                } else if (F == 0) {
                    str2 = a10.x(descriptor2, 0);
                    i11 |= 1;
                } else if (F == 1) {
                    maps3 = (AmplifyOutputsDataImpl.Geo.Maps) a10.l(descriptor2, 1, AmplifyOutputsDataImpl$Geo$Maps$$serializer.INSTANCE, maps3);
                    i11 |= 2;
                } else if (F == 2) {
                    searchIndices3 = (AmplifyOutputsDataImpl.Geo.SearchIndices) a10.l(descriptor2, 2, AmplifyOutputsDataImpl$Geo$SearchIndices$$serializer.INSTANCE, searchIndices3);
                    i11 |= 4;
                } else {
                    if (F != 3) {
                        throw new f(F);
                    }
                    geofenceCollections2 = (AmplifyOutputsDataImpl.Geo.GeofenceCollections) a10.l(descriptor2, 3, AmplifyOutputsDataImpl$Geo$GeofenceCollections$$serializer.INSTANCE, geofenceCollections2);
                    i11 |= 8;
                }
            }
            i10 = i11;
            str = str2;
            maps = maps3;
            searchIndices = searchIndices3;
            geofenceCollections = geofenceCollections2;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Geo(i10, str, maps, searchIndices, geofenceCollections, null);
    }

    @Override // fq.b, fq.a
    public hq.e getDescriptor() {
        return descriptor;
    }

    public void serialize(iq.e encoder, AmplifyOutputsDataImpl.Geo value) {
        t.g(encoder, "encoder");
        t.g(value, "value");
        hq.e descriptor2 = getDescriptor();
        encoder.a(descriptor2);
        AmplifyOutputsDataImpl.Geo.write$Self(value, null, descriptor2);
        throw null;
    }

    @Override // jq.a0
    public b[] typeParametersSerializers() {
        return a0.a.a(this);
    }
}
