package p463.p484.p485;

import java.io.DataInput;
import java.io.InvalidObjectException;
import java.io.Serializable;
import org.threeten.bp.DateTimeException;
import org.threeten.bp.temporal.UnsupportedTemporalTypeException;
import p138.p139.p143.p144.C2803;
import p463.p473.p474.p479.C7158;
import p463.p484.p485.p488.AbstractC7258;
import p463.p484.p485.p489.C7276;
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.InterfaceC7284;
import p463.p484.p485.p489.InterfaceC7285;

/* JADX INFO: renamed from: ޒ.ށ.֏.އ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7186 extends AbstractC7258 implements InterfaceC7269, InterfaceC7271, Comparable<C7186>, Serializable {

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

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

    static {
        C7181 c7181 = C7181.f20811;
        C7192 c7192 = C7192.f20854;
        if (c7181 == null) {
            throw null;
        }
        new C7186(c7181, c7192);
        C7181 c71812 = C7181.f20812;
        C7192 c71922 = C7192.f20853;
        if (c71812 == null) {
            throw null;
        }
        new C7186(c71812, c71922);
    }

    public C7186(C7181 c7181, C7192 c7192) {
        C7158.m10540(c7181, "time");
        this.f20838 = c7181;
        C7158.m10540(c7192, "offset");
        this.f20839 = c7192;
    }

    private Object readResolve() throws InvalidObjectException {
        throw new InvalidObjectException("Deserialization via serialization delegate");
    }

    private Object writeReplace() {
        return new C7188((byte) 66, this);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C7186 m10711(DataInput dataInput) {
        return new C7186(C7181.m10680(dataInput), C7192.m10742(dataInput));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C7186 m10712(InterfaceC7270 interfaceC7270) {
        if (interfaceC7270 instanceof C7186) {
            return (C7186) interfaceC7270;
        }
        try {
            return new C7186(C7181.m10681(interfaceC7270), C7192.m10744(interfaceC7270));
        } catch (DateTimeException unused) {
            StringBuilder sb = new StringBuilder();
            sb.append("Unable to obtain OffsetTime from TemporalAccessor: ");
            sb.append(interfaceC7270);
            sb.append(", type ");
            throw new DateTimeException(C2803.m4888(interfaceC7270, sb));
        }
    }

    @Override // java.lang.Comparable
    public int compareTo(C7186 c7186) {
        int iM10537;
        C7186 c71862 = c7186;
        if (!this.f20839.equals(c71862.f20839) && (iM10537 = C7158.m10537(m10714(), c71862.m10714())) != 0) {
            return iM10537;
        }
        return this.f20838.compareTo(c71862.f20838);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C7186)) {
            return false;
        }
        C7186 c7186 = (C7186) obj;
        return this.f20838.equals(c7186.f20838) && this.f20839.equals(c7186.f20839);
    }

    public int hashCode() {
        return this.f20838.hashCode() ^ this.f20839.f20855;
    }

    public String toString() {
        return this.f20838.toString() + this.f20839.f20856;
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public long mo10611(InterfaceC7269 interfaceC7269, InterfaceC7285 interfaceC7285) {
        C7186 c7186M10712 = m10712((InterfaceC7270) interfaceC7269);
        if (!(interfaceC7285 instanceof EnumC7260)) {
            return interfaceC7285.mo10906(this, c7186M10712);
        }
        long jM10714 = c7186M10712.m10714() - m10714();
        switch ((EnumC7260) interfaceC7285) {
            case NANOS:
                return jM10714;
            case MICROS:
                return jM10714 / 1000;
            case MILLIS:
                return jM10714 / 1000000;
            case SECONDS:
                return jM10714 / 1000000000;
            case MINUTES:
                return jM10714 / 60000000000L;
            case HOURS:
                return jM10714 / 3600000000000L;
            case HALF_DAYS:
                return jM10714 / 43200000000000L;
            default:
                throw new UnsupportedTemporalTypeException("Unsupported unit: " + interfaceC7285);
        }
    }

    @Override // p463.p484.p485.p488.AbstractC7258, p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ֏ */
    public <R> R mo10592(InterfaceC7284<R> interfaceC7284) {
        if (interfaceC7284 == C7276.f21141) {
            return (R) EnumC7260.NANOS;
        }
        if (interfaceC7284 == C7276.f21143 || interfaceC7284 == C7276.f21142) {
            return (R) this.f20839;
        }
        if (interfaceC7284 == C7276.f21145) {
            return (R) this.f20838;
        }
        if (interfaceC7284 == C7276.f21140 || interfaceC7284 == C7276.f21144 || interfaceC7284 == C7276.f21139) {
            return null;
        }
        return (R) super.mo10592(interfaceC7284);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final C7186 m10713(C7181 c7181, C7192 c7192) {
        return (this.f20838 == c7181 && this.f20839.equals(c7192)) ? this : new C7186(c7181, c7192);
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC7269 mo10614(long j, InterfaceC7285 interfaceC7285) {
        return j == Long.MIN_VALUE ? mo10618(Long.MAX_VALUE, interfaceC7285).mo10618(1L, interfaceC7285) : mo10618(-j, interfaceC7285);
    }

    @Override // p463.p484.p485.p489.InterfaceC7271
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC7269 mo10593(InterfaceC7269 interfaceC7269) {
        return interfaceC7269.mo10616(EnumC7259.NANO_OF_DAY, this.f20838.m10696()).mo10616(EnumC7259.OFFSET_SECONDS, this.f20839.f20855);
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC7269 mo10615(InterfaceC7271 interfaceC7271) {
        return interfaceC7271 instanceof C7181 ? m10713((C7181) interfaceC7271, this.f20839) : interfaceC7271 instanceof C7192 ? m10713(this.f20838, (C7192) interfaceC7271) : interfaceC7271 instanceof C7186 ? (C7186) interfaceC7271 : (C7186) interfaceC7271.mo10593(this);
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC7269 mo10616(InterfaceC7275 interfaceC7275, long j) {
        if (!(interfaceC7275 instanceof EnumC7259)) {
            return (C7186) interfaceC7275.mo10898(this, j);
        }
        if (interfaceC7275 != EnumC7259.OFFSET_SECONDS) {
            return m10713(this.f20838.mo10616(interfaceC7275, j), this.f20839);
        }
        EnumC7259 enumC7259 = (EnumC7259) interfaceC7275;
        return m10713(this.f20838, C7192.m10740(enumC7259.f21101.m10917(j, enumC7259)));
    }

    @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 == EnumC7259.OFFSET_SECONDS ? interfaceC7275.mo10905() : this.f20838.mo10594(interfaceC7275) : interfaceC7275.mo10902(this);
    }

    @Override // p463.p484.p485.p489.InterfaceC7269
    /* JADX INFO: renamed from: ؠ */
    public C7186 mo10618(long j, InterfaceC7285 interfaceC7285) {
        return interfaceC7285 instanceof EnumC7260 ? m10713(this.f20838.mo10618(j, interfaceC7285), this.f20839) : (C7186) interfaceC7285.mo10907(this, j);
    }

    @Override // p463.p484.p485.p489.InterfaceC7270
    /* JADX INFO: renamed from: ؠ */
    public boolean mo10595(InterfaceC7275 interfaceC7275) {
        return interfaceC7275 instanceof EnumC7259 ? interfaceC7275.mo10904() || interfaceC7275 == EnumC7259.OFFSET_SECONDS : 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 super.mo10596(interfaceC7275);
    }

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

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final long m10714() {
        return this.f20838.m10696() - (((long) this.f20839.f20855) * 1000000000);
    }
}
