package kotlinx.coroutines;

import java.util.concurrent.CancellationException;

/* JADX INFO: loaded from: classes.dex */
public final class p {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final sd.l f29516c;

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

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

    public p(Object obj, f fVar, sd.l lVar, Object obj2, Throwable th) {
        this.f29514a = obj;
        this.f29515b = fVar;
        this.f29516c = lVar;
        this.f29517d = obj2;
        this.f29518e = th;
    }

    public static p a(p pVar, f fVar, CancellationException cancellationException, int i10) {
        Object obj = (i10 & 1) != 0 ? pVar.f29514a : null;
        if ((i10 & 2) != 0) {
            fVar = pVar.f29515b;
        }
        f fVar2 = fVar;
        sd.l lVar = (i10 & 4) != 0 ? pVar.f29516c : null;
        Object obj2 = (i10 & 8) != 0 ? pVar.f29517d : null;
        Throwable th = cancellationException;
        if ((i10 & 16) != 0) {
            th = pVar.f29518e;
        }
        pVar.getClass();
        return new p(obj, fVar2, lVar, obj2, th);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof p)) {
            return false;
        }
        p pVar = (p) obj;
        return nb.g.c(this.f29514a, pVar.f29514a) && nb.g.c(this.f29515b, pVar.f29515b) && nb.g.c(this.f29516c, pVar.f29516c) && nb.g.c(this.f29517d, pVar.f29517d) && nb.g.c(this.f29518e, pVar.f29518e);
    }

    public final int hashCode() {
        Object obj = this.f29514a;
        int iHashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        f fVar = this.f29515b;
        int iHashCode2 = (iHashCode + (fVar == null ? 0 : fVar.hashCode())) * 31;
        sd.l lVar = this.f29516c;
        int iHashCode3 = (iHashCode2 + (lVar == null ? 0 : lVar.hashCode())) * 31;
        Object obj2 = this.f29517d;
        int iHashCode4 = (iHashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th = this.f29518e;
        return iHashCode4 + (th != null ? th.hashCode() : 0);
    }

    public final String toString() {
        return "CompletedContinuation(result=" + this.f29514a + ", cancelHandler=" + this.f29515b + ", onCancellation=" + this.f29516c + ", idempotentResume=" + this.f29517d + ", cancelCause=" + this.f29518e + ')';
    }

    public /* synthetic */ p(Object obj, f fVar, sd.l lVar, CancellationException cancellationException, int i10) {
        this(obj, (i10 & 2) != 0 ? null : fVar, (i10 & 4) != 0 ? null : lVar, (Object) null, (i10 & 16) != 0 ? null : cancellationException);
    }
}
