package androidx.datastore.preferences.protobuf;

/* JADX INFO: loaded from: classes.dex */
public final class x0 implements m0 {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Object[] f2170c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final int f2171d;

    public x0(y yVar, String str, Object[] objArr) {
        this.f2168a = yVar;
        this.f2169b = str;
        this.f2170c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f2171d = cCharAt;
            return;
        }
        int i10 = cCharAt & 8191;
        int i11 = 1;
        int i12 = 13;
        while (true) {
            int i13 = i11 + 1;
            char cCharAt2 = str.charAt(i11);
            if (cCharAt2 < 55296) {
                this.f2171d = i10 | (cCharAt2 << i12);
                return;
            } else {
                i10 |= (cCharAt2 & 8191) << i12;
                i12 += 13;
                i11 = i13;
            }
        }
    }

    public final o0 a() {
        return this.f2168a;
    }

    public final Object[] b() {
        return this.f2170c;
    }

    public final String c() {
        return this.f2169b;
    }

    public final ProtoSyntax d() {
        int i10 = this.f2171d;
        return (i10 & 1) != 0 ? ProtoSyntax.f2026a : (i10 & 4) == 4 ? ProtoSyntax.f2028c : ProtoSyntax.f2027b;
    }
}
