package com.google.protobuf;

import V.C0629x;
import androidx.datastore.preferences.protobuf.C1033w;

/* JADX INFO: loaded from: classes3.dex */
public final class U0 {
    public static T0 a(Object obj) {
        L l = (L) obj;
        T0 t02 = l.unknownFields;
        if (t02 != T0.f14225f) {
            return t02;
        }
        T0 t03 = new T0();
        l.unknownFields = t03;
        return t03;
    }

    public static boolean b(Object obj, C0629x c0629x) throws com.google.crypto.tink.shaded.protobuf.B, C1297b0, C1033w {
        int i6 = c0629x.f7177b;
        int i7 = i6 >>> 3;
        int i8 = i6 & 7;
        AbstractC1329s abstractC1329s = (AbstractC1329s) c0629x.f7180e;
        if (i8 == 0) {
            c0629x.K(0);
            ((T0) obj).f(i7 << 3, Long.valueOf(abstractC1329s.r()));
            return true;
        }
        if (i8 == 1) {
            c0629x.K(1);
            ((T0) obj).f((i7 << 3) | 1, Long.valueOf(abstractC1329s.o()));
            return true;
        }
        if (i8 == 2) {
            ((T0) obj).f((i7 << 3) | 2, c0629x.p());
            return true;
        }
        if (i8 != 3) {
            if (i8 == 4) {
                return false;
            }
            if (i8 != 5) {
                throw C1297b0.d();
            }
            c0629x.K(5);
            ((T0) obj).f((i7 << 3) | 5, Integer.valueOf(abstractC1329s.n()));
            return true;
        }
        T0 t02 = new T0();
        int i9 = i7 << 3;
        int i10 = i9 | 4;
        while (c0629x.f() != Integer.MAX_VALUE && b(t02, c0629x)) {
        }
        if (i10 != c0629x.f7177b) {
            throw C1297b0.a();
        }
        if (t02.f14230e) {
            t02.f14230e = false;
        }
        ((T0) obj).f(i9 | 3, t02);
        return true;
    }
}
