package com.amplifyframework.api.aws;

import com.amplifyframework.core.model.Model;
import com.amplifyframework.core.model.ModelIdentifier;
import java.io.Serializable;
import java.util.List;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0012\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0003H\u0002¨\u0006\u0004"}, d2 = {"getSortedIdentifiers", "", "Ljava/io/Serializable;", "Lcom/amplifyframework/core/model/Model;", "aws-api_release"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes4.dex */
public final class ModelPostProcessingTypeAdapterKt {
    /* JADX INFO: Access modifiers changed from: private */
    public static final List<Serializable> getSortedIdentifiers(Model model) {
        List<Serializable> e10;
        List e11;
        List<Serializable> z02;
        Serializable resolveIdentifier = model.resolveIdentifier();
        kotlin.jvm.internal.t.f(resolveIdentifier, "resolveIdentifier(...)");
        if (!(resolveIdentifier instanceof ModelIdentifier)) {
            e10 = sm.t.e(resolveIdentifier.toString());
            return e10;
        }
        ModelIdentifier modelIdentifier = (ModelIdentifier) resolveIdentifier;
        e11 = sm.t.e(modelIdentifier.key());
        List<? extends Serializable> sortedKeys = modelIdentifier.sortedKeys();
        kotlin.jvm.internal.t.f(sortedKeys, "sortedKeys(...)");
        z02 = sm.c0.z0(e11, sortedKeys);
        return z02;
    }
}
