package tp;

/* loaded from: classes3.dex */
final class b0 {

    /* renamed from: a, reason: collision with root package name */
    public final Object f36487a;

    /* renamed from: b, reason: collision with root package name */
    public final m f36488b;

    /* renamed from: c, reason: collision with root package name */
    public final dn.l f36489c;

    /* renamed from: d, reason: collision with root package name */
    public final Object f36490d;

    /* renamed from: e, reason: collision with root package name */
    public final Throwable f36491e;

    public b0(Object obj, m mVar, dn.l lVar, Object obj2, Throwable th2) {
        this.f36487a = obj;
        this.f36488b = mVar;
        this.f36489c = lVar;
        this.f36490d = obj2;
        this.f36491e = th2;
    }

    public static /* synthetic */ b0 b(b0 b0Var, Object obj, m mVar, dn.l lVar, Object obj2, Throwable th2, int i10, Object obj3) {
        if ((i10 & 1) != 0) {
            obj = b0Var.f36487a;
        }
        if ((i10 & 2) != 0) {
            mVar = b0Var.f36488b;
        }
        m mVar2 = mVar;
        if ((i10 & 4) != 0) {
            lVar = b0Var.f36489c;
        }
        dn.l lVar2 = lVar;
        if ((i10 & 8) != 0) {
            obj2 = b0Var.f36490d;
        }
        Object obj4 = obj2;
        if ((i10 & 16) != 0) {
            th2 = b0Var.f36491e;
        }
        return b0Var.a(obj, mVar2, lVar2, obj4, th2);
    }

    public final b0 a(Object obj, m mVar, dn.l lVar, Object obj2, Throwable th2) {
        return new b0(obj, mVar, lVar, obj2, th2);
    }

    public final boolean c() {
        return this.f36491e != null;
    }

    public final void d(p pVar, Throwable th2) {
        m mVar = this.f36488b;
        if (mVar != null) {
            pVar.i(mVar, th2);
        }
        dn.l lVar = this.f36489c;
        if (lVar != null) {
            pVar.j(lVar, th2);
        }
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof b0)) {
            return false;
        }
        b0 b0Var = (b0) obj;
        return kotlin.jvm.internal.t.b(this.f36487a, b0Var.f36487a) && kotlin.jvm.internal.t.b(this.f36488b, b0Var.f36488b) && kotlin.jvm.internal.t.b(this.f36489c, b0Var.f36489c) && kotlin.jvm.internal.t.b(this.f36490d, b0Var.f36490d) && kotlin.jvm.internal.t.b(this.f36491e, b0Var.f36491e);
    }

    public int hashCode() {
        Object obj = this.f36487a;
        int hashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        m mVar = this.f36488b;
        int hashCode2 = (hashCode + (mVar == null ? 0 : mVar.hashCode())) * 31;
        dn.l lVar = this.f36489c;
        int hashCode3 = (hashCode2 + (lVar == null ? 0 : lVar.hashCode())) * 31;
        Object obj2 = this.f36490d;
        int hashCode4 = (hashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th2 = this.f36491e;
        return hashCode4 + (th2 != null ? th2.hashCode() : 0);
    }

    public String toString() {
        return "CompletedContinuation(result=" + this.f36487a + ", cancelHandler=" + this.f36488b + ", onCancellation=" + this.f36489c + ", idempotentResume=" + this.f36490d + ", cancelCause=" + this.f36491e + ')';
    }

    public /* synthetic */ b0(Object obj, m mVar, dn.l lVar, Object obj2, Throwable th2, int i10, kotlin.jvm.internal.k kVar) {
        this(obj, (i10 & 2) != 0 ? null : mVar, (i10 & 4) != 0 ? null : lVar, (i10 & 8) != 0 ? null : obj2, (i10 & 16) != 0 ? null : th2);
    }
}
