package com.amplifyframework.core.configuration;

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

    static {
        AmplifyOutputsDataImpl$Auth$$serializer amplifyOutputsDataImpl$Auth$$serializer = new AmplifyOutputsDataImpl$Auth$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Auth$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Auth", amplifyOutputsDataImpl$Auth$$serializer, 12);
        w0Var.c("awsRegion", false);
        w0Var.c("userPoolId", false);
        w0Var.c("userPoolClientId", false);
        w0Var.c("identityPoolId", false);
        w0Var.c("passwordPolicy", false);
        w0Var.c("oauth", false);
        w0Var.c("standardRequiredAttributes", true);
        w0Var.c("usernameAttributes", true);
        w0Var.c("userVerificationTypes", true);
        w0Var.c("unauthenticatedIdentitiesEnabled", true);
        w0Var.c("mfaConfiguration", false);
        w0Var.c("mfaMethods", true);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Auth$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        b[] bVarArr;
        bVarArr = AmplifyOutputsDataImpl.Auth.$childSerializers;
        j1 j1Var = j1.f25222a;
        return new b[]{j1Var, j1Var, j1Var, a.p(j1Var), a.p(AmplifyOutputsDataImpl$Auth$PasswordPolicy$$serializer.INSTANCE), a.p(AmplifyOutputsDataImpl$Auth$Oauth$$serializer.INSTANCE), bVarArr[6], bVarArr[7], bVarArr[8], f.f25206a, a.p(bVarArr[10]), bVarArr[11]};
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x00a8. Please report as an issue. */
    @Override // fq.a
    public AmplifyOutputsDataImpl.Auth deserialize(d decoder) {
        b[] bVarArr;
        String str;
        List list;
        AmplifyOutputsDataImpl.Auth.Oauth oauth;
        int i10;
        List list2;
        List list3;
        String str2;
        boolean z10;
        String str3;
        List list4;
        AmplifyOutputsDataImpl.Auth.PasswordPolicy passwordPolicy;
        String str4;
        AmplifyOutputsData.Auth.MfaConfiguration mfaConfiguration;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        bVarArr = AmplifyOutputsDataImpl.Auth.$childSerializers;
        int i11 = 0;
        if (a10.t()) {
            String x10 = a10.x(descriptor2, 0);
            String x11 = a10.x(descriptor2, 1);
            String x12 = a10.x(descriptor2, 2);
            String str5 = (String) a10.l(descriptor2, 3, j1.f25222a, null);
            AmplifyOutputsDataImpl.Auth.PasswordPolicy passwordPolicy2 = (AmplifyOutputsDataImpl.Auth.PasswordPolicy) a10.l(descriptor2, 4, AmplifyOutputsDataImpl$Auth$PasswordPolicy$$serializer.INSTANCE, null);
            AmplifyOutputsDataImpl.Auth.Oauth oauth2 = (AmplifyOutputsDataImpl.Auth.Oauth) a10.l(descriptor2, 5, AmplifyOutputsDataImpl$Auth$Oauth$$serializer.INSTANCE, null);
            List list5 = (List) a10.s(descriptor2, 6, bVarArr[6], null);
            List list6 = (List) a10.s(descriptor2, 7, bVarArr[7], null);
            List list7 = (List) a10.s(descriptor2, 8, bVarArr[8], null);
            boolean e10 = a10.e(descriptor2, 9);
            AmplifyOutputsData.Auth.MfaConfiguration mfaConfiguration2 = (AmplifyOutputsData.Auth.MfaConfiguration) a10.l(descriptor2, 10, bVarArr[10], null);
            list4 = (List) a10.s(descriptor2, 11, bVarArr[11], null);
            z10 = e10;
            mfaConfiguration = mfaConfiguration2;
            list2 = list7;
            str = str5;
            i10 = 4095;
            list3 = list5;
            oauth = oauth2;
            str3 = x12;
            str4 = x11;
            list = list6;
            passwordPolicy = passwordPolicy2;
            str2 = x10;
        } else {
            int i12 = 11;
            List list8 = null;
            AmplifyOutputsDataImpl.Auth.Oauth oauth3 = null;
            List list9 = null;
            AmplifyOutputsDataImpl.Auth.PasswordPolicy passwordPolicy3 = null;
            AmplifyOutputsData.Auth.MfaConfiguration mfaConfiguration3 = null;
            List list10 = null;
            List list11 = null;
            String str6 = null;
            String str7 = null;
            String str8 = null;
            boolean z11 = true;
            String str9 = null;
            boolean z12 = false;
            while (z11) {
                int F = a10.F(descriptor2);
                switch (F) {
                    case -1:
                        z11 = false;
                        i12 = 11;
                    case 0:
                        str6 = a10.x(descriptor2, 0);
                        i11 |= 1;
                        i12 = 11;
                    case 1:
                        str7 = a10.x(descriptor2, 1);
                        i11 |= 2;
                        i12 = 11;
                    case 2:
                        str8 = a10.x(descriptor2, 2);
                        i11 |= 4;
                        i12 = 11;
                    case 3:
                        str9 = (String) a10.l(descriptor2, 3, j1.f25222a, str9);
                        i11 |= 8;
                        i12 = 11;
                    case 4:
                        passwordPolicy3 = (AmplifyOutputsDataImpl.Auth.PasswordPolicy) a10.l(descriptor2, 4, AmplifyOutputsDataImpl$Auth$PasswordPolicy$$serializer.INSTANCE, passwordPolicy3);
                        i11 |= 16;
                        i12 = 11;
                    case 5:
                        oauth3 = (AmplifyOutputsDataImpl.Auth.Oauth) a10.l(descriptor2, 5, AmplifyOutputsDataImpl$Auth$Oauth$$serializer.INSTANCE, oauth3);
                        i11 |= 32;
                        i12 = 11;
                    case 6:
                        list9 = (List) a10.s(descriptor2, 6, bVarArr[6], list9);
                        i11 |= 64;
                        i12 = 11;
                    case 7:
                        list8 = (List) a10.s(descriptor2, 7, bVarArr[7], list8);
                        i11 |= 128;
                        i12 = 11;
                    case 8:
                        list10 = (List) a10.s(descriptor2, 8, bVarArr[8], list10);
                        i11 |= 256;
                        i12 = 11;
                    case 9:
                        z12 = a10.e(descriptor2, 9);
                        i11 |= 512;
                    case 10:
                        mfaConfiguration3 = (AmplifyOutputsData.Auth.MfaConfiguration) a10.l(descriptor2, 10, bVarArr[10], mfaConfiguration3);
                        i11 |= UserMetadata.MAX_ATTRIBUTE_SIZE;
                    case 11:
                        list11 = (List) a10.s(descriptor2, i12, bVarArr[i12], list11);
                        i11 |= 2048;
                    default:
                        throw new fq.f(F);
                }
            }
            str = str9;
            list = list8;
            List list12 = list10;
            oauth = oauth3;
            i10 = i11;
            list2 = list12;
            List list13 = list11;
            list3 = list9;
            str2 = str6;
            z10 = z12;
            str3 = str8;
            list4 = list13;
            AmplifyOutputsData.Auth.MfaConfiguration mfaConfiguration4 = mfaConfiguration3;
            passwordPolicy = passwordPolicy3;
            str4 = str7;
            mfaConfiguration = mfaConfiguration4;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Auth(i10, str2, str4, str3, str, passwordPolicy, oauth, list3, list, list2, z10, mfaConfiguration, list4, (f1) null);
    }

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

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

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