package ῲ.䀟.K;

import androidx.recyclerview.widget.RecyclerView;
import ῲ.ᨨ.㿎.AbstractC1871;
import ῲ.ᨨ.㿎.C1866;
import ῲ.㴹.C2275;
import ῲ.㴹.C2288;

/* renamed from: ῲ.䀟.K.ᓆ  reason: contains not printable characters */
/* compiled from: ViewInfoStore */
public class C2307 {

    /* renamed from: ῲ  reason: contains not printable characters */
    public final C2275<RecyclerView.AbstractC0269> f7968 = new C2275<>();

    /* renamed from: K  reason: contains not printable characters */
    public final C2288<RecyclerView.AbstractC0269, C2309> f7969 = new C2288<>();

    /* renamed from: ῲ.䀟.K.ᓆ$ῲ  reason: contains not printable characters */
    /* compiled from: ViewInfoStore */
    public interface AbstractC2308 {
    }

    /* renamed from: ʬ  reason: contains not printable characters */
    public void m6030(RecyclerView.AbstractC0269 r3) {
        C2309 orDefault = this.f7969.getOrDefault(r3, null);
        if (orDefault != null) {
            orDefault.f7973 &= -2;
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m6031(RecyclerView.AbstractC0269 r3, RecyclerView.AbstractC0250.C0251 r4) {
        C2309 orDefault = this.f7969.getOrDefault(r3, null);
        if (orDefault == null) {
            orDefault = C2309.m6038();
            this.f7969.put(r3, orDefault);
        }
        orDefault.f7972 = r4;
        orDefault.f7973 |= 4;
    }

    /* renamed from: K  reason: contains not printable characters */
    public final RecyclerView.AbstractC0250.C0251 m6033(RecyclerView.AbstractC0269 r5, int i) {
        C2309 r1;
        RecyclerView.AbstractC0250.C0251 r6;
        int r52 = this.f7969.m5977(r5);
        if (r52 >= 0 && (r1 = this.f7969.m5973(r52)) != null) {
            int i2 = r1.f7973;
            if ((i2 & i) != 0) {
                r1.f7973 = (~i) & i2;
                if (i == 4) {
                    r6 = r1.f7972;
                } else if (i == 8) {
                    r6 = r1.f7971;
                } else {
                    throw new IllegalArgumentException("Must provide flag PRE or POST");
                }
                if ((r1.f7973 & 12) == 0) {
                    this.f7969.m5982(r52);
                    C2309.m6039(r1);
                }
                return r6;
            }
        }
        return null;
    }

    /* renamed from: 㸾  reason: contains not printable characters */
    public void m6037(RecyclerView.AbstractC0269 r7) {
        int r0 = this.f7968.m5913() - 1;
        while (true) {
            if (r0 < 0) {
                break;
            } else if (r7 == this.f7968.m5917(r0)) {
                C2275<RecyclerView.AbstractC0269> r2 = this.f7968;
                Object[] objArr = r2.f7869;
                Object obj = objArr[r0];
                Object obj2 = C2275.f7865;
                if (obj != obj2) {
                    objArr[r0] = obj2;
                    r2.f7868 = true;
                }
            } else {
                r0--;
            }
        }
        C2309 remove = this.f7969.remove(r7);
        if (remove != null) {
            C2309.m6039(remove);
        }
    }

    /* renamed from: ῲ.䀟.K.ᓆ$K  reason: contains not printable characters */
    /* compiled from: ViewInfoStore */
    public static class C2309 {

        /* renamed from: 㸾  reason: contains not printable characters */
        public static AbstractC1871<C2309> f7970 = new C1866(20);

        /* renamed from: ʬ  reason: contains not printable characters */
        public RecyclerView.AbstractC0250.C0251 f7971;

        /* renamed from: ῲ  reason: contains not printable characters */
        public RecyclerView.AbstractC0250.C0251 f7972;

        /* renamed from: K  reason: contains not printable characters */
        public int f7973;

        /* renamed from: K  reason: contains not printable characters */
        public static C2309 m6038() {
            C2309 r0 = f7970.m4835();
            return r0 == null ? new C2309() : r0;
        }

        /* renamed from: K  reason: contains not printable characters */
        public static void m6039(C2309 k) {
            k.f7973 = 0;
            k.f7972 = null;
            k.f7971 = null;
            f7970.m4836(k);
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m6032(RecyclerView.AbstractC0269 r3) {
        C2309 orDefault = this.f7969.getOrDefault(r3, null);
        if (orDefault == null || (orDefault.f7973 & 1) == 0) {
            return false;
        }
        return true;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m6036(RecyclerView.AbstractC0269 r3, RecyclerView.AbstractC0250.C0251 r4) {
        C2309 orDefault = this.f7969.getOrDefault(r3, null);
        if (orDefault == null) {
            orDefault = C2309.m6038();
            this.f7969.put(r3, orDefault);
        }
        orDefault.f7971 = r4;
        orDefault.f7973 |= 8;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m6035(RecyclerView.AbstractC0269 r3) {
        C2309 orDefault = this.f7969.getOrDefault(r3, null);
        if (orDefault == null) {
            orDefault = C2309.m6038();
            this.f7969.put(r3, orDefault);
        }
        orDefault.f7973 |= 1;
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m6034() {
        do {
        } while (C2309.f7970.m4835() != null);
    }
}
