package androidx.datastore.preferences.protobuf;

import V.C0629x;

/* JADX INFO: loaded from: classes.dex */
public final class O implements X {

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

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

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

    public O(i0 i0Var, C1024m c1024m, AbstractC1030t abstractC1030t) {
        this.f11336b = i0Var;
        c1024m.getClass();
        this.f11337c = c1024m;
        this.f11335a = abstractC1030t;
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final void a(Object obj, Object obj2) {
        Y.x(this.f11336b, obj, obj2);
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final void b(Object obj) {
        this.f11336b.getClass();
        ((AbstractC1030t) obj).unknownFields.f11398e = false;
        this.f11337c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final boolean c(Object obj) {
        this.f11337c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final AbstractC1030t d() {
        AbstractC1030t abstractC1030t = this.f11335a;
        return abstractC1030t != null ? abstractC1030t.i() : ((r) abstractC1030t.c(5)).b();
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final void e(Object obj, F f6) {
        this.f11337c.getClass();
        A0.a.v(obj);
        throw null;
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final void f(Object obj, C0629x c0629x, C1023l c1023l) {
        this.f11336b.getClass();
        i0.a(obj);
        this.f11337c.getClass();
        obj.getClass();
        throw new ClassCastException();
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final int g(AbstractC1030t abstractC1030t) {
        this.f11336b.getClass();
        h0 h0Var = abstractC1030t.unknownFields;
        int i6 = h0Var.f11397d;
        if (i6 != -1) {
            return i6;
        }
        int iL = 0;
        for (int i7 = 0; i7 < h0Var.f11394a; i7++) {
            int i8 = h0Var.f11395b[i7] >>> 3;
            iL += C1021j.l(3, (C1018g) h0Var.f11396c[i7]) + C1021j.t(i8) + C1021j.s(2) + (C1021j.s(1) * 2);
        }
        h0Var.f11397d = iL;
        return iL;
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final int h(AbstractC1030t abstractC1030t) {
        this.f11336b.getClass();
        return abstractC1030t.unknownFields.hashCode();
    }

    @Override // androidx.datastore.preferences.protobuf.X
    public final boolean i(AbstractC1030t abstractC1030t, AbstractC1030t abstractC1030t2) {
        this.f11336b.getClass();
        return abstractC1030t.unknownFields.equals(abstractC1030t2.unknownFields);
    }
}
