package N1;

import android.view.View;
import java.util.List;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f4446a;

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

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

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

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

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

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

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f4453h;
    public int i;

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public List f4455k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public boolean f4456l;

    public final void a(View view) {
        int iD;
        int size = this.f4455k.size();
        View view2 = null;
        int i = Integer.MAX_VALUE;
        for (int i5 = 0; i5 < size; i5++) {
            View view3 = ((t0) this.f4455k.get(i5)).f4654a;
            C0203d0 c0203d0 = (C0203d0) view3.getLayoutParams();
            if (view3 != view && !c0203d0.f4520q.j() && (iD = (c0203d0.f4520q.d() - this.f4449d) * this.f4450e) >= 0 && iD < i) {
                view2 = view3;
                if (iD == 0) {
                    break;
                } else {
                    i = iD;
                }
            }
        }
        if (view2 == null) {
            this.f4449d = -1;
        } else {
            this.f4449d = ((C0203d0) view2.getLayoutParams()).f4520q.d();
        }
    }

    public final View b(i0 i0Var) {
        List list = this.f4455k;
        if (list == null) {
            View viewD = i0Var.d(this.f4449d);
            this.f4449d += this.f4450e;
            return viewD;
        }
        int size = list.size();
        for (int i = 0; i < size; i++) {
            View view = ((t0) this.f4455k.get(i)).f4654a;
            C0203d0 c0203d0 = (C0203d0) view.getLayoutParams();
            if (!c0203d0.f4520q.j() && this.f4449d == c0203d0.f4520q.d()) {
                a(view);
                return view;
            }
        }
        return null;
    }
}
