package m4;

import java.util.ArrayList;
import java.util.Iterator;
import k4.EnumC2404q;

/* JADX INFO: renamed from: m4.n0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class RunnableC2528n0 implements Runnable {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ k4.r0 f21106b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ C2548u0 f21107c;

    public /* synthetic */ RunnableC2528n0(C2548u0 c2548u0, k4.r0 r0Var, int i6) {
        this.f21105a = i6;
        this.f21107c = c2548u0;
        this.f21106b = r0Var;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f21105a) {
            case 0:
                EnumC2404q enumC2404q = this.f21107c.f21193w.f19935a;
                EnumC2404q enumC2404q2 = EnumC2404q.f19914e;
                if (enumC2404q != enumC2404q2) {
                    C2548u0 c2548u0 = this.f21107c;
                    c2548u0.f21194x = this.f21106b;
                    C2537q0 c2537q0 = c2548u0.f21192v;
                    C2548u0 c2548u02 = this.f21107c;
                    C2537q0 c2537q02 = c2548u02.f21191u;
                    c2548u02.f21192v = null;
                    C2548u0 c2548u03 = this.f21107c;
                    c2548u03.f21191u = null;
                    C2548u0.g(c2548u03, enumC2404q2);
                    this.f21107c.l.d();
                    if (this.f21107c.f21189s.isEmpty()) {
                        C2548u0 c2548u04 = this.f21107c;
                        c2548u04.getClass();
                        c2548u04.f21182k.execute(new RunnableC2525m0(c2548u04, 2));
                    }
                    C2548u0 c2548u05 = this.f21107c;
                    c2548u05.f21182k.d();
                    androidx.recyclerview.widget.i0 i0Var = c2548u05.f21186p;
                    if (i0Var != null) {
                        i0Var.d();
                        c2548u05.f21186p = null;
                        c2548u05.f21184n = null;
                    }
                    androidx.recyclerview.widget.i0 i0Var2 = this.f21107c.f21187q;
                    if (i0Var2 != null) {
                        i0Var2.d();
                        this.f21107c.f21188r.d(this.f21106b);
                        C2548u0 c2548u06 = this.f21107c;
                        c2548u06.f21187q = null;
                        c2548u06.f21188r = null;
                    }
                    if (c2537q0 != null) {
                        c2537q0.d(this.f21106b);
                    }
                    if (c2537q02 != null) {
                        c2537q02.d(this.f21106b);
                    }
                    break;
                }
                break;
            default:
                Iterator it = new ArrayList(this.f21107c.f21189s).iterator();
                while (it.hasNext()) {
                    ((InterfaceC2490a1) it.next()).a(this.f21106b);
                }
                break;
        }
    }
}
