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

/* JADX INFO: loaded from: classes3.dex */
public final class b0 {

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

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

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

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

    public b0(AbstractC1253a abstractC1253a, String str, Object[] objArr) {
        this.f13766a = abstractC1253a;
        this.f13767b = str;
        this.f13768c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f13769d = cCharAt;
            return;
        }
        int i6 = cCharAt & 8191;
        int i7 = 1;
        int i8 = 13;
        while (true) {
            int i9 = i7 + 1;
            char cCharAt2 = str.charAt(i7);
            if (cCharAt2 < 55296) {
                this.f13769d = i6 | (cCharAt2 << i8);
                return;
            } else {
                i6 |= (cCharAt2 & 8191) << i8;
                i8 += 13;
                i7 = i9;
            }
        }
    }
}
