package p138.p377.p378.p379.p388;

import java.io.EOFException;
import java.rmi.UnmarshalException;
import java.util.Objects;
import p138.p377.p378.p379.p380.C6432;
import p138.p377.p378.p379.p380.p381.EnumC6434;
import p138.p377.p378.p379.p380.p381.InterfaceC6435;

/* JADX INFO: renamed from: ދ.ރ.֏.֏.އ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC6461 implements InterfaceC6435 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public String f19133 = "";

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public int f19134;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public int f19135;

    /* JADX INFO: renamed from: ދ.ރ.֏.֏.އ.֏$֏, reason: contains not printable characters */
    public static class C6462 extends AbstractC6461 {
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof AbstractC6461)) {
            return false;
        }
        AbstractC6461 abstractC6461 = (AbstractC6461) obj;
        if (((C6462) abstractC6461) != null) {
            return Objects.equals(this.f19133, abstractC6461.f19133);
        }
        throw null;
    }

    public int hashCode() {
        return Objects.hash(true, this.f19133);
    }

    public String toString() {
        String str = this.f19133;
        return str == null ? "null" : String.format("\"%s\"", str);
    }

    /* JADX INFO: Thrown type has an unknown type hierarchy: java.rmi.UnmarshalException */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m9667(String str, C6432 c6432) throws UnmarshalException {
        long jM9658 = c6432.m9658();
        if (jM9658 <= 2147483647L) {
            return (int) jM9658;
        }
        throw new UnmarshalException(String.format("%s %d > %d", str, Long.valueOf(jM9658), Integer.MAX_VALUE));
    }

    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ֏ */
    public void mo9659(C6432 c6432) {
        c6432.m9655(EnumC6434.FOUR);
        this.f19134 = m9667("Offset", c6432);
        this.f19135 = m9667("ActualCount", c6432);
    }

    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ؠ */
    public void mo9660(C6432 c6432) throws EOFException {
        boolean z;
        c6432.m9655(EnumC6434.TWO);
        c6432.m9654(this.f19134 * 2);
        int i = this.f19135;
        if (i > 0) {
            i--;
            z = true;
        } else {
            z = false;
        }
        StringBuilder sb = new StringBuilder(i);
        for (int i2 = 0; i2 < i; i2++) {
            sb.append(c6432.f18058.readChar());
        }
        this.f19133 = sb.toString();
        if (z) {
            c6432.m9654(2);
        }
    }

    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ހ */
    public void mo9661(C6432 c6432) throws EOFException {
        c6432.m9655(EnumC6434.FOUR);
        c6432.m9654(4);
    }
}
