package s1;

import java.util.Iterator;
import m1.r;
import r1.C2868b;
import r1.C2873g;

/* JADX INFO: renamed from: s1.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2897a extends C2873g {

    /* JADX INFO: renamed from: n0, reason: collision with root package name */
    public final /* synthetic */ int f24134n0;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C2897a(r rVar, int i6, int i7) {
        super(rVar, i6);
        this.f24134n0 = i7;
    }

    @Override // r1.C2873g, r1.C2868b, r1.InterfaceC2874h
    public final void apply() {
        switch (this.f24134n0) {
            case 0:
                Iterator it = this.f23890m0.iterator();
                while (it.hasNext()) {
                    C2868b c2868bB = this.f23888k0.b(it.next());
                    c2868bB.g();
                    Object obj = this.f23827N;
                    if (obj != null) {
                        c2868bB.o(obj);
                    } else {
                        Object obj2 = this.f23828O;
                        if (obj2 != null) {
                            c2868bB.f23853j0 = 6;
                            c2868bB.f23828O = obj2;
                        } else {
                            c2868bB.o(0);
                        }
                    }
                    Object obj3 = this.f23829P;
                    if (obj3 != null) {
                        c2868bB.f23853j0 = 7;
                        c2868bB.f23829P = obj3;
                    } else {
                        Object obj4 = this.f23830Q;
                        if (obj4 != null) {
                            c2868bB.i(obj4);
                        } else {
                            c2868bB.i(0);
                        }
                    }
                    float f6 = this.f24135o0;
                    if (f6 != 0.5f) {
                        c2868bB.f23849h = f6;
                    }
                }
                break;
            default:
                Iterator it2 = this.f23890m0.iterator();
                while (it2.hasNext()) {
                    C2868b c2868bB2 = this.f23888k0.b(it2.next());
                    c2868bB2.h();
                    Object obj5 = this.f23831R;
                    if (obj5 != null) {
                        c2868bB2.p(obj5);
                    } else {
                        Object obj6 = this.f23832S;
                        if (obj6 != null) {
                            c2868bB2.f23853j0 = 10;
                            c2868bB2.f23832S = obj6;
                        } else {
                            c2868bB2.p(0);
                        }
                    }
                    Object obj7 = this.f23834U;
                    if (obj7 != null) {
                        c2868bB2.f23853j0 = 12;
                        c2868bB2.f23834U = obj7;
                    } else {
                        Object obj8 = this.f23835V;
                        if (obj8 != null) {
                            c2868bB2.e(obj8);
                        } else {
                            c2868bB2.e(0);
                        }
                    }
                    float f7 = this.f24135o0;
                    if (f7 != 0.5f) {
                        c2868bB2.f23850i = f7;
                    }
                }
                break;
        }
    }
}
