package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.oP, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2046oP implements I40 {
    public final U a;
    public final Qh0 b;
    public final C2576tx c;

    public C2046oP(Qh0 qh0, C2576tx c2576tx, U u) {
        this.b = qh0;
        c2576tx.getClass();
        this.c = c2576tx;
        this.a = u;
    }

    @Override // o.I40
    public final void a(Object obj, Object obj2) {
        L40.k(this.b, obj, obj2);
    }

    @Override // o.I40
    public final boolean b(DD dd, DD dd2) {
        this.b.getClass();
        return dd.unknownFields.equals(dd2.unknownFields);
    }

    @Override // o.I40
    public final void c(Object obj) {
        this.b.getClass();
        Ph0 ph0 = ((DD) obj).unknownFields;
        if (ph0.e) {
            ph0.e = false;
        }
        this.c.getClass();
        AbstractC2462sn.s(obj);
        throw null;
    }

    @Override // o.I40
    public final boolean d(Object obj) {
        this.c.getClass();
        AbstractC2462sn.s(obj);
        throw null;
    }

    @Override // o.I40
    public final void e(Object obj, OD od) {
        this.c.getClass();
        AbstractC2462sn.s(obj);
        throw null;
    }

    @Override // o.I40
    public final void f(Object obj, C2642ui c2642ui, C2481sx c2481sx) {
        this.b.getClass();
        Qh0.a(obj);
        this.c.getClass();
        obj.getClass();
        throw new ClassCastException();
    }

    @Override // o.I40
    public final int g(DD dd) {
        this.b.getClass();
        Ph0 ph0 = dd.unknownFields;
        int i = ph0.d;
        if (i != -1) {
            return i;
        }
        int iL = 0;
        for (int i2 = 0; i2 < ph0.a; i2++) {
            int i3 = ph0.b[i2] >>> 3;
            iL += C2832wi.L(3, (AbstractC0161Gf) ph0.c[i2]) + C2832wi.O(i3) + C2832wi.N(2) + (C2832wi.N(1) * 2);
        }
        ph0.d = iL;
        return iL;
    }

    @Override // o.I40
    public final DD h() {
        U u = this.a;
        return u instanceof DD ? ((DD) u).i() : ((BD) ((DD) u).c(5)).b();
    }

    @Override // o.I40
    public final int i(DD dd) {
        this.b.getClass();
        return dd.unknownFields.hashCode();
    }
}
