package w0;

import l1.c;
import w0.m;

/* loaded from: classes.dex */
public final class c0 implements m.b {

    /* renamed from: a, reason: collision with root package name */
    private final c.InterfaceC0608c f40540a;

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

    public c0(c.InterfaceC0608c interfaceC0608c, int i10) {
        this.f40540a = interfaceC0608c;
        this.f40541b = i10;
    }

    @Override // w0.m.b
    public int a(c3.p pVar, long j10, int i10) {
        int k10;
        if (i10 >= c3.r.f(j10) - (this.f40541b * 2)) {
            return l1.c.f27332a.i().a(i10, c3.r.f(j10));
        }
        k10 = jn.o.k(this.f40540a.a(i10, c3.r.f(j10)), this.f40541b, (c3.r.f(j10) - this.f40541b) - i10);
        return k10;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof c0)) {
            return false;
        }
        c0 c0Var = (c0) obj;
        return kotlin.jvm.internal.t.b(this.f40540a, c0Var.f40540a) && this.f40541b == c0Var.f40541b;
    }

    public int hashCode() {
        return (this.f40540a.hashCode() * 31) + Integer.hashCode(this.f40541b);
    }

    public String toString() {
        return "Vertical(alignment=" + this.f40540a + ", margin=" + this.f40541b + ')';
    }
}
