package Z6;

import java.util.concurrent.CancellationException;

/* JADX INFO: renamed from: Z6.p, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0376p {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final O6.q f7537c;

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

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

    public C0376p(Object obj, InterfaceC0366f interfaceC0366f, O6.q qVar, Object obj2, Throwable th) {
        this.f7535a = obj;
        this.f7536b = interfaceC0366f;
        this.f7537c = qVar;
        this.f7538d = obj2;
        this.f7539e = th;
    }

    public static C0376p a(C0376p c0376p, InterfaceC0366f interfaceC0366f, CancellationException cancellationException, int i) {
        Object obj = c0376p.f7535a;
        if ((i & 2) != 0) {
            interfaceC0366f = c0376p.f7536b;
        }
        InterfaceC0366f interfaceC0366f2 = interfaceC0366f;
        O6.q qVar = c0376p.f7537c;
        Object obj2 = c0376p.f7538d;
        Throwable th = cancellationException;
        if ((i & 16) != 0) {
            th = c0376p.f7539e;
        }
        c0376p.getClass();
        return new C0376p(obj, interfaceC0366f2, qVar, obj2, th);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0376p)) {
            return false;
        }
        C0376p c0376p = (C0376p) obj;
        return P6.g.a(this.f7535a, c0376p.f7535a) && P6.g.a(this.f7536b, c0376p.f7536b) && P6.g.a(this.f7537c, c0376p.f7537c) && P6.g.a(this.f7538d, c0376p.f7538d) && P6.g.a(this.f7539e, c0376p.f7539e);
    }

    public final int hashCode() {
        Object obj = this.f7535a;
        int iHashCode = (obj == null ? 0 : obj.hashCode()) * 31;
        InterfaceC0366f interfaceC0366f = this.f7536b;
        int iHashCode2 = (iHashCode + (interfaceC0366f == null ? 0 : interfaceC0366f.hashCode())) * 31;
        O6.q qVar = this.f7537c;
        int iHashCode3 = (iHashCode2 + (qVar == null ? 0 : qVar.hashCode())) * 31;
        Object obj2 = this.f7538d;
        int iHashCode4 = (iHashCode3 + (obj2 == null ? 0 : obj2.hashCode())) * 31;
        Throwable th = this.f7539e;
        return iHashCode4 + (th != null ? th.hashCode() : 0);
    }

    public final String toString() {
        return "CompletedContinuation(result=" + this.f7535a + ", cancelHandler=" + this.f7536b + ", onCancellation=" + this.f7537c + ", idempotentResume=" + this.f7538d + ", cancelCause=" + this.f7539e + ')';
    }

    public /* synthetic */ C0376p(Object obj, InterfaceC0366f interfaceC0366f, O6.q qVar, CancellationException cancellationException, int i) {
        this(obj, (i & 2) != 0 ? null : interfaceC0366f, (i & 4) != 0 ? null : qVar, (Object) null, (i & 16) != 0 ? null : cancellationException);
    }
}
