package D6;

import P6.g;
import java.util.Comparator;
import n4.u0;

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public static final a f1918r = new a(0);

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public static final a f1919s = new a(1);

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

    public /* synthetic */ a(int i) {
        this.f1920q = i;
    }

    @Override // java.util.Comparator
    public final int compare(Object obj, Object obj2) {
        switch (this.f1920q) {
            case u0.f15495q /* 0 */:
                Comparable comparable = (Comparable) obj;
                Comparable comparable2 = (Comparable) obj2;
                g.e(comparable, "a");
                g.e(comparable2, "b");
                return comparable.compareTo(comparable2);
            default:
                Comparable comparable3 = (Comparable) obj;
                Comparable comparable4 = (Comparable) obj2;
                g.e(comparable3, "a");
                g.e(comparable4, "b");
                return comparable4.compareTo(comparable3);
        }
    }

    @Override // java.util.Comparator
    public final Comparator reversed() {
        switch (this.f1920q) {
            case u0.f15495q /* 0 */:
                return f1919s;
            default:
                return f1918r;
        }
    }
}
