package kotlin;

import io.netty.handler.codec.dns.DnsRecord;
import kotlin.Metadata;
import kotlin.jvm.internal.o;
import kotlin.ranges.IntRange;

/* JADX INFO: renamed from: r.g, reason: from Kotlin metadata */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0010\u000b\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0007\u0018\u0000 \u00172\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u0017B\u0017\b\u0016\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005B\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0006\u001a\u00020\u0003¢\u0006\u0002\u0010\u0007J\u0011\u0010\r\u001a\u00020\u00032\u0006\u0010\u000e\u001a\u00020\u0000H\u0096\u0002J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u000e\u001a\u0004\u0018\u00010\u0011H\u0096\u0002J\b\u0010\u0012\u001a\u00020\u0003H\u0016J\u0016\u0010\u0013\u001a\u00020\u00102\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0003J\u001e\u0010\u0013\u001a\u00020\u00102\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0003J\b\u0010\u0014\u001a\u00020\u0015H\u0016J \u0010\u0016\u001a\u00020\u00032\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0003H\u0002R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\tR\u0011\u0010\u0006\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\tR\u000e\u0010\f\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0018"}, d2 = {"Lkotlin/KotlinVersion;", "", "major", "", "minor", "(II)V", "patch", "(III)V", "getMajor", "()I", "getMinor", "getPatch", "version", "compareTo", "other", "equals", "", "", "hashCode", "isAtLeast", "toString", "", "versionOf", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 7, 1}, xi = 48)
public final class KotlinVersion implements Comparable<KotlinVersion> {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final KotlinVersion f6180f = new KotlinVersion(1, 7, 20);

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final int f6181m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final int f6182n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final int f6183o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final int f6184p;

    public KotlinVersion(int i2, int i3, int i4) {
        this.f6181m = i2;
        this.f6182n = i3;
        this.f6183o = i4;
        boolean z2 = false;
        if (new IntRange(0, DnsRecord.CLASS_ANY).c(i2) && new IntRange(0, DnsRecord.CLASS_ANY).c(i3) && new IntRange(0, DnsRecord.CLASS_ANY).c(i4)) {
            z2 = true;
        }
        if (z2) {
            this.f6184p = (i2 << 16) + (i3 << 8) + i4;
            return;
        }
        throw new IllegalArgumentException(("Version components are out of range: " + i2 + '.' + i3 + '.' + i4).toString());
    }

    @Override // java.lang.Comparable
    /* JADX INFO: renamed from: b, reason: merged with bridge method [inline-methods] */
    public int compareTo(KotlinVersion kotlinVersion) {
        o.f(kotlinVersion, "other");
        return this.f6184p - kotlinVersion.f6184p;
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        KotlinVersion kotlinVersion = other instanceof KotlinVersion ? (KotlinVersion) other : null;
        return kotlinVersion != null && this.f6184p == kotlinVersion.f6184p;
    }

    /* JADX INFO: renamed from: hashCode, reason: from getter */
    public int getF6184p() {
        return this.f6184p;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.f6181m);
        sb.append('.');
        sb.append(this.f6182n);
        sb.append('.');
        sb.append(this.f6183o);
        return sb.toString();
    }
}
