public net.robinx.lib.http.network.HttpResponse performRequest(net.robinx.lib.http.base.Request p7, java.util.Map p8)
    {
        Object v1_0 = new Object[1];
        v1_0[0] = HTTP_URL_CONNECTION;
        net.robinx.lib.http.utils.CLog.w(Current Stack:%s, v1_0);
        Object v1_5 = p7.getUrl();
        java.util.Iterator v2_0 = new java.util.HashMap();
        v2_0.putAll(p7.getHeaders());
        v2_0.putAll(p8);
        java.util.HashMap v8_8 = this.mUrlRewriter;
        if (v8_8 != null) {
            java.util.HashMap v8_10 = v8_8.rewriteUrl(v1_5);
            if (v8_10 == null) {
                throw new java.io.IOException(com.android.tools.r8.GeneratedOutlineSupport.outline4(URL blocked by rewriter: , v1_5));
            } else {
                v1_5 = v8_10;
            }
        }
        java.util.HashMap v8_14 = new java.net.URL(v1_5);
        Object v1_7 = ((java.net.HttpURLConnection) v8_14.openConnection());
        String v4_5 = p7.getRetryPolicy().getCurrentTimeout();
        v1_7.setConnectTimeout(v4_5);
        v1_7.setReadTimeout(v4_5);
        v1_7.setUseCaches(0);
        v1_7.setDoInput(1);
        if (https.equals(v8_14.getProtocol())) {
            java.util.HashMap v8_17 = this.mSslSocketFactory;
            if (v8_17 == null) {
                net.robinx.lib.http.network.HTTPSTrustManager.allowAllSSL();
            } else {
                ((javax.net.ssl.HttpsURLConnection) v1_7).setSSLSocketFactory(v8_17);
            }
        }
        if (!android.text.TextUtils.isEmpty(this.mUserAgent)) {
            v1_7.setRequestProperty(User-Agent, this.mUserAgent);
        }
        java.util.HashMap v8_22 = v2_0.keySet().iterator();
        while (v8_22.hasNext()) {
            java.util.Iterator v0_5 = ((String) v8_22.next());
            v1_7.addRequestProperty(v0_5, ((String) v2_0.get(v0_5)));
        }
        switch (p7.getHttpMethod()) {
            case 0:
                v1_7.setRequestMethod(GET);
                break;
            case 1:
                v1_7.setRequestMethod(POST);
                net.robinx.lib.http.network.ex.hurl.HurlStack.addBodyIfExists(v1_7, p7);
                break;
            case 2:
                v1_7.setRequestMethod(PUT);
                net.robinx.lib.http.network.ex.hurl.HurlStack.addBodyIfExists(v1_7, p7);
                break;
            case 3:
                v1_7.setRequestMethod(DELETE);
                break;
            case 4:
                v1_7.setRequestMethod(HEAD);
                break;
            case 5:
                v1_7.setRequestMethod(OPTIONS);
                break;
            case 6:
                v1_7.setRequestMethod(TRACE);
                break;
            case 7:
                v1_7.setRequestMethod(POST);
                v1_7.setRequestProperty(X-HTTP-Method-Override, PATCH);
                net.robinx.lib.http.network.ex.hurl.HurlStack.addBodyIfExists(v1_7, p7);
                break;
            default:
                throw new IllegalStateException(Unknown method type.);
        }
        java.io.IOException v7_11 = new net.robinx.lib.http.network.HttpResponse();
        java.util.HashMap v8_26 = v1_7.getResponseCode();
        if (v8_26 == -1) {
            throw new java.io.IOException(Could not retrieve response code from HttpUrlConnection.);
        } else {
            v7_11.setResponseCode(v8_26);
            v7_11.setResponseMessage(v1_7.getResponseMessage());
            try {
                java.util.HashMap v8_2 = v1_7.getInputStream();
            } catch (java.io.IOException) {
                v8_2 = v1_7.getErrorStream();
            }
            v7_11.setContentStream(v8_2);
            v7_11.setContentLength(((long) v1_7.getContentLength()));
            v7_11.setContentEncoding(v1_7.getContentEncoding());
            v7_11.setContentType(v1_7.getContentType());
            java.util.HashMap v8_7 = new java.util.HashMap();
            java.util.Iterator v0_3 = v1_7.getHeaderFields().entrySet().iterator();
            while (v0_3.hasNext()) {
                Object v1_3 = ((java.util.Map$Entry) v0_3.next());
                if (v1_3.getKey() != null) {
                    java.util.Iterator v2_5 = ((java.util.List) v1_3.getValue()).iterator();
                    String v3_0 = ;
                    while (v2_5.hasNext()) {
                        v3_0 = com.android.tools.r8.GeneratedOutlineSupport.outline5(v3_0, ((String) v2_5.next()), ; );
                    }
                    v8_7.put(v1_3.getKey(), v3_0);
                    v7_11.setHeaders(v8_7);
                }
            }
            return v7_11;
        }
    }