package defpackage;

import j$.util.Objects;
import java.io.EOFException;
import java.rmi.UnmarshalException;

/* renamed from: ᵛᵹᵼˉ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC2773 implements InterfaceC3791 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public int f10705;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public String f10706;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f10707;

    /* JADX INFO: Thrown type has an unknown type hierarchy: java.rmi.UnmarshalException */
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static int m6846(String str, C5553 c5553) throws UnmarshalException {
        long j = ((C0175) c5553.f20835).readInt() & 4294967295L;
        if (j <= 2147483647L) {
            return (int) j;
        }
        throw new UnmarshalException(String.format("%s %d > %d", str, Long.valueOf(j), Integer.MAX_VALUE));
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof AbstractC2773) && Objects.equals(this.f10706, ((AbstractC2773) obj).f10706);
    }

    public final int hashCode() {
        return Objects.hash(Boolean.TRUE, this.f10706);
    }

    public final String toString() {
        String str = this.f10706;
        return str == null ? "null" : AbstractC4486.m9550("\"", str, "\"");
    }

    @Override // defpackage.InterfaceC3791
    /* renamed from: ˏᵙ */
    public final void mo2495(C5553 c5553) throws EOFException {
        boolean z;
        c5553.m11188(EnumC5259.TWO);
        c5553.m11178(this.f10707 * 2);
        int i = this.f10705;
        if (i > 0) {
            i--;
            z = true;
        } else {
            z = false;
        }
        StringBuilder sb = new StringBuilder(i);
        for (int i2 = 0; i2 < i; i2++) {
            sb.append((char) ((C0175) c5553.f20835).readUnsignedShort());
        }
        this.f10706 = sb.toString();
        if (z) {
            c5553.m11178(2);
        }
    }

    @Override // defpackage.InterfaceC3791
    /* renamed from: ᵥᵯˎ */
    public final void mo2496(C5553 c5553) {
        c5553.m11188(EnumC5259.FOUR);
        this.f10707 = m6846("Offset", c5553);
        this.f10705 = m6846("ActualCount", c5553);
    }

    @Override // defpackage.InterfaceC3791
    /* renamed from: ᵴᵳ */
    public final void mo2497(C5553 c5553) throws EOFException {
        c5553.m11188(EnumC5259.FOUR);
        c5553.m11178(4);
    }
}
