package com.google.android.gms.internal.measurement;

/* JADX INFO: renamed from: com.google.android.gms.internal.measurement.z2, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0733z2 {

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

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

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

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

    public C0733z2(M1 m12, String str, Object[] objArr) {
        this.f10083a = m12;
        this.f10084b = str;
        this.f10085c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f10086d = cCharAt;
            return;
        }
        int i = cCharAt & 8191;
        int i5 = 13;
        int i8 = 1;
        while (true) {
            int i9 = i8 + 1;
            char cCharAt2 = str.charAt(i8);
            if (cCharAt2 < 55296) {
                this.f10086d = i | (cCharAt2 << i5);
                return;
            } else {
                i |= (cCharAt2 & 8191) << i5;
                i5 += 13;
                i8 = i9;
            }
        }
    }

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