package com.amplifyframework.core.configuration;

import com.amplifyframework.core.configuration.AmplifyOutputsData;
import com.amplifyframework.core.configuration.AmplifyOutputsDataImpl;
import com.google.android.gms.common.internal.ImagesContract;
import fq.b;
import fq.f;
import gq.a;
import iq.d;
import java.util.List;
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.Data.$serializer", "Ljq/a0;", "Lcom/amplifyframework/core/configuration/AmplifyOutputsDataImpl$Data;", "", "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$Data$$serializer implements a0 {
    public static final AmplifyOutputsDataImpl$Data$$serializer INSTANCE;
    private static final /* synthetic */ w0 descriptor;

    static {
        AmplifyOutputsDataImpl$Data$$serializer amplifyOutputsDataImpl$Data$$serializer = new AmplifyOutputsDataImpl$Data$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Data$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Data", amplifyOutputsDataImpl$Data$$serializer, 5);
        w0Var.c("awsRegion", false);
        w0Var.c(ImagesContract.URL, false);
        w0Var.c("apiKey", false);
        w0Var.c("defaultAuthorizationType", false);
        w0Var.c("authorizationTypes", false);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Data$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        b[] bVarArr;
        bVarArr = AmplifyOutputsDataImpl.Data.$childSerializers;
        j1 j1Var = j1.f25222a;
        return new b[]{j1Var, j1Var, a.p(j1Var), bVarArr[3], bVarArr[4]};
    }

    @Override // fq.a
    public AmplifyOutputsDataImpl.Data deserialize(d decoder) {
        b[] bVarArr;
        int i10;
        String str;
        String str2;
        String str3;
        AmplifyOutputsData.AwsAppsyncAuthorizationType awsAppsyncAuthorizationType;
        List list;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        bVarArr = AmplifyOutputsDataImpl.Data.$childSerializers;
        String str4 = null;
        if (a10.t()) {
            String x10 = a10.x(descriptor2, 0);
            String x11 = a10.x(descriptor2, 1);
            String str5 = (String) a10.l(descriptor2, 2, j1.f25222a, null);
            AmplifyOutputsData.AwsAppsyncAuthorizationType awsAppsyncAuthorizationType2 = (AmplifyOutputsData.AwsAppsyncAuthorizationType) a10.s(descriptor2, 3, bVarArr[3], null);
            list = (List) a10.s(descriptor2, 4, bVarArr[4], null);
            str = x10;
            str3 = str5;
            awsAppsyncAuthorizationType = awsAppsyncAuthorizationType2;
            i10 = 31;
            str2 = x11;
        } else {
            boolean z10 = true;
            int i11 = 0;
            String str6 = null;
            String str7 = null;
            AmplifyOutputsData.AwsAppsyncAuthorizationType awsAppsyncAuthorizationType3 = null;
            List list2 = null;
            while (z10) {
                int F = a10.F(descriptor2);
                if (F == -1) {
                    z10 = false;
                } else if (F == 0) {
                    str4 = a10.x(descriptor2, 0);
                    i11 |= 1;
                } else if (F == 1) {
                    str6 = a10.x(descriptor2, 1);
                    i11 |= 2;
                } else if (F == 2) {
                    str7 = (String) a10.l(descriptor2, 2, j1.f25222a, str7);
                    i11 |= 4;
                } else if (F == 3) {
                    awsAppsyncAuthorizationType3 = (AmplifyOutputsData.AwsAppsyncAuthorizationType) a10.s(descriptor2, 3, bVarArr[3], awsAppsyncAuthorizationType3);
                    i11 |= 8;
                } else {
                    if (F != 4) {
                        throw new f(F);
                    }
                    list2 = (List) a10.s(descriptor2, 4, bVarArr[4], list2);
                    i11 |= 16;
                }
            }
            i10 = i11;
            str = str4;
            str2 = str6;
            str3 = str7;
            awsAppsyncAuthorizationType = awsAppsyncAuthorizationType3;
            list = list2;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Data(i10, str, str2, str3, awsAppsyncAuthorizationType, list, null);
    }

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

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

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