package s1;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import m1.r;
import r1.C2868b;

/* JADX INFO: renamed from: s1.i, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2905i extends AbstractC2899c {
    @Override // r1.C2873g, r1.C2868b, r1.InterfaceC2874h
    public final void apply() {
        r rVar;
        ArrayList arrayList = this.f23890m0;
        Iterator it = arrayList.iterator();
        while (true) {
            boolean zHasNext = it.hasNext();
            rVar = this.f23888k0;
            if (!zHasNext) {
                break;
            } else {
                rVar.b(it.next()).h();
            }
        }
        C2868b c2868b = null;
        C2868b c2868b2 = null;
        for (Object obj : arrayList) {
            C2868b c2868bB = rVar.b(obj);
            if (c2868b2 == null) {
                Object obj2 = this.f23831R;
                if (obj2 != null) {
                    c2868bB.p(obj2);
                    c2868bB.k(this.f23856n).m(this.f23862t);
                } else {
                    Object obj3 = this.f23832S;
                    if (obj3 != null) {
                        c2868bB.f23853j0 = 10;
                        c2868bB.f23832S = obj3;
                        c2868bB.k(this.f23856n).m(this.f23862t);
                    } else {
                        String string = c2868bB.f23838a.toString();
                        c2868bB.p(0);
                        c2868bB.l(Float.valueOf(w(string))).n(Float.valueOf(v(string)));
                    }
                }
                c2868b2 = c2868bB;
            }
            if (c2868b != null) {
                String string2 = c2868b.f23838a.toString();
                String string3 = c2868bB.f23838a.toString();
                Object obj4 = c2868bB.f23838a;
                c2868b.f23853j0 = 12;
                c2868b.f23834U = obj4;
                c2868b.l(Float.valueOf(u(string2))).n(Float.valueOf(t(string2)));
                Object obj5 = c2868b.f23838a;
                c2868bB.f23853j0 = 10;
                c2868bB.f23832S = obj5;
                c2868bB.l(Float.valueOf(w(string3))).n(Float.valueOf(v(string3)));
            }
            String string4 = obj.toString();
            HashMap map = this.f24140o0;
            float fFloatValue = map.containsKey(string4) ? ((Float) map.get(string4)).floatValue() : -1.0f;
            if (fFloatValue != -1.0f) {
                c2868bB.f23848g = fFloatValue;
            }
            c2868b = c2868bB;
        }
        if (c2868b != null) {
            Object obj6 = this.f23834U;
            if (obj6 != null) {
                c2868b.f23853j0 = 12;
                c2868b.f23834U = obj6;
                c2868b.k(this.f23857o).m(this.f23863u);
            } else {
                Object obj7 = this.f23835V;
                if (obj7 != null) {
                    c2868b.e(obj7);
                    c2868b.k(this.f23857o).m(this.f23863u);
                } else {
                    String string5 = c2868b.f23838a.toString();
                    c2868b.e(0);
                    c2868b.l(Float.valueOf(u(string5))).n(Float.valueOf(t(string5)));
                }
            }
        }
        if (c2868b2 == null) {
            return;
        }
        float f6 = this.f24139n0;
        if (f6 != 0.5f) {
            c2868b2.f23850i = f6;
        }
        int iOrdinal = this.f24145t0.ordinal();
        if (iOrdinal == 0) {
            c2868b2.f23846e = 0;
        } else if (iOrdinal == 1) {
            c2868b2.f23846e = 1;
        } else {
            if (iOrdinal != 2) {
                return;
            }
            c2868b2.f23846e = 2;
        }
    }
}
