package j;

import androidx.core.view.a2;
import l.w3;

/* JADX INFO: loaded from: classes.dex */
public final class l extends v.d {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f28490b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f28491c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f28492d;

    public l(m mVar) {
        this.f28489a = 0;
        this.f28492d = mVar;
        this.f28490b = false;
        this.f28491c = 0;
    }

    @Override // v.d, androidx.core.view.a2
    public final void a() {
        switch (this.f28489a) {
            case 1:
                this.f28490b = true;
                break;
        }
    }

    @Override // androidx.core.view.a2
    public final void b() {
        int i10 = this.f28489a;
        Object obj = this.f28492d;
        switch (i10) {
            case 0:
                int i11 = this.f28491c + 1;
                this.f28491c = i11;
                m mVar = (m) obj;
                if (i11 == mVar.f28493a.size()) {
                    a2 a2Var = mVar.f28496d;
                    if (a2Var != null) {
                        a2Var.b();
                    }
                    this.f28491c = 0;
                    this.f28490b = false;
                    mVar.f28497e = false;
                }
                break;
            default:
                if (!this.f28490b) {
                    ((w3) obj).f29883a.setVisibility(this.f28491c);
                }
                break;
        }
    }

    @Override // v.d, androidx.core.view.a2
    public final void c() {
        int i10 = this.f28489a;
        Object obj = this.f28492d;
        switch (i10) {
            case 0:
                if (!this.f28490b) {
                    this.f28490b = true;
                    a2 a2Var = ((m) obj).f28496d;
                    if (a2Var != null) {
                        a2Var.c();
                    }
                    break;
                }
                break;
            default:
                ((w3) obj).f29883a.setVisibility(0);
                break;
        }
    }

    public l(w3 w3Var, int i10) {
        this.f28489a = 1;
        this.f28492d = w3Var;
        this.f28491c = i10;
        this.f28490b = false;
    }
}
