package g.a;

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final f.z.c.l<Throwable, f.t> f4145c;

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

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

    /* JADX WARN: Multi-variable type inference failed */
    public s(Object obj, h hVar, f.z.c.l<? super Throwable, f.t> lVar, Object obj2, Throwable th) {
        this.a = obj;
        this.f4144b = hVar;
        this.f4145c = lVar;
        this.f4146d = obj2;
        this.f4147e = th;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ s b(s sVar, Object obj, h hVar, f.z.c.l lVar, Object obj2, Throwable th, int i2, Object obj3) {
        if ((i2 & 1) != 0) {
            obj = sVar.a;
        }
        if ((i2 & 2) != 0) {
            hVar = sVar.f4144b;
        }
        h hVar2 = hVar;
        if ((i2 & 4) != 0) {
            lVar = sVar.f4145c;
        }
        f.z.c.l lVar2 = lVar;
        if ((i2 & 8) != 0) {
            obj2 = sVar.f4146d;
        }
        Object obj4 = obj2;
        if ((i2 & 16) != 0) {
            th = sVar.f4147e;
        }
        return sVar.a(obj, hVar2, lVar2, obj4, th);
    }

    public final s a(Object obj, h hVar, f.z.c.l<? super Throwable, f.t> lVar, Object obj2, Throwable th) {
        return new s(obj, hVar, lVar, obj2, th);
    }

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

    public final void d(k<?> kVar, Throwable th) {
        h hVar = this.f4144b;
        if (hVar != null) {
            kVar.k(hVar, th);
        }
        f.z.c.l<Throwable, f.t> lVar = this.f4145c;
        if (lVar != null) {
            kVar.l(lVar, th);
        }
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof s)) {
            return false;
        }
        s sVar = (s) obj;
        return f.z.d.k.a(this.a, sVar.a) && f.z.d.k.a(this.f4144b, sVar.f4144b) && f.z.d.k.a(this.f4145c, sVar.f4145c) && f.z.d.k.a(this.f4146d, sVar.f4146d) && f.z.d.k.a(this.f4147e, sVar.f4147e);
    }

    public int hashCode() {
        Object obj = this.a;
        int iHashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        h hVar = this.f4144b;
        int iHashCode2 = (iHashCode + (hVar == null ? 0 : hVar.hashCode())) * 31;
        f.z.c.l<Throwable, f.t> lVar = this.f4145c;
        int iHashCode3 = (iHashCode2 + (lVar == null ? 0 : lVar.hashCode())) * 31;
        Object obj2 = this.f4146d;
        int iHashCode4 = (iHashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th = this.f4147e;
        return iHashCode4 + (th != null ? th.hashCode() : 0);
    }

    public String toString() {
        return "CompletedContinuation(result=" + this.a + ", cancelHandler=" + this.f4144b + ", onCancellation=" + this.f4145c + ", idempotentResume=" + this.f4146d + ", cancelCause=" + this.f4147e + ')';
    }

    public /* synthetic */ s(Object obj, h hVar, f.z.c.l lVar, Object obj2, Throwable th, int i2, f.z.d.g gVar) {
        this(obj, (i2 & 2) != 0 ? null : hVar, (i2 & 4) != 0 ? null : lVar, (i2 & 8) != 0 ? null : obj2, (i2 & 16) != 0 ? null : th);
    }
}
