package e0;

import androidx.core.view.h1;
import y0.q1;
import y0.s3;

/* loaded from: classes.dex */
public final class a implements l0 {

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

    /* renamed from: c, reason: collision with root package name */
    private final String f16604c;

    /* renamed from: d, reason: collision with root package name */
    private final q1 f16605d;

    /* renamed from: e, reason: collision with root package name */
    private final q1 f16606e;

    public a(int i10, String str) {
        q1 d10;
        q1 d11;
        this.f16603b = i10;
        this.f16604c = str;
        d10 = s3.d(androidx.core.graphics.b.f3723e, null, 2, null);
        this.f16605d = d10;
        d11 = s3.d(Boolean.TRUE, null, 2, null);
        this.f16606e = d11;
    }

    private final void g(boolean z10) {
        this.f16606e.setValue(Boolean.valueOf(z10));
    }

    @Override // e0.l0
    public int a(c3.d dVar) {
        return e().f3727d;
    }

    @Override // e0.l0
    public int b(c3.d dVar, c3.t tVar) {
        return e().f3726c;
    }

    @Override // e0.l0
    public int c(c3.d dVar) {
        return e().f3725b;
    }

    @Override // e0.l0
    public int d(c3.d dVar, c3.t tVar) {
        return e().f3724a;
    }

    public final androidx.core.graphics.b e() {
        return (androidx.core.graphics.b) this.f16605d.getValue();
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof a) && this.f16603b == ((a) obj).f16603b;
    }

    public final void f(androidx.core.graphics.b bVar) {
        this.f16605d.setValue(bVar);
    }

    public final void h(h1 h1Var, int i10) {
        if (i10 == 0 || (i10 & this.f16603b) != 0) {
            f(h1Var.f(this.f16603b));
            g(h1Var.p(this.f16603b));
        }
    }

    public int hashCode() {
        return this.f16603b;
    }

    public String toString() {
        return this.f16604c + '(' + e().f3724a + ", " + e().f3725b + ", " + e().f3726c + ", " + e().f3727d + ')';
    }
}
