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

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public final class b1 implements m0 {

    /* renamed from: a, reason: collision with root package name */
    private final o0 f14320a;

    /* renamed from: b, reason: collision with root package name */
    private final String f14321b;

    /* renamed from: c, reason: collision with root package name */
    private final Object[] f14322c;

    /* renamed from: d, reason: collision with root package name */
    private final int f14323d;

    /* JADX INFO: Access modifiers changed from: package-private */
    public b1(o0 o0Var, String str, Object[] objArr) {
        this.f14320a = o0Var;
        this.f14321b = str;
        this.f14322c = objArr;
        char charAt = str.charAt(0);
        if (charAt < 55296) {
            this.f14323d = charAt;
            return;
        }
        int i10 = charAt & 8191;
        int i11 = 13;
        int i12 = 1;
        while (true) {
            int i13 = i12 + 1;
            char charAt2 = str.charAt(i12);
            if (charAt2 < 55296) {
                this.f14323d = i10 | (charAt2 << i11);
                return;
            } else {
                i10 |= (charAt2 & 8191) << i11;
                i11 += 13;
                i12 = i13;
            }
        }
    }

    @Override // com.google.crypto.tink.shaded.protobuf.m0
    public boolean a() {
        return (this.f14323d & 2) == 2;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.m0
    public o0 b() {
        return this.f14320a;
    }

    @Override // com.google.crypto.tink.shaded.protobuf.m0
    public y0 c() {
        return (this.f14323d & 1) == 1 ? y0.PROTO2 : y0.PROTO3;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public Object[] d() {
        return this.f14322c;
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public String e() {
        return this.f14321b;
    }
}
