package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bu0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0859bu0 implements InterfaceC1718ku0 {
    public final Ns0 a;
    public final Kt0 b;

    public C0859bu0(Kt0 kt0, Ns0 ns0) {
        Lp0 lp0 = AbstractC1525it0.a;
        this.b = kt0;
        this.a = ns0;
    }

    @Override // o.InterfaceC1718ku0
    public final void a(Object obj, byte[] bArr, int i, int i2, Rs0 rs0) {
        AbstractC2665ut0 abstractC2665ut0 = (AbstractC2665ut0) obj;
        if (abstractC2665ut0.zzc == C2857wu0.f) {
            abstractC2665ut0.zzc = C2857wu0.a();
        }
        throw Ag0.e(obj);
    }

    @Override // o.InterfaceC1718ku0
    public final void b(Object obj) {
        this.b.getClass();
        C2857wu0 c2857wu0 = ((AbstractC2665ut0) obj).zzc;
        if (c2857wu0.e) {
            c2857wu0.e = false;
        }
        Lp0 lp0 = AbstractC1525it0.a;
        throw Ag0.e(obj);
    }

    @Override // o.InterfaceC1718ku0
    public final void c(Object obj, C1696kj0 c1696kj0) {
        throw Ag0.e(obj);
    }

    @Override // o.InterfaceC1718ku0
    public final void d(Object obj, Object obj2) {
        AbstractC1908mu0.b(obj, obj2);
    }

    @Override // o.InterfaceC1718ku0
    public final boolean e(AbstractC2665ut0 abstractC2665ut0, AbstractC2665ut0 abstractC2665ut02) {
        return abstractC2665ut0.zzc.equals(abstractC2665ut02.zzc);
    }

    @Override // o.InterfaceC1718ku0
    public final int f(Ns0 ns0) {
        C2857wu0 c2857wu0 = ((AbstractC2665ut0) ns0).zzc;
        int i = c2857wu0.d;
        if (i != -1) {
            return i;
        }
        int iB = 0;
        for (int i2 = 0; i2 < c2857wu0.a; i2++) {
            int i3 = c2857wu0.b[i2] >>> 3;
            Ws0 ws0 = (Ws0) c2857wu0.c[i2];
            int iO0 = Zs0.o0(8);
            int iO02 = Zs0.o0(i3) + Zs0.o0(16);
            int iO03 = Zs0.o0(24);
            int iC = ws0.c();
            iB += iO0 + iO0 + iO02 + Ag0.b(iC, iC, iO03);
        }
        c2857wu0.d = iB;
        return iB;
    }

    @Override // o.InterfaceC1718ku0
    public final boolean g(Object obj) {
        throw Ag0.e(obj);
    }

    @Override // o.InterfaceC1718ku0
    public final int h(AbstractC2665ut0 abstractC2665ut0) {
        return abstractC2665ut0.zzc.hashCode();
    }

    @Override // o.InterfaceC1718ku0
    public final AbstractC2665ut0 zza() {
        Ns0 ns0 = this.a;
        return ns0 instanceof AbstractC2665ut0 ? (AbstractC2665ut0) ((AbstractC2665ut0) ns0).o(4) : ((AbstractC2286qt0) ((AbstractC2665ut0) ns0).o(5)).d();
    }
}
