package com.amplifyframework.core.configuration;

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

    static {
        AmplifyOutputsDataImpl$Analytics$$serializer amplifyOutputsDataImpl$Analytics$$serializer = new AmplifyOutputsDataImpl$Analytics$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Analytics$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Analytics", amplifyOutputsDataImpl$Analytics$$serializer, 1);
        w0Var.c("amazonPinpoint", false);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Analytics$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        return new b[]{a.p(AmplifyOutputsDataImpl$Analytics$AmazonPinpoint$$serializer.INSTANCE)};
    }

    @Override // fq.a
    public AmplifyOutputsDataImpl.Analytics deserialize(d decoder) {
        AmplifyOutputsDataImpl.Analytics.AmazonPinpoint amazonPinpoint;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        int i10 = 1;
        if (a10.t()) {
            amazonPinpoint = (AmplifyOutputsDataImpl.Analytics.AmazonPinpoint) a10.l(descriptor2, 0, AmplifyOutputsDataImpl$Analytics$AmazonPinpoint$$serializer.INSTANCE, null);
        } else {
            int i11 = 0;
            amazonPinpoint = null;
            while (i10 != 0) {
                int F = a10.F(descriptor2);
                if (F == -1) {
                    i10 = 0;
                } else {
                    if (F != 0) {
                        throw new f(F);
                    }
                    amazonPinpoint = (AmplifyOutputsDataImpl.Analytics.AmazonPinpoint) a10.l(descriptor2, 0, AmplifyOutputsDataImpl$Analytics$AmazonPinpoint$$serializer.INSTANCE, amazonPinpoint);
                    i11 |= 1;
                }
            }
            i10 = i11;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Analytics(i10, amazonPinpoint, null);
    }

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

    public void serialize(iq.e encoder, AmplifyOutputsDataImpl.Analytics value) {
        t.g(encoder, "encoder");
        t.g(value, "value");
        hq.e descriptor2 = getDescriptor();
        encoder.a(descriptor2);
        ((c) null).c(descriptor2, 0, AmplifyOutputsDataImpl$Analytics$AmazonPinpoint$$serializer.INSTANCE, value.getAmazonPinpoint());
        throw null;
    }

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