package com.xiaomi.push.service; import android.text.TextUtils; import android.util.Base64; import com.xiaomi.channel.commonutils.logger.b; import com.xiaomi.push.ao; import com.xiaomi.push.bi; import com.xiaomi.push.cz; import com.xiaomi.push.dx; import com.xiaomi.push.q; import com.xiaomi.push.service.bs; import com.xiaomi.push.v; import java.util.List; /* access modifiers changed from: package-private */ public class bt extends ao.b { final /* synthetic */ bs a; /* renamed from: a reason: collision with other field name */ boolean f7582a = false; bt(bs bsVar) { this.a = bsVar; } /* JADX WARNING: Removed duplicated region for block: B:10:0x0039 A[Catch:{ Exception -> 0x0047 }] */ /* JADX WARNING: Removed duplicated region for block: B:15:? A[RETURN, SYNTHETIC] */ @Override // com.xiaomi.push.ao.b public void b() { String str; dx.a a2; try { String a3 = a.a(v.m9749a()).a(); if (!TextUtils.isEmpty(a3)) { if (!q.China.name().equals(a3)) { str = "https://resolver.msg.global.xiaomi.net/psc/?t=a"; a2 = dx.a.a(Base64.decode(cz.a(v.m9749a(), str, (List<bi>) null), 10)); if (a2 == null) { this.a.f7580a = a2; this.f7582a = true; bs.a(this.a); return; } return; } } str = "https://resolver.msg.xiaomi.net/psc/?t=a"; a2 = dx.a.a(Base64.decode(cz.a(v.m9749a(), str, (List<bi>) null), 10)); if (a2 == null) { } } catch (Exception e) { b.m9051a("fetch config failure: " + e.getMessage()); } } @Override // com.xiaomi.push.ao.b public void c() { bs.a[] aVarArr; this.a.f7579a = null; if (this.f7582a) { synchronized (this.a) { aVarArr = (bs.a[]) bs.a(this.a).toArray(new bs.a[bs.a(this.a).size()]); } for (bs.a aVar : aVarArr) { aVar.a(bs.a(this.a)); } } } }