package p463.p484.p485.p486;

import java.io.Externalizable;
import java.io.IOException;
import java.io.InvalidClassException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.StreamCorruptedException;
import p463.p484.p485.AbstractC7191;
import p463.p484.p485.C7178;
import p463.p484.p485.C7181;
import p463.p484.p485.C7192;
import p463.p484.p485.p489.EnumC7259;

/* JADX INFO: renamed from: ޒ.ށ.֏.ސ.ޒ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7215 implements Externalizable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public byte f20934;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public Object f20935;

    public C7215() {
    }

    public C7215(byte b, Object obj) {
        this.f20934 = b;
        this.f20935 = obj;
    }

    private Object readResolve() {
        return this.f20935;
    }

    @Override // java.io.Externalizable
    public void readExternal(ObjectInput objectInput) throws IOException {
        Object objM10811;
        Object c7213;
        byte b = objectInput.readByte();
        this.f20934 = b;
        switch (b) {
            case 1:
                objM10811 = C7210.m10811(objectInput);
                this.f20935 = objM10811;
                return;
            case 2:
                objM10811 = C7211.m10817(objectInput);
                this.f20935 = objM10811;
                return;
            case 3:
                objM10811 = C7205.m10794(objectInput);
                this.f20935 = objM10811;
                return;
            case 4:
                objM10811 = EnumC7206.m10807(objectInput);
                this.f20935 = objM10811;
                return;
            case 5:
                int i = objectInput.readInt();
                byte b2 = objectInput.readByte();
                byte b3 = objectInput.readByte();
                C7212 c7212 = C7212.f20929;
                c7213 = new C7213(C7178.m10621(i + 1911, b2, b3));
                objM10811 = c7213;
                this.f20935 = objM10811;
                return;
            case 6:
                objM10811 = EnumC7214.m10826(objectInput);
                this.f20935 = objM10811;
                return;
            case 7:
                int i2 = objectInput.readInt();
                byte b4 = objectInput.readByte();
                byte b5 = objectInput.readByte();
                C7216 c7216 = C7216.f20936;
                c7213 = new C7217(C7178.m10621(i2 - 543, b4, b5));
                objM10811 = c7213;
                this.f20935 = objM10811;
                return;
            case 8:
                objM10811 = EnumC7218.m10832(objectInput);
                this.f20935 = objM10811;
                return;
            case 9:
            case 10:
            default:
                throw new StreamCorruptedException("Unknown serialized type");
            case 11:
                objM10811 = AbstractC7202.m10775(objectInput);
                this.f20935 = objM10811;
                return;
            case 12:
                objM10811 = ((AbstractC7196) objectInput.readObject()).mo10635((C7181) objectInput.readObject());
                this.f20935 = objM10811;
                return;
            case 13:
                objM10811 = ((AbstractC7197) objectInput.readObject()).mo10667((AbstractC7191) ((C7192) objectInput.readObject())).mo10755((AbstractC7191) objectInput.readObject());
                this.f20935 = objM10811;
                return;
        }
    }

    @Override // java.io.Externalizable
    public void writeExternal(ObjectOutput objectOutput) throws IOException {
        byte b = this.f20934;
        Object obj = this.f20935;
        objectOutput.writeByte(b);
        switch (b) {
            case 1:
                C7210 c7210 = (C7210) obj;
                if (c7210 == null) {
                    throw null;
                }
                objectOutput.writeInt(c7210.mo10596(EnumC7259.YEAR));
                objectOutput.writeByte(c7210.mo10596(EnumC7259.MONTH_OF_YEAR));
                objectOutput.writeByte(c7210.mo10596(EnumC7259.DAY_OF_MONTH));
                return;
            case 2:
                objectOutput.writeByte(((C7211) obj).f20926);
                return;
            case 3:
                C7205 c7205 = (C7205) obj;
                if (c7205 == null) {
                    throw null;
                }
                objectOutput.writeInt(c7205.mo10596(EnumC7259.YEAR));
                objectOutput.writeByte(c7205.mo10596(EnumC7259.MONTH_OF_YEAR));
                objectOutput.writeByte(c7205.mo10596(EnumC7259.DAY_OF_MONTH));
                return;
            case 4:
                objectOutput.writeByte(((EnumC7206) obj).ordinal());
                return;
            case 5:
                C7213 c7213 = (C7213) obj;
                if (c7213 == null) {
                    throw null;
                }
                objectOutput.writeInt(c7213.mo10596(EnumC7259.YEAR));
                objectOutput.writeByte(c7213.mo10596(EnumC7259.MONTH_OF_YEAR));
                objectOutput.writeByte(c7213.mo10596(EnumC7259.DAY_OF_MONTH));
                return;
            case 6:
                objectOutput.writeByte(((EnumC7214) obj).ordinal());
                return;
            case 7:
                C7217 c7217 = (C7217) obj;
                if (c7217 == null) {
                    throw null;
                }
                objectOutput.writeInt(c7217.mo10596(EnumC7259.YEAR));
                objectOutput.writeByte(c7217.mo10596(EnumC7259.MONTH_OF_YEAR));
                objectOutput.writeByte(c7217.mo10596(EnumC7259.DAY_OF_MONTH));
                return;
            case 8:
                objectOutput.writeByte(((EnumC7218) obj).ordinal());
                return;
            case 9:
            case 10:
            default:
                throw new InvalidClassException("Unknown serialized type");
            case 11:
                objectOutput.writeUTF(((AbstractC7202) obj).mo10790());
                return;
            case 12:
                C7198 c7198 = (C7198) obj;
                objectOutput.writeObject(c7198.f20863);
                objectOutput.writeObject(c7198.f20864);
                return;
            case 13:
                C7201 c7201 = (C7201) obj;
                objectOutput.writeObject(c7201.f20865);
                objectOutput.writeObject(c7201.f20866);
                objectOutput.writeObject(c7201.f20867);
                return;
        }
    }
}
