package androidx.navigation;

import android.os.Bundle;

/* JADX INFO: renamed from: androidx.navigation.z, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1150z implements Comparable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final B f12815a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Bundle f12816b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final boolean f12817c;

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f12819e;

    public C1150z(B destination, Bundle bundle, boolean z6, int i6, boolean z7) {
        kotlin.jvm.internal.o.h(destination, "destination");
        this.f12815a = destination;
        this.f12816b = bundle;
        this.f12817c = z6;
        this.f12818d = i6;
        this.f12819e = z7;
    }

    @Override // java.lang.Comparable
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final int compareTo(C1150z other) {
        kotlin.jvm.internal.o.h(other, "other");
        boolean z6 = other.f12817c;
        boolean z7 = this.f12817c;
        if (z7 && !z6) {
            return 1;
        }
        if (!z7 && z6) {
            return -1;
        }
        int i6 = this.f12818d - other.f12818d;
        if (i6 > 0) {
            return 1;
        }
        if (i6 < 0) {
            return -1;
        }
        Bundle bundle = other.f12816b;
        Bundle bundle2 = this.f12816b;
        if (bundle2 != null && bundle == null) {
            return 1;
        }
        if (bundle2 == null && bundle != null) {
            return -1;
        }
        if (bundle2 != null) {
            int size = bundle2.size();
            kotlin.jvm.internal.o.e(bundle);
            int size2 = size - bundle.size();
            if (size2 > 0) {
                return 1;
            }
            if (size2 < 0) {
                return -1;
            }
        }
        boolean z8 = other.f12819e;
        boolean z9 = this.f12819e;
        if (!z9 || z8) {
            return (z9 || !z8) ? 0 : -1;
        }
        return 1;
    }
}
