package o;

import android.graphics.Paint;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.oK, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2041oK extends AbstractC2239qS {
    public static final Ew0 b0;
    public InterfaceC1851mK Z;
    public C1946nK a0;

    static {
        Ew0 ew0B = AbstractC0662Zn.b();
        ew0B.f(C0190Hi.e);
        ((Paint) ew0B.b).setStrokeWidth(1.0f);
        ew0B.j(1);
        b0 = ew0B;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public C2041oK(C2420sK c2420sK, InterfaceC1851mK interfaceC1851mK) {
        super(c2420sK);
        this.Z = interfaceC1851mK;
        this.a0 = c2420sK.r != null ? new C1946nK(this) : null;
        if ((((LP) interfaceC1851mK).l.n & 512) != 0) {
            throw new ClassCastException();
        }
    }

    @Override // o.AbstractC2239qS
    public final void K0() {
        if (this.a0 == null) {
            this.a0 = new C1946nK(this);
        }
    }

    @Override // o.AbstractC2239qS
    public final AbstractC0709aN N0() {
        return this.a0;
    }

    @Override // o.InterfaceC1760lO
    public final int O(int i) {
        return this.Z.i(this, this.A, i);
    }

    @Override // o.AbstractC2239qS
    public final LP P0() {
        return ((LP) this.Z).l;
    }

    @Override // o.InterfaceC1760lO
    public final int U(int i) {
        return this.Z.d(this, this.A, i);
    }

    @Override // o.InterfaceC1760lO
    public final int V(int i) {
        return this.Z.h(this, this.A, i);
    }

    @Override // o.VW
    public final void a0(long j, float f, OC oc) {
        f1(j, f, oc);
        if (this.u) {
            return;
        }
        b1();
        x0().b();
        this.A.getClass();
    }

    @Override // o.InterfaceC1760lO
    public final VW c(long j) {
        c0(j);
        i1(this.Z.a(this, this.A, j));
        a1();
        return this;
    }

    @Override // o.InterfaceC1760lO
    public final int d(int i) {
        return this.Z.b(this, this.A, i);
    }

    @Override // o.AbstractC2239qS
    public final void e1(InterfaceC2923xg interfaceC2923xg, C1082eE c1082eE) {
        AbstractC2239qS abstractC2239qS;
        this.A.I0(interfaceC2923xg, c1082eE);
        if (!((C2207q3) AbstractC2705vK.a(this.z)).getShowLayoutBounds() || (abstractC2239qS = this.A) == null) {
            return;
        }
        if (C1470iI.a(this.n, abstractC2239qS.n) && C0704aI.a(abstractC2239qS.K, 0L)) {
            return;
        }
        long j = this.n;
        interfaceC2923xg.l(0.5f, 0.5f, ((int) (j >> 32)) - 0.5f, ((int) (j & 4294967295L)) - 0.5f, b0);
    }

    @Override // o.YM
    public final int f0(AbstractC2679v2 abstractC2679v2) {
        C1946nK c1946nK = this.a0;
        if (c1946nK == null) {
            return AbstractC0940cn0.a(this, abstractC2679v2);
        }
        QQ qq = c1946nK.E;
        int iD = qq.d(abstractC2679v2);
        if (iD >= 0) {
            return qq.c[iD];
        }
        return Integer.MIN_VALUE;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public final void r1(InterfaceC1851mK interfaceC1851mK) {
        if (!interfaceC1851mK.equals(this.Z) && (((LP) interfaceC1851mK).l.n & 512) != 0) {
            throw new ClassCastException();
        }
        this.Z = interfaceC1851mK;
    }
}
