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

/* JADX INFO: loaded from: classes2.dex */
public final class y0 implements l0 {

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

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

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

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

    public y0(x xVar, String str, Object[] objArr) {
        this.f23991a = xVar;
        this.f23992b = str;
        this.f23993c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f23994d = 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.f23994d = i10 | (cCharAt2 << i12);
                return;
            } else {
                i10 |= (cCharAt2 & 8191) << i12;
                i12 += 13;
                i11 = i13;
            }
        }
    }

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

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

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

    public final ProtoSyntax d() {
        int i10 = this.f23994d;
        return (i10 & 1) != 0 ? ProtoSyntax.f23878a : (i10 & 4) == 4 ? ProtoSyntax.f23880c : ProtoSyntax.f23879b;
    }
}
