package com.google.protobuf;

import V.C0629x;
import com.google.crypto.tink.shaded.protobuf.C1256d;

/* JADX INFO: renamed from: com.google.protobuf.x0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C1340x0 implements J0 {

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

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

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

    public C1340x0(U0 u02, A a6, InterfaceC1332t0 interfaceC1332t0) {
        this.f14383b = u02;
        a6.getClass();
        this.f14384c = a6;
        this.f14382a = interfaceC1332t0;
    }

    @Override // com.google.protobuf.J0
    public final void a(Object obj, Object obj2) {
        K0.k(this.f14383b, obj, obj2);
    }

    @Override // com.google.protobuf.J0
    public final void b(Object obj) {
        this.f14383b.getClass();
        T0 t02 = ((L) obj).unknownFields;
        if (t02.f14230e) {
            t02.f14230e = false;
        }
        this.f14384c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // com.google.protobuf.J0
    public final boolean c(Object obj) {
        this.f14384c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // com.google.protobuf.J0
    public final Object d() {
        InterfaceC1332t0 interfaceC1332t0 = this.f14382a;
        return interfaceC1332t0 instanceof L ? ((L) interfaceC1332t0).newMutableInstance() : interfaceC1332t0.newBuilderForType().buildPartial();
    }

    @Override // com.google.protobuf.J0
    public final void e(Object obj, C1317l0 c1317l0) {
        this.f14384c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // com.google.protobuf.J0
    public final void f(Object obj, C0629x c0629x, C1343z c1343z) {
        this.f14383b.getClass();
        U0.a(obj);
        this.f14384c.getClass();
        obj.getClass();
        throw new ClassCastException();
    }

    @Override // com.google.protobuf.J0
    public final int g(L l) {
        this.f14383b.getClass();
        return l.unknownFields.hashCode();
    }

    @Override // com.google.protobuf.J0
    public final int h(L l) {
        this.f14383b.getClass();
        T0 t02 = l.unknownFields;
        int i6 = t02.f14229d;
        if (i6 != -1) {
            return i6;
        }
        int iZ = 0;
        for (int i7 = 0; i7 < t02.f14226a; i7++) {
            int i8 = t02.f14227b[i7] >>> 3;
            iZ += AbstractC1335v.z(3, (AbstractC1320n) t02.f14228c[i7]) + AbstractC1335v.E(i8) + AbstractC1335v.D(2) + (AbstractC1335v.D(1) * 2);
        }
        t02.f14229d = iZ;
        return iZ;
    }

    @Override // com.google.protobuf.J0
    public final boolean i(L l, L l6) {
        this.f14383b.getClass();
        return l.unknownFields.equals(l6.unknownFields);
    }

    @Override // com.google.protobuf.J0
    public final void j(Object obj, byte[] bArr, int i6, int i7, C1256d c1256d) {
        L l = (L) obj;
        if (l.unknownFields == T0.f14225f) {
            l.unknownFields = new T0();
        }
        obj.getClass();
        throw new ClassCastException();
    }
}
