package qo;

import java.util.Arrays;
import kotlin.jvm.internal.k;
import kotlin.jvm.internal.t;

/* loaded from: classes3.dex */
public final class e extends oo.a {

    /* renamed from: h, reason: collision with root package name */
    public static final a f34058h = new a(null);

    /* renamed from: i, reason: collision with root package name */
    public static final e f34059i;

    /* renamed from: j, reason: collision with root package name */
    public static final e f34060j;

    /* renamed from: k, reason: collision with root package name */
    public static final e f34061k;

    /* renamed from: g, reason: collision with root package name */
    private final boolean f34062g;

    /* loaded from: classes3.dex */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(k kVar) {
            this();
        }
    }

    static {
        e eVar = new e(1, 9, 0);
        f34059i = eVar;
        f34060j = eVar.m();
        f34061k = new e(new int[0]);
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public e(int[] versionArray, boolean z10) {
        super(Arrays.copyOf(versionArray, versionArray.length));
        t.g(versionArray, "versionArray");
        this.f34062g = z10;
    }

    private final boolean i(e eVar) {
        if ((a() == 1 && b() == 0) || a() == 0) {
            return false;
        }
        return !l(eVar);
    }

    private final boolean l(e eVar) {
        if (a() > eVar.a()) {
            return true;
        }
        return a() >= eVar.a() && b() > eVar.b();
    }

    public final boolean h(e metadataVersionFromLanguageVersion) {
        t.g(metadataVersionFromLanguageVersion, "metadataVersionFromLanguageVersion");
        if (a() == 2 && b() == 0) {
            e eVar = f34059i;
            if (eVar.a() == 1 && eVar.b() == 8) {
                return true;
            }
        }
        return i(metadataVersionFromLanguageVersion.k(this.f34062g));
    }

    public final boolean j() {
        return this.f34062g;
    }

    public final e k(boolean z10) {
        e eVar = z10 ? f34059i : f34060j;
        return eVar.l(this) ? eVar : this;
    }

    public final e m() {
        return (a() == 1 && b() == 9) ? new e(2, 0, 0) : new e(a(), b() + 1, 0);
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public e(int... numbers) {
        this(numbers, false);
        t.g(numbers, "numbers");
    }
}
