package o;

import android.graphics.Paint;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class F1 implements OC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f110o;
    public final /* synthetic */ Object p;
    public final /* synthetic */ Object q;

    public /* synthetic */ F1(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, int i) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
        this.f110o = obj3;
        this.p = obj4;
        this.q = obj5;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        int i = this.l;
        Oh0 oh0 = Oh0.a;
        int i2 = 0;
        Object obj2 = this.q;
        Object obj3 = this.p;
        Object obj4 = this.f110o;
        Object obj5 = this.n;
        Object obj6 = this.m;
        switch (i) {
            case 0:
                C3057z1 c3057z1 = (C3057z1) obj6;
                c3057z1.a = ((E1) obj5).c((String) obj4, (AbstractC2772w1) obj3, new G1(i2, (InterfaceC1191fR) obj2));
                return new H1(0, c3057z1);
            case 1:
                NK nk = (NK) obj;
                HK hk = ((A4) obj5).a;
                nk.h = (C2730ve0) obj6;
                nk.i = (HG) obj4;
                nk.c = (C1358h6) obj3;
                nk.d = (OC) obj2;
                nk.e = hk != null ? hk.A : null;
                nk.f = hk != null ? hk.B : null;
                nk.g = hk != null ? (Qj0) AbstractC2461sm0.j(hk, AbstractC0840bl.s) : null;
                return oh0;
            case 2:
                ((OC) obj6).g(GB.a((GB) obj5, null, null, null, (String) obj, null, null, 55));
                ((OC) obj4).g(HB.a((HB) obj3, null, null, null, null, null, null, 55));
                ((InterfaceC1191fR) obj2).setValue(Boolean.FALSE);
                return oh0;
            case 3:
                C0173Gr c0173Gr = (C0173Gr) obj6;
                B10 b10 = (B10) obj5;
                C2963y10 c2963y10 = (C2963y10) obj4;
                C2212q50 c2212q50 = (C2212q50) obj3;
                C2773w10 c2773w10 = (C2773w10) obj2;
                float fFloatValue = ((Float) obj).floatValue();
                C1382hQ c1382hQQ = C0173Gr.q((C1210ff) c0173Gr.f);
                if (c1382hQQ != null) {
                    c0173Gr.r(c1382hQQ);
                    C1382hQ c1382hQA = ((C1382hQ) b10.l).a(c1382hQQ);
                    b10.l = c1382hQA;
                    c2963y10.l = c2212q50.g(c2212q50.e(c1382hQA.a));
                    c2773w10.l = !AbstractC1286gQ.a(r4 - fFloatValue);
                }
                return Boolean.valueOf(c1382hQQ != null);
            default:
                InterfaceC1955nT interfaceC1955nT = (InterfaceC1955nT) obj5;
                C2730ve0 c2730ve0 = (C2730ve0) obj4;
                MK mk = (MK) obj3;
                AbstractC0601Xe abstractC0601Xe = (AbstractC0601Xe) obj2;
                C2610uK c2610uK = (C2610uK) obj;
                c2610uK.a();
                C3113zg c3113zg = c2610uK.l;
                float fG = ((C0274Ko) obj6).c.g();
                if (fG != 0.0f) {
                    long j = c2730ve0.b;
                    int i3 = Ue0.c;
                    int iP = interfaceC1955nT.p((int) (j >> 32));
                    Oe0 oe0D = mk.d();
                    T00 t00C = oe0D != null ? oe0D.a.c(iP) : new T00(0.0f, 0.0f, 0.0f, 0.0f);
                    float fFloor = (float) Math.floor(c2610uK.B(Fd0.a));
                    if (fFloor < 1.0f) {
                        fFloor = 1.0f;
                    }
                    float f = fFloor / 2;
                    float f2 = t00C.a + f;
                    float fIntBitsToFloat = Float.intBitsToFloat((int) (c3113zg.f() >> 32)) - f;
                    if (f2 > fIntBitsToFloat) {
                        f2 = fIntBitsToFloat;
                    }
                    if (f2 >= f) {
                        f = f2;
                    }
                    float fFloor2 = ((int) fFloor) % 2 == 1 ? ((float) Math.floor(f)) + 0.5f : (float) Math.rint(f);
                    long jFloatToRawIntBits = (Float.floatToRawIntBits(fFloor2) << 32) | (Float.floatToRawIntBits(t00C.b) & 4294967295L);
                    long jFloatToRawIntBits2 = (Float.floatToRawIntBits(fFloor2) << 32) | (Float.floatToRawIntBits(t00C.d) & 4294967295L);
                    InterfaceC2923xg interfaceC2923xg = c3113zg.l.c;
                    Ew0 ew0B = c3113zg.f827o;
                    if (ew0B == null) {
                        ew0B = AbstractC0662Zn.b();
                        ew0B.j(1);
                        c3113zg.f827o = ew0B;
                    }
                    Paint paint = (Paint) ew0B.b;
                    if (abstractC0601Xe != null) {
                        abstractC0601Xe.a(fG, c3113zg.f(), ew0B);
                    } else if (paint.getAlpha() / 255.0f != fG) {
                        ew0B.d(fG);
                    }
                    if (!F3.c((C0444Rd) ew0B.d, null)) {
                        ew0B.g(null);
                    }
                    if (ew0B.a != 3) {
                        ew0B.e(3);
                    }
                    if (paint.getStrokeWidth() != fFloor) {
                        paint.setStrokeWidth(fFloor);
                    }
                    if (paint.getStrokeMiter() != 4.0f) {
                        paint.setStrokeMiter(4.0f);
                    }
                    if (ew0B.b() != 0) {
                        ew0B.h(0);
                    }
                    if (ew0B.c() != 0) {
                        ew0B.i(0);
                    }
                    if (!paint.isFilterBitmap()) {
                        paint.setFilterBitmap(true);
                    }
                    interfaceC2923xg.g(jFloatToRawIntBits, jFloatToRawIntBits2, ew0B);
                }
                return oh0;
        }
    }
}
