package defpackage;

import android.os.Build;
import android.view.View;
import java.nio.ByteBuffer;
import java.util.ConcurrentModificationException;

/* renamed from: ᵴᵪ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC4666 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f17272;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f17273;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public Object f17274;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public int f17275;

    public AbstractC4666() {
        if (ˎᵖᵗ.ᵢˇᵭ == null) {
            ˎᵖᵗ.ᵢˇᵭ = new ˎᵖᵗ(13);
        }
    }

    public boolean hasNext() {
        return this.f17273 < ((C4892) this.f17274).f18210;
    }

    public void remove() {
        C4892 c4892 = (C4892) this.f17274;
        m9854();
        if (this.f17272 == -1) {
            ᵹˉᵞ.ᵳٴᵶ("Call next() before removing element from the iterator.");
            return;
        }
        c4892.m10338();
        c4892.m10339(this.f17272);
        this.f17272 = -1;
        this.f17275 = c4892.f18209;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public void m9851() {
        while (true) {
            int i = this.f17273;
            C4892 c4892 = (C4892) this.f17274;
            if (i >= c4892.f18210 || c4892.f18218[i] >= 0) {
                return;
            } else {
                this.f17273 = i + 1;
            }
        }
    }

    /* renamed from: ˎˏʜʾ */
    public abstract boolean mo6390(Object obj, Object obj2);

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public void m9852(View view, Object obj) {
        Object tag;
        if (Build.VERSION.SDK_INT >= this.f17272) {
            mo6392(view, obj);
            return;
        }
        if (Build.VERSION.SDK_INT >= this.f17272) {
            tag = mo6391(view);
        } else {
            tag = view.getTag(this.f17273);
            if (!((Class) this.f17274).isInstance(tag)) {
                tag = null;
            }
        }
        if (mo6390(tag, obj)) {
            View.AccessibilityDelegate accessibilityDelegateM7017 = AbstractC2873.m7017(view);
            C3819 c3819 = accessibilityDelegateM7017 != null ? accessibilityDelegateM7017 instanceof C1189 ? ((C1189) accessibilityDelegateM7017).f5070 : new C3819(accessibilityDelegateM7017) : null;
            if (c3819 == null) {
                c3819 = new C3819();
            }
            AbstractC2873.m7026(view, c3819);
            view.setTag(this.f17273, obj);
            AbstractC2873.m7027(view, this.f17275);
        }
    }

    /* renamed from: ˏᵙ */
    public abstract Object mo6391(View view);

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public int m9853(int i) {
        if (i < this.f17275) {
            return ((ByteBuffer) this.f17274).getShort(this.f17272 + i);
        }
        return 0;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public void m9854() {
        if (((C4892) this.f17274).f18209 != this.f17275) {
            throw new ConcurrentModificationException();
        }
    }

    /* renamed from: ᵻᵢﹳᵰ */
    public abstract void mo6392(View view, Object obj);
}
