package com.google.crypto.tink.shaded.protobuf;

import V.C0629x;

/* JADX INFO: loaded from: classes3.dex */
public final class U implements c0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final AbstractC1253a f13754a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final g0 f13755b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final C1268p f13756c;

    public U(g0 g0Var, C1268p c1268p, AbstractC1253a abstractC1253a) {
        this.f13755b = g0Var;
        c1268p.getClass();
        this.f13756c = c1268p;
        this.f13754a = abstractC1253a;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final void a(Object obj, Object obj2) {
        d0.x(this.f13755b, obj, obj2);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final void b(Object obj) {
        this.f13755b.getClass();
        ((AbstractC1274w) obj).unknownFields.f13785e = false;
        this.f13756c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final boolean c(Object obj) {
        this.f13756c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final Object d() {
        AbstractC1253a abstractC1253a = this.f13754a;
        return abstractC1253a instanceof AbstractC1274w ? ((AbstractC1274w) abstractC1253a).p() : abstractC1253a.c().b();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final void e(Object obj, C0629x c0629x, C1267o c1267o) {
        this.f13755b.getClass();
        g0.a(obj);
        this.f13756c.getClass();
        obj.getClass();
        throw new ClassCastException();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final boolean f(AbstractC1274w abstractC1274w, AbstractC1274w abstractC1274w2) {
        this.f13755b.getClass();
        return abstractC1274w.unknownFields.equals(abstractC1274w2.unknownFields);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final int g(AbstractC1274w abstractC1274w) {
        this.f13755b.getClass();
        return abstractC1274w.unknownFields.hashCode();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final int h(AbstractC1274w abstractC1274w) {
        this.f13755b.getClass();
        f0 f0Var = abstractC1274w.unknownFields;
        int i6 = f0Var.f13784d;
        if (i6 != -1) {
            return i6;
        }
        int I5 = 0;
        for (int i7 = 0; i7 < f0Var.f13781a; i7++) {
            int i8 = f0Var.f13782b[i7] >>> 3;
            I5 += C1264l.I(3, (AbstractC1261i) f0Var.f13783c[i7]) + C1264l.Q(i8) + C1264l.P(2) + (C1264l.P(1) * 2);
        }
        f0Var.f13784d = I5;
        return I5;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final void i(Object obj, byte[] bArr, int i6, int i7, C1256d c1256d) {
        AbstractC1274w abstractC1274w = (AbstractC1274w) obj;
        if (abstractC1274w.unknownFields == f0.f13780f) {
            abstractC1274w.unknownFields = f0.c();
        }
        obj.getClass();
        throw new ClassCastException();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.c0
    public final void j(Object obj, L l) {
        this.f13756c.getClass();
        A0.a.v(obj);
        throw null;
    }
}
