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

/* JADX INFO: loaded from: classes2.dex */
public final class b1 implements s0 {

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

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

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

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

    public b1(a0 a0Var, String str, Object[] objArr) {
        this.f19908a = a0Var;
        this.f19909b = str;
        this.f19910c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f19911d = 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.f19911d = i10 | (cCharAt2 << i11);
                return;
            } else {
                i10 |= (cCharAt2 & 8191) << i11;
                i11 += 13;
                i12 = i13;
            }
        }
    }

    public final p a() {
        return this.f19908a;
    }

    public final int b() {
        return (this.f19911d & 1) == 1 ? 1 : 2;
    }

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

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