package p463.p484.p485.p486;

import java.io.Serializable;
import p463.p473.p474.p479.C7158;
import p463.p484.p485.AbstractC7191;
import p463.p484.p485.C7181;
import p463.p484.p485.C7192;
import p463.p484.p485.p486.AbstractC7196;
import p463.p484.p485.p489.C7286;
import p463.p484.p485.p489.EnumC7259;
import p463.p484.p485.p489.EnumC7260;
import p463.p484.p485.p489.InterfaceC7269;
import p463.p484.p485.p489.InterfaceC7270;
import p463.p484.p485.p489.InterfaceC7271;
import p463.p484.p485.p489.InterfaceC7275;
import p463.p484.p485.p489.InterfaceC7285;

/* JADX INFO: renamed from: ޒ.ށ.֏.ސ.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7198<D extends AbstractC7196> extends AbstractC7197<D> implements InterfaceC7269, InterfaceC7271, Serializable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final D f20863;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final C7181 f20864;

    public C7198(D d, C7181 c7181) {
        C7158.m10540(d, "date");
        C7158.m10540(c7181, "time");
        this.f20863 = d;
        this.f20864 = c7181;
    }

    private Object writeReplace() {
        return new C7215((byte) 12, this);
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public long mo10611(InterfaceC7269 interfaceC7269, InterfaceC7285 interfaceC7285) {
        AbstractC7197<?> abstractC7197Mo10785 = this.f20863.mo10647().mo10785((InterfaceC7270) interfaceC7269);
        if (!(interfaceC7285 instanceof EnumC7260)) {
            return interfaceC7285.mo10906(this, abstractC7197Mo10785);
        }
        EnumC7260 enumC7260 = (EnumC7260) interfaceC7285;
        if (!(enumC7260.compareTo(EnumC7260.DAYS) < 0)) {
            AbstractC7196 abstractC7196Mo10673 = abstractC7197Mo10785.mo10673();
            if (abstractC7197Mo10785.mo10674().compareTo(this.f20864) < 0) {
                abstractC7196Mo10673 = abstractC7196Mo10673.mo10614(1L, (InterfaceC7285) EnumC7260.DAYS);
            }
            return this.f20863.mo10611(abstractC7196Mo10673, interfaceC7285);
        }
        long jMo10597 = abstractC7197Mo10785.mo10597(EnumC7259.EPOCH_DAY) - this.f20863.mo10597(EnumC7259.EPOCH_DAY);
        switch (enumC7260) {
            case NANOS:
                jMo10597 = C7158.m10551(jMo10597, 86400000000000L);
                break;
            case MICROS:
                jMo10597 = C7158.m10551(jMo10597, 86400000000L);
                break;
            case MILLIS:
                jMo10597 = C7158.m10551(jMo10597, 86400000L);
                break;
            case SECONDS:
                jMo10597 = C7158.m10545(jMo10597, 86400);
                break;
            case MINUTES:
                jMo10597 = C7158.m10545(jMo10597, 1440);
                break;
            case HOURS:
                jMo10597 = C7158.m10545(jMo10597, 24);
                break;
            case HALF_DAYS:
                jMo10597 = C7158.m10545(jMo10597, 2);
                break;
        }
        return C7158.m10550(jMo10597, this.f20864.mo10611(abstractC7197Mo10785.mo10674(), interfaceC7285));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C7198<D> m10767(long j) {
        return m10769(this.f20863.mo10618(j, EnumC7260.DAYS), this.f20864);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C7198<D> m10768(D d, long j, long j2, long j3, long j4) {
        if ((j | j2 | j3 | j4) == 0) {
            return m10769(d, this.f20864);
        }
        long j5 = j / 24;
        long j6 = ((j % 24) * 3600000000000L) + ((j2 % 1440) * 60000000000L) + ((j3 % 86400) * 1000000000) + (j4 % 86400000000000L);
        long jM10696 = this.f20864.m10696();
        long j7 = j6 + jM10696;
        long jM10546 = C7158.m10546(j7, 86400000000000L) + j5 + (j2 / 1440) + (j3 / 86400) + (j4 / 86400000000000L);
        long jM10548 = C7158.m10548(j7, 86400000000000L);
        return m10769(d.mo10618(jM10546, EnumC7260.DAYS), jM10548 == jM10696 ? this.f20864 : C7181.m10683(jM10548));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C7198<D> m10769(InterfaceC7269 interfaceC7269, C7181 c7181) {
        return (this.f20863 == interfaceC7269 && this.f20864 == c7181) ? this : new C7198<>(this.f20863.mo10647().m10780(interfaceC7269), c7181);
    }

    @Override // p463.p484.p485.p486.AbstractC7197, p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public C7198<D> mo10615(InterfaceC7271 interfaceC7271) {
        return interfaceC7271 instanceof AbstractC7196 ? m10769((AbstractC7196) interfaceC7271, this.f20864) : interfaceC7271 instanceof C7181 ? m10769(this.f20863, (C7181) interfaceC7271) : interfaceC7271 instanceof C7198 ? this.f20863.mo10647().m10786((InterfaceC7269) interfaceC7271) : this.f20863.mo10647().m10786(interfaceC7271.mo10593(this));
    }

    @Override // p463.p484.p485.p486.AbstractC7197, p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public C7198<D> mo10616(InterfaceC7275 interfaceC7275, long j) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10904() ? m10769(this.f20863, this.f20864.mo10616(interfaceC7275, j)) : m10769(this.f20863.mo10616(interfaceC7275, j), this.f20864) : this.f20863.mo10647().m10786(interfaceC7275.mo10898(this, j));
    }

    @Override // p463.p484.p485.p486.AbstractC7197
    /* JADX INFO: renamed from: ֏ */
    public AbstractC7200<D> mo10667(AbstractC7191 abstractC7191) {
        return C7201.m10773(this, abstractC7191, (C7192) null);
    }

    @Override // p463.p484.p485.p488.AbstractC7258, p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ֏ */
    public C7286 mo10594(InterfaceC7275 interfaceC7275) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10904() ? this.f20864.mo10594(interfaceC7275) : this.f20863.mo10594(interfaceC7275) : interfaceC7275.mo10902(this);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final C7198<D> m10770(long j) {
        return m10768(this.f20863, 0L, 0L, 0L, j);
    }

    @Override // p463.p484.p485.p486.AbstractC7197, p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ؠ */
    public C7198<D> mo10618(long j, InterfaceC7285 interfaceC7285) {
        if (!(interfaceC7285 instanceof EnumC7260)) {
            return this.f20863.mo10647().m10786(interfaceC7285.mo10907(this, j));
        }
        switch ((EnumC7260) interfaceC7285) {
            case NANOS:
                return m10770(j);
            case MICROS:
                return m10767(j / 86400000000L).m10770((j % 86400000000L) * 1000);
            case MILLIS:
                return m10767(j / 86400000).m10770((j % 86400000) * 1000000);
            case SECONDS:
                return m10768(this.f20863, 0L, 0L, j, 0L);
            case MINUTES:
                return m10768(this.f20863, 0L, j, 0L, 0L);
            case HOURS:
                return m10768(this.f20863, j, 0L, 0L, 0L);
            case HALF_DAYS:
                C7198<D> c7198M10767 = m10767(j / 256);
                return c7198M10767.m10768(c7198M10767.f20863, (j % 256) * 12, 0L, 0L, 0L);
            default:
                return m10769(this.f20863.mo10618(j, interfaceC7285), this.f20864);
        }
    }

    @Override // p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ؠ */
    public boolean mo10595(InterfaceC7275 interfaceC7275) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10903() || interfaceC7275.mo10904() : interfaceC7275 != null && interfaceC7275.mo10900(this);
    }

    @Override // p463.p484.p485.p488.AbstractC7258, p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ހ */
    public int mo10596(InterfaceC7275 interfaceC7275) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10904() ? this.f20864.mo10596(interfaceC7275) : this.f20863.mo10596(interfaceC7275) : mo10594(interfaceC7275).m10917(mo10597(interfaceC7275), interfaceC7275);
    }

    @Override // p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ށ */
    public long mo10597(InterfaceC7275 interfaceC7275) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10904() ? this.f20864.mo10597(interfaceC7275) : this.f20863.mo10597(interfaceC7275) : interfaceC7275.mo10901(this);
    }

    @Override // p463.p484.p485.p486.AbstractC7197
    /* JADX INFO: renamed from: މ */
    public D mo10673() {
        return this.f20863;
    }

    @Override // p463.p484.p485.p486.AbstractC7197
    /* JADX INFO: renamed from: ފ */
    public C7181 mo10674() {
        return this.f20864;
    }
}
