package androidx.datastore.preferences.protobuf;

/* JADX INFO: loaded from: classes.dex */
public final class W {

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

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

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

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

    public W(AbstractC1030t abstractC1030t, String str, Object[] objArr) {
        this.f11346a = abstractC1030t;
        this.f11347b = str;
        this.f11348c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f11349d = 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.f11349d = i6 | (cCharAt2 << i8);
                return;
            } else {
                i6 |= (cCharAt2 & 8191) << i8;
                i8 += 13;
                i7 = i9;
            }
        }
    }
}
