package com.google.protobuf;

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

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

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

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

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

    public F0(InterfaceC1332t0 interfaceC1332t0, String str, Object[] objArr) {
        this.f14180a = interfaceC1332t0;
        this.f14181b = str;
        this.f14182c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f14183d = cCharAt;
            return;
        }
        int i6 = cCharAt & 8191;
        int i7 = 13;
        int i8 = 1;
        while (true) {
            int i9 = i8 + 1;
            char cCharAt2 = str.charAt(i8);
            if (cCharAt2 < 55296) {
                this.f14183d = i6 | (cCharAt2 << i7);
                return;
            } else {
                i6 |= (cCharAt2 & 8191) << i7;
                i7 += 13;
                i8 = i9;
            }
        }
    }

    public final int a() {
        int i6 = this.f14183d;
        if ((i6 & 1) != 0) {
            return 1;
        }
        return (i6 & 4) == 4 ? 3 : 2;
    }
}
