package i;

import d.AbstractC0421a;
import java.text.DecimalFormat;
import java.util.Iterator;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public abstract class d0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    protected List f4325a = null;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    protected List f4326b = null;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    protected List f4327c = null;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    protected List f4328d = null;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    protected List f4329e = null;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    protected List f4330f = null;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    protected List f4331g = null;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    protected List f4332h = null;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    protected boolean f4333i = true;

    public void b(c0 c0Var) {
    }

    public boolean d(C0516I c0516i, Object obj, String str, Object obj2) {
        List list = c0516i.f4327c;
        if (list != null) {
            Iterator it = list.iterator();
            if (it.hasNext()) {
                android.support.v4.media.a.a(it.next());
                throw null;
            }
        }
        List list2 = this.f4327c;
        if (list2 == null) {
            return true;
        }
        Iterator it2 = list2.iterator();
        if (!it2.hasNext()) {
            return true;
        }
        android.support.v4.media.a.a(it2.next());
        throw null;
    }

    public boolean e(C0516I c0516i, Object obj, String str) {
        List list = c0516i.f4330f;
        if (list != null) {
            Iterator it = list.iterator();
            if (it.hasNext()) {
                android.support.v4.media.a.a(it.next());
                throw null;
            }
        }
        List list2 = this.f4330f;
        if (list2 == null) {
            return true;
        }
        Iterator it2 = list2.iterator();
        if (!it2.hasNext()) {
            return true;
        }
        android.support.v4.media.a.a(it2.next());
        throw null;
    }

    protected String f(C0516I c0516i, Object obj, String str, Object obj2) {
        List list = c0516i.f4329e;
        if (list != null) {
            Iterator it = list.iterator();
            if (it.hasNext()) {
                android.support.v4.media.a.a(it.next());
                throw null;
            }
        }
        List list2 = this.f4329e;
        if (list2 != null) {
            Iterator it2 = list2.iterator();
            if (it2.hasNext()) {
                android.support.v4.media.a.a(it2.next());
                throw null;
            }
        }
        return str;
    }

    protected Object g(C0516I c0516i, C0530j c0530j, Object obj, String str, Object obj2, int i2) {
        boolean z2;
        if (obj2 != null) {
            int i3 = c0516i.f4223k.f4356r;
            f0 f0Var = f0.WriteNonStringValueAsString;
            if ((f0.isEnabled(i3, i2, f0Var) || !(c0530j == null || (c0530j.a() & f0Var.mask) == 0)) && (((z2 = obj2 instanceof Number)) || (obj2 instanceof Boolean))) {
                String strB = (!z2 || c0530j == null) ? null : c0530j.b();
                obj2 = strB != null ? new DecimalFormat(strB).format(obj2) : obj2.toString();
            } else if (c0530j != null && c0530j.c()) {
                obj2 = AbstractC0421a.e((String) obj2);
            }
        }
        List list = c0516i.f4328d;
        if (list != null) {
            Iterator it = list.iterator();
            if (it.hasNext()) {
                android.support.v4.media.a.a(it.next());
                throw null;
            }
        }
        List list2 = this.f4328d;
        if (list2 != null) {
            Iterator it2 = list2.iterator();
            if (it2.hasNext()) {
                android.support.v4.media.a.a(it2.next());
                throw null;
            }
        }
        List list3 = c0516i.f4332h;
        if (list3 != null) {
            Iterator it3 = list3.iterator();
            if (it3.hasNext()) {
                android.support.v4.media.a.a(it3.next());
                throw null;
            }
        }
        List list4 = this.f4332h;
        if (list4 != null) {
            Iterator it4 = list4.iterator();
            if (it4.hasNext()) {
                android.support.v4.media.a.a(it4.next());
                throw null;
            }
        }
        return obj2;
    }
}
