package o;

import android.transition.Transition;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Bq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0042Bq extends androidx.fragment.app.e {
    public final Object c;
    public final boolean d;
    public final Object e;

    public C0042Bq(androidx.fragment.app.x xVar, C2638ug c2638ug, boolean z, boolean z2) {
        super(xVar, c2638ug);
        int i = xVar.a;
        androidx.fragment.app.l lVar = xVar.c;
        if (i == 2) {
            this.c = z ? lVar.getReenterTransition() : lVar.getEnterTransition();
            this.d = z ? lVar.getAllowReturnTransitionOverlap() : lVar.getAllowEnterTransitionOverlap();
        } else {
            this.c = z ? lVar.getReturnTransition() : lVar.getExitTransition();
            this.d = true;
        }
        if (!z2) {
            this.e = null;
        } else if (z) {
            this.e = lVar.getSharedElementReturnTransition();
        } else {
            this.e = lVar.getSharedElementEnterTransition();
        }
    }

    public final AbstractC2792wC c(Object obj) {
        if (obj == null) {
            return null;
        }
        C2602uC c2602uC = AbstractC2128pC.a;
        if (obj instanceof Transition) {
            return c2602uC;
        }
        AbstractC2792wC abstractC2792wC = AbstractC2128pC.b;
        if (abstractC2792wC != null && abstractC2792wC.e(obj)) {
            return abstractC2792wC;
        }
        throw new IllegalArgumentException("Transition " + obj + " for fragment " + this.a.c + " is not a valid framework Transition or AndroidX Transition");
    }
}
