package androidx.emoji2.text;

import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
public final class c0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f2211a = 1;

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public n0 f2213c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public n0 f2214d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f2215e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f2216f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f2217g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final int[] f2218h;

    public c0(n0 n0Var, boolean z10, int[] iArr) {
        this.f2212b = n0Var;
        this.f2213c = n0Var;
        this.f2217g = z10;
        this.f2218h = iArr;
    }

    public final void a() {
        this.f2211a = 1;
        this.f2213c = this.f2212b;
        this.f2216f = 0;
    }

    public final boolean b() {
        int[] iArr;
        f1.a aVarC = this.f2213c.f2250b.c();
        int iA = aVarC.a(6);
        if ((iA == 0 || aVarC.f25892b.get(iA + aVarC.f25891a) == 0) && this.f2215e != 65039) {
            return this.f2217g && ((iArr = this.f2218h) == null || Arrays.binarySearch(iArr, this.f2213c.f2250b.a(0)) < 0);
        }
        return true;
    }
}
