package o; import android.net.Uri; import o.ZI; /* renamed from: o.aIz, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C1607aIz extends ZI { private final C2683ajI d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C1607aIz(C2683ajI c2683ajI, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c2683ajI, ""); C14957gcv.e(c16903sI, ""); this.d = c2683ajI; } public final void Vk_(Uri uri, String str, boolean z) { String queryParameter; CNl cNl; C8064dAG a = this.d.c.a(); String str2 = (a == null || (cNl = a.h) == null) ? null : cNl.e; String str3 = str; final String str4 = ""; if (!(str3 == null || gdZ.d((CharSequence) str3))) { C2683ajI c2683ajI = this.d; String valueOf = String.valueOf(str); C14957gcv.e(valueOf, ""); c2683ajI.e.a(valueOf); } String str5 = str2; if (!(str5 == null || gdZ.d((CharSequence) str5))) { final Uri.Builder buildUpon = Uri.parse(str2).buildUpon(); gaH queryParameterNames = uri != null ? uri.getQueryParameterNames() : null; if (queryParameterNames == null) { queryParameterNames = gaH.e; } for (String str6 : queryParameterNames) { buildUpon.appendQueryParameter(str6, uri != null ? uri.getQueryParameter(str6) : null); } if (uri != null && (queryParameter = uri.getQueryParameter("source")) != null) { str4 = queryParameter; } final String str7 = z ? "yes" : "no"; ZI.IeS ieS = new ZI.IeS(buildUpon, str4, str7) { // from class: o.aIx private String c; private String d; private Uri.Builder e; @Override // o.ZI.IeS public final void e(Object obj) { C1607aIz.Vj_(this.e, this.d, this.c, (InterfaceC9190dez) obj); } { this.e = buildUpon; this.d = str4; this.c = str7; } }; if (this.f != 0) { ieS.e(this.f); return; } return; } ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aIw @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9190dez) obj).d(new NullPointerException()); } }; if (this.f != 0) { ieS2.e(this.f); } } /* renamed from: o.aIz$IeS */ /* loaded from: classes4.dex */ public static final class IeS { private IeS() { } public /* synthetic */ IeS(byte b) { this(); } } public static /* synthetic */ void Vj_(Uri.Builder builder, String str, String str2, InterfaceC9190dez interfaceC9190dez) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); Uri build = builder.build(); C14957gcv.c(build, ""); interfaceC9190dez.acM_(build); interfaceC9190dez.b(str, str2); } static { new IeS((byte) 0); } }