package androidx.activity;

/* loaded from: classes.dex */
public abstract class s {

    /* loaded from: classes.dex */
    public static final class a extends p {

        /* renamed from: d, reason: collision with root package name */
        final /* synthetic */ dn.l f564d;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(boolean z10, dn.l lVar) {
            super(z10);
            this.f564d = lVar;
        }

        @Override // androidx.activity.p
        public void d() {
            this.f564d.invoke(this);
        }
    }

    public static final p a(q qVar, androidx.lifecycle.u uVar, boolean z10, dn.l onBackPressed) {
        kotlin.jvm.internal.t.g(qVar, "<this>");
        kotlin.jvm.internal.t.g(onBackPressed, "onBackPressed");
        a aVar = new a(z10, onBackPressed);
        if (uVar != null) {
            qVar.i(uVar, aVar);
        } else {
            qVar.h(aVar);
        }
        return aVar;
    }

    public static /* synthetic */ p b(q qVar, androidx.lifecycle.u uVar, boolean z10, dn.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            uVar = null;
        }
        if ((i10 & 2) != 0) {
            z10 = true;
        }
        return a(qVar, uVar, z10, lVar);
    }
}
