package com.amplifyframework.core.configuration;

import com.amplifyframework.core.configuration.AmplifyOutputsData;
import com.amplifyframework.core.configuration.AmplifyOutputsDataImpl;
import fq.b;
import fq.f;
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.Auth.Oauth.$serializer", "Ljq/a0;", "Lcom/amplifyframework/core/configuration/AmplifyOutputsDataImpl$Auth$Oauth;", "", "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$Oauth$$serializer implements a0 {
    public static final AmplifyOutputsDataImpl$Auth$Oauth$$serializer INSTANCE;
    private static final /* synthetic */ w0 descriptor;

    static {
        AmplifyOutputsDataImpl$Auth$Oauth$$serializer amplifyOutputsDataImpl$Auth$Oauth$$serializer = new AmplifyOutputsDataImpl$Auth$Oauth$$serializer();
        INSTANCE = amplifyOutputsDataImpl$Auth$Oauth$$serializer;
        w0 w0Var = new w0("com.amplifyframework.core.configuration.AmplifyOutputsDataImpl.Auth.Oauth", amplifyOutputsDataImpl$Auth$Oauth$$serializer, 6);
        w0Var.c("identityProviders", false);
        w0Var.c("domain", false);
        w0Var.c("scopes", false);
        w0Var.c("redirectSignInUri", false);
        w0Var.c("redirectSignOutUri", false);
        w0Var.c("responseType", false);
        descriptor = w0Var;
    }

    private AmplifyOutputsDataImpl$Auth$Oauth$$serializer() {
    }

    @Override // jq.a0
    public b[] childSerializers() {
        b[] bVarArr;
        bVarArr = AmplifyOutputsDataImpl.Auth.Oauth.$childSerializers;
        return new b[]{bVarArr[0], j1.f25222a, bVarArr[2], bVarArr[3], bVarArr[4], bVarArr[5]};
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:10:0x0067. Please report as an issue. */
    @Override // fq.a
    public AmplifyOutputsDataImpl.Auth.Oauth deserialize(d decoder) {
        b[] bVarArr;
        List list;
        AmplifyOutputsData.Auth.Oauth.ResponseType responseType;
        List list2;
        List list3;
        List list4;
        String str;
        int i10;
        t.g(decoder, "decoder");
        hq.e descriptor2 = getDescriptor();
        iq.b a10 = decoder.a(descriptor2);
        bVarArr = AmplifyOutputsDataImpl.Auth.Oauth.$childSerializers;
        int i11 = 5;
        List list5 = null;
        if (a10.t()) {
            List list6 = (List) a10.s(descriptor2, 0, bVarArr[0], null);
            String x10 = a10.x(descriptor2, 1);
            List list7 = (List) a10.s(descriptor2, 2, bVarArr[2], null);
            List list8 = (List) a10.s(descriptor2, 3, bVarArr[3], null);
            List list9 = (List) a10.s(descriptor2, 4, bVarArr[4], null);
            responseType = (AmplifyOutputsData.Auth.Oauth.ResponseType) a10.s(descriptor2, 5, bVarArr[5], null);
            list4 = list6;
            i10 = 63;
            list3 = list8;
            list = list9;
            list2 = list7;
            str = x10;
        } else {
            boolean z10 = true;
            int i12 = 0;
            String str2 = null;
            List list10 = null;
            List list11 = null;
            List list12 = null;
            AmplifyOutputsData.Auth.Oauth.ResponseType responseType2 = null;
            while (z10) {
                int F = a10.F(descriptor2);
                switch (F) {
                    case -1:
                        z10 = false;
                    case 0:
                        list5 = (List) a10.s(descriptor2, 0, bVarArr[0], list5);
                        i12 |= 1;
                        i11 = 5;
                    case 1:
                        str2 = a10.x(descriptor2, 1);
                        i12 |= 2;
                    case 2:
                        list10 = (List) a10.s(descriptor2, 2, bVarArr[2], list10);
                        i12 |= 4;
                    case 3:
                        list11 = (List) a10.s(descriptor2, 3, bVarArr[3], list11);
                        i12 |= 8;
                    case 4:
                        list12 = (List) a10.s(descriptor2, 4, bVarArr[4], list12);
                        i12 |= 16;
                    case 5:
                        responseType2 = (AmplifyOutputsData.Auth.Oauth.ResponseType) a10.s(descriptor2, i11, bVarArr[i11], responseType2);
                        i12 |= 32;
                    default:
                        throw new f(F);
                }
            }
            list = list12;
            responseType = responseType2;
            list2 = list10;
            list3 = list11;
            list4 = list5;
            str = str2;
            i10 = i12;
        }
        a10.w(descriptor2);
        return new AmplifyOutputsDataImpl.Auth.Oauth(i10, list4, str, list2, list3, list, responseType, null);
    }

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

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

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