package E1;

import android.os.Bundle;

/* JADX INFO: loaded from: classes.dex */
public final class z implements Comparable {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final A f2152q;

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

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

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

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

    public z(A a3, Bundle bundle, boolean z8, boolean z9, int i) {
        P6.g.e(a3, "destination");
        this.f2152q = a3;
        this.f2153r = bundle;
        this.f2154s = z8;
        this.f2155t = z9;
        this.f2156u = i;
    }

    @Override // java.lang.Comparable
    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final int compareTo(z zVar) {
        P6.g.e(zVar, "other");
        boolean z8 = zVar.f2154s;
        boolean z9 = this.f2154s;
        if (z9 && !z8) {
            return 1;
        }
        if (!z9 && z8) {
            return -1;
        }
        Bundle bundle = zVar.f2153r;
        Bundle bundle2 = this.f2153r;
        if (bundle2 != null && bundle == null) {
            return 1;
        }
        if (bundle2 == null && bundle != null) {
            return -1;
        }
        if (bundle2 != null) {
            int size = bundle2.size();
            P6.g.b(bundle);
            int size2 = size - bundle.size();
            if (size2 > 0) {
                return 1;
            }
            if (size2 < 0) {
                return -1;
            }
        }
        boolean z10 = zVar.f2155t;
        boolean z11 = this.f2155t;
        if (z11 && !z10) {
            return 1;
        }
        if (z11 || !z10) {
            return this.f2156u - zVar.f2156u;
        }
        return -1;
    }
}
