package p138.p377.p378.p379.p384.p387;

import java.io.EOFException;
import java.rmi.UnmarshalException;
import java.util.Arrays;
import p138.p377.p378.p379.p380.C6432;
import p138.p377.p378.p379.p380.p381.EnumC6434;
import p138.p377.p378.p379.p380.p381.InterfaceC6435;
import p138.p377.p378.p379.p384.p387.C6458;

/* JADX INFO: renamed from: ދ.ރ.֏.֏.ކ.ށ.ރ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC6459<T extends C6458> implements InterfaceC6435 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public T[] f19132;

    /* JADX INFO: renamed from: ދ.ރ.֏.֏.ކ.ށ.ރ$֏, reason: contains not printable characters */
    public static class C6460 extends AbstractC6459<C6457> {
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof AbstractC6459) {
            return Arrays.equals(this.f19132, ((AbstractC6459) obj).f19132);
        }
        return false;
    }

    public int hashCode() {
        return Arrays.hashCode(this.f19132);
    }

    /* JADX INFO: Thrown type has an unknown type hierarchy: java.rmi.UnmarshalException */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m9666(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));
    }

    /* JADX INFO: Thrown type has an unknown type hierarchy: java.rmi.UnmarshalException */
    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ֏ */
    public void mo9659(C6432 c6432) throws UnmarshalException {
        c6432.m9655(EnumC6434.FOUR);
        int iM9666 = m9666("EntriesRead", c6432);
        if (c6432.m9656() == 0) {
            this.f19132 = null;
        } else {
            if (iM9666 < 0) {
                throw new UnmarshalException(String.format("Expected entriesRead >= 0, got: %d", Integer.valueOf(iM9666)));
            }
            this.f19132 = new C6457[iM9666];
        }
    }

    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ؠ */
    public void mo9660(C6432 c6432) throws EOFException {
        if (this.f19132 == null) {
            return;
        }
        c6432.m9655(EnumC6434.FOUR);
        c6432.m9654(4);
        int i = 0;
        while (true) {
            T[] tArr = this.f19132;
            if (i >= tArr.length) {
                for (T t : tArr) {
                    t.mo9659(c6432);
                }
                for (T t2 : this.f19132) {
                    t2.mo9660(c6432);
                }
                return;
            }
            tArr[i] = new C6457();
            if (this.f19132[i] == null) {
                throw null;
            }
            i++;
        }
    }

    @Override // p138.p377.p378.p379.p380.p381.InterfaceC6435
    /* JADX INFO: renamed from: ހ */
    public void mo9661(C6432 c6432) {
    }
}
