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

/* JADX INFO: loaded from: classes2.dex */
public final class i1 implements x0 {

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

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

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

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

    public i1(d0 d0Var, String str, Object[] objArr) {
        this.f20957a = d0Var;
        this.f20958b = str;
        this.f20959c = objArr;
        char cCharAt = str.charAt(0);
        if (cCharAt < 55296) {
            this.f20960d = cCharAt;
            return;
        }
        int i10 = cCharAt & 8191;
        int i11 = 1;
        int i12 = 13;
        while (true) {
            int i13 = i11 + 1;
            char cCharAt2 = str.charAt(i11);
            if (cCharAt2 < 55296) {
                this.f20960d = i10 | (cCharAt2 << i12);
                return;
            } else {
                i10 |= (cCharAt2 & 8191) << i12;
                i12 += 13;
                i11 = i13;
            }
        }
    }

    public final z0 a() {
        return this.f20957a;
    }

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

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

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