package com.amplifyframework.core.configuration;

import com.amplifyframework.core.configuration.AmplifyOutputsDataImpl;
import fq.b;
import fq.f;
import iq.d;
import java.util.Map;
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.Maps.$serializer", "Ljq/a0;", "Lcom/amplifyframework/core/configuration/AmplifyOutputsDataImpl$Geo$Maps;", "", "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$Maps$$serializer implements a0 {
    public static final AmplifyOutputsDataImpl$Geo$Maps$$serializer INSTANCE;
    private static final /* synthetic */ w0 descriptor;

    static {
        AmplifyOutputsDataImpl$Geo$Maps$$serializer amplifyOutputsDataImpl$Geo$Maps$$serializer = new AmplifyOutputsDataImpl$Geo$Maps$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Geo$Maps$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Geo.Maps", amplifyOutputsDataImpl$Geo$Maps$$serializer, 2);
        w0Var.c("items", false);
        w0Var.c("default", false);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Geo$Maps$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        b[] bVarArr;
        bVarArr = AmplifyOutputsDataImpl.Geo.Maps.$childSerializers;
        return new b[]{bVarArr[0], j1.f25222a};
    }

    @Override // fq.a
    public AmplifyOutputsDataImpl.Geo.Maps deserialize(d decoder) {
        b[] bVarArr;
        Map map;
        String str;
        int i10;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        bVarArr = AmplifyOutputsDataImpl.Geo.Maps.$childSerializers;
        if (a10.t()) {
            map = (Map) a10.s(descriptor2, 0, bVarArr[0], null);
            str = a10.x(descriptor2, 1);
            i10 = 3;
        } else {
            boolean z10 = true;
            int i11 = 0;
            Map map2 = null;
            String str2 = null;
            while (z10) {
                int F = a10.F(descriptor2);
                if (F == -1) {
                    z10 = false;
                } else if (F == 0) {
                    map2 = (Map) a10.s(descriptor2, 0, bVarArr[0], map2);
                    i11 |= 1;
                } else {
                    if (F != 1) {
                        throw new f(F);
                    }
                    str2 = a10.x(descriptor2, 1);
                    i11 |= 2;
                }
            }
            map = map2;
            str = str2;
            i10 = i11;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Geo.Maps(i10, map, str, null);
    }

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

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

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