package X; import android.net.Uri; import com.bytedance.covode.number.Covode; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import java.util.Map; import javax.net.ssl.HttpsURLConnection; /* renamed from: X.3DV reason: invalid class name */ public final class AnonymousClass3DV extends Thread { public final /* synthetic */ Map LIZ; static { Covode.recordClassIndex(35961); } public AnonymousClass3DV(Map map) { this.LIZ = map; } /* JADX WARNING: Code restructure failed: missing block: B:36:0x00a2, code lost: return; */ /* JADX WARNING: Removed duplicated region for block: B:37:? A[ExcHandler: IOException | IndexOutOfBoundsException | RuntimeException (unused java.lang.Throwable), SYNTHETIC, Splitter:B:28:0x0096] */ public final void run() { R r; HttpURLConnection httpURLConnection; URLConnection uRLConnection; Map map = this.LIZ; Uri.Builder buildUpon = Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon(); for (String str : map.keySet()) { buildUpon.appendQueryParameter(str, (String) map.get(str)); } URL url = new URL(buildUpon.build().toString()); C17990nc<URL, URLConnection> LJIIL = AnonymousClass1NM.LJ.LJIIL(new C17990nc<>(url, null, null, EnumC17980nb.CONTINUE)); if (LJIIL.LJFF == EnumC17980nb.INTERCEPT && LJIIL.LIZIZ != null) { r = LJIIL.LIZIZ; if (r instanceof HttpsURLConnection) { uRLConnection = new C17930nW(r); } else { if (r instanceof HttpURLConnection) { uRLConnection = new C17920nV(r); } httpURLConnection = (HttpURLConnection) r; httpURLConnection.getResponseCode(); httpURLConnection.disconnect(); } } else if (LJIIL.LJFF != EnumC17980nb.EXCEPTION || LJIIL.LJ == null) { r = url.openConnection(); if (r instanceof HttpsURLConnection) { uRLConnection = new C17930nW((HttpsURLConnection) r); } else { if (r instanceof HttpURLConnection) { uRLConnection = new C17920nV((HttpURLConnection) r); } httpURLConnection = (HttpURLConnection) r; httpURLConnection.getResponseCode(); httpURLConnection.disconnect(); } } else { throw LJIIL.LJ; } r = uRLConnection; httpURLConnection = (HttpURLConnection) r; try { httpURLConnection.getResponseCode(); httpURLConnection.disconnect(); } catch (IOException | IndexOutOfBoundsException | RuntimeException unused) { } catch (Throwable th) { httpURLConnection.disconnect(); throw th; } } }