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

/* JADX INFO: loaded from: classes2.dex */
public final class fc2 implements tb2 {

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

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

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

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

    public fc2(cb2 cb2Var, String str, Object[] objArr) {
        this.f11175a = cb2Var;
        this.f11176b = str;
        this.f11177c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f11178d = cCharAt;
            return;
        }
        int i10 = cCharAt & 8191;
        int i11 = 13;
        int i12 = 1;
        while (true) {
            int i13 = i12 + 1;
            char cCharAt2 = str.charAt(i12);
            if (cCharAt2 < 55296) {
                this.f11178d = i10 | (cCharAt2 << i11);
                return;
            } else {
                i10 |= (cCharAt2 & 8191) << i11;
                i11 += 13;
                i12 = i13;
            }
        }
    }

    public final wb2 a() {
        return this.f11175a;
    }

    public final int b() {
        int i10 = this.f11178d;
        if ((i10 & 1) != 0) {
            return 1;
        }
        return (i10 & 4) == 4 ? 3 : 2;
    }

    public final String c() {
        return this.f11176b;
    }

    public final Object[] d() {
        return this.f11177c;
    }
}
