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

import com.google.android.gms.internal.ads.ga2;
import com.google.android.gms.measurement.internal.u1;

/* JADX INFO: loaded from: classes2.dex */
public final class s0 implements a1 {

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

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

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

    public s0(e1 e1Var, r rVar, o0 o0Var) {
        this.f23975b = e1Var;
        rVar.getClass();
        this.f23976c = rVar;
        this.f23974a = o0Var;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final void a(Object obj, Object obj2) {
        b1.A(this.f23975b, obj, obj2);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final void b(Object obj) {
        this.f23975b.b(obj);
        this.f23976c.getClass();
        u1.x(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final boolean c(Object obj) {
        this.f23976c.getClass();
        u1.x(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final boolean d(Object obj, Object obj2) {
        e1 e1Var = this.f23975b;
        ((g1) e1Var).getClass();
        f1 f1Var = ((x) obj).unknownFields;
        ((g1) e1Var).getClass();
        return f1Var.equals(((x) obj2).unknownFields);
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final int e(Object obj) {
        ((g1) this.f23975b).getClass();
        f1 f1Var = ((x) obj).unknownFields;
        int i10 = f1Var.f23901d;
        if (i10 != -1) {
            return i10;
        }
        int iX = 0;
        for (int i11 = 0; i11 < f1Var.f23898a; i11++) {
            int i12 = f1Var.f23899b[i11] >>> 3;
            iX += n.X(3, (ByteString) f1Var.f23900c[i11]) + n.p0(2, i12) + (n.o0(1) * 2);
        }
        f1Var.f23901d = iX;
        return iX;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final Object f() {
        o0 o0Var = this.f23974a;
        return o0Var instanceof x ? ((x) o0Var).v() : o0Var.b().p();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final int g(Object obj) {
        ((g1) this.f23975b).getClass();
        return ((x) obj).unknownFields.hashCode();
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final void h(Object obj, byte[] bArr, int i10, int i11, ga2 ga2Var) {
        x xVar = (x) obj;
        if (xVar.unknownFields == f1.f23897f) {
            xVar.unknownFields = f1.c();
        }
        u1.x(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final void i(Object obj, xyz.stream.utils.j0 j0Var) {
        this.f23976c.getClass();
        u1.x(obj);
        throw null;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.a1
    public final void j(Object obj, z0 z0Var, q qVar) {
        this.f23975b.a(obj);
        this.f23976c.getClass();
        u1.x(obj);
        throw null;
    }
}
