package defpackage;

import java.io.IOException;
import java.util.EnumSet;

/* renamed from: ᵹˉˑᵙ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC5030 extends ᵿᵧ {

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public EnumSet f18801;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public EnumC3713 f18807;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public byte f18802 = 5;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public byte f18806 = 0;

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public byte[] f18804 = {16, 0, 0, 0};

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public short f18803 = 16;

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public short f18805 = 0;

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public int f18800 = 0;

    /* renamed from: ˀᵗᵩ */
    public void mo8368(C5553 c5553) throws IOException {
        C0175 c0175 = (C0175) c5553.f20835;
        this.f18802 = c5553.m11172();
        byte bM11172 = c5553.m11172();
        this.f18806 = bM11172;
        byte b = this.f18802;
        if (5 != b || bM11172 != 0) {
            throw new IOException(String.format("Version mismatch: %d.%d != 5.0", Byte.valueOf(b), Byte.valueOf(this.f18806)));
        }
        EnumC3713 enumC3713 = (EnumC3713) ˉᵜˆ.ᵡˎ(c5553.m11172(), EnumC3713.class, (EnumC3754) null);
        if (enumC3713 == null) {
            throw new IOException(String.format("PDU type invalid: %d", enumC3713));
        }
        this.f18807 = enumC3713;
        this.f18801 = ˉᵜˆ.ᵡⁱᵥ(c5553.m11172(), EnumC5415.class);
        byte[] bArr = new byte[4];
        c0175.readFully(bArr);
        byte b2 = bArr[0];
        if (b2 != 16) {
            throw new IOException(String.format("Integer and Character representation mismatch: %d", Byte.valueOf(b2)));
        }
        byte b3 = bArr[1];
        if (b3 != 0) {
            throw new IOException(String.format("Floating-Point representation mismatch: %d", Byte.valueOf(b3)));
        }
        this.f18804 = bArr;
        this.f18803 = (short) c0175.readUnsignedShort();
        this.f18805 = (short) c0175.readUnsignedShort();
        this.f18800 = c0175.readInt();
    }

    /* renamed from: ˊᵸˊ */
    public void mo4396(ᵿʤˑᵦ r3) throws IOException {
        if (this.f18807 == null) {
            C0910.m3052(this.f18807, "Invalid PDU type: ");
            return;
        }
        if (this.f18801 == null) {
            C0910.m3052(this.f18801, "Invalid PFC flag(s): ");
            return;
        }
        r3.ᵧـˌᵎ(this.f18802);
        r3.ᵧـˌᵎ(this.f18806);
        r3.ᵧـˌᵎ((byte) this.f18807.f13871);
        r3.ᵧـˌᵎ((byte) ˉᵜˆ.ˀᵗᵝᵭ(this.f18801));
        ((C1012) r3.ᵢˇᵭ).write(this.f18804);
        r3.ᵶʔᵢˊ(this.f18803);
        r3.ᵶʔᵢˊ(0);
        r3.ᵺʙ(this.f18800);
    }
}
