package androidx.leanback.app;

import androidx.leanback.widget.G;
import d5.AbstractC0844a;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class x {

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

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

    public /* synthetic */ x(int i, Object obj) {
        this.f8295a = i;
        this.f8296b = obj;
    }

    public final void a() {
        switch (this.f8295a) {
            case u0.f15495q /* 0 */:
                y yVar = (y) this.f8296b;
                yVar.e();
                yVar.b();
                break;
            case 1:
                ((y) this.f8296b).e();
                b(16, -1, -1);
                break;
            default:
                ((G) this.f8296b).d();
                break;
        }
    }

    public void b(int i, int i5, int i8) {
        y yVar = (y) this.f8296b;
        if (i == 2) {
            yVar.f8479a.d(i5, i8);
            return;
        }
        if (i == 4) {
            yVar.f8479a.f(i5, i8);
            return;
        }
        if (i == 8) {
            yVar.f8479a.g(i5, i8);
        } else if (i == 16) {
            yVar.b();
        } else {
            yVar.getClass();
            throw new IllegalArgumentException(AbstractC0844a.j("Invalid event type ", i));
        }
    }
}
