package j$.time.format;

import j$.time.ZoneId;
import j$.time.chrono.ChronoLocalDate;

/* JADX INFO: loaded from: classes2.dex */
final class y implements j$.time.temporal.n {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    final /* synthetic */ ChronoLocalDate f19289a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    final /* synthetic */ Object f19290b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    final /* synthetic */ j$.time.chrono.k f19291c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    final /* synthetic */ ZoneId f19292d;

    y(ChronoLocalDate chronoLocalDate, j$.time.temporal.n nVar, j$.time.chrono.k kVar, ZoneId zoneId) {
        this.f19289a = chronoLocalDate;
        this.f19290b = nVar;
        this.f19291c = kVar;
        this.f19292d = zoneId;
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [j$.time.temporal.n, java.lang.Object] */
    @Override // j$.time.temporal.n
    public final boolean f(j$.time.temporal.s sVar) {
        ChronoLocalDate chronoLocalDate = this.f19289a;
        if (chronoLocalDate != null && sVar.V()) {
            return chronoLocalDate.f(sVar);
        }
        return this.f19290b.f(sVar);
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [j$.time.temporal.n, java.lang.Object] */
    @Override // j$.time.temporal.n
    public final j$.time.temporal.x l(j$.time.temporal.s sVar) {
        ChronoLocalDate chronoLocalDate = this.f19289a;
        if (chronoLocalDate != null && sVar.V()) {
            return chronoLocalDate.l(sVar);
        }
        return this.f19290b.l(sVar);
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [j$.time.temporal.n, java.lang.Object] */
    @Override // j$.time.temporal.n
    public final long g(j$.time.temporal.s sVar) {
        ChronoLocalDate chronoLocalDate = this.f19289a;
        if (chronoLocalDate != null && sVar.V()) {
            return chronoLocalDate.g(sVar);
        }
        return this.f19290b.g(sVar);
    }

    /* JADX WARN: Type inference failed for: r0v3, types: [j$.time.temporal.n, java.lang.Object] */
    @Override // j$.time.temporal.n
    public final Object d(j$.time.temporal.u uVar) {
        if (uVar == j$.time.temporal.t.a()) {
            return this.f19291c;
        }
        if (uVar == j$.time.temporal.t.g()) {
            return this.f19292d;
        }
        if (uVar == j$.time.temporal.t.e()) {
            return this.f19290b.d(uVar);
        }
        return uVar.l(this);
    }

    public final String toString() {
        String str;
        String str2 = "";
        j$.time.chrono.k kVar = this.f19291c;
        if (kVar != null) {
            str = " with chronology " + kVar;
        } else {
            str = "";
        }
        ZoneId zoneId = this.f19292d;
        if (zoneId != null) {
            str2 = " with zone " + zoneId;
        }
        return this.f19290b + str + str2;
    }
}
