package C1;

import F.H;
import F.n0;
import androidx.media3.datasource.cache.CacheSpan;
import androidx.media3.datasource.cache.LeastRecentlyUsedCacheEvictor;
import androidx.media3.extractor.metadata.mp4.SlowMotionData;
import com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence;
import com.google.firebase.firestore.core.FieldFilter;
import com.google.firebase.firestore.model.Document;
import com.google.firebase.firestore.model.DocumentKey;
import com.google.firebase.firestore.model.FieldIndex;
import com.google.firebase.firestore.model.MutableDocument;
import com.google.firebase.firestore.model.TargetIndexMatcher;
import com.google.firebase.firestore.util.AsyncQueue;
import com.revenuecat.purchases.common.Constants;
import java.io.File;
import java.util.Comparator;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class c implements Comparator {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f664a;

    public /* synthetic */ c(int i6) {
        this.f664a = i6;
    }

    @Override // java.util.Comparator
    public final int compare(Object obj, Object obj2) {
        switch (this.f664a) {
            case 0:
                byte[] bArr = (byte[]) obj;
                byte[] bArr2 = (byte[]) obj2;
                if (bArr.length != bArr2.length) {
                    return bArr.length - bArr2.length;
                }
                for (int i6 = 0; i6 < bArr.length; i6++) {
                    byte b5 = bArr[i6];
                    byte b6 = bArr2[i6];
                    if (b5 != b6) {
                        return b5 - b6;
                    }
                }
                return 0;
            case 1:
                return kotlin.jvm.internal.o.i(((n0) obj2).f1325a, ((n0) obj).f1325a);
            case 2:
                return kotlin.jvm.internal.o.i(((H) obj).getIndex(), ((H) obj2).getIndex());
            case 3:
                I0.H h5 = (I0.H) obj;
                I0.H h6 = (I0.H) obj2;
                float f6 = h5.f2163K.f2227p.f2306H;
                float f7 = h6.f2163K.f2227p.f2306H;
                return f6 == f7 ? kotlin.jvm.internal.o.i(h5.u(), h6.u()) : Float.compare(f6, f7);
            case 4:
                w4.k kVar = (w4.k) obj;
                w4.k kVar2 = (w4.k) obj2;
                return (((Number) kVar.f25470b).intValue() - ((Number) kVar.f25469a).intValue()) - (((Number) kVar2.f25470b).intValue() - ((Number) kVar2.f25469a).intValue());
            case 5:
                return LeastRecentlyUsedCacheEvictor.compare((CacheSpan) obj, (CacheSpan) obj2);
            case 6:
                return SlowMotionData.Segment.lambda$static$0((SlowMotionData.Segment) obj, (SlowMotionData.Segment) obj2);
            case 7:
                return CrashlyticsReportPersistence.lambda$static$0((File) obj, (File) obj2);
            case 8:
                return CrashlyticsReportPersistence.oldestEventFileFirst((File) obj, (File) obj2);
            case 9:
                return Document.lambda$static$0((Document) obj, (Document) obj2);
            case 10:
                return ((DocumentKey) obj).compareTo((DocumentKey) obj2);
            case 11:
                return FieldIndex.lambda$static$0((FieldIndex) obj, (FieldIndex) obj2);
            case 12:
                return FieldIndex.IndexOffset.lambda$static$0((MutableDocument) obj, (MutableDocument) obj2);
            case 13:
                return TargetIndexMatcher.lambda$new$0((FieldFilter) obj, (FieldFilter) obj2);
            case 14:
                return AsyncQueue.lambda$runDelayedTasksUntil$5((AsyncQueue.DelayedTask) obj, (AsyncQueue.DelayedTask) obj2);
            case 15:
                return ((Comparable) obj).compareTo((Comparable) obj2);
            case 16:
                return ((Comparable) obj).compareTo((Comparable) obj2);
            default:
                return Integer.parseInt(((String) obj).split(Constants.SUBS_ID_BASE_PLAN_ID_SEPARATOR)[0]) - Integer.parseInt(((String) obj2).split(Constants.SUBS_ID_BASE_PLAN_ID_SEPARATOR)[0]);
        }
    }
}
