package h.a;

import java.util.Objects;

/* JADX INFO: compiled from: CancellableContinuationImpl.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
public final class k {
    public final Object a;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final g.h0.b.l<Throwable, g.a0> f4238c;

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

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

    /* JADX WARN: Multi-variable type inference failed */
    public k(Object obj, d dVar, g.h0.b.l<? super Throwable, g.a0> lVar, Object obj2, Throwable th) {
        this.a = obj;
        this.f4237b = dVar;
        this.f4238c = lVar;
        this.f4239d = obj2;
        this.f4240e = th;
    }

    public static k a(k kVar, Object obj, d dVar, g.h0.b.l lVar, Object obj2, Throwable th, int i2) {
        Object obj3 = (i2 & 1) != 0 ? kVar.a : null;
        if ((i2 & 2) != 0) {
            dVar = kVar.f4237b;
        }
        d dVar2 = dVar;
        g.h0.b.l<Throwable, g.a0> lVar2 = (i2 & 4) != 0 ? kVar.f4238c : null;
        Object obj4 = (i2 & 8) != 0 ? kVar.f4239d : null;
        if ((i2 & 16) != 0) {
            th = kVar.f4240e;
        }
        Objects.requireNonNull(kVar);
        return new k(obj3, dVar2, lVar2, obj4, th);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof k)) {
            return false;
        }
        k kVar = (k) obj;
        return g.h0.c.l.a(this.a, kVar.a) && g.h0.c.l.a(this.f4237b, kVar.f4237b) && g.h0.c.l.a(this.f4238c, kVar.f4238c) && g.h0.c.l.a(this.f4239d, kVar.f4239d) && g.h0.c.l.a(this.f4240e, kVar.f4240e);
    }

    public int hashCode() {
        Object obj = this.a;
        int iHashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        d dVar = this.f4237b;
        int iHashCode2 = (iHashCode + (dVar == null ? 0 : dVar.hashCode())) * 31;
        g.h0.b.l<Throwable, g.a0> lVar = this.f4238c;
        int iHashCode3 = (iHashCode2 + (lVar == null ? 0 : lVar.hashCode())) * 31;
        Object obj2 = this.f4239d;
        int iHashCode4 = (iHashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th = this.f4240e;
        return iHashCode4 + (th != null ? th.hashCode() : 0);
    }

    public String toString() {
        StringBuilder sbB = d.b.a.a.a.B("CompletedContinuation(result=");
        sbB.append(this.a);
        sbB.append(", cancelHandler=");
        sbB.append(this.f4237b);
        sbB.append(", onCancellation=");
        sbB.append(this.f4238c);
        sbB.append(", idempotentResume=");
        sbB.append(this.f4239d);
        sbB.append(", cancelCause=");
        sbB.append(this.f4240e);
        sbB.append(')');
        return sbB.toString();
    }

    public k(Object obj, d dVar, g.h0.b.l lVar, Object obj2, Throwable th, int i2) {
        dVar = (i2 & 2) != 0 ? null : dVar;
        lVar = (i2 & 4) != 0 ? null : lVar;
        obj2 = (i2 & 8) != 0 ? null : obj2;
        th = (i2 & 16) != 0 ? null : th;
        this.a = obj;
        this.f4237b = dVar;
        this.f4238c = lVar;
        this.f4239d = obj2;
        this.f4240e = th;
    }
}
