package i6;

import d6.EnumC0848c;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public EnumC0848c f13547o;

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

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

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

    public final void a() {
        this.f13538e = -1;
        this.i = 0;
        this.f13541h = 0;
        this.f13537d = 0;
        this.f13542j = 0;
    }

    public final boolean b() {
        return this.f13534a == b.f13521s;
    }

    public final void c() {
        int i = this.f13538e + this.f13536c.f13519q;
        this.f13538e = i;
        EnumC0848c enumC0848c = this.f13547o;
        if (enumC0848c == EnumC0848c.f12294q || !this.f13549q) {
            return;
        }
        int i5 = this.f13548p;
        if (i == i5) {
            this.f13538e = 0;
            return;
        }
        if (i != -1) {
            return;
        }
        if (enumC0848c == EnumC0848c.f12295r) {
            this.f13538e = i5 - 1;
        } else if (this.f13550r) {
            this.f13538e = i5 - 1;
            this.f13550r = false;
        }
    }

    public final void d(int i) {
        this.f13537d = Math.max(0, i);
    }

    public final String toString() {
        return "LayoutRequest(direction=" + this.f13534a + ", fillSpace=" + this.f13537d + ", currentPosition=" + this.f13538e + ", checkpoint=" + this.f13542j + ", ";
    }
}
