package r1;

import G0.Z;
import java.util.HashMap;
import m1.AbstractC2464a;
import m1.r;
import o1.C2634a;
import s1.InterfaceC2900d;

/* JADX INFO: renamed from: r1.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public class C2868b implements InterfaceC2874h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public Object f23838a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final r f23840b;

    /* JADX INFO: renamed from: b0, reason: collision with root package name */
    public float f23841b0;

    /* JADX INFO: renamed from: c0, reason: collision with root package name */
    public float f23843c0;

    /* JADX INFO: renamed from: d0, reason: collision with root package name */
    public C2872f f23845d0;
    public C2872f e0;
    public Z f0;
    public u1.d g0;
    public final HashMap h0;

    /* JADX INFO: renamed from: i0, reason: collision with root package name */
    public HashMap f23851i0;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public Object f23842c = null;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f23844d = 0;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f23846e = 0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public float f23847f = -1.0f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public float f23848g = -1.0f;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public float f23849h = 0.5f;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public float f23850i = 0.5f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f23852j = 0;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f23854k = 0;
    public int l = 0;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public int f23855m = 0;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public int f23856n = 0;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public int f23857o = 0;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public int f23858p = 0;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public int f23859q = 0;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public int f23860r = 0;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public int f23861s = 0;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public int f23862t = 0;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public int f23863u = 0;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public int f23864v = 0;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public int f23865w = 0;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public float f23866x = Float.NaN;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public float f23867y = Float.NaN;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public float f23868z = Float.NaN;

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public float f23814A = Float.NaN;

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public float f23815B = Float.NaN;

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public float f23816C = Float.NaN;

    /* JADX INFO: renamed from: D, reason: collision with root package name */
    public float f23817D = Float.NaN;

    /* JADX INFO: renamed from: E, reason: collision with root package name */
    public float f23818E = Float.NaN;

    /* JADX INFO: renamed from: F, reason: collision with root package name */
    public float f23819F = Float.NaN;

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public float f23820G = Float.NaN;

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public float f23821H = Float.NaN;

    /* JADX INFO: renamed from: I, reason: collision with root package name */
    public int f23822I = 0;

    /* JADX INFO: renamed from: J, reason: collision with root package name */
    public Object f23823J = null;

    /* JADX INFO: renamed from: K, reason: collision with root package name */
    public Object f23824K = null;

    /* JADX INFO: renamed from: L, reason: collision with root package name */
    public Object f23825L = null;

    /* JADX INFO: renamed from: M, reason: collision with root package name */
    public Object f23826M = null;

    /* JADX INFO: renamed from: N, reason: collision with root package name */
    public Object f23827N = null;

    /* JADX INFO: renamed from: O, reason: collision with root package name */
    public Object f23828O = null;

    /* JADX INFO: renamed from: P, reason: collision with root package name */
    public Object f23829P = null;

    /* JADX INFO: renamed from: Q, reason: collision with root package name */
    public Object f23830Q = null;

    /* JADX INFO: renamed from: R, reason: collision with root package name */
    public Object f23831R = null;

    /* JADX INFO: renamed from: S, reason: collision with root package name */
    public Object f23832S = null;

    /* JADX INFO: renamed from: T, reason: collision with root package name */
    public C2868b f23833T = null;

    /* JADX INFO: renamed from: U, reason: collision with root package name */
    public Object f23834U = null;

    /* JADX INFO: renamed from: V, reason: collision with root package name */
    public Object f23835V = null;

    /* JADX INFO: renamed from: W, reason: collision with root package name */
    public C2868b f23836W = null;
    public Object X = null;
    public Object Y = null;

    /* JADX INFO: renamed from: Z, reason: collision with root package name */
    public Object f23837Z = null;

    /* JADX INFO: renamed from: a0, reason: collision with root package name */
    public Object f23839a0 = null;

    /* JADX INFO: renamed from: j0, reason: collision with root package name */
    public int f23853j0 = 0;

    public C2868b(r rVar) {
        String str = C2872f.f23877i;
        String str2 = C2872f.f23876h;
        C2872f c2872f = new C2872f(str2);
        c2872f.f23886f = str;
        this.f23845d0 = c2872f;
        C2872f c2872f2 = new C2872f(str2);
        c2872f2.f23886f = str;
        this.e0 = c2872f2;
        this.h0 = new HashMap();
        this.f23851i0 = new HashMap();
        this.f23840b = rVar;
    }

    @Override // r1.InterfaceC2874h
    public final void a(u1.d dVar) {
        if (dVar == null) {
            return;
        }
        this.g0 = dVar;
        dVar.f24460c0 = this.f0;
    }

    /* JADX WARN: Type inference failed for: r0v1, types: [java.lang.Object, s1.d] */
    @Override // r1.InterfaceC2874h
    public void apply() {
        if (this.g0 == null) {
            return;
        }
        ?? r02 = this.f23842c;
        if (r02 != 0) {
            r02.apply();
        }
        this.f23845d0.a(this.g0, 0);
        this.e0.a(this.g0, 1);
        this.f23823J = j(this.f23823J);
        this.f23824K = j(this.f23824K);
        this.f23825L = j(this.f23825L);
        this.f23826M = j(this.f23826M);
        this.f23827N = j(this.f23827N);
        this.f23828O = j(this.f23828O);
        this.f23829P = j(this.f23829P);
        this.f23830Q = j(this.f23830Q);
        this.f23831R = j(this.f23831R);
        this.f23832S = j(this.f23832S);
        this.f23834U = j(this.f23834U);
        this.f23835V = j(this.f23835V);
        this.X = j(this.X);
        this.Y = j(this.Y);
        this.f23837Z = j(this.f23837Z);
        d(this.g0, this.f23823J, 1);
        d(this.g0, this.f23824K, 2);
        d(this.g0, this.f23825L, 3);
        d(this.g0, this.f23826M, 4);
        d(this.g0, this.f23827N, 5);
        d(this.g0, this.f23828O, 6);
        d(this.g0, this.f23829P, 7);
        d(this.g0, this.f23830Q, 8);
        d(this.g0, this.f23831R, 9);
        d(this.g0, this.f23832S, 10);
        d(this.g0, this.f23833T, 11);
        d(this.g0, this.f23834U, 12);
        d(this.g0, this.f23835V, 13);
        d(this.g0, this.f23836W, 14);
        d(this.g0, this.X, 15);
        d(this.g0, this.Y, 16);
        d(this.g0, this.f23837Z, 17);
        d(this.g0, this.f23839a0, 20);
        int i6 = this.f23844d;
        if (i6 != 0) {
            this.g0.f0 = i6;
        }
        int i7 = this.f23846e;
        if (i7 != 0) {
            this.g0.g0 = i7;
        }
        float f6 = this.f23847f;
        if (f6 != -1.0f) {
            this.g0.h0[0] = f6;
        }
        float f7 = this.f23848g;
        if (f7 != -1.0f) {
            this.g0.h0[1] = f7;
        }
        u1.d dVar = this.g0;
        dVar.f24456a0 = this.f23849h;
        dVar.f24458b0 = this.f23850i;
        k kVar = dVar.f24469j;
        kVar.f23901d = this.f23866x;
        kVar.f23902e = this.f23867y;
        kVar.f23903f = this.f23868z;
        kVar.f23904g = this.f23814A;
        kVar.f23905h = this.f23815B;
        kVar.f23906i = this.f23816C;
        kVar.f23907j = this.f23817D;
        kVar.f23908k = this.f23818E;
        kVar.l = this.f23820G;
        kVar.f23909m = this.f23821H;
        kVar.f23910n = this.f23819F;
        int i8 = this.f23822I;
        kVar.f23911o = i8;
        dVar.f24462d0 = i8;
        HashMap map = this.h0;
        if (map != null) {
            for (String str : map.keySet()) {
                Integer num = (Integer) map.get(str);
                k kVar2 = this.g0.f24469j;
                int iIntValue = num.intValue();
                HashMap map2 = kVar2.f23912p;
                if (map2.containsKey(str)) {
                    ((C2634a) map2.get(str)).f21802c = iIntValue;
                } else {
                    C2634a c2634a = new C2634a();
                    c2634a.f21803d = Float.NaN;
                    c2634a.f21800a = str;
                    c2634a.f21801b = 902;
                    c2634a.f21802c = iIntValue;
                    map2.put(str, c2634a);
                }
            }
        }
        HashMap map3 = this.f23851i0;
        if (map3 != null) {
            for (String str2 : map3.keySet()) {
                float fFloatValue = ((Float) this.f23851i0.get(str2)).floatValue();
                HashMap map4 = this.g0.f24469j.f23912p;
                if (map4.containsKey(str2)) {
                    ((C2634a) map4.get(str2)).f21803d = fFloatValue;
                } else {
                    C2634a c2634a2 = new C2634a();
                    c2634a2.f21802c = Integer.MIN_VALUE;
                    c2634a2.f21800a = str2;
                    c2634a2.f21801b = 901;
                    c2634a2.f21803d = fFloatValue;
                    map4.put(str2, c2634a2);
                }
            }
        }
    }

    @Override // r1.InterfaceC2874h
    public u1.d b() {
        if (this.g0 == null) {
            u1.d dVar = new u1.d(this.f23845d0.f23884d, this.e0.f23884d);
            this.g0 = dVar;
            dVar.f24460c0 = this.f0;
        }
        return this.g0;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Object, s1.d] */
    @Override // r1.InterfaceC2874h
    public final InterfaceC2900d c() {
        return this.f23842c;
    }

    public final void d(u1.d dVar, Object obj, int i6) {
        u1.d dVarB = obj instanceof InterfaceC2874h ? ((InterfaceC2874h) obj).b() : null;
        if (dVarB == null) {
            return;
        }
        int i7 = AbstractC2867a.f23813a[AbstractC2464a.c(i6)];
        int iC = AbstractC2464a.c(i6);
        if (iC == 19) {
            float f6 = this.f23841b0;
            dVar.t(7, 7, (int) this.f23843c0, 0, dVarB);
            dVar.f24434D = f6;
            return;
        }
        switch (iC) {
            case 0:
                dVar.j(2).b(dVarB.j(2), this.f23852j, this.f23858p, false);
                break;
            case 1:
                dVar.j(2).b(dVarB.j(4), this.f23852j, this.f23858p, false);
                break;
            case 2:
                dVar.j(4).b(dVarB.j(2), this.f23854k, this.f23859q, false);
                break;
            case 3:
                dVar.j(4).b(dVarB.j(4), this.f23854k, this.f23859q, false);
                break;
            case 4:
                dVar.j(2).b(dVarB.j(2), this.l, this.f23860r, false);
                break;
            case 5:
                dVar.j(2).b(dVarB.j(4), this.l, this.f23860r, false);
                break;
            case 6:
                dVar.j(4).b(dVarB.j(2), this.f23855m, this.f23861s, false);
                break;
            case 7:
                dVar.j(4).b(dVarB.j(4), this.f23855m, this.f23861s, false);
                break;
            case 8:
                dVar.j(3).b(dVarB.j(3), this.f23856n, this.f23862t, false);
                break;
            case 9:
                dVar.j(3).b(dVarB.j(5), this.f23856n, this.f23862t, false);
                break;
            case 10:
                dVar.t(3, 6, this.f23856n, this.f23862t, dVarB);
                break;
            case 11:
                dVar.j(5).b(dVarB.j(3), this.f23857o, this.f23863u, false);
                break;
            case 12:
                dVar.j(5).b(dVarB.j(5), this.f23857o, this.f23863u, false);
                break;
            case 13:
                dVar.t(5, 6, this.f23857o, this.f23863u, dVarB);
                break;
            case 14:
                dVar.t(6, 6, this.f23864v, this.f23865w, dVarB);
                break;
            case 15:
                dVar.t(6, 3, this.f23864v, this.f23865w, dVarB);
                break;
            case 16:
                dVar.t(6, 5, this.f23864v, this.f23865w, dVarB);
                break;
        }
    }

    public final void e(Object obj) {
        this.f23853j0 = 13;
        this.f23835V = obj;
    }

    public final void f() {
        int i6 = this.f23853j0;
        if (i6 == 0) {
            this.f23823J = null;
            this.f23824K = null;
            this.f23852j = 0;
            this.f23825L = null;
            this.f23826M = null;
            this.f23854k = 0;
            this.f23827N = null;
            this.f23828O = null;
            this.l = 0;
            this.f23829P = null;
            this.f23830Q = null;
            this.f23855m = 0;
            this.f23831R = null;
            this.f23832S = null;
            this.f23856n = 0;
            this.f23834U = null;
            this.f23835V = null;
            this.f23857o = 0;
            this.X = null;
            this.f23839a0 = null;
            this.f23849h = 0.5f;
            this.f23850i = 0.5f;
            this.f23858p = 0;
            this.f23859q = 0;
            this.f23860r = 0;
            this.f23861s = 0;
            this.f23862t = 0;
            this.f23863u = 0;
            return;
        }
        int iC = AbstractC2464a.c(i6);
        if (iC == 19) {
            this.f23839a0 = null;
            return;
        }
        switch (iC) {
            case 0:
            case 1:
                this.f23823J = null;
                this.f23824K = null;
                this.f23852j = 0;
                this.f23858p = 0;
                break;
            case 2:
            case 3:
                this.f23825L = null;
                this.f23826M = null;
                this.f23854k = 0;
                this.f23859q = 0;
                break;
            case 4:
            case 5:
                this.f23827N = null;
                this.f23828O = null;
                this.l = 0;
                this.f23860r = 0;
                break;
            case 6:
            case 7:
                this.f23829P = null;
                this.f23830Q = null;
                this.f23855m = 0;
                this.f23861s = 0;
                break;
            case 8:
            case 9:
            case 10:
                this.f23831R = null;
                this.f23832S = null;
                this.f23833T = null;
                this.f23856n = 0;
                this.f23862t = 0;
                break;
            case 11:
            case 12:
            case 13:
                this.f23834U = null;
                this.f23835V = null;
                this.f23836W = null;
                this.f23857o = 0;
                this.f23863u = 0;
                break;
            case 14:
                this.X = null;
                break;
        }
    }

    public final void g() {
        if (this.f23827N != null) {
            this.f23853j0 = 5;
        } else {
            this.f23853j0 = 6;
        }
        f();
        if (this.f23829P != null) {
            this.f23853j0 = 7;
        } else {
            this.f23853j0 = 8;
        }
        f();
        if (this.f23823J != null) {
            this.f23853j0 = 1;
        } else {
            this.f23853j0 = 2;
        }
        f();
        if (this.f23825L != null) {
            this.f23853j0 = 3;
        } else {
            this.f23853j0 = 4;
        }
        f();
    }

    @Override // r1.InterfaceC2874h
    public final Object getKey() {
        return this.f23838a;
    }

    public final void h() {
        if (this.f23831R != null) {
            this.f23853j0 = 9;
        } else {
            this.f23853j0 = 10;
        }
        f();
        this.f23853j0 = 15;
        f();
        if (this.f23834U != null) {
            this.f23853j0 = 12;
        } else {
            this.f23853j0 = 13;
        }
        f();
    }

    public final void i(Object obj) {
        this.f23853j0 = 8;
        this.f23830Q = obj;
    }

    public final Object j(Object obj) {
        if (obj == null) {
            return null;
        }
        return !(obj instanceof C2868b) ? (InterfaceC2874h) this.f23840b.f20464c.get(obj) : obj;
    }

    public C2868b k(int i6) {
        int i7 = this.f23853j0;
        if (i7 == 0) {
            this.f23852j = i6;
            this.f23854k = i6;
            this.l = i6;
            this.f23855m = i6;
            this.f23856n = i6;
            this.f23857o = i6;
            return this;
        }
        int iC = AbstractC2464a.c(i7);
        if (iC == 19) {
            this.f23843c0 = i6;
            return this;
        }
        switch (iC) {
            case 0:
            case 1:
                this.f23852j = i6;
                break;
            case 2:
            case 3:
                this.f23854k = i6;
                break;
            case 4:
            case 5:
                this.l = i6;
                break;
            case 6:
            case 7:
                this.f23855m = i6;
                break;
            case 8:
            case 9:
            case 10:
                this.f23856n = i6;
                break;
            case 11:
            case 12:
            case 13:
                this.f23857o = i6;
                break;
            case 14:
            case 15:
            case 16:
                this.f23864v = i6;
                break;
        }
        return this;
    }

    public C2868b l(Float f6) {
        return k(this.f23840b.c(f6));
    }

    public final void m(int i6) {
        int i7 = this.f23853j0;
        if (i7 == 0) {
            this.f23858p = i6;
            this.f23859q = i6;
            this.f23860r = i6;
            this.f23861s = i6;
            this.f23862t = i6;
            this.f23863u = i6;
            return;
        }
        switch (AbstractC2464a.c(i7)) {
            case 0:
            case 1:
                this.f23858p = i6;
                break;
            case 2:
            case 3:
                this.f23859q = i6;
                break;
            case 4:
            case 5:
                this.f23860r = i6;
                break;
            case 6:
            case 7:
                this.f23861s = i6;
                break;
            case 8:
            case 9:
            case 10:
                this.f23862t = i6;
                break;
            case 11:
            case 12:
            case 13:
                this.f23863u = i6;
                break;
            case 14:
            case 15:
            case 16:
                this.f23865w = i6;
                break;
        }
    }

    public final void n(Float f6) {
        m(this.f23840b.c(f6));
    }

    public final void o(Object obj) {
        this.f23853j0 = 5;
        this.f23827N = obj;
    }

    public final void p(Object obj) {
        this.f23853j0 = 9;
        this.f23831R = obj;
    }
}
