package d2;

/* JADX INFO: compiled from: CancellableContinuationImpl.kt */
/* JADX INFO: loaded from: classes.dex */
final class m {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final v1.l<Throwable, k1.o> f4504c;

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

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

    /* JADX WARN: Multi-variable type inference failed */
    public m(Object obj, e eVar, v1.l<? super Throwable, k1.o> lVar, Object obj2, Throwable th) {
        this.f4502a = obj;
        this.f4503b = eVar;
        this.f4504c = lVar;
        this.f4505d = obj2;
        this.f4506e = th;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ m b(m mVar, Object obj, e eVar, v1.l lVar, Object obj2, Throwable th, int i3, Object obj3) {
        if ((i3 & 1) != 0) {
            obj = mVar.f4502a;
        }
        if ((i3 & 2) != 0) {
            eVar = mVar.f4503b;
        }
        e eVar2 = eVar;
        if ((i3 & 4) != 0) {
            lVar = mVar.f4504c;
        }
        v1.l lVar2 = lVar;
        if ((i3 & 8) != 0) {
            obj2 = mVar.f4505d;
        }
        Object obj4 = obj2;
        if ((i3 & 16) != 0) {
            th = mVar.f4506e;
        }
        return mVar.a(obj, eVar2, lVar2, obj4, th);
    }

    public final m a(Object obj, e eVar, v1.l<? super Throwable, k1.o> lVar, Object obj2, Throwable th) {
        return new m(obj, eVar, lVar, obj2, th);
    }

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

    public final void d(h<?> hVar, Throwable th) {
        e eVar = this.f4503b;
        if (eVar != null) {
            hVar.k(eVar, th);
        }
        v1.l<Throwable, k1.o> lVar = this.f4504c;
        if (lVar == null) {
            return;
        }
        hVar.l(lVar, th);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof m)) {
            return false;
        }
        m mVar = (m) obj;
        return w1.g.a(this.f4502a, mVar.f4502a) && w1.g.a(this.f4503b, mVar.f4503b) && w1.g.a(this.f4504c, mVar.f4504c) && w1.g.a(this.f4505d, mVar.f4505d) && w1.g.a(this.f4506e, mVar.f4506e);
    }

    public int hashCode() {
        Object obj = this.f4502a;
        int iHashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        e eVar = this.f4503b;
        int iHashCode2 = (iHashCode + (eVar == null ? 0 : eVar.hashCode())) * 31;
        v1.l<Throwable, k1.o> lVar = this.f4504c;
        int iHashCode3 = (iHashCode2 + (lVar == null ? 0 : lVar.hashCode())) * 31;
        Object obj2 = this.f4505d;
        int iHashCode4 = (iHashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th = this.f4506e;
        return iHashCode4 + (th != null ? th.hashCode() : 0);
    }

    public String toString() {
        return "CompletedContinuation(result=" + this.f4502a + ", cancelHandler=" + this.f4503b + ", onCancellation=" + this.f4504c + ", idempotentResume=" + this.f4505d + ", cancelCause=" + this.f4506e + ')';
    }

    public /* synthetic */ m(Object obj, e eVar, v1.l lVar, Object obj2, Throwable th, int i3, w1.e eVar2) {
        this(obj, (i3 & 2) != 0 ? null : eVar, (i3 & 4) != 0 ? null : lVar, (i3 & 8) != 0 ? null : obj2, (i3 & 16) != 0 ? null : th);
    }
}
