导航菜单

页面标题

页面副标题

RummyCircle v11000.89 - a.java 源代码

正在查看: RummyCircle v11000.89 应用的 a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.games24x7.pgnetwork.controller.httpUrlConnection;

import android.content.Context;
import com.games24x7.pgnetwork.model.ApiResponse;
import com.games24x7.pgnetwork.model.ApiResult;
import com.games24x7.pgnetwork.utils.ApiType;
import com.games24x7.pgnetwork.utils.NetworkCommonData;
import com.games24x7.pgnetwork.utils.NetworkEventType;
import com.google.firebase.perf.network.FirebasePerfUrlConnection;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import javax.net.ssl.HttpsURLConnection;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.Dispatchers;
import kotlinx.coroutines.flow.Flow;
import kotlinx.coroutines.flow.FlowCollector;
import kotlinx.coroutines.flow.FlowKt;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class a implements okhttp3.a {
    public static transient boolean[] d;
    public final com.games24x7.pgnetwork.interceptor.b a;

    @NotNull
    public final Context b;
    public final HashMap<String, String> c;

    @DebugMetadata(c = "com.games24x7.pgnetwork.controller.httpUrlConnection.LegacyController$deleteAPI$1", f = "LegacyController.kt", i = {0, 0, 0, 1, 1, 1, 2, 2, 2, 2}, l = {295, 310, 321}, m = "invokeSuspend", n = {"$this$flow", "response", "connection", "$this$flow", "response", "connection", "$this$flow", "response", "connection", "ex"}, s = {"L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$3"})
    public static final class C0001a extends SuspendLambda implements Function2<FlowCollector<? super ApiResult<? extends ApiResponse>>, Continuation<? super Unit>, Object> {
        public static transient boolean[] k;
        public FlowCollector a;
        public Object b;
        public Object c;
        public Object d;
        public Object e;
        public int f;
        public final a g;
        public final String h;
        public final String i;
        public final HashMap j;

        public C0001a(a aVar, String str, String str2, HashMap hashMap, Continuation continuation) {
            super(2, continuation);
            boolean[] a = a();
            this.g = aVar;
            this.h = str;
            this.i = str2;
            this.j = hashMap;
            a[56] = true;
        }

        public static boolean[] a() {
            boolean[] zArr = k;
            if (zArr != null) {
                return zArr;
            }
            boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(59, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController$deleteAPI$1", -1366276175432388680L);
            k = a;
            return a;
        }

        @NotNull
        public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
            boolean[] a = a();
            Intrinsics.checkNotNullParameter(continuation, "completion");
            C0001a c0001a = new C0001a(this.g, this.h, this.i, this.j, continuation);
            c0001a.a = (FlowCollector) obj;
            a[57] = true;
            return c0001a;
        }

        public final Object invoke(Object obj, Object obj2) {
            boolean[] a = a();
            Object invokeSuspend = create(obj, (Continuation) obj2).invokeSuspend(Unit.a);
            a[58] = true;
            return invokeSuspend;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r19) {
            throw new UnsupportedOperationException("Method not decompiled: com.games24x7.pgnetwork.controller.httpUrlConnection.a.C0001a.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @DebugMetadata(c = "com.games24x7.pgnetwork.controller.httpUrlConnection.LegacyController$getAPI$1", f = "LegacyController.kt", i = {0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2}, l = {114, 124, 136}, m = "invokeSuspend", n = {"$this$flow", "response", "connection", "cookieList", "$this$flow", "response", "connection", "$this$flow", "response", "connection", "ex"}, s = {"L$0", "L$1", "L$2", "L$3", "L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$3"})
    public static final class b extends SuspendLambda implements Function2<FlowCollector<? super ApiResult<? extends ApiResponse>>, Continuation<? super Unit>, Object> {
        public static transient boolean[] k;
        public FlowCollector a;
        public Object b;
        public Object c;
        public Object d;
        public Object e;
        public int f;
        public final a g;
        public final String h;
        public final String i;
        public final HashMap j;

        public b(a aVar, String str, String str2, HashMap hashMap, Continuation continuation) {
            super(2, continuation);
            boolean[] a = a();
            this.g = aVar;
            this.h = str;
            this.i = str2;
            this.j = hashMap;
            a[69] = true;
        }

        public static boolean[] a() {
            boolean[] zArr = k;
            if (zArr != null) {
                return zArr;
            }
            boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(72, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController$getAPI$1", 3438479839484511246L);
            k = a;
            return a;
        }

        @NotNull
        public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
            boolean[] a = a();
            Intrinsics.checkNotNullParameter(continuation, "completion");
            b bVar = new b(this.g, this.h, this.i, this.j, continuation);
            bVar.a = (FlowCollector) obj;
            a[70] = true;
            return bVar;
        }

        public final Object invoke(Object obj, Object obj2) {
            boolean[] a = a();
            Object invokeSuspend = create(obj, (Continuation) obj2).invokeSuspend(Unit.a);
            a[71] = true;
            return invokeSuspend;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r17) {
            throw new UnsupportedOperationException("Method not decompiled: com.games24x7.pgnetwork.controller.httpUrlConnection.a.b.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @DebugMetadata(c = "com.games24x7.pgnetwork.controller.httpUrlConnection.LegacyController$patchAPI$1", f = "LegacyController.kt", i = {0, 0, 0, 1, 1, 1, 2, 2, 2, 2}, l = {359, 374, 385}, m = "invokeSuspend", n = {"$this$flow", "response", "connection", "$this$flow", "response", "connection", "$this$flow", "response", "connection", "ex"}, s = {"L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$3"})
    public static final class c extends SuspendLambda implements Function2<FlowCollector<? super ApiResult<? extends ApiResponse>>, Continuation<? super Unit>, Object> {
        public static transient boolean[] l;
        public FlowCollector a;
        public Object b;
        public Object c;
        public Object d;
        public Object e;
        public int f;
        public final a g;
        public final String h;
        public final String i;
        public final HashMap j;
        public final String k;

        public c(a aVar, String str, String str2, HashMap hashMap, String str3, Continuation continuation) {
            super(2, continuation);
            boolean[] a = a();
            this.g = aVar;
            this.h = str;
            this.i = str2;
            this.j = hashMap;
            this.k = str3;
            a[59] = true;
        }

        public static boolean[] a() {
            boolean[] zArr = l;
            if (zArr != null) {
                return zArr;
            }
            boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(62, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController$patchAPI$1", 2702152211988229244L);
            l = a;
            return a;
        }

        @NotNull
        public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
            boolean[] a = a();
            Intrinsics.checkNotNullParameter(continuation, "completion");
            c cVar = new c(this.g, this.h, this.i, this.j, this.k, continuation);
            cVar.a = (FlowCollector) obj;
            a[60] = true;
            return cVar;
        }

        public final Object invoke(Object obj, Object obj2) {
            boolean[] a = a();
            Object invokeSuspend = create(obj, (Continuation) obj2).invokeSuspend(Unit.a);
            a[61] = true;
            return invokeSuspend;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r18) {
            throw new UnsupportedOperationException("Method not decompiled: com.games24x7.pgnetwork.controller.httpUrlConnection.a.c.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @DebugMetadata(c = "com.games24x7.pgnetwork.controller.httpUrlConnection.LegacyController$postAPI$1", f = "LegacyController.kt", i = {0, 0, 0, 1, 1, 1, 2, 2, 2, 2}, l = {173, 188, 199}, m = "invokeSuspend", n = {"$this$flow", "response", "connection", "$this$flow", "response", "connection", "$this$flow", "response", "connection", "ex"}, s = {"L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$3"})
    public static final class d extends SuspendLambda implements Function2<FlowCollector<? super ApiResult<? extends ApiResponse>>, Continuation<? super Unit>, Object> {
        public static transient boolean[] l;
        public FlowCollector a;
        public Object b;
        public Object c;
        public Object d;
        public Object e;
        public int f;
        public final a g;
        public final String h;
        public final String i;
        public final HashMap j;
        public final String k;

        public d(a aVar, String str, String str2, HashMap hashMap, String str3, Continuation continuation) {
            super(2, continuation);
            boolean[] a = a();
            this.g = aVar;
            this.h = str;
            this.i = str2;
            this.j = hashMap;
            this.k = str3;
            a[64] = true;
        }

        public static boolean[] a() {
            boolean[] zArr = l;
            if (zArr != null) {
                return zArr;
            }
            boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(67, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController$postAPI$1", 5170225186806910821L);
            l = a;
            return a;
        }

        @NotNull
        public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
            boolean[] a = a();
            Intrinsics.checkNotNullParameter(continuation, "completion");
            d dVar = new d(this.g, this.h, this.i, this.j, this.k, continuation);
            dVar.a = (FlowCollector) obj;
            a[65] = true;
            return dVar;
        }

        public final Object invoke(Object obj, Object obj2) {
            boolean[] a = a();
            Object invokeSuspend = create(obj, (Continuation) obj2).invokeSuspend(Unit.a);
            a[66] = true;
            return invokeSuspend;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r18) {
            throw new UnsupportedOperationException("Method not decompiled: com.games24x7.pgnetwork.controller.httpUrlConnection.a.d.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    @DebugMetadata(c = "com.games24x7.pgnetwork.controller.httpUrlConnection.LegacyController$putAPI$1", f = "LegacyController.kt", i = {0, 0, 0, 1, 1, 1, 2, 2, 2, 2}, l = {236, 251, 262}, m = "invokeSuspend", n = {"$this$flow", "response", "connection", "$this$flow", "response", "connection", "$this$flow", "response", "connection", "ex"}, s = {"L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$0", "L$1", "L$2", "L$3"})
    public static final class e extends SuspendLambda implements Function2<FlowCollector<? super ApiResult<? extends ApiResponse>>, Continuation<? super Unit>, Object> {
        public static transient boolean[] l;
        public FlowCollector a;
        public Object b;
        public Object c;
        public Object d;
        public Object e;
        public int f;
        public final a g;
        public final String h;
        public final String i;
        public final HashMap j;
        public final String k;

        public e(a aVar, String str, String str2, HashMap hashMap, String str3, Continuation continuation) {
            super(2, continuation);
            boolean[] a = a();
            this.g = aVar;
            this.h = str;
            this.i = str2;
            this.j = hashMap;
            this.k = str3;
            a[64] = true;
        }

        public static boolean[] a() {
            boolean[] zArr = l;
            if (zArr != null) {
                return zArr;
            }
            boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(67, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController$putAPI$1", -7077342673411705197L);
            l = a;
            return a;
        }

        @NotNull
        public final Continuation<Unit> create(Object obj, @NotNull Continuation<?> continuation) {
            boolean[] a = a();
            Intrinsics.checkNotNullParameter(continuation, "completion");
            e eVar = new e(this.g, this.h, this.i, this.j, this.k, continuation);
            eVar.a = (FlowCollector) obj;
            a[65] = true;
            return eVar;
        }

        public final Object invoke(Object obj, Object obj2) {
            boolean[] a = a();
            Object invokeSuspend = create(obj, (Continuation) obj2).invokeSuspend(Unit.a);
            a[66] = true;
            return invokeSuspend;
        }

        public final java.lang.Object invokeSuspend(@org.jetbrains.annotations.NotNull java.lang.Object r18) {
            throw new UnsupportedOperationException("Method not decompiled: com.games24x7.pgnetwork.controller.httpUrlConnection.a.e.invokeSuspend(java.lang.Object):java.lang.Object");
        }
    }

    public a(@NotNull String str, @NotNull Context context, @NotNull HashMap<String, String> hashMap) {
        boolean[] a = a();
        Intrinsics.checkNotNullParameter(str, "url");
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(hashMap, "commonHeader");
        a[118] = true;
        this.b = context;
        this.c = hashMap;
        a[119] = true;
        this.a = new com.games24x7.pgnetwork.interceptor.b(context);
        a[120] = true;
        a(str, context);
        a[121] = true;
    }

    public static boolean[] a() {
        boolean[] zArr = d;
        if (zArr != null) {
            return zArr;
        }
        boolean[] a = org.jacoco.agent.rt.internal_3570298.e.a(133, "com/games24x7/pgnetwork/controller/httpUrlConnection/LegacyController", -9181734847040041278L);
        d = a;
        return a;
    }

    public static final HttpURLConnection b(a aVar, String str, String str2) {
        boolean[] a = a();
        HttpURLConnection b2 = aVar.b(str, str2);
        a[122] = true;
        return b2;
    }

    public static final HttpURLConnection c(a aVar, String str, String str2) {
        boolean[] a = a();
        HttpURLConnection c2 = aVar.c(str, str2);
        a[130] = true;
        return c2;
    }

    public static final HttpURLConnection d(a aVar, String str, String str2) {
        boolean[] a = a();
        HttpURLConnection d2 = aVar.d(str, str2);
        a[126] = true;
        return d2;
    }

    public static final HttpURLConnection e(a aVar, String str, String str2) {
        boolean[] a = a();
        HttpURLConnection e2 = aVar.e(str, str2);
        a[128] = true;
        return e2;
    }

    public static final com.games24x7.pgnetwork.interceptor.b a(a aVar) {
        boolean[] a = a();
        com.games24x7.pgnetwork.interceptor.b bVar = aVar.a;
        a[125] = true;
        return bVar;
    }

    public final Flow<ApiResult<ApiResponse>> b(ApiType apiType, String str, String str2, HashMap<String, String> hashMap, String str3) {
        Flow<ApiResult<ApiResponse>> b2;
        boolean[] a = a();
        int ordinal = apiType.ordinal();
        if (ordinal == 0) {
            b2 = b(str2, str, hashMap);
            a[3] = true;
        } else if (ordinal == 1) {
            b2 = c(str2, str, str3, hashMap);
            a[5] = true;
        } else if (ordinal == 2) {
            b2 = b(str2, str, str3, hashMap);
            a[4] = true;
        } else if (ordinal == 3) {
            b2 = a(str2, str, hashMap);
            a[6] = true;
        } else if (ordinal == 4) {
            b2 = a(str2, str, str3, hashMap);
            a[7] = true;
        } else {
            if (ordinal != 5) {
                Flow<ApiResult<ApiResponse>> emptyFlow = FlowKt.emptyFlow();
                a[9] = true;
                return emptyFlow;
            }
            b2 = c(str2, str, str3, hashMap);
            a[8] = true;
        }
        a[10] = true;
        return b2;
    }

    public final Flow<ApiResult<ApiResponse>> c(String str, String str2, String str3, HashMap<String, String> hashMap) {
        boolean[] a = a();
        Flow flow = FlowKt.flow(new e(this, str, str2, hashMap, str3, null));
        a[15] = true;
        Flow<ApiResult<ApiResponse>> flowOn = FlowKt.flowOn(flow, Dispatchers.getIO());
        a[16] = true;
        return flowOn;
    }

    public final HttpURLConnection d(String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = a(str);
        a[41] = true;
        a2.setRequestMethod("POST");
        a[42] = true;
        a2.setDoOutput(true);
        a[43] = true;
        if (!Intrinsics.a(str2, "")) {
            a[45] = true;
            a2.setRequestProperty("Content-Type", str2);
            a[46] = true;
        } else {
            a[44] = true;
        }
        a[47] = true;
        return a2;
    }

    public final HttpURLConnection e(String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = a(str);
        a[48] = true;
        a2.setRequestMethod("PUT");
        a[49] = true;
        a2.setDoOutput(true);
        a[50] = true;
        if (!Intrinsics.a(str2, "")) {
            a[52] = true;
            a2.setRequestProperty("Content-Type", str2);
            a[53] = true;
        } else {
            a[51] = true;
        }
        a[54] = true;
        return a2;
    }

    public static final String a(a aVar, InputStream inputStream) {
        boolean[] a = a();
        String a2 = aVar.a(inputStream);
        a[124] = true;
        return a2;
    }

    public static final HttpURLConnection a(a aVar, String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = aVar.a(str, str2);
        a[129] = true;
        return a2;
    }

    public static final void a(a aVar, OutputStream outputStream, String str) {
        boolean[] a = a();
        aVar.a(outputStream, str);
        a[127] = true;
    }

    public final HttpURLConnection c(String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = a(str);
        a[62] = true;
        a2.setRequestMethod("PATCH");
        a[63] = true;
        a2.setDoOutput(true);
        a[64] = true;
        if (!Intrinsics.a(str2, "")) {
            a[66] = true;
            a2.setRequestProperty("Content-Type", str2);
            a[67] = true;
        } else {
            a[65] = true;
        }
        a[68] = true;
        return a2;
    }

    public static final void a(a aVar, HttpURLConnection httpURLConnection, HashMap hashMap) {
        boolean[] a = a();
        aVar.a(httpURLConnection, (HashMap<String, String>) hashMap);
        a[123] = true;
    }

    public void a(@NotNull String str, @NotNull Context context) {
        boolean[] a = a();
        Intrinsics.checkNotNullParameter(str, "baseUrl");
        Intrinsics.checkNotNullParameter(context, "context");
        a[0] = true;
    }

    @NotNull
    public Flow<ApiResult<ApiResponse>> a(@NotNull ApiType apiType, @NotNull String str, @NotNull String str2, HashMap<String, String> hashMap, String str3) {
        boolean[] a = a();
        Intrinsics.checkNotNullParameter(apiType, "apiType");
        Intrinsics.checkNotNullParameter(str, "contentType");
        Intrinsics.checkNotNullParameter(str2, "url");
        a[1] = true;
        Flow<ApiResult<ApiResponse>> b2 = b(apiType, str, str2, hashMap, str3);
        a[2] = true;
        return b2;
    }

    public final Flow<ApiResult<ApiResponse>> a(String str, String str2, HashMap<String, String> hashMap) {
        boolean[] a = a();
        Flow flow = FlowKt.flow(new C0001a(this, str, str2, hashMap, null));
        a[17] = true;
        Flow<ApiResult<ApiResponse>> flowOn = FlowKt.flowOn(flow, Dispatchers.getIO());
        a[18] = true;
        return flowOn;
    }

    public final Flow<ApiResult<ApiResponse>> b(String str, String str2, HashMap<String, String> hashMap) {
        boolean[] a = a();
        Flow flow = FlowKt.flow(new b(this, str, str2, hashMap, null));
        a[11] = true;
        Flow<ApiResult<ApiResponse>> flowOn = FlowKt.flowOn(flow, Dispatchers.getIO());
        a[12] = true;
        return flowOn;
    }

    public final Flow<ApiResult<ApiResponse>> a(String str, String str2, String str3, HashMap<String, String> hashMap) {
        boolean[] a = a();
        Flow flow = FlowKt.flow(new c(this, str, str2, hashMap, str3, null));
        a[19] = true;
        Flow<ApiResult<ApiResponse>> flowOn = FlowKt.flowOn(flow, Dispatchers.getIO());
        a[20] = true;
        return flowOn;
    }

    public final Flow<ApiResult<ApiResponse>> b(String str, String str2, String str3, HashMap<String, String> hashMap) {
        boolean[] a = a();
        Flow flow = FlowKt.flow(new d(this, str, str2, hashMap, str3, null));
        a[13] = true;
        Flow<ApiResult<ApiResponse>> flowOn = FlowKt.flowOn(flow, Dispatchers.getIO());
        a[14] = true;
        return flowOn;
    }

    public final void a(OutputStream outputStream, String str) {
        boolean[] a = a();
        com.games24x7.pgnetwork.utils.b bVar = com.games24x7.pgnetwork.utils.b.a;
        bVar.c(NetworkEventType.MODULETYPE, "writeOutputStream: 1");
        a[23] = true;
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8"));
        a[24] = true;
        bufferedWriter.write(str);
        a[25] = true;
        bufferedWriter.flush();
        a[26] = true;
        bufferedWriter.close();
        a[27] = true;
        outputStream.close();
        a[28] = true;
        bVar.c(NetworkEventType.MODULETYPE, "writeOutputStream: 2");
        a[29] = true;
    }

    public final HttpURLConnection b(String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = a(str);
        a[80] = true;
        a2.setRequestMethod("GET");
        a[81] = true;
        if (!Intrinsics.a(str2, "")) {
            a[83] = true;
            a2.setRequestProperty("Content-Type", str2);
            a[84] = true;
        } else {
            a[82] = true;
        }
        a[85] = true;
        return a2;
    }

    public final String a(InputStream inputStream) {
        boolean[] a = a();
        StringBuffer stringBuffer = new StringBuffer();
        a[30] = true;
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        a[31] = true;
        while (true) {
            String readLine = bufferedReader.readLine();
            if (readLine != null) {
                a[32] = true;
                stringBuffer.append(readLine);
                a[33] = true;
            } else {
                inputStream.close();
                a[34] = true;
                String stringBuffer2 = stringBuffer.toString();
                Intrinsics.checkNotNullExpressionValue(stringBuffer2, "stringBuffer.toString()");
                a[35] = true;
                return stringBuffer2;
            }
        }
    }

    public final HttpURLConnection a(String str, String str2) {
        boolean[] a = a();
        HttpURLConnection a2 = a(str);
        a[55] = true;
        a2.setRequestMethod("DELETE");
        a[56] = true;
        a2.setDoOutput(true);
        a[57] = true;
        if (!Intrinsics.a(str2, "")) {
            a[59] = true;
            a2.setRequestProperty("Content-Type", str2);
            a[60] = true;
        } else {
            a[58] = true;
        }
        a[61] = true;
        return a2;
    }

    public final HttpURLConnection a(String str) {
        boolean[] a = a();
        URL url = new URL(str);
        a[86] = true;
        URLConnection uRLConnection = (URLConnection) FirebasePerfUrlConnection.instrument(url.openConnection());
        if (uRLConnection != null) {
            HttpsURLConnection httpsURLConnection = (HttpsURLConnection) uRLConnection;
            a[88] = true;
            NetworkCommonData networkCommonData = NetworkCommonData.INSTANCE;
            httpsURLConnection.setConnectTimeout((int) networkCommonData.getCommonConfig().getConnectionTimeout());
            a[89] = true;
            httpsURLConnection.setReadTimeout((int) networkCommonData.getCommonConfig().getReadTimeout());
            a[90] = true;
            httpsURLConnection.setDoInput(true);
            a[91] = true;
            return httpsURLConnection;
        }
        NullPointerException nullPointerException = new NullPointerException("null cannot be cast to non-null type javax.net.ssl.HttpsURLConnection");
        a[87] = true;
        throw nullPointerException;
    }

    public final void a(HttpURLConnection httpURLConnection, HashMap<String, String> hashMap) {
        String str;
        boolean[] a = a();
        if (hashMap != null) {
            a[101] = true;
            HashMap<String, String> hashMap2 = this.c;
            if (hashMap2 != null) {
                hashMap2.putAll(hashMap);
                a[102] = true;
            } else {
                a[103] = true;
            }
            a[104] = true;
        } else {
            a[105] = true;
        }
        HashMap<String, String> hashMap3 = this.c;
        if (hashMap3 != null) {
            a[106] = true;
            a[107] = true;
            for (String str2 : hashMap3.keySet()) {
                a[108] = true;
                if (hashMap == null) {
                    a[109] = true;
                } else {
                    str = hashMap.get(str2);
                    if (str == null) {
                        a[110] = true;
                    } else {
                        a[111] = true;
                        httpURLConnection.setRequestProperty(str2, str);
                        a[113] = true;
                    }
                }
                a[112] = true;
                str = "";
                httpURLConnection.setRequestProperty(str2, str);
                a[113] = true;
            }
            a[114] = true;
        } else {
            a[115] = true;
        }
        a[116] = true;
    }
}