package cm;

import android.graphics.Rect;
import java.util.List;

/* loaded from: classes3.dex */
public class m {

    /* renamed from: a, reason: collision with root package name */
    private bm.q f12099a;

    /* renamed from: b, reason: collision with root package name */
    private int f12100b;

    /* renamed from: c, reason: collision with root package name */
    private boolean f12101c = false;

    /* renamed from: d, reason: collision with root package name */
    private q f12102d = new n();

    public m(int i10, bm.q qVar) {
        this.f12100b = i10;
        this.f12099a = qVar;
    }

    public bm.q a(List list, boolean z10) {
        return this.f12102d.b(list, b(z10));
    }

    public bm.q b(boolean z10) {
        bm.q qVar = this.f12099a;
        if (qVar == null) {
            return null;
        }
        return z10 ? qVar.e() : qVar;
    }

    public int c() {
        return this.f12100b;
    }

    public Rect d(bm.q qVar) {
        return this.f12102d.d(qVar, this.f12099a);
    }

    public void e(q qVar) {
        this.f12102d = qVar;
    }
}
