package com.google.common.collect;

import java.util.Comparator;

/* loaded from: classes3.dex */
public abstract class g0 implements Comparator {
    public static g0 a(Comparator comparator) {
        return comparator instanceof g0 ? (g0) comparator : new k(comparator);
    }

    public static g0 c() {
        return d0.f14222p;
    }

    public o b(Iterable iterable) {
        return o.C(this, iterable);
    }

    @Override // java.util.Comparator
    public abstract int compare(Object obj, Object obj2);

    /* JADX INFO: Access modifiers changed from: package-private */
    public g0 d() {
        return e(z.b());
    }

    public g0 e(ck.c cVar) {
        return new f(cVar, this);
    }
}
