package m2;

import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.util.AttributeSet;
import android.util.Xml;
import m2.d;
import x1.d;

/* loaded from: classes.dex */
public abstract class k {
    public static final d.a a(Resources.Theme theme, Resources resources, XmlResourceParser xmlResourceParser, int i10) {
        AttributeSet asAttributeSet = Xml.asAttributeSet(xmlResourceParser);
        y1.a aVar = new y1.a(xmlResourceParser, 0, 2, null);
        d.a a10 = y1.c.a(aVar, resources, theme, asAttributeSet);
        int i11 = 0;
        while (!y1.c.d(xmlResourceParser)) {
            i11 = y1.c.g(aVar, resources, asAttributeSet, theme, a10, i11);
            xmlResourceParser.next();
        }
        return new d.a(a10.f(), i10);
    }
}
