package com.xiaomi.push; import java.io.ByteArrayInputStream; import java.io.InputStreamReader; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import org.xmlpull.v1.XmlPullParserFactory; public class gk { /* renamed from: a reason: collision with root package name */ private XmlPullParser f6731a; gk() { try { this.f6731a = XmlPullParserFactory.newInstance().newPullParser(); this.f6731a.setFeature("http://xmlpull.org/v1/doc/features.html#process-namespaces", true); } catch (XmlPullParserException unused) { } } /* access modifiers changed from: package-private */ public hf a(byte[] bArr, go goVar) { this.f6731a.setInput(new InputStreamReader(new ByteArrayInputStream(bArr))); this.f6731a.next(); int eventType = this.f6731a.getEventType(); String name = this.f6731a.getName(); if (eventType != 2) { return null; } if (name.equals("message")) { return hn.a(this.f6731a); } if (name.equals("iq")) { return hn.a(this.f6731a, goVar); } if (name.equals("presence")) { return hn.m3356a(this.f6731a); } if (this.f6731a.getName().equals("stream")) { return null; } if (this.f6731a.getName().equals("error")) { throw new gz(hn.m3357a(this.f6731a)); } else if (this.f6731a.getName().equals("warning")) { this.f6731a.next(); this.f6731a.getName().equals("multi-login"); return null; } else { this.f6731a.getName().equals("bind"); return null; } } }