package com.ifpdos.debugmenu;

import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.ViewDataBinding;
import c.i.d;
import c.i.e;
import d.b.a.a.a;
import d.f.a.v1.b;
import d.f.a.v1.f;
import d.f.a.v1.h;
import d.f.a.v1.j;
import d.f.a.v1.l;
import d.f.a.v1.n;
import d.f.a.v1.p;
import java.util.ArrayList;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public class DataBinderMapperImpl extends d {
    public static final SparseIntArray a;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray(8);
        a = sparseIntArray;
        sparseIntArray.put(R.layout.activity_main, 1);
        sparseIntArray.put(R.layout.item_button, 2);
        sparseIntArray.put(R.layout.item_info, 3);
        sparseIntArray.put(R.layout.item_label, 4);
        sparseIntArray.put(R.layout.item_line, 5);
        sparseIntArray.put(R.layout.item_no_ui, 6);
        sparseIntArray.put(R.layout.item_select, 7);
        sparseIntArray.put(R.layout.item_switch, 8);
    }

    @Override // c.i.d
    public List<d> a() {
        ArrayList arrayList = new ArrayList(1);
        arrayList.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
        return arrayList;
    }

    @Override // c.i.d
    public ViewDataBinding b(e eVar, View view, int i2) {
        int i3 = a.get(i2);
        if (i3 <= 0) {
            return null;
        }
        Object tag = view.getTag();
        if (tag == null) {
            throw new RuntimeException("view must have a tag");
        }
        switch (i3) {
            case 1:
                if ("layout/activity_main_0".equals(tag)) {
                    return new p(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for activity_main is invalid. Received: ", tag));
            case 2:
                if ("layout/item_button_0".equals(tag)) {
                    return new b(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_button is invalid. Received: ", tag));
            case 3:
                if ("layout/item_info_0".equals(tag)) {
                    return new d.f.a.v1.d(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_info is invalid. Received: ", tag));
            case 4:
                if ("layout/item_label_0".equals(tag)) {
                    return new f(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_label is invalid. Received: ", tag));
            case 5:
                if ("layout/item_line_0".equals(tag)) {
                    return new h(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_line is invalid. Received: ", tag));
            case 6:
                if ("layout/item_no_ui_0".equals(tag)) {
                    return new j(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_no_ui is invalid. Received: ", tag));
            case 7:
                if ("layout/item_select_0".equals(tag)) {
                    return new l(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_select is invalid. Received: ", tag));
            case 8:
                if ("layout/item_switch_0".equals(tag)) {
                    return new n(eVar, view);
                }
                throw new IllegalArgumentException(a.o("The tag for item_switch is invalid. Received: ", tag));
            default:
                return null;
        }
    }

    @Override // c.i.d
    public ViewDataBinding c(e eVar, View[] viewArr, int i2) {
        if (viewArr == null || viewArr.length == 0 || a.get(i2) <= 0 || viewArr[0].getTag() != null) {
            return null;
        }
        throw new RuntimeException("view must have a tag");
    }
}
