package p138.p176.p177.p242.p246.p251;

import android.annotation.TargetApi;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.Binder;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import bolts.AggregateException;
import com.google.android.gms.internal.measurement.zzft;
import com.hierynomus.protocol.commons.buffer.Buffer;
import com.parse.FunctionCallback;
import com.parse.ParseCallback2;
import com.parse.ParseException;
import com.parse.ParseUser;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Array;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.math.BigInteger;
import java.net.IDN;
import java.net.InetAddress;
import java.net.Socket;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.attribute.FileTime;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.interfaces.ECPrivateKey;
import java.security.interfaces.ECPublicKey;
import java.security.spec.ECField;
import java.security.spec.ECFieldFp;
import java.security.spec.ECParameterSpec;
import java.security.spec.ECPoint;
import java.security.spec.ECPrivateKeySpec;
import java.security.spec.ECPublicKeySpec;
import java.security.spec.EllipticCurve;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.RandomAccess;
import java.util.Set;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.concurrent.Callable;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicLong;
import java.util.logging.Logger;
import javax.annotation.Nullable;
import kotlin.NoWhenBranchMatchedException;
import kotlin.TypeCastException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlinx.coroutines.CoroutineExceptionHandler;
import kotlinx.coroutines.TimeoutCancellationException;
import net.lingala.zip4j.exception.ZipException;
import org.json.JSONException;
import org.json.JSONObject;
import p000.p001.p002.p003.p004.C0567;
import p025.p026.AbstractC1301;
import p025.p026.AbstractC1339;
import p025.p026.C1307;
import p025.p026.C1318;
import p025.p026.C1322;
import p025.p026.C1326;
import p025.p026.C1331;
import p025.p026.C1333;
import p025.p026.C1336;
import p025.p026.C1337;
import p025.p026.C1338;
import p025.p026.C1343;
import p025.p026.C1373;
import p025.p026.C1374;
import p025.p026.C1375;
import p025.p026.C1382;
import p025.p026.C1383;
import p025.p026.C1387;
import p025.p026.C1389;
import p025.p026.EnumC1328;
import p025.p026.InterfaceC1306;
import p025.p026.InterfaceC1317;
import p025.p026.InterfaceC1327;
import p025.p026.InterfaceC1332;
import p025.p026.InterfaceC1335;
import p025.p026.InterfaceC1341;
import p025.p026.InterfaceC1363;
import p025.p026.RunnableC1386;
import p025.p026.p027.C1273;
import p025.p026.p027.C1294;
import p025.p026.p027.C1297;
import p025.p026.p029.InterfaceC1416;
import p137.C2739;
import p137.C2742;
import p137.C2754;
import p137.InterfaceC2741;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.C4198;
import p138.p176.p177.p242.p246.C4199;
import p138.p176.p177.p242.p246.p255.C4321;
import p138.p176.p177.p242.p246.p255.C4322;
import p138.p176.p177.p242.p258.p263.AbstractC4421;
import p138.p176.p177.p242.p258.p263.AbstractC4435;
import p138.p176.p177.p242.p258.p263.C4477;
import p138.p176.p177.p242.p258.p263.C4486;
import p138.p176.p177.p242.p258.p263.C4498;
import p138.p176.p177.p242.p258.p263.C4511;
import p138.p176.p177.p242.p258.p263.C4545;
import p138.p176.p177.p242.p258.p263.C4549;
import p138.p176.p177.p242.p258.p263.C4620;
import p138.p176.p177.p242.p258.p263.C4733;
import p138.p176.p177.p242.p258.p263.C4735;
import p138.p176.p177.p242.p258.p263.InterfaceC4386;
import p138.p176.p177.p242.p258.p263.InterfaceC4450;
import p138.p176.p177.p242.p258.p263.InterfaceC4518;
import p138.p176.p177.p242.p258.p263.InterfaceC4713;
import p138.p176.p177.p242.p258.p263.InterfaceC4731;
import p138.p176.p177.p242.p265.p266.C4785;
import p138.p176.p177.p242.p265.p266.C4794;
import p138.p176.p177.p242.p270.AbstractC5062;
import p138.p176.p177.p242.p270.C5064;
import p138.p176.p177.p242.p270.C5066;
import p138.p176.p177.p242.p270.C5085;
import p138.p176.p177.p242.p270.InterfaceC5057;
import p138.p176.p177.p242.p270.InterfaceC5059;
import p138.p176.p177.p242.p270.InterfaceC5060;
import p138.p176.p177.p242.p270.RunnableC5086;
import p138.p176.p278.p279.C5197;
import p138.p176.p278.p279.InterfaceC5177;
import p138.p176.p278.p279.p287.C5257;
import p138.p176.p278.p279.p287.C5267;
import p138.p176.p278.p279.p287.C5271;
import p138.p176.p278.p279.p287.C5367;
import p138.p176.p278.p279.p287.C5388;
import p138.p176.p278.p279.p287.C5445;
import p138.p176.p278.p279.p287.EnumC5355;
import p138.p176.p278.p279.p287.EnumC5379;
import p138.p176.p278.p279.p287.EnumC5413;
import p138.p176.p278.p279.p287.EnumC5422;
import p138.p176.p278.p279.p290.C5534;
import p138.p176.p278.p279.p290.EnumC5530;
import p138.p176.p278.p279.p290.EnumC5531;
import p138.p176.p278.p279.p290.EnumC5532;
import p138.p176.p278.p279.p290.EnumC5543;
import p138.p176.p291.p295.C5583;
import p138.p176.p291.p295.InterfaceC5589;
import p138.p176.p291.p296.p297.p299.C5684;
import p138.p176.p291.p296.p297.p299.ThreadFactoryC5682;
import p138.p176.p291.p327.AbstractC6005;
import p138.p176.p291.p327.C6001;
import p138.p176.p328.AbstractC6013;
import p138.p176.p328.AbstractC6028;
import p138.p176.p328.C6026;
import p138.p176.p328.C6044;
import p138.p176.p328.C6062;
import p138.p176.p328.InterfaceC6049;
import p138.p329.p340.C6157;
import p138.p329.p351.p352.InterfaceC6289;
import p138.p329.p351.p352.p354.InterfaceC6301;
import p138.p395.p396.p397.C6527;
import p402.C6542;
import p402.C6545;
import p402.C6547;
import p402.C6549;
import p402.C6550;
import p402.EnumC6539;
import p402.InterfaceC6538;
import p402.p403.C6558;
import p402.p403.C6560;
import p402.p403.C6563;
import p402.p405.C6582;
import p402.p405.C6583;
import p402.p405.InterfaceC6575;
import p402.p405.InterfaceC6576;
import p402.p405.InterfaceC6578;
import p402.p405.p406.C6587;
import p402.p405.p406.C6588;
import p402.p405.p406.EnumC6586;
import p402.p405.p407.p408.AbstractC6589;
import p402.p405.p407.p408.AbstractC6591;
import p402.p409.C6600;
import p402.p411.p412.InterfaceC6603;
import p402.p411.p412.InterfaceC6614;
import p402.p411.p412.InterfaceC6618;
import p402.p411.p413.C6635;
import p402.p411.p413.C6646;
import p402.p411.p413.C6649;
import p402.p411.p413.InterfaceC6629;
import p402.p411.p413.p414.InterfaceC6650;
import p402.p417.C6662;
import p402.p418.InterfaceC6666;
import p402.p419.C6678;
import p402.p419.C6685;
import p402.p419.C6687;
import p402.p419.InterfaceC6684;
import p402.p420.C6689;
import p402.p420.C6703;
import p421.p422.p423.p428.InterfaceC6727;
import p421.p422.p423.p431.C6758;
import p421.p422.p423.p431.InterfaceC6752;
import p421.p433.p434.p439.p440.AbstractC6797;
import p421.p433.p434.p439.p440.C6795;
import p421.p433.p434.p439.p440.C6802;
import p421.p433.p434.p442.C6815;
import p421.p433.p434.p442.C6817;
import p421.p433.p434.p442.C6822;
import p421.p433.p434.p442.C6823;
import p421.p433.p434.p442.C6826;
import p421.p433.p434.p442.C6828;
import p421.p433.p434.p442.p443.EnumC6834;
import p421.p433.p434.p446.C6857;
import p421.p433.p434.p446.C6858;
import p447.p448.C6943;
import p447.p448.p451.AbstractC6950;
import p447.p448.p451.C6952;
import p447.p448.p451.C6953;
import p461.C7101;
import p461.C7102;
import p461.C7103;
import p461.C7115;
import p461.C7118;
import p461.C7119;
import p461.C7121;
import p461.C7126;
import p461.C7128;
import p461.C7130;
import p461.InterfaceC7106;
import p461.InterfaceC7107;
import p461.InterfaceC7127;
import p461.InterfaceC7129;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ހ.ދ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C4303 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC4304 f13593;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static Boolean f13594;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static Boolean f13595;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static Boolean f13596;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static C4785 f13597;

    /* JADX INFO: renamed from: ދ.ހ.֏.ހ.ހ.ދ.ؠ$֏, reason: contains not printable characters */
    public interface InterfaceC4304 {
    }

    public static Number add(Number number, Number number2) {
        if ((number instanceof Double) || (number2 instanceof Double)) {
            return Double.valueOf(number2.doubleValue() + number.doubleValue());
        }
        if ((number instanceof Float) || (number2 instanceof Float)) {
            return Float.valueOf(number2.floatValue() + number.floatValue());
        }
        if ((number instanceof Long) || (number2 instanceof Long)) {
            return Long.valueOf(number2.longValue() + number.longValue());
        }
        if ((number instanceof Integer) || (number2 instanceof Integer)) {
            return Integer.valueOf(number2.intValue() + number.intValue());
        }
        if ((number instanceof Short) || (number2 instanceof Short)) {
            return Integer.valueOf(number2.shortValue() + number.shortValue());
        }
        if (!(number instanceof Byte) && !(number2 instanceof Byte)) {
            throw new RuntimeException("Unknown number type.");
        }
        return Integer.valueOf(number2.byteValue() + number.byteValue());
    }

    public static <T> void callFunctionInBackground(final String str, final Map<String, ?> map, FunctionCallback<T> functionCallback) {
        callbackOnMainThreadAsync(ParseUser.getCurrentUserController().getCurrentSessionTokenAsync().m4817(new InterfaceC2741<String, C2742<T>>() { // from class: com.parse.ParseCloud$1
            @Override // p137.InterfaceC2741
            public Object then(C2742<String> c2742) {
                String strM4812 = c2742.m4812();
                ParseCorePlugins parseCorePlugins = ParseCorePlugins.INSTANCE;
                if (parseCorePlugins.cloudCodeController.get() == null) {
                    parseCorePlugins.cloudCodeController.compareAndSet(null, new ParseCloudCodeController(ParsePlugins.get().restClient()));
                }
                ParseCloudCodeController parseCloudCodeController = parseCorePlugins.cloudCodeController.get();
                String str2 = str;
                Map map2 = map;
                if (parseCloudCodeController != null) {
                    return ParseRESTCloudCommand.callFunctionCommand(str2, map2, strM4812).executeAsync(parseCloudCodeController.restClient).m4816(new InterfaceC2741<JSONObject, T>() { // from class: com.parse.ParseCloudCodeController.1
                        public AnonymousClass1() {
                        }

                        @Override // p137.InterfaceC2741
                        public T then(C2742<JSONObject> c27422) {
                            ParseCloudCodeController parseCloudCodeController2 = ParseCloudCodeController.this;
                            Object objM4812 = c27422.m4812();
                            if (parseCloudCodeController2 == null) {
                                throw null;
                            }
                            if (objM4812 instanceof JSONObject) {
                                JSONObject jSONObject = (JSONObject) objM4812;
                                if (jSONObject.isNull("result")) {
                                    return null;
                                }
                                objM4812 = jSONObject.opt("result");
                            }
                            T t = (T) ParseDecoder.INSTANCE.decode(objM4812);
                            return t != null ? t : (T) objM4812;
                        }
                    });
                }
                throw null;
            }
        }, C2742.f8455), functionCallback, false);
    }

    public static <T> C2742<T> callbackOnMainThreadAsync(C2742<T> c2742, final ParseCallback2<T, ParseException> parseCallback2, final boolean z) {
        if (parseCallback2 == null) {
            return c2742;
        }
        final C2754 c2754 = new C2754();
        c2742.m4809((InterfaceC2741<T, TContinuationResult>) new InterfaceC2741<T, Void>() { // from class: com.parse.ParseTaskUtils$2
            @Override // p137.InterfaceC2741
            public Void then(final C2742 c27422) {
                if (!c27422.m4818() || z) {
                    ParseExecutors.main().execute(new Runnable() { // from class: com.parse.ParseTaskUtils$2.1
                        @Override // java.lang.Runnable
                        public void run() {
                            try {
                                Exception excM4806 = c27422.m4806();
                                if (excM4806 != null && !(excM4806 instanceof ParseException)) {
                                    excM4806 = new ParseException(excM4806);
                                }
                                parseCallback2.done(c27422.m4812(), (ParseException) excM4806);
                                if (c27422.m4818()) {
                                    c2754.m4825();
                                } else if (c27422.m4820()) {
                                    c2754.m4826(c27422.m4806());
                                } else {
                                    c2754.m4827(c27422.m4812());
                                }
                            } catch (Throwable th) {
                                if (c27422.m4818()) {
                                    c2754.m4825();
                                } else if (c27422.m4820()) {
                                    c2754.m4826(c27422.m4806());
                                } else {
                                    c2754.m4827(c27422.m4812());
                                }
                                throw th;
                            }
                        }
                    });
                    return null;
                }
                c2754.m4825();
                return null;
            }
        }, C2742.f8455, (C2739) null);
        return (C2742<T>) c2754.f8503;
    }

    public static void cleanDirectory(File file) throws IOException {
        if (!file.exists()) {
            throw new IllegalArgumentException(file + " does not exist");
        }
        if (!file.isDirectory()) {
            throw new IllegalArgumentException(file + " is not a directory");
        }
        File[] fileArrListFiles = file.listFiles();
        if (fileArrListFiles == null) {
            throw new IOException("Failed to list contents of " + file);
        }
        IOException e = null;
        for (File file2 : fileArrListFiles) {
            try {
                forceDelete(file2);
            } catch (IOException e2) {
                e = e2;
            }
        }
        if (e != null) {
            throw e;
        }
    }

    public static int copy(InputStream inputStream, OutputStream outputStream) throws IOException {
        byte[] bArr = new byte[4096];
        long j = 0;
        while (true) {
            int i = inputStream.read(bArr);
            if (-1 == i) {
                break;
            }
            outputStream.write(bArr, 0, i);
            j += (long) i;
        }
        if (j > 2147483647L) {
            return -1;
        }
        return (int) j;
    }

    /* JADX WARN: Removed duplicated region for block: B:103:0x0143 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:111:0x0151 A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:117:0x013c A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:119:0x014a A[EXC_TOP_SPLITTER, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:127:? A[SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void copyFile(File file, File file2) throws Throwable {
        FileInputStream fileInputStream;
        FileOutputStream fileOutputStream;
        FileChannel channel;
        if (file == null) {
            throw new NullPointerException("Source must not be null");
        }
        if (file2 == null) {
            throw new NullPointerException("Destination must not be null");
        }
        if (!file.exists()) {
            throw new FileNotFoundException("Source '" + file + "' does not exist");
        }
        if (file.isDirectory()) {
            throw new IOException("Source '" + file + "' exists but is a directory");
        }
        if (file.getCanonicalPath().equals(file2.getCanonicalPath())) {
            throw new IOException("Source '" + file + "' and destination '" + file2 + "' are the same");
        }
        File parentFile = file2.getParentFile();
        if (parentFile != null && !parentFile.mkdirs() && !parentFile.isDirectory()) {
            throw new IOException("Destination '" + parentFile + "' directory cannot be created");
        }
        if (file2.exists() && !file2.canWrite()) {
            throw new IOException("Destination '" + file2 + "' exists but is read-only");
        }
        if (file2.exists() && file2.isDirectory()) {
            throw new IOException("Destination '" + file2 + "' exists but is a directory");
        }
        FileChannel channel2 = null;
        try {
            fileInputStream = new FileInputStream(file);
            try {
                fileOutputStream = new FileOutputStream(file2);
                try {
                    channel = fileInputStream.getChannel();
                } catch (Throwable th) {
                    th = th;
                    channel = null;
                }
            } catch (Throwable th2) {
                th = th2;
                fileOutputStream = null;
                channel = null;
                if (channel2 != null) {
                    try {
                        channel2.close();
                    } catch (IOException unused) {
                    }
                }
                if (fileOutputStream != null) {
                    try {
                        fileOutputStream.close();
                    } catch (IOException unused2) {
                    }
                }
                if (channel != null) {
                    try {
                        channel.close();
                    } catch (IOException unused3) {
                    }
                }
                if (fileInputStream != null) {
                    throw th;
                }
                try {
                    fileInputStream.close();
                    throw th;
                } catch (IOException unused4) {
                    throw th;
                }
            }
        } catch (Throwable th3) {
            th = th3;
            fileInputStream = null;
        }
        try {
            channel2 = fileOutputStream.getChannel();
            long size = channel.size();
            long j = 0;
            while (j < size) {
                long j2 = size - j;
                long jTransferFrom = channel2.transferFrom(channel, j, j2 > 31457280 ? 31457280L : j2);
                if (jTransferFrom == 0) {
                    break;
                } else {
                    j += jTransferFrom;
                }
            }
            if (channel2 != null) {
                try {
                    channel2.close();
                } catch (IOException unused5) {
                }
            }
            try {
                fileOutputStream.close();
            } catch (IOException unused6) {
            }
            try {
                channel.close();
            } catch (IOException unused7) {
            }
            try {
                fileInputStream.close();
            } catch (IOException unused8) {
            }
            long length = file.length();
            long length2 = file2.length();
            if (length == length2) {
                file2.setLastModified(file.lastModified());
                return;
            }
            throw new IOException("Failed to copy full contents from '" + file + "' to '" + file2 + "' Expected length: " + length + " Actual: " + length2);
        } catch (Throwable th4) {
            th = th4;
            if (channel2 != null) {
            }
            if (fileOutputStream != null) {
            }
            if (channel != null) {
            }
            if (fileInputStream != null) {
            }
        }
    }

    public static JSONObject create(JSONObject jSONObject, Collection<String> collection) {
        JSONObject jSONObject2 = new JSONObject();
        Iterator<String> itKeys = jSONObject.keys();
        while (itKeys.hasNext()) {
            String next = itKeys.next();
            if (!collection.contains(next)) {
                try {
                    jSONObject2.put(next, jSONObject.opt(next));
                } catch (JSONException e) {
                    throw new RuntimeException(e);
                }
            }
        }
        return jSONObject2;
    }

    public static void deleteDirectory(File file) throws IOException {
        if (file.exists()) {
            File file2 = file.getParent() == null ? file : new File(file.getParentFile().getCanonicalFile(), file.getName());
            if (!(!file2.getCanonicalFile().equals(file2.getAbsoluteFile()))) {
                cleanDirectory(file);
            }
            if (file.delete()) {
                return;
            }
            throw new IOException("Unable to delete directory " + file + ".");
        }
    }

    public static boolean deleteQuietly(File file) {
        if (file == null) {
            return false;
        }
        try {
            if (file.isDirectory()) {
                cleanDirectory(file);
            }
        } catch (Exception unused) {
        }
        try {
            return file.delete();
        } catch (Exception unused2) {
            return false;
        }
    }

    public static void forceDelete(File file) throws IOException {
        if (file.isDirectory()) {
            deleteDirectory(file);
            return;
        }
        boolean zExists = file.exists();
        if (file.delete()) {
            return;
        }
        if (zExists) {
            throw new IOException("Unable to delete file: " + file);
        }
        throw new FileNotFoundException("File does not exist: " + file);
    }

    public static String getCorrectedUsernameOrEmail(String str) {
        String strTrim = str.trim();
        return (TextUtils.isEmpty(strTrim) || strTrim.charAt(0) == '\"') ? strTrim : strTrim.replaceAll(". ", ".");
    }

    public static int getInt(JSONObject jSONObject, List<String> list) throws JSONException {
        Iterator<String> it = list.iterator();
        while (it.hasNext()) {
            try {
                return jSONObject.getInt(it.next());
            } catch (JSONException unused) {
            }
        }
        throw new JSONException("No value for " + list);
    }

    public static boolean isEmpty(CharSequence charSequence) {
        return charSequence == null || charSequence.length() == 0;
    }

    public static boolean isLinked(ParseUser parseUser) {
        Map<String, Map<String, String>> authData = parseUser.getAuthData();
        return authData.containsKey("anonymous") && authData.get("anonymous") != null;
    }

    public static String join(CharSequence charSequence, Iterable iterable) {
        StringBuilder sb = new StringBuilder();
        boolean z = true;
        for (Object obj : iterable) {
            if (z) {
                z = false;
            } else {
                sb.append(charSequence);
            }
            sb.append(obj);
        }
        return sb.toString();
    }

    public static FileInputStream openInputStream(File file) throws IOException {
        if (!file.exists()) {
            throw new FileNotFoundException("File '" + file + "' does not exist");
        }
        if (file.isDirectory()) {
            throw new IOException("File '" + file + "' exists but is a directory");
        }
        if (file.canRead()) {
            return new FileInputStream(file);
        }
        throw new IOException("File '" + file + "' cannot be read");
    }

    public static FileOutputStream openOutputStream(File file) throws IOException {
        if (!file.exists()) {
            File parentFile = file.getParentFile();
            if (parentFile != null && !parentFile.exists() && !parentFile.mkdirs()) {
                throw new IOException("File '" + file + "' could not be created");
            }
        } else {
            if (file.isDirectory()) {
                throw new IOException("File '" + file + "' exists but is a directory");
            }
            if (!file.canWrite()) {
                throw new IOException("File '" + file + "' cannot be written to");
            }
        }
        return new FileOutputStream(file);
    }

    public static JSONObject readFileToJSONObject(File file) {
        return new JSONObject(readFileToString(file, "UTF-8"));
    }

    public static String readFileToString(File file, String str) throws Throwable {
        FileInputStream fileInputStreamOpenInputStream;
        Charset charsetForName = Charset.forName(str);
        try {
            fileInputStreamOpenInputStream = openInputStream(file);
            try {
                byte[] byteArray = toByteArray(fileInputStreamOpenInputStream);
                try {
                    fileInputStreamOpenInputStream.close();
                } catch (IOException unused) {
                }
                return new String(byteArray, charsetForName);
            } catch (Throwable th) {
                th = th;
                if (fileInputStreamOpenInputStream != null) {
                    try {
                        fileInputStreamOpenInputStream.close();
                    } catch (IOException unused2) {
                    }
                }
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            fileInputStreamOpenInputStream = null;
        }
    }

    public static byte[] toByteArray(InputStream inputStream) throws IOException {
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        copy(inputStream, byteArrayOutputStream);
        return byteArrayOutputStream.toByteArray();
    }

    public static <T> T wait(C2742<T> c2742) throws ParseException {
        try {
            c2742.m4824();
            if (!c2742.m4820()) {
                if (c2742.m4818()) {
                    throw new RuntimeException(new CancellationException());
                }
                return c2742.m4812();
            }
            Exception excM4806 = c2742.m4806();
            if (excM4806 instanceof ParseException) {
                throw ((ParseException) excM4806);
            }
            if (excM4806 instanceof AggregateException) {
                throw new ParseException(excM4806);
            }
            if (excM4806 instanceof RuntimeException) {
                throw ((RuntimeException) excM4806);
            }
            throw new RuntimeException(excM4806);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }

    public static void writeByteArrayToFile(File file, byte[] bArr) throws Throwable {
        FileOutputStream fileOutputStreamOpenOutputStream;
        try {
            fileOutputStreamOpenOutputStream = openOutputStream(file);
            try {
                fileOutputStreamOpenOutputStream.write(bArr);
                try {
                    fileOutputStreamOpenOutputStream.close();
                } catch (IOException unused) {
                }
            } catch (Throwable th) {
                th = th;
                if (fileOutputStreamOpenOutputStream != null) {
                    try {
                        fileOutputStreamOpenOutputStream.close();
                    } catch (IOException unused2) {
                    }
                }
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            fileOutputStreamOpenOutputStream = null;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final char m6973(char[] cArr) {
        if (cArr == null) {
            C6635.m9824("$this$single");
            throw null;
        }
        int length = cArr.length;
        if (length == 0) {
            throw new NoSuchElementException("Array is empty.");
        }
        if (length == 1) {
            return cArr[0];
        }
        throw new IllegalArgumentException("Array has more than one element.");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m6974(double d) {
        if (Double.isNaN(d)) {
            throw new IllegalArgumentException("Cannot round NaN value.");
        }
        if (d > Integer.MAX_VALUE) {
            return Integer.MAX_VALUE;
        }
        if (d < Integer.MIN_VALUE) {
            return Integer.MIN_VALUE;
        }
        return (int) Math.round(d);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m6975(float f) {
        if (Float.isNaN(f)) {
            throw new IllegalArgumentException("Cannot round NaN value.");
        }
        return Math.round(f);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m6976(int i) {
        if (2 <= i && 36 >= i) {
            return i;
        }
        StringBuilder sbM4896 = C2803.m4896("radix ", i, " was not in valid range ");
        sbM4896.append(new C6662(2, 36));
        throw new IllegalArgumentException(sbM4896.toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m6977(int i, int i2) {
        int i3 = i % i2;
        return i3 >= 0 ? i3 : i3 + i2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6978(int i, byte[] bArr, int i2, int i3, C4486 c4486, C4620 c4620) throws zzft {
        if ((i >>> 3) == 0) {
            throw zzft.m1404();
        }
        int i4 = i & 7;
        if (i4 == 0) {
            int iM7146 = m7146(bArr, i2, c4620);
            c4486.m7542(i, Long.valueOf(c4620.f14130));
            return iM7146;
        }
        if (i4 == 1) {
            c4486.m7542(i, Long.valueOf(m7190(bArr, i2)));
            return i2 + 8;
        }
        if (i4 == 2) {
            int iM6994 = m6994(bArr, i2, c4620);
            int i5 = c4620.f14129;
            if (i5 < 0) {
                throw zzft.m1403();
            }
            if (i5 > bArr.length - iM6994) {
                throw zzft.m1402();
            }
            if (i5 == 0) {
                c4486.m7542(i, AbstractC4435.f13786);
            } else {
                c4486.m7542(i, AbstractC4435.m7390(bArr, iM6994, i5));
            }
            return iM6994 + i5;
        }
        if (i4 != 3) {
            if (i4 != 5) {
                throw zzft.m1404();
            }
            c4486.m7542(i, Integer.valueOf(m7177(bArr, i2)));
            return i2 + 4;
        }
        C4486 c4486M7540 = C4486.m7540();
        int i6 = (i & (-8)) | 4;
        int i7 = 0;
        while (true) {
            if (i2 >= i3) {
                break;
            }
            int iM69942 = m6994(bArr, i2, c4620);
            int i8 = c4620.f14129;
            i7 = i8;
            if (i8 == i6) {
                i2 = iM69942;
                break;
            }
            int iM6978 = m6978(i7, bArr, iM69942, i3, c4486M7540, c4620);
            i7 = i8;
            i2 = iM6978;
        }
        if (i2 > i3 || i7 != i6) {
            throw zzft.m1406();
        }
        c4486.m7542(i, c4486M7540);
        return i2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6979(int i, byte[] bArr, int i2, int i3, InterfaceC4518<?> interfaceC4518, C4620 c4620) {
        C4511 c4511 = (C4511) interfaceC4518;
        int iM6994 = m6994(bArr, i2, c4620);
        c4511.m7563(c4620.f14129);
        while (iM6994 < i3) {
            int iM69942 = m6994(bArr, iM6994, c4620);
            if (i != c4620.f14129) {
                break;
            }
            iM6994 = m6994(bArr, iM69942, c4620);
            c4511.m7563(c4620.f14129);
        }
        return iM6994;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6980(int i, byte[] bArr, int i2, int i3, C4620 c4620) throws zzft {
        if ((i >>> 3) == 0) {
            throw zzft.m1404();
        }
        int i4 = i & 7;
        if (i4 == 0) {
            return m7146(bArr, i2, c4620);
        }
        if (i4 == 1) {
            return i2 + 8;
        }
        if (i4 == 2) {
            return m6994(bArr, i2, c4620) + c4620.f14129;
        }
        if (i4 != 3) {
            if (i4 == 5) {
                return i2 + 4;
            }
            throw zzft.m1404();
        }
        int i5 = (i & (-8)) | 4;
        int i6 = 0;
        while (i2 < i3) {
            i2 = m6994(bArr, i2, c4620);
            i6 = c4620.f14129;
            if (i6 == i5) {
                break;
            }
            i2 = m6980(i6, bArr, i2, i3, c4620);
        }
        if (i2 > i3 || i6 != i5) {
            throw zzft.m1406();
        }
        return i2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6981(int i, byte[] bArr, int i2, C4620 c4620) {
        int i3 = i & 127;
        int i4 = i2 + 1;
        byte b = bArr[i2];
        if (b >= 0) {
            c4620.f14129 = i3 | (b << 7);
            return i4;
        }
        int i5 = i3 | ((b & 127) << 7);
        int i6 = i4 + 1;
        byte b2 = bArr[i4];
        if (b2 >= 0) {
            c4620.f14129 = i5 | (b2 << 14);
            return i6;
        }
        int i7 = i5 | ((b2 & 127) << 14);
        int i8 = i6 + 1;
        byte b3 = bArr[i6];
        if (b3 >= 0) {
            c4620.f14129 = i7 | (b3 << 21);
            return i8;
        }
        int i9 = i7 | ((b3 & 127) << 21);
        int i10 = i8 + 1;
        byte b4 = bArr[i8];
        if (b4 >= 0) {
            c4620.f14129 = i9 | (b4 << 28);
            return i10;
        }
        int i11 = i9 | ((b4 & 127) << 28);
        while (true) {
            int i12 = i10 + 1;
            if (bArr[i10] >= 0) {
                c4620.f14129 = i11;
                return i12;
            }
            i10 = i12;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6982(InputStream inputStream, byte[] bArr) throws IOException {
        int i = inputStream.read(bArr);
        if (i != bArr.length) {
            int length = bArr.length - i;
            int i2 = 0;
            for (int i3 = 1; i < bArr.length && i2 != -1 && i3 < 15; i3++) {
                i2 = inputStream.read(bArr, i, length);
                if (i2 > 0) {
                    i += i2;
                    length -= i2;
                }
            }
            if (i != bArr.length) {
                throw new IOException("Cannot read fully into byte buffer");
            }
        }
        return i;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6983(InputStream inputStream, byte[] bArr, int i, int i2) throws IOException {
        if (i < 0) {
            throw new IllegalArgumentException("Negative offset");
        }
        if (i2 < 0) {
            throw new IllegalArgumentException("Negative length");
        }
        int i3 = 0;
        if (i2 == 0) {
            return 0;
        }
        if (i + i2 > bArr.length) {
            throw new IllegalArgumentException("Length greater than buffer size");
        }
        while (i3 != i2) {
            int i4 = inputStream.read(bArr, i + i3, i2 - i3);
            if (i4 == -1) {
                if (i3 == 0) {
                    return -1;
                }
                return i3;
            }
            i3 += i4;
        }
        return i3;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T extends Comparable<?>> int m6984(T t, T t2) {
        if (t == t2) {
            return 0;
        }
        if (t == null) {
            return -1;
        }
        if (t2 == null) {
            return 1;
        }
        return t.compareTo(t2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> int m6985(Iterable<? extends T> iterable, int i) {
        if (iterable != null) {
            return iterable instanceof Collection ? ((Collection) iterable).size() : i;
        }
        C6635.m9824("$this$collectionSizeOrDefault");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ int m6986(String str, int i, int i2, int i3, int i4, Object obj) {
        if ((i4 & 4) != 0) {
            i2 = 1;
        }
        if ((i4 & 8) != 0) {
            i3 = Integer.MAX_VALUE;
        }
        return (int) m6997(str, i, i2, i3);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> int m6987(List<? extends T> list) {
        if (list != null) {
            return list.size() - 1;
        }
        C6635.m9824("$this$lastIndex");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6988(InterfaceC4386<?> interfaceC4386, int i, byte[] bArr, int i2, int i3, InterfaceC4518<?> interfaceC4518, C4620 c4620) throws zzft {
        int iM6990 = m6990(interfaceC4386, bArr, i2, i3, c4620);
        interfaceC4518.add(c4620.f14131);
        while (iM6990 < i3) {
            int iM6994 = m6994(bArr, iM6990, c4620);
            if (i != c4620.f14129) {
                break;
            }
            iM6990 = m6990(interfaceC4386, bArr, iM6994, i3, c4620);
            interfaceC4518.add(c4620.f14131);
        }
        return iM6990;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6989(InterfaceC4386 interfaceC4386, byte[] bArr, int i, int i2, int i3, C4620 c4620) {
        C4477 c4477 = (C4477) interfaceC4386;
        Object objMo7545 = c4477.f13851.mo7545(c4477.f13844);
        int iM7508 = c4477.m7508(objMo7545, bArr, i, i2, i3, c4620);
        c4477.mo7274(objMo7545);
        c4620.f14131 = objMo7545;
        return iM7508;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6990(InterfaceC4386 interfaceC4386, byte[] bArr, int i, int i2, C4620 c4620) throws zzft {
        int iM6981 = i + 1;
        int i3 = bArr[i];
        if (i3 < 0) {
            iM6981 = m6981(i3, bArr, iM6981, c4620);
            i3 = c4620.f14129;
        }
        int i4 = iM6981;
        if (i3 < 0 || i3 > i2 - i4) {
            throw zzft.m1402();
        }
        Object objMo7268 = interfaceC4386.mo7268();
        int i5 = i3 + i4;
        interfaceC4386.mo7270(objMo7268, bArr, i4, i5, c4620);
        interfaceC4386.mo7274(objMo7268);
        c4620.f14131 = objMo7268;
        return i5;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6991(C6828 c6828, C6822 c6822) throws ZipException {
        List<C6822> list;
        if (c6828 == null || c6822 == null) {
            throw new ZipException("input parameters is null, cannot determine index of file header");
        }
        C6817 c6817 = c6828.f19780;
        if (c6817 == null || (list = c6817.f19746) == null || list.size() <= 0) {
            return -1;
        }
        String str = c6822.f19737;
        if (!m7202(str)) {
            throw new ZipException("file name in file header is empty or null, cannot determine index of file header");
        }
        List<C6822> list2 = c6828.f19780.f19746;
        for (int i = 0; i < list2.size(); i++) {
            String str2 = list2.get(i).f19737;
            if (m7202(str2) && str.equalsIgnoreCase(str2)) {
                return i;
            }
        }
        return -1;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m6992(C7126 c7126, int i) {
        int i2;
        if (c7126 == null) {
            C6635.m9824("$this$segment");
            throw null;
        }
        int[] iArr = c7126.f20676;
        int i3 = i + 1;
        int i4 = 0;
        int length = c7126.f20675.length;
        if (iArr == null) {
            C6635.m9824("$this$binarySearch");
            throw null;
        }
        int i5 = length - 1;
        while (true) {
            if (i4 <= i5) {
                i2 = (i4 + i5) >>> 1;
                int i6 = iArr[i2];
                if (i6 >= i3) {
                    if (i6 <= i3) {
                        break;
                    }
                    i5 = i2 - 1;
                } else {
                    i4 = i2 + 1;
                }
            } else {
                i2 = (-i4) - 1;
                break;
            }
        }
        return i2 >= 0 ? i2 : ~i2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6993(byte[] bArr, int i, InterfaceC4518<?> interfaceC4518, C4620 c4620) throws zzft {
        C4511 c4511 = (C4511) interfaceC4518;
        int iM6994 = m6994(bArr, i, c4620);
        int i2 = c4620.f14129 + iM6994;
        while (iM6994 < i2) {
            iM6994 = m6994(bArr, iM6994, c4620);
            c4511.m7563(c4620.f14129);
        }
        if (iM6994 == i2) {
            return iM6994;
        }
        throw zzft.m1402();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m6994(byte[] bArr, int i, C4620 c4620) {
        int i2 = i + 1;
        byte b = bArr[i];
        if (b < 0) {
            return m6981(b, bArr, i2, c4620);
        }
        c4620.f14129 = b;
        return i2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> int m6995(T[] tArr) {
        if (tArr != null) {
            return tArr.length - 1;
        }
        C6635.m9824("$this$lastIndex");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static long m6996(long j) {
        int i = (int) ((j & 31) * 2);
        int i2 = (int) ((j >> 5) & 63);
        int i3 = (int) ((j >> 11) & 31);
        int i4 = (int) (31 & (j >> 16));
        int i5 = (int) (((j >> 21) & 15) - 1);
        int i6 = (int) (((j >> 25) & 127) + 1980);
        Calendar calendar = Calendar.getInstance();
        calendar.set(i6, i5, i4, i3, i2, i);
        calendar.set(14, 0);
        return calendar.getTime().getTime();
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x0061 A[PHI: r16
      0x0061: PHI (r16v2 long) = (r16v1 long), (r16v3 long) binds: [B:24:0x0053, B:28:0x005e] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final long m6997(String str, long j, long j2, long j3) {
        Long lValueOf;
        String strM2594 = C1297.m2594(str);
        if (strM2594 == null) {
            return j;
        }
        m6976(10);
        int length = strM2594.length();
        if (length == 0) {
            lValueOf = null;
            break;
        }
        boolean z = false;
        char cCharAt = strM2594.charAt(0);
        long j4 = -9223372036854775807L;
        int i = 1;
        if (cCharAt < '0') {
            if (length != 1) {
                if (cCharAt == '-') {
                    j4 = Long.MIN_VALUE;
                    z = true;
                } else if (cCharAt == '+') {
                }
            }
            lValueOf = null;
            break;
        }
        i = 0;
        long j5 = 0;
        long j6 = -256204778801521550L;
        while (i < length) {
            int iDigit = Character.digit((int) strM2594.charAt(i), 10);
            if (iDigit >= 0) {
                if (j5 >= j6) {
                    long j7 = j5 * ((long) 10);
                    long j8 = iDigit;
                    if (j7 >= j4 + j8) {
                        j5 = j7 - j8;
                        i++;
                    }
                } else if (j6 == -256204778801521550L) {
                    j6 = j4 / ((long) 10);
                    if (j5 < j6) {
                    }
                }
            }
            lValueOf = null;
            break;
        }
        lValueOf = z ? Long.valueOf(j5) : Long.valueOf(-j5);
        if (lValueOf == null) {
            throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + strM2594 + '\'').toString());
        }
        long jLongValue = lValueOf.longValue();
        if (j2 <= jLongValue && j3 >= jLongValue) {
            return jLongValue;
        }
        throw new IllegalStateException(("System property '" + str + "' should be in range " + j2 + ".." + j3 + ", but is '" + jLongValue + '\'').toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ long m6998(String str, long j, long j2, long j3, int i, Object obj) {
        if ((i & 4) != 0) {
            j2 = 1;
        }
        long j4 = j2;
        if ((i & 8) != 0) {
            j3 = Long.MAX_VALUE;
        }
        return m6997(str, j, j4, j3);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static long m6999(byte[] bArr, int i) {
        return ((long) (((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16))) & 4294967295L;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static long m7000(byte[] bArr, int i, int i2) {
        return (m6999(bArr, i) >> i2) & 67108863;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final CharSequence m7001(CharSequence charSequence) {
        if (charSequence == null) {
            C6635.m9824("$this$reversed");
            throw null;
        }
        StringBuilder sbReverse = new StringBuilder(charSequence).reverse();
        C6635.m9823((Object) sbReverse, "StringBuilder(this).reverse()");
        return sbReverse;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Character m7002(CharSequence charSequence, int i) {
        if (charSequence == null) {
            C6635.m9824("$this$getOrNull");
            throw null;
        }
        if (i < 0 || i > C6703.m9855(charSequence)) {
            return null;
        }
        return Character.valueOf(charSequence.charAt(i));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Class<?> m7003(Type type) {
        if (type instanceof Class) {
            return (Class) type;
        }
        if (type instanceof ParameterizedType) {
            return (Class) ((ParameterizedType) type).getRawType();
        }
        if (type instanceof GenericArrayType) {
            return Array.newInstance(m7003(((GenericArrayType) type).getGenericComponentType()), 0).getClass();
        }
        if (type instanceof TypeVariable) {
            return Object.class;
        }
        if (type instanceof WildcardType) {
            return m7003(((WildcardType) type).getUpperBounds()[0]);
        }
        throw new IllegalArgumentException("Expected a Class, ParameterizedType, or GenericArrayType, but <" + type + "> is of type " + (type == null ? "null" : type.getClass().getName()));
    }

    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> Class<T> m7004(InterfaceC6666<T> interfaceC6666) {
        if (interfaceC6666 == null) {
            C6635.m9824("$this$javaObjectType");
            throw null;
        }
        Class<T> cls = (Class<T>) ((InterfaceC6629) interfaceC6666).mo9816();
        if (!cls.isPrimitive()) {
            return cls;
        }
        String name = cls.getName();
        switch (name.hashCode()) {
            case -1325958191:
                return name.equals("double") ? Double.class : cls;
            case 104431:
                return name.equals("int") ? Integer.class : cls;
            case 3039496:
                return name.equals("byte") ? Byte.class : cls;
            case 3052374:
                return name.equals("char") ? Character.class : cls;
            case 3327612:
                return name.equals("long") ? Long.class : cls;
            case 3625364:
                return name.equals("void") ? Void.class : cls;
            case 64711720:
                return name.equals("boolean") ? Boolean.class : cls;
            case 97526364:
                return name.equals("float") ? Float.class : cls;
            case 109413500:
                return name.equals("short") ? Short.class : cls;
            default:
                return cls;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Object m7005(long j, InterfaceC6575<? super C6549> interfaceC6575) {
        if (j <= 0) {
            return C6549.f19328;
        }
        C1307 c1307 = new C1307(m7066((InterfaceC6575) interfaceC6575), 1);
        c1307.m2639();
        m7049(c1307.mo2607()).mo2662(j, (InterfaceC1306<? super C6549>) c1307);
        Object objM2636 = c1307.m2636();
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        return objM2636;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r2v1, types: [T, އ.֏.ၦ] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final <T> Object m7006(long j, InterfaceC6618<? super InterfaceC1327, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618, InterfaceC6575<? super T> interfaceC6575) throws Throwable {
        C1387 c1387;
        C6646 c6646;
        if (interfaceC6575 instanceof C1387) {
            c1387 = (C1387) interfaceC6575;
            int i = c1387.f4542;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1387.f4542 = i - Integer.MIN_VALUE;
            } else {
                c1387 = new C1387(interfaceC6575);
            }
        }
        Object obj = c1387.f4541;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i2 = c1387.f4542;
        if (i2 == 0) {
            m7198(obj);
            if (j <= 0) {
                return null;
            }
            C6646 c66462 = new C6646();
            c66462.f19405 = null;
            try {
                c1387.f4543 = j;
                c1387.f4544 = interfaceC6618;
                c1387.f4545 = c66462;
                c1387.f4542 = 1;
                ?? r2 = (T) new RunnableC1386(j, c1387);
                c66462.f19405 = r2;
                Object objM7014 = m7014((RunnableC1386) r2, (InterfaceC6618) interfaceC6618);
                EnumC6586 enumC65862 = EnumC6586.COROUTINE_SUSPENDED;
                return objM7014 == enumC6586 ? enumC6586 : objM7014;
            } catch (TimeoutCancellationException e) {
                e = e;
                c6646 = c66462;
            }
        } else {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c6646 = (C6646) c1387.f4545;
            try {
                m7198(obj);
                return obj;
            } catch (TimeoutCancellationException e2) {
                e = e2;
            }
        }
        if (e.f2181 == ((RunnableC1386) c6646.f19405)) {
            return null;
        }
        throw e;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T> T m7007(Bundle bundle, String str, Class<T> cls, T t) {
        T t2 = (T) bundle.get(str);
        if (t2 == null) {
            return t;
        }
        if (cls.isAssignableFrom(t2.getClass())) {
            return t2;
        }
        throw new IllegalStateException(String.format("Invalid conditional user property field type. '%s' expected [%s] but was [%s]", str, cls.getCanonicalName(), t2.getClass().getCanonicalName()));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T> T m7008(T t, String str) {
        if (t != null) {
            return t;
        }
        throw new NullPointerException(str);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> Object m7009(Object obj, InterfaceC6575<? super T> interfaceC6575) {
        if (obj instanceof C1318) {
            C6542.C6543 c6543 = C6542.f19318;
            return m7010(((C1318) obj).f4456);
        }
        C6542.C6543 c65432 = C6542.f19318;
        return obj;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Object m7010(Throwable th) {
        if (th != null) {
            return new C6542.C6544(th);
        }
        C6635.m9824("exception");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T, E extends Throwable> T m7011(Future<T> future, long j, TimeUnit timeUnit, InterfaceC6301<E> interfaceC6301) throws Throwable {
        try {
            return future.get(j, timeUnit);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            throw interfaceC6301.mo1479(e);
        } catch (ExecutionException e2) {
            e = e2;
            throw interfaceC6301.mo1479(e);
        } catch (TimeoutException e3) {
            e = e3;
            throw interfaceC6301.mo1479(e);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T, E extends Throwable> T m7012(Future<T> future, InterfaceC6301<E> interfaceC6301) throws Throwable {
        try {
            return future.get();
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
            throw interfaceC6301.mo1479(e);
        } catch (ExecutionException e2) {
            throw interfaceC6301.mo1479(e2);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T, R> Object m7013(C1294<? super T> c1294, R r, InterfaceC6618<? super R, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618) throws Throwable {
        Object c1318;
        c1294.m2616();
        try {
        } catch (Throwable th) {
            c1318 = new C1318(th, false, 2, null);
        }
        if (interfaceC6618 == null) {
            throw new TypeCastException("null cannot be cast to non-null type (R, kotlin.coroutines.Continuation<T>) -> kotlin.Any?");
        }
        C6649.m9833(interfaceC6618, 2);
        c1318 = interfaceC6618.mo838(r, c1294);
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        if (c1318 == enumC6586) {
            return enumC6586;
        }
        Object objM2713 = c1294.m2713(c1318);
        if (objM2713 == C1373.f4528) {
            return EnumC6586.COROUTINE_SUSPENDED;
        }
        if (objM2713 instanceof C1318) {
            throw ((C1318) objM2713).f4456;
        }
        return C1373.m2724(objM2713);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <U, T extends U> Object m7014(RunnableC1386<U, ? super T> runnableC1386, InterfaceC6618<? super InterfaceC1327, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618) throws Throwable {
        Object c1318;
        runnableC1386.mo2683((InterfaceC6614<? super Throwable, C6549>) new C1343(runnableC1386, m7049(runnableC1386.f4430.mo2607()).mo2655(runnableC1386.f4540, runnableC1386)));
        runnableC1386.m2616();
        try {
        } catch (Throwable th) {
            c1318 = new C1318(th, false, 2, null);
        }
        if (interfaceC6618 == null) {
            throw new TypeCastException("null cannot be cast to non-null type (R, kotlin.coroutines.Continuation<T>) -> kotlin.Any?");
        }
        C6649.m9833(interfaceC6618, 2);
        c1318 = interfaceC6618.mo838(runnableC1386, runnableC1386);
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        if (c1318 == enumC6586) {
            return enumC6586;
        }
        Object objM2713 = runnableC1386.m2713(c1318);
        if (objM2713 == C1373.f4528) {
            return EnumC6586.COROUTINE_SUSPENDED;
        }
        if (!(objM2713 instanceof C1318)) {
            return C1373.m2724(objM2713);
        }
        C1318 c13182 = (C1318) objM2713;
        Throwable th2 = c13182.f4456;
        if (((th2 instanceof TimeoutCancellationException) && ((TimeoutCancellationException) th2).f2181 == runnableC1386) ? false : true) {
            throw c13182.f4456;
        }
        if (c1318 instanceof C1318) {
            throw ((C1318) c1318).f4456;
        }
        return c1318;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <V> V m7015(InterfaceC4713<V> interfaceC4713) {
        try {
            return interfaceC4713.mo7880();
        } catch (SecurityException unused) {
            long jClearCallingIdentity = Binder.clearCallingIdentity();
            try {
                return interfaceC4713.mo7880();
            } finally {
                Binder.restoreCallingIdentity(jClearCallingIdentity);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <TResult> TResult m7016(AbstractC5062<TResult> abstractC5062) throws InterruptedException {
        C0567.m1938("Must not be called on the main application thread");
        C0567.m1857(abstractC5062, (Object) "Task must not be null");
        if (abstractC5062.mo8554()) {
            return (TResult) m7152((AbstractC5062) abstractC5062);
        }
        C5066 c5066 = new C5066(null);
        abstractC5062.mo8549(C5064.f15216, (InterfaceC5060) c5066);
        abstractC5062.mo8548(C5064.f15216, (InterfaceC5059) c5066);
        abstractC5062.mo8546(C5064.f15216, (InterfaceC5057) c5066);
        c5066.f15218.await();
        return (TResult) m7152((AbstractC5062) abstractC5062);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <TResult> TResult m7017(AbstractC5062<TResult> abstractC5062, long j, TimeUnit timeUnit) throws TimeoutException {
        C0567.m1938("Must not be called on the main application thread");
        C0567.m1857(abstractC5062, (Object) "Task must not be null");
        C0567.m1857(timeUnit, (Object) "TimeUnit must not be null");
        if (abstractC5062.mo8554()) {
            return (TResult) m7152((AbstractC5062) abstractC5062);
        }
        C5066 c5066 = new C5066(null);
        abstractC5062.mo8549(C5064.f15216, (InterfaceC5060) c5066);
        abstractC5062.mo8548(C5064.f15216, (InterfaceC5059) c5066);
        abstractC5062.mo8546(C5064.f15216, (InterfaceC5057) c5066);
        if (c5066.f15218.await(j, timeUnit)) {
            return (TResult) m7152((AbstractC5062) abstractC5062);
        }
        throw new TimeoutException("Timed out waiting for Task");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> Object m7018(InterfaceC6578 interfaceC6578, InterfaceC6618<? super InterfaceC1327, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618, InterfaceC6575<? super T> interfaceC6575) throws Throwable {
        boolean z;
        Object objM2724;
        InterfaceC6578 interfaceC6578Mo2607 = interfaceC6575.mo2607();
        InterfaceC6578 interfaceC6578Plus = interfaceC6578Mo2607.plus(interfaceC6578);
        InterfaceC1363 interfaceC1363 = (InterfaceC1363) interfaceC6578Plus.get(InterfaceC1363.f4514);
        if (interfaceC1363 != null && !interfaceC1363.mo2610()) {
            throw interfaceC1363.mo2686();
        }
        if (interfaceC6578Plus == interfaceC6578Mo2607) {
            C1294 c1294 = new C1294(interfaceC6578Plus, interfaceC6575);
            objM2724 = m7013(c1294, c1294, (InterfaceC6618<? super C1294, ? super InterfaceC6575<? super T>, ? extends Object>) interfaceC6618);
        } else if (C6635.m9825((InterfaceC6576) interfaceC6578Plus.get(InterfaceC6576.f19353), (InterfaceC6576) interfaceC6578Mo2607.get(InterfaceC6576.f19353))) {
            C1389 c1389 = new C1389(interfaceC6578Plus, interfaceC6575);
            Object objM2563 = C1273.m2563(interfaceC6578Plus, null);
            try {
                Object objM7013 = m7013((C1294) c1389, c1389, (InterfaceC6618<? super C1389, ? super InterfaceC6575<? super T>, ? extends Object>) interfaceC6618);
                C1273.m2562(interfaceC6578Plus, objM2563);
                objM2724 = objM7013;
            } catch (Throwable th) {
                C1273.m2562(interfaceC6578Plus, objM2563);
                throw th;
            }
        } else {
            C1338 c1338 = new C1338(interfaceC6578Plus, interfaceC6575);
            c1338.m2616();
            m7165((InterfaceC6618<? super C1338, ? super InterfaceC6575<? super T>, ? extends Object>) interfaceC6618, c1338, (InterfaceC6575) c1338);
            while (true) {
                int i = c1338._decision;
                z = false;
                if (i != 0) {
                    if (i != 2) {
                        throw new IllegalStateException("Already suspended".toString());
                    }
                } else if (C1338.f4485.compareAndSet(c1338, 0, 1)) {
                    z = true;
                    break;
                }
            }
            if (z) {
                objM2724 = EnumC6586.COROUTINE_SUSPENDED;
            } else {
                objM2724 = C1373.m2724(c1338.m2717());
                if (objM2724 instanceof C1318) {
                    throw ((C1318) objM2724).f4456;
                }
            }
        }
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        return objM2724;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> T m7019(T[] tArr, int i) {
        if (tArr == null) {
            C6635.m9824("$this$getOrNull");
            throw null;
        }
        if (i < 0 || i > m6995((Object[]) tArr)) {
            return null;
        }
        return tArr[i];
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7020(int i, int i2, String str) {
        if (i < 0) {
            return m7022("%s (%s) must not be negative", str, Integer.valueOf(i));
        }
        if (i2 >= 0) {
            return m7022("%s (%s) must not be greater than size (%s)", str, Integer.valueOf(i), Integer.valueOf(i2));
        }
        StringBuilder sb = new StringBuilder(26);
        sb.append("negative size: ");
        sb.append(i2);
        throw new IllegalArgumentException(sb.toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7021(int i, int[] iArr, String[] strArr, int[] iArr2) {
        StringBuilder sb = new StringBuilder();
        sb.append('$');
        for (int i2 = 0; i2 < i; i2++) {
            int i3 = iArr[i2];
            if (i3 == 1 || i3 == 2) {
                sb.append('[');
                sb.append(iArr2[i2]);
                sb.append(']');
            } else if (i3 == 3 || i3 == 4 || i3 == 5) {
                sb.append('.');
                if (strArr[i2] != null) {
                    sb.append(strArr[i2]);
                }
            }
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7022(String str, @Nullable Object... objArr) {
        int iIndexOf;
        String strValueOf = String.valueOf(str);
        StringBuilder sb = new StringBuilder((objArr.length * 16) + strValueOf.length());
        int i = 0;
        int i2 = 0;
        while (i < objArr.length && (iIndexOf = strValueOf.indexOf("%s", i2)) != -1) {
            sb.append(strValueOf.substring(i2, iIndexOf));
            sb.append(objArr[i]);
            i2 = iIndexOf + 2;
            i++;
        }
        sb.append(strValueOf.substring(i2));
        if (i < objArr.length) {
            sb.append(" [");
            sb.append(objArr[i]);
            for (int i3 = i + 1; i3 < objArr.length; i3++) {
                sb.append(", ");
                sb.append(objArr[i3]);
            }
            sb.append(']');
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7023(String str, String[] strArr, String[] strArr2) {
        C0567.m1910(strArr);
        C0567.m1910(strArr2);
        int iMin = Math.min(strArr.length, strArr2.length);
        for (int i = 0; i < iMin; i++) {
            String str2 = strArr[i];
            if ((str == null && str2 == null) ? true : str == null ? false : str.equals(str2)) {
                return strArr2[i];
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7024(AbstractC4435 abstractC4435) {
        C4549 c4549 = new C4549(abstractC4435);
        StringBuilder sb = new StringBuilder(c4549.f13963.mo7393());
        for (int i = 0; i < c4549.f13963.mo7393(); i++) {
            byte bMo7392 = c4549.f13963.mo7392(i);
            if (bMo7392 == 34) {
                sb.append("\\\"");
            } else if (bMo7392 == 39) {
                sb.append("\\'");
            } else if (bMo7392 != 92) {
                switch (bMo7392) {
                    case 7:
                        sb.append("\\a");
                        break;
                    case 8:
                        sb.append("\\b");
                        break;
                    case 9:
                        sb.append("\\t");
                        break;
                    case 10:
                        sb.append("\\n");
                        break;
                    case 11:
                        sb.append("\\v");
                        break;
                    case 12:
                        sb.append("\\f");
                        break;
                    case 13:
                        sb.append("\\r");
                        break;
                    default:
                        if (bMo7392 < 32 || bMo7392 > 126) {
                            sb.append('\\');
                            sb.append((char) (((bMo7392 >>> 6) & 3) + 48));
                            sb.append((char) (((bMo7392 >>> 3) & 7) + 48));
                            sb.append((char) ((bMo7392 & 7) + 48));
                        } else {
                            sb.append((char) bMo7392);
                        }
                        break;
                }
            } else {
                sb.append("\\\\");
            }
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7025(EnumC5543 enumC5543) throws GeneralSecurityException {
        int iOrdinal = enumC5543.ordinal();
        if (iOrdinal == 0) {
            return "SHA-1";
        }
        if (iOrdinal == 1) {
            return "SHA-256";
        }
        if (iOrdinal == 2) {
            return "SHA-384";
        }
        if (iOrdinal == 3) {
            return "SHA-512";
        }
        throw new GeneralSecurityException("Unsupported hash " + enumC5543);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7026(AbstractC6013 abstractC6013) {
        StringBuilder sb = new StringBuilder(abstractC6013.size());
        for (int i = 0; i < abstractC6013.size(); i++) {
            byte bMo9359 = abstractC6013.mo9359(i);
            if (bMo9359 == 34) {
                sb.append("\\\"");
            } else if (bMo9359 == 39) {
                sb.append("\\'");
            } else if (bMo9359 != 92) {
                switch (bMo9359) {
                    case 7:
                        sb.append("\\a");
                        break;
                    case 8:
                        sb.append("\\b");
                        break;
                    case 9:
                        sb.append("\\t");
                        break;
                    case 10:
                        sb.append("\\n");
                        break;
                    case 11:
                        sb.append("\\v");
                        break;
                    case 12:
                        sb.append("\\f");
                        break;
                    case 13:
                        sb.append("\\r");
                        break;
                    default:
                        if (bMo9359 < 32 || bMo9359 > 126) {
                            sb.append('\\');
                            sb.append((char) (((bMo9359 >>> 6) & 3) + 48));
                            sb.append((char) (((bMo9359 >>> 3) & 7) + 48));
                            sb.append((char) ((bMo9359 & 7) + 48));
                        } else {
                            sb.append((char) bMo9359);
                        }
                        break;
                }
            } else {
                sb.append("\\\\");
            }
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ String m7027(InterfaceC6684 interfaceC6684, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, int i, CharSequence charSequence4, InterfaceC6614 interfaceC6614, int i2) throws IOException {
        if ((i2 & 1) != 0) {
            charSequence = ", ";
        }
        if ((i2 & 2) != 0) {
            charSequence2 = "";
        }
        if ((i2 & 4) != 0) {
            charSequence3 = "";
        }
        if ((i2 & 8) != 0) {
            i = -1;
        }
        if ((i2 & 16) != 0) {
            charSequence4 = "...";
        }
        if ((i2 & 32) != 0) {
            interfaceC6614 = null;
        }
        if (interfaceC6684 == null) {
            C6635.m9824("$this$joinToString");
            throw null;
        }
        if (charSequence == null) {
            C6635.m9824("separator");
            throw null;
        }
        if (charSequence2 == null) {
            C6635.m9824("prefix");
            throw null;
        }
        if (charSequence3 == null) {
            C6635.m9824("postfix");
            throw null;
        }
        if (charSequence4 == null) {
            C6635.m9824("truncated");
            throw null;
        }
        StringBuilder sb = new StringBuilder();
        sb.append(charSequence2);
        int i3 = 0;
        for (Object obj : interfaceC6684) {
            i3++;
            if (i3 > 1) {
                sb.append(charSequence);
            }
            if (i >= 0 && i3 > i) {
                break;
            }
            m7089(sb, obj, (InterfaceC6614<? super Object, ? extends CharSequence>) interfaceC6614);
        }
        if (i >= 0 && i3 > i) {
            sb.append(charSequence4);
        }
        sb.append(charSequence3);
        String string = sb.toString();
        C6635.m9823((Object) string, "joinTo(StringBuilder(), …ed, transform).toString()");
        return string;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m7028(byte[] bArr, boolean z, Charset charset) {
        if (!C6858.f19896.equals(charset) || z) {
            return charset != null ? new String(bArr, charset) : new String(bArr, C6858.f19896);
        }
        try {
            return new String(bArr, "Cp437");
        } catch (UnsupportedEncodingException unused) {
            return new String(bArr);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <A extends Annotation> A m7029(AnnotatedElement annotatedElement, Class<A> cls) {
        return (A) m7030(annotatedElement, cls, new HashSet());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <A extends Annotation> A m7030(AnnotatedElement annotatedElement, Class<A> cls, Set<AnnotatedElement> set) {
        if (set.contains(annotatedElement)) {
            return null;
        }
        set.add(annotatedElement);
        A a = (A) annotatedElement.getAnnotation(cls);
        if (a != null) {
            return a;
        }
        for (Annotation annotation : annotatedElement.getAnnotations()) {
            A a2 = (A) m7030(annotation.annotationType(), cls, set);
            if (a2 != null) {
                return a2;
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static ParameterizedType m7031(Type type, Type... typeArr) {
        if (typeArr.length != 0) {
            return new C6527.C6529(null, type, typeArr);
        }
        throw new IllegalArgumentException("Missing type arguments for " + type);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Type m7032(Type type, Class<?> cls) {
        Type typeM7033 = m7033(type, cls, (Class<?>) Collection.class);
        if (typeM7033 instanceof WildcardType) {
            typeM7033 = ((WildcardType) typeM7033).getUpperBounds()[0];
        }
        return typeM7033 instanceof ParameterizedType ? ((ParameterizedType) typeM7033).getActualTypeArguments()[0] : Object.class;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Type m7033(Type type, Class<?> cls, Class<?> cls2) {
        if (cls2.isAssignableFrom(cls)) {
            return C6527.m9758(type, cls, C6527.m9757(type, cls, cls2));
        }
        throw new IllegalArgumentException();
    }

    /* JADX WARN: Code restructure failed: missing block: B:70:0x00d1, code lost:
    
        return null;
     */
    /* JADX WARN: Removed duplicated region for block: B:34:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x0085 A[LOOP:2: B:24:0x004a->B:49:0x0085, LOOP_END] */
    /* JADX WARN: Removed duplicated region for block: B:61:0x00a3  */
    /* JADX WARN: Removed duplicated region for block: B:90:0x0096 A[EDGE_INSN: B:90:0x0096->B:53:0x0096 BREAK  A[LOOP:2: B:24:0x004a->B:49:0x0085], SYNTHETIC] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final InetAddress m7034(String str, int i, int i2) {
        boolean z;
        int i3;
        int i4;
        int i5 = 16;
        byte[] bArr = new byte[16];
        int i6 = -1;
        boolean z2 = false;
        int i7 = i;
        int i8 = 0;
        int i9 = -1;
        int i10 = -1;
        while (true) {
            if (i7 < i2) {
                if (i8 != i5) {
                    int i11 = i7 + 2;
                    if (i11 <= i2 && C6703.m9884(str, "::", i7, z2, 4)) {
                        if (i9 == i6) {
                            i8 += 2;
                            i9 = i8;
                            if (i11 != i2) {
                                i10 = i11;
                                i7 = i10;
                                int i12 = 0;
                                while (i7 < i2) {
                                }
                                i4 = i7 - i10;
                                if (i4 == 0) {
                                    break;
                                }
                                break;
                                break;
                            }
                            break;
                        }
                        return null;
                    }
                    if (i8 != 0) {
                        if (C6703.m9884(str, ":", i7, z2, 4)) {
                            i7++;
                        } else {
                            if (!C6703.m9884(str, ".", i7, z2, 4)) {
                                return null;
                            }
                            int i13 = i8 - 2;
                            int i14 = i13;
                            loop2: while (true) {
                                if (i10 >= i2) {
                                    z = i14 == i13 + 4;
                                } else {
                                    if (i14 == i5) {
                                        break;
                                    }
                                    if (i14 == i13) {
                                        i3 = i10;
                                        int i15 = 0;
                                        while (i3 < i2) {
                                            char cCharAt = str.charAt(i3);
                                            if (cCharAt >= '0' && cCharAt <= '9') {
                                                if ((i15 == 0 && i10 != i3) || (i15 = ((i15 * 10) + cCharAt) - 48) > 255) {
                                                    break loop2;
                                                }
                                                i3++;
                                            } else {
                                                break;
                                            }
                                        }
                                        if (i3 - i10 != 0) {
                                            break;
                                        }
                                        bArr[i14] = (byte) i15;
                                        i14++;
                                        i10 = i3;
                                        i5 = 16;
                                    } else {
                                        if (str.charAt(i10) != '.') {
                                            break;
                                        }
                                        i10++;
                                        i3 = i10;
                                        int i152 = 0;
                                        while (i3 < i2) {
                                        }
                                        if (i3 - i10 != 0) {
                                        }
                                    }
                                }
                            }
                            if (!z) {
                                return null;
                            }
                            i8 += 2;
                        }
                    }
                    i10 = i7;
                    i7 = i10;
                    int i122 = 0;
                    while (i7 < i2) {
                        int iM10142 = C6943.m10142(str.charAt(i7));
                        if (iM10142 == -1) {
                            break;
                        }
                        i122 = (i122 << 4) + iM10142;
                        i7++;
                    }
                    i4 = i7 - i10;
                    if (i4 == 0 || i4 > 4) {
                        break;
                    }
                    int i16 = i8 + 1;
                    bArr[i8] = (byte) ((i122 >>> 8) & 255);
                    i8 = i16 + 1;
                    bArr[i16] = (byte) (i122 & 255);
                    i5 = 16;
                    i6 = -1;
                    z2 = false;
                } else {
                    return null;
                }
            } else {
                break;
            }
        }
        if (i8 != 16) {
            if (i9 == -1) {
                return null;
            }
            int i17 = i8 - i9;
            System.arraycopy(bArr, i9, bArr, 16 - i17, i17);
            Arrays.fill(bArr, i9, (16 - i8) + i9, (byte) 0);
        }
        return InetAddress.getByAddress(bArr);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static KeyPair m7035(EnumC5530 enumC5530) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
        ECParameterSpec eCParameterSpecM7157 = m7157(enumC5530);
        KeyPairGenerator keyPairGeneratorM8904 = C5534.f15937.m8904("EC");
        keyPairGeneratorM8904.initialize(eCParameterSpecM7157);
        return keyPairGeneratorM8904.generateKeyPair();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static ECPrivateKey m7036(EnumC5530 enumC5530, byte[] bArr) throws NoSuchAlgorithmException {
        return (ECPrivateKey) C5534.f15938.m8904("EC").generatePrivate(new ECPrivateKeySpec(new BigInteger(1, bArr), m7157(enumC5530)));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static ECPublicKey m7037(EnumC5530 enumC5530, byte[] bArr, byte[] bArr2) throws GeneralSecurityException {
        ECParameterSpec eCParameterSpecM7157 = m7157(enumC5530);
        ECPoint eCPoint = new ECPoint(new BigInteger(1, bArr), new BigInteger(1, bArr2));
        m7095(eCPoint, eCParameterSpecM7157.getCurve());
        return (ECPublicKey) C5534.f15938.m8904("EC").generatePublic(new ECPublicKeySpec(eCPoint, eCParameterSpecM7157));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static ECParameterSpec m7038(String str, String str2, String str3, String str4, String str5) {
        BigInteger bigInteger = new BigInteger(str);
        return new ECParameterSpec(new EllipticCurve(new ECFieldFp(bigInteger), bigInteger.subtract(new BigInteger("3")), new BigInteger(str3, 16)), new ECPoint(new BigInteger(str4, 16), new BigInteger(str5, 16)), new BigInteger(str2), 1);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T, C extends Collection<? super T>> C m7039(InterfaceC6684<? extends T> interfaceC6684, C c) {
        if (interfaceC6684 == null) {
            C6635.m9824("$this$toCollection");
            throw null;
        }
        if (c == null) {
            C6635.m9824("destination");
            throw null;
        }
        Iterator<? extends T> it = interfaceC6684.iterator();
        while (it.hasNext()) {
            c.add(it.next());
        }
        return c;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T, C extends Collection<? super T>> C m7040(T[] tArr, C c) {
        if (tArr == null) {
            C6635.m9824("$this$toCollection");
            throw null;
        }
        if (c == null) {
            C6635.m9824("destination");
            throw null;
        }
        for (T t : tArr) {
            c.add(t);
        }
        return c;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <E extends Enum<E>> EnumSet<E> m7041(long j, Class<E> cls) {
        if (!InterfaceC6289.class.isAssignableFrom(cls)) {
            throw new IllegalArgumentException("Can only be used with EnumWithValue enums.");
        }
        EnumSet<E> enumSetNoneOf = EnumSet.noneOf(cls);
        for (E e : cls.getEnumConstants()) {
            if (m7122(j, (InterfaceC6289) e)) {
                enumSetNoneOf.add(e);
            }
        }
        return enumSetNoneOf;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> List<T> m7042(InterfaceC6684<? extends T> interfaceC6684) {
        if (interfaceC6684 == null) {
            C6635.m9824("$this$toList");
            throw null;
        }
        ArrayList arrayList = new ArrayList();
        m7039((InterfaceC6684) interfaceC6684, arrayList);
        return m7184((List) arrayList);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <K, V> Map<K, V> m7043(Map<? extends K, ? extends V> map) {
        if (map == null) {
            C6635.m9824("$this$toSingletonMap");
            throw null;
        }
        Map.Entry<? extends K, ? extends V> next = map.entrySet().iterator().next();
        Map<K, V> mapSingletonMap = Collections.singletonMap(next.getKey(), next.getValue());
        C6635.m9823((Object) mapSingletonMap, "java.util.Collections.singletonMap(key, value)");
        C6635.m9823((Object) mapSingletonMap, "with(entries.iterator().…ingletonMap(key, value) }");
        return mapSingletonMap;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Set<String> m7044(SQLiteDatabase sQLiteDatabase, String str) {
        HashSet hashSet = new HashSet();
        StringBuilder sb = new StringBuilder(C2803.m4895(str, 22));
        sb.append("SELECT * FROM ");
        sb.append(str);
        sb.append(" LIMIT 0");
        Cursor cursorRawQuery = sQLiteDatabase.rawQuery(sb.toString(), null);
        try {
            Collections.addAll(hashSet, cursorRawQuery.getColumnNames());
            return hashSet;
        } finally {
            cursorRawQuery.close();
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <E extends Enum<E>> Set<E> m7045(Set<E> set, Class<E> cls) {
        return set == null ? EnumSet.noneOf(cls) : set;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <K, V> SortedMap<K, V> m7046(Map<? extends K, ? extends V> map, Comparator<? super K> comparator) {
        if (map == null) {
            C6635.m9824("$this$toSortedMap");
            throw null;
        }
        if (comparator == null) {
            C6635.m9824("comparator");
            throw null;
        }
        TreeMap treeMap = new TreeMap(comparator);
        treeMap.putAll(map);
        return treeMap;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC1317 m7047(InterfaceC1363 interfaceC1363, int i) {
        if ((i & 1) != 0) {
            interfaceC1363 = null;
        }
        return new C1383(interfaceC1363);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC1332 m7048(InterfaceC1327 interfaceC1327, InterfaceC6578 interfaceC6578, EnumC1328 enumC1328, InterfaceC6618 interfaceC6618, int i, Object obj) {
        if ((i & 1) != 0) {
            interfaceC6578 = C6583.f19356;
        }
        if ((i & 2) != 0) {
            enumC1328 = EnumC1328.DEFAULT;
        }
        InterfaceC6578 interfaceC6578M2649 = C1322.m2649(interfaceC1327, interfaceC6578);
        C1333 c1374 = enumC1328.m2654() ? new C1374(interfaceC6578M2649, interfaceC6618) : new C1333(interfaceC6578M2649, true);
        c1374.m2609(enumC1328, c1374, (InterfaceC6618<? super C1333, ? super InterfaceC6575<? super T>, ? extends Object>) interfaceC6618);
        return c1374;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC1335 m7049(InterfaceC6578 interfaceC6578) {
        InterfaceC6578.InterfaceC6579 interfaceC6579 = interfaceC6578.get(InterfaceC6576.f19353);
        if (!(interfaceC6579 instanceof InterfaceC1335)) {
            interfaceC6579 = null;
        }
        InterfaceC1335 interfaceC1335 = (InterfaceC1335) interfaceC6579;
        return interfaceC1335 != null ? interfaceC1335 : C1331.f4472;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC1341 m7050(long j, Runnable runnable) {
        return C1331.f4472.mo2655(j, runnable);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC1341 m7051(InterfaceC1363 interfaceC1363, boolean z, boolean z2, InterfaceC6614 interfaceC6614, int i, Object obj) {
        if (obj != null) {
            throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: invokeOnCompletion");
        }
        if ((i & 1) != 0) {
            z = false;
        }
        if ((i & 2) != 0) {
            z2 = true;
        }
        return interfaceC1363.mo2684(z, z2, interfaceC6614);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static synchronized InterfaceC4304 m7052() {
        if (f13593 == null) {
            f13593 = new C4305();
        }
        return f13593;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T> InterfaceC4731<T> m7053(InterfaceC4731<T> interfaceC4731) {
        return ((interfaceC4731 instanceof C4735) || (interfaceC4731 instanceof C4733)) ? interfaceC4731 : interfaceC4731 instanceof Serializable ? new C4733(interfaceC4731) : new C4735(interfaceC4731);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <TResult> AbstractC5062<TResult> m7054(TResult tresult) {
        C5085 c5085 = new C5085();
        c5085.m8562(tresult);
        return c5085;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <TResult> AbstractC5062<TResult> m7055(Executor executor, Callable<TResult> callable) {
        C0567.m1857(executor, (Object) "Executor must not be null");
        C0567.m1857(callable, (Object) "Callback must not be null");
        C5085 c5085 = new C5085();
        executor.execute(new RunnableC5086(c5085, callable));
        return c5085;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C5445 m7056(String str, String str2, String str3, int i, boolean z) {
        C5445.C5447 c5447Mo9401 = C5445.f15795.mo9401();
        c5447Mo9401.m9407();
        C5445.m8841((C5445) c5447Mo9401.f16917, str2);
        c5447Mo9401.m9407();
        C5445.m8843((C5445) c5447Mo9401.f16917, "type.googleapis.com/google.crypto.tink." + str3);
        c5447Mo9401.m9407();
        ((C5445) c5447Mo9401.f16917).f15799 = i;
        c5447Mo9401.m9407();
        ((C5445) c5447Mo9401.f16917).f15800 = z;
        c5447Mo9401.m9407();
        C5445.m8842((C5445) c5447Mo9401.f16917, str);
        return c5447Mo9401.m9405();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static EnumC5530 m7057(EnumC5413 enumC5413) throws GeneralSecurityException {
        int iOrdinal = enumC5413.ordinal();
        if (iOrdinal == 1) {
            return EnumC5530.NIST_P256;
        }
        if (iOrdinal == 2) {
            return EnumC5530.NIST_P384;
        }
        if (iOrdinal == 3) {
            return EnumC5530.NIST_P521;
        }
        throw new GeneralSecurityException("unknown curve type: " + enumC5413);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static EnumC5531 m7058(EnumC5379 enumC5379) throws GeneralSecurityException {
        int iOrdinal = enumC5379.ordinal();
        if (iOrdinal == 1) {
            return EnumC5531.IEEE_P1363;
        }
        if (iOrdinal == 2) {
            return EnumC5531.DER;
        }
        throw new GeneralSecurityException("unknown ECDSA encoding: " + enumC5379);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static EnumC5532 m7059(EnumC5355 enumC5355) throws GeneralSecurityException {
        int iOrdinal = enumC5355.ordinal();
        if (iOrdinal == 1) {
            return EnumC5532.UNCOMPRESSED;
        }
        if (iOrdinal == 2) {
            return EnumC5532.COMPRESSED;
        }
        if (iOrdinal == 3) {
            return EnumC5532.DO_NOT_USE_CRUNCHY_UNCOMPRESSED;
        }
        throw new GeneralSecurityException("unknown point format: " + enumC5355);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static EnumC5543 m7060(EnumC5422 enumC5422) throws GeneralSecurityException {
        int iOrdinal = enumC5422.ordinal();
        if (iOrdinal == 2) {
            return EnumC5543.SHA384;
        }
        if (iOrdinal == 3) {
            return EnumC5543.SHA256;
        }
        if (iOrdinal == 4) {
            return EnumC5543.SHA512;
        }
        StringBuilder sbM4889 = C2803.m4889("unsupported hash type: ");
        sbM4889.append(enumC5422.name());
        throw new GeneralSecurityException(sbM4889.toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C5583<?> m7061(String str, String str2) {
        final C6001 c6001 = new C6001(str, str2);
        C5583.C5585 c5585M8945 = C5583.m8945(AbstractC6005.class);
        c5585M8945.f16025 = 1;
        c5585M8945.m8949(new InterfaceC5589(c6001) { // from class: ދ.ހ.ށ.ރ.ހ

            /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
            public final Object f16015;

            {
                this.f16015 = c6001;
            }

            @Override // p138.p176.p291.p295.InterfaceC5589
            /* JADX INFO: renamed from: ֏ */
            public Object mo8939(InterfaceC5586 interfaceC5586) {
                return this.f16015;
            }
        });
        return c5585M8945.m8951();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C6157 m7062(Buffer<?> buffer) {
        return new C6157(buffer.m1476() | (buffer.m1476() << 32));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <E extends InterfaceC6289<?>> E m7063(long j, Class<E> cls, E e) {
        for (E e2 : cls.getEnumConstants()) {
            if (e2.getValue() == j) {
                return e2;
            }
        }
        return e;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> InterfaceC6538<T> m7064(EnumC6539 enumC6539, InterfaceC6603<? extends T> interfaceC6603) {
        DefaultConstructorMarker defaultConstructorMarker = null;
        if (enumC6539 == null) {
            C6635.m9824("mode");
            throw null;
        }
        if (interfaceC6603 == null) {
            C6635.m9824("initializer");
            throw null;
        }
        int iOrdinal = enumC6539.ordinal();
        int i = 2;
        if (iOrdinal == 0) {
            return new C6547(interfaceC6603, defaultConstructorMarker, i, defaultConstructorMarker);
        }
        if (iOrdinal == 1) {
            return new C6545(interfaceC6603);
        }
        if (iOrdinal == 2) {
            return new C6550(interfaceC6603);
        }
        throw new NoWhenBranchMatchedException();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> InterfaceC6538<T> m7065(InterfaceC6603<? extends T> interfaceC6603) {
        DefaultConstructorMarker defaultConstructorMarker = null;
        if (interfaceC6603 != null) {
            return new C6547(interfaceC6603, defaultConstructorMarker, 2, defaultConstructorMarker);
        }
        C6635.m9824("initializer");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> InterfaceC6575<T> m7066(InterfaceC6575<? super T> interfaceC6575) {
        if (interfaceC6575 == null) {
            C6635.m9824("$this$intercepted");
            throw null;
        }
        AbstractC6591 abstractC6591 = (AbstractC6591) (interfaceC6575 instanceof AbstractC6591 ? interfaceC6575 : null);
        if (abstractC6591 != null && (interfaceC6575 = (InterfaceC6575<T>) abstractC6591.f19371) == null) {
            InterfaceC6576 interfaceC6576 = (InterfaceC6576) abstractC6591.mo2607().get(InterfaceC6576.f19353);
            if (interfaceC6576 == null || (interfaceC6575 = (InterfaceC6575<T>) interfaceC6576.mo2651(abstractC6591)) == null) {
                interfaceC6575 = abstractC6591;
            }
            abstractC6591.f19371 = interfaceC6575;
        }
        return (InterfaceC6575<T>) interfaceC6575;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <R, T> InterfaceC6575<C6549> m7067(InterfaceC6618<? super R, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618, R r, InterfaceC6575<? super T> interfaceC6575) {
        if (interfaceC6618 == 0) {
            C6635.m9824("$this$createCoroutineUnintercepted");
            throw null;
        }
        if (interfaceC6575 == null) {
            C6635.m9824("completion");
            throw null;
        }
        if (interfaceC6618 instanceof AbstractC6589) {
            return ((AbstractC6589) interfaceC6618).mo837(r, interfaceC6575);
        }
        InterfaceC6578 interfaceC6578Mo2607 = interfaceC6575.mo2607();
        return interfaceC6578Mo2607 == C6583.f19356 ? new C6587(interfaceC6575, interfaceC6575, interfaceC6618, r) : new C6588(interfaceC6575, interfaceC6578Mo2607, interfaceC6575, interfaceC6578Mo2607, interfaceC6618, r);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC6578 m7068(InterfaceC6578 interfaceC6578, InterfaceC6578 interfaceC65782) {
        if (interfaceC65782 != null) {
            return interfaceC65782 == C6583.f19356 ? interfaceC6578 : (InterfaceC6578) interfaceC65782.fold(interfaceC6578, C6582.f19355);
        }
        C6635.m9824("context");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final C6662 m7069(Collection<?> collection) {
        if (collection != null) {
            return new C6662(0, collection.size() - 1);
        }
        C6635.m9824("$this$indices");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> InterfaceC6684<T> m7070(Iterator<? extends T> it) {
        if (it != null) {
            C6685 c6685 = new C6685(it);
            return c6685 instanceof C6678 ? c6685 : new C6678(c6685);
        }
        C6635.m9824("$this$asSequence");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T, R> InterfaceC6684<R> m7071(InterfaceC6684<? extends T> interfaceC6684, InterfaceC6614<? super T, ? extends R> interfaceC6614) {
        if (interfaceC6684 == null) {
            C6635.m9824("$this$map");
            throw null;
        }
        if (interfaceC6614 != null) {
            return new C6687(interfaceC6684, interfaceC6614);
        }
        C6635.m9824("transform");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static AbstractC6797 m7072(C6828 c6828) {
        return c6828.f19786.getName().endsWith(".zip.001") ? new C6795(c6828.f19786, true, c6828.f19781.f19751) : new C6802(c6828.f19786, c6828.f19784, c6828.f19781.f19751);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C6822 m7073(C6828 c6828, String str) throws ZipException {
        C6822 c6822M7162 = m7162(c6828, str);
        if (c6822M7162 != null) {
            return c6822M7162;
        }
        String strReplaceAll = str.replaceAll("\\\\", "/");
        C6822 c6822M71622 = m7162(c6828, strReplaceAll);
        return c6822M71622 == null ? m7162(c6828, strReplaceAll.replaceAll("/", "\\\\")) : c6822M71622;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static EnumC6834 m7074(C6823 c6823) {
        EnumC6834 enumC6834 = c6823.f19729;
        if (enumC6834 != EnumC6834.AES_INTERNAL_ONLY) {
            return enumC6834;
        }
        C6815 c6815 = c6823.f19742;
        if (c6815 != null) {
            return c6815.f19726;
        }
        throw new RuntimeException("AesExtraDataRecord not present in local header for aes encrypted data");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7106 m7075(InterfaceC7127 interfaceC7127) {
        if (interfaceC7127 != null) {
            return new C7119(interfaceC7127);
        }
        C6635.m9824("$this$buffer");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7107 m7076(InterfaceC7129 interfaceC7129) {
        if (interfaceC7129 != null) {
            return new C7121(interfaceC7129);
        }
        C6635.m9824("$this$buffer");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC7127 m7077(File file, boolean z, int i, Object obj) {
        if ((i & 1) != 0) {
            z = false;
        }
        if (file != null) {
            return m7078((OutputStream) new FileOutputStream(file, z));
        }
        C6635.m9824("$this$sink");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7127 m7078(OutputStream outputStream) {
        if (outputStream != null) {
            return new C7118(outputStream, new C7130());
        }
        C6635.m9824("$this$sink");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7127 m7079(Socket socket) throws IOException {
        if (socket == null) {
            C6635.m9824("$this$sink");
            throw null;
        }
        C7128 c7128 = new C7128(socket);
        OutputStream outputStream = socket.getOutputStream();
        C6635.m9823((Object) outputStream, "getOutputStream()");
        return new C7101(c7128, new C7118(outputStream, c7128));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7129 m7080(File file) {
        if (file != null) {
            return m7081((InputStream) new FileInputStream(file));
        }
        C6635.m9824("$this$source");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final InterfaceC7129 m7081(InputStream inputStream) {
        if (inputStream != null) {
            return new C7115(inputStream, new C7130());
        }
        C6635.m9824("$this$source");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m7082(byte b, byte b2, byte b3, byte b4, char[] cArr, int i) throws zzft {
        if (!m7168(b2)) {
            if ((((b2 + 112) + (b << 28)) >> 30) == 0 && !m7168(b3) && !m7168(b4)) {
                int i2 = ((b & 7) << 18) | ((b2 & 63) << 12) | ((b3 & 63) << 6) | (b4 & 63);
                cArr[i] = (char) ((i2 >>> 10) + 55232);
                cArr[i + 1] = (char) ((i2 & 1023) + 56320);
                return;
            }
        }
        throw zzft.m1407();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m7083(byte b, byte b2, byte b3, char[] cArr, int i) throws zzft {
        if (m7168(b2) || ((b == -32 && b2 < -96) || ((b == -19 && b2 >= -96) || m7168(b3)))) {
            throw zzft.m1407();
        }
        cArr[i] = (char) (((b & 15) << 12) | ((b2 & 63) << 6) | (b3 & 63));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m7084(byte b, byte b2, char[] cArr, int i) throws zzft {
        if (b < -62 || m7168(b2)) {
            throw zzft.m1407();
        }
        cArr[i] = (char) (((b & 31) << 6) | (b2 & 63));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7085(int i, int i2, int i3) {
        if (i2 > i3) {
            throw new IllegalArgumentException("fromIndex (" + i2 + ") is greater than toIndex (" + i3 + ").");
        }
        if (i2 < 0) {
            throw new IndexOutOfBoundsException(C2803.m4872("fromIndex (", i2, ") is less than zero."));
        }
        if (i3 <= i) {
            return;
        }
        throw new IndexOutOfBoundsException("toIndex (" + i3 + ") is greater than size (" + i + ").");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7086(long j, long j2, long j3) {
        if ((j2 | j3) < 0 || j2 > j || j - j2 < j3) {
            throw new ArrayIndexOutOfBoundsException("size=" + j + " offset=" + j2 + " byteCount=" + j3);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7087(Bundle bundle, Object obj) {
        if (obj instanceof Double) {
            bundle.putDouble("value", ((Double) obj).doubleValue());
        } else if (obj instanceof Long) {
            bundle.putLong("value", ((Long) obj).longValue());
        } else {
            bundle.putString("value", obj.toString());
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7088(Closeable closeable, Throwable th) throws IOException {
        if (closeable == null) {
            return;
        }
        if (th == null) {
            closeable.close();
            return;
        }
        try {
            closeable.close();
        } catch (Throwable th2) {
            m7093(th, th2);
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> void m7089(Appendable appendable, T t, InterfaceC6614<? super T, ? extends CharSequence> interfaceC6614) throws IOException {
        if (appendable == null) {
            C6635.m9824("$this$appendElement");
            throw null;
        }
        if (interfaceC6614 != null) {
            appendable.append(interfaceC6614.mo1606(t));
            return;
        }
        if (t != 0 ? t instanceof CharSequence : true) {
            appendable.append((CharSequence) t);
        } else if (t instanceof Character) {
            appendable.append(((Character) t).charValue());
        } else {
            appendable.append(String.valueOf(t));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7090(AutoCloseable autoCloseable, Throwable th) throws Exception {
        if (autoCloseable == null) {
            return;
        }
        if (th == null) {
            autoCloseable.close();
            return;
        }
        try {
            autoCloseable.close();
        } catch (Throwable th2) {
            th.addSuppressed(th2);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7091(Class cls, Collection<Class> collection) {
        for (Class<?> cls2 : cls.getInterfaces()) {
            collection.add(cls2);
            m7091((Class) cls2, collection);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7092(StringBuilder sb, int i, String str, Object obj) {
        if (obj instanceof List) {
            Iterator it = ((List) obj).iterator();
            while (it.hasNext()) {
                m7092(sb, i, str, it.next());
            }
            return;
        }
        sb.append('\n');
        for (int i2 = 0; i2 < i; i2++) {
            sb.append(' ');
        }
        sb.append(str);
        if (obj instanceof String) {
            sb.append(": \"");
            sb.append(m7026(AbstractC6013.m9353((String) obj)));
            sb.append('\"');
            return;
        }
        if (obj instanceof AbstractC6013) {
            sb.append(": \"");
            sb.append(m7026((AbstractC6013) obj));
            sb.append('\"');
        } else {
            if (!(obj instanceof AbstractC6028)) {
                sb.append(": ");
                sb.append(obj.toString());
                return;
            }
            sb.append(" {");
            m7108((AbstractC6028) obj, sb, i + 2);
            sb.append("\n");
            for (int i3 = 0; i3 < i; i3++) {
                sb.append(' ');
            }
            sb.append("}");
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7093(Throwable th, Throwable th2) {
        if (th == null) {
            C6635.m9824("$this$addSuppressed");
            throw null;
        }
        if (th2 != null) {
            C6600.f19381.mo9808(th, th2);
        } else {
            C6635.m9824("exception");
            throw null;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7094(ByteBuffer byteBuffer, ByteBuffer byteBuffer2, ByteBuffer byteBuffer3, int i) {
        if (i < 0 || byteBuffer2.remaining() < i || byteBuffer3.remaining() < i || byteBuffer.remaining() < i) {
            throw new IllegalArgumentException("That combination of buffers, offsets and length to xor result in out-of-bond accesses.");
        }
        for (int i2 = 0; i2 < i; i2++) {
            byteBuffer.put((byte) (byteBuffer2.get() ^ byteBuffer3.get()));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7095(ECPoint eCPoint, EllipticCurve ellipticCurve) throws GeneralSecurityException {
        ECField field = ellipticCurve.getField();
        if (!(field instanceof ECFieldFp)) {
            throw new GeneralSecurityException("Only curves over prime order fields are supported");
        }
        BigInteger p = ((ECFieldFp) field).getP();
        BigInteger affineX = eCPoint.getAffineX();
        BigInteger affineY = eCPoint.getAffineY();
        if (affineX == null || affineY == null) {
            throw new GeneralSecurityException("point is at infinity");
        }
        if (affineX.signum() == -1 || affineX.compareTo(p) >= 0) {
            throw new GeneralSecurityException("x is out of range");
        }
        if (affineY.signum() == -1 || affineY.compareTo(p) >= 0) {
            throw new GeneralSecurityException("y is out of range");
        }
        if (!affineY.multiply(affineY).mod(p).equals(affineX.multiply(affineX).add(ellipticCurve.getA()).multiply(affineX).add(ellipticCurve.getB()).mod(p))) {
            throw new GeneralSecurityException("Point is not on curve");
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> void m7096(List<T> list, Comparator<? super T> comparator) {
        if (list == null) {
            C6635.m9824("$this$sortWith");
            throw null;
        }
        if (comparator == null) {
            C6635.m9824("comparator");
            throw null;
        }
        if (list.size() > 1) {
            Collections.sort(list, comparator);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> void m7097(AbstractC1339<? super T> abstractC1339, InterfaceC6575<? super T> interfaceC6575, int i) {
        Object objMo2631;
        Object objMo2633 = abstractC1339.mo2633();
        C1318 c1318 = (C1318) (!(objMo2633 instanceof C1318) ? null : objMo2633);
        Throwable th = c1318 != null ? c1318.f4456 : null;
        Throwable th2 = th != null ? th : null;
        if (th2 != null) {
            C6542.C6543 c6543 = C6542.f19318;
            objMo2631 = m7010(th2);
        } else {
            C6542.C6543 c65432 = C6542.f19318;
            objMo2631 = abstractC1339.mo2631(objMo2633);
        }
        if (i == 0) {
            interfaceC6575.mo2608(objMo2631);
            return;
        }
        if (i == 1) {
            C1337.m2663(interfaceC6575, objMo2631);
            return;
        }
        if (i != 2) {
            throw new IllegalStateException(C2803.m4871("Invalid mode ", i).toString());
        }
        if (interfaceC6575 == null) {
            throw new TypeCastException("null cannot be cast to non-null type kotlinx.coroutines.DispatchedContinuation<T>");
        }
        C1336 c1336 = (C1336) interfaceC6575;
        InterfaceC6578 interfaceC6578Mo2607 = c1336.mo2607();
        Object objM2563 = C1273.m2563(interfaceC6578Mo2607, c1336.f4480);
        try {
            c1336.f4482.mo2608(objMo2631);
        } finally {
            C1273.m2562(interfaceC6578Mo2607, objM2563);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m7098(InterfaceC1363 interfaceC1363, CancellationException cancellationException, int i, Object obj) {
        if (obj != null) {
            throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: cancel");
        }
        if ((i & 1) != 0) {
            cancellationException = null;
        }
        interfaceC1363.mo2685(cancellationException);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7099(InterfaceC1416<?> interfaceC1416, Throwable th) {
        CancellationException cancellationException = null;
        if (th != null) {
            cancellationException = (CancellationException) (th instanceof CancellationException ? th : null);
            if (cancellationException == null) {
                cancellationException = new CancellationException("Channel was consumed, consumer had failed");
                cancellationException.initCause(th);
            }
        }
        interfaceC1416.mo2730(cancellationException);
    }

    /* JADX WARN: Removed duplicated region for block: B:84:0x01e7  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x01ea  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void m7100(InterfaceC4450 interfaceC4450, StringBuilder sb, int i) {
        boolean zEquals;
        HashMap map = new HashMap();
        HashMap map2 = new HashMap();
        TreeSet<String> treeSet = new TreeSet();
        for (Method method : interfaceC4450.getClass().getDeclaredMethods()) {
            map2.put(method.getName(), method);
            if (method.getParameterTypes().length == 0) {
                map.put(method.getName(), method);
                if (method.getName().startsWith("get")) {
                    treeSet.add(method.getName());
                }
            }
        }
        for (String str : treeSet) {
            String strSubstring = str.startsWith("get") ? str.substring(3) : str;
            boolean zBooleanValue = true;
            if (strSubstring.endsWith("List") && !strSubstring.endsWith("OrBuilderList") && !strSubstring.equals("List")) {
                String strValueOf = String.valueOf(strSubstring.substring(0, 1).toLowerCase());
                String strValueOf2 = String.valueOf(strSubstring.substring(1, strSubstring.length() - 4));
                String strConcat = strValueOf2.length() != 0 ? strValueOf.concat(strValueOf2) : new String(strValueOf);
                Method method2 = (Method) map.get(str);
                if (method2 != null && method2.getReturnType().equals(List.class)) {
                    m7164(sb, i, m7205(strConcat), AbstractC4421.m7352(method2, interfaceC4450, new Object[0]));
                }
            }
            if (strSubstring.endsWith("Map") && !strSubstring.equals("Map")) {
                String strValueOf3 = String.valueOf(strSubstring.substring(0, 1).toLowerCase());
                String strValueOf4 = String.valueOf(strSubstring.substring(1, strSubstring.length() - 3));
                String strConcat2 = strValueOf4.length() != 0 ? strValueOf3.concat(strValueOf4) : new String(strValueOf3);
                Method method3 = (Method) map.get(str);
                if (method3 != null && method3.getReturnType().equals(Map.class) && !method3.isAnnotationPresent(Deprecated.class) && Modifier.isPublic(method3.getModifiers())) {
                    m7164(sb, i, m7205(strConcat2), AbstractC4421.m7352(method3, interfaceC4450, new Object[0]));
                }
            }
            if (((Method) map2.get(strSubstring.length() != 0 ? "set".concat(strSubstring) : new String("set"))) != null) {
                if (strSubstring.endsWith("Bytes")) {
                    String strValueOf5 = String.valueOf(strSubstring.substring(0, strSubstring.length() - 5));
                    if (!map.containsKey(strValueOf5.length() != 0 ? "get".concat(strValueOf5) : new String("get"))) {
                    }
                }
                String strValueOf6 = String.valueOf(strSubstring.substring(0, 1).toLowerCase());
                String strValueOf7 = String.valueOf(strSubstring.substring(1));
                String strConcat3 = strValueOf7.length() != 0 ? strValueOf6.concat(strValueOf7) : new String(strValueOf6);
                Method method4 = (Method) map.get(strSubstring.length() != 0 ? "get".concat(strSubstring) : new String("get"));
                Method method5 = (Method) map.get(strSubstring.length() != 0 ? "has".concat(strSubstring) : new String("has"));
                if (method4 != null) {
                    Object objM7352 = AbstractC4421.m7352(method4, interfaceC4450, new Object[0]);
                    if (method5 == null) {
                        if (objM7352 instanceof Boolean) {
                            zEquals = !((Boolean) objM7352).booleanValue();
                        } else if (objM7352 instanceof Integer) {
                            if (((Integer) objM7352).intValue() == 0) {
                            }
                        } else if (objM7352 instanceof Float) {
                            if (((Float) objM7352).floatValue() == 0.0f) {
                            }
                        } else if (objM7352 instanceof Double) {
                            if (((Double) objM7352).doubleValue() == 0.0d) {
                            }
                        } else if (objM7352 instanceof String) {
                            zEquals = objM7352.equals("");
                        } else if (objM7352 instanceof AbstractC4435) {
                            zEquals = objM7352.equals(AbstractC4435.f13786);
                        } else if (!(objM7352 instanceof InterfaceC4450) ? !(objM7352 instanceof Enum) || ((Enum) objM7352).ordinal() != 0 : objM7352 != ((InterfaceC4450) objM7352).mo7361()) {
                        }
                        if (zEquals) {
                            zBooleanValue = false;
                        }
                    } else {
                        zBooleanValue = ((Boolean) AbstractC4421.m7352(method5, interfaceC4450, new Object[0])).booleanValue();
                    }
                    if (zBooleanValue) {
                        m7164(sb, i, m7205(strConcat3), objM7352);
                    }
                }
            }
        }
        if (interfaceC4450 instanceof AbstractC4421.AbstractC4425) {
            Iterator<Map.Entry<T, Object>> itM7424 = ((AbstractC4421.AbstractC4425) interfaceC4450).zzc.m7424();
            if (itM7424.hasNext()) {
                throw new NoSuchMethodError();
            }
        }
        C4486 c4486 = ((AbstractC4421) interfaceC4450).zzb;
        if (c4486 != null) {
            for (int i2 = 0; i2 < c4486.f13884; i2++) {
                m7164(sb, i, String.valueOf(c4486.f13885[i2] >>> 3), c4486.f13886[i2]);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7101(C4794 c4794, SQLiteDatabase sQLiteDatabase) {
        if (c4794 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        }
        File file = new File(sQLiteDatabase.getPath());
        if (!file.setReadable(false, false)) {
            c4794.f14447.m8034("Failed to turn off database read permission");
        }
        if (!file.setWritable(false, false)) {
            c4794.f14447.m8034("Failed to turn off database write permission");
        }
        if (!file.setReadable(true, true)) {
            c4794.f14447.m8034("Failed to turn on database read permission for owner");
        }
        if (file.setWritable(true, true)) {
            return;
        }
        c4794.f14447.m8034("Failed to turn on database write permission for owner");
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7102(C4794 c4794, SQLiteDatabase sQLiteDatabase, String str, String str2, String str3, String[] strArr) {
        boolean zMoveToFirst;
        if (c4794 == null) {
            throw new IllegalArgumentException("Monitor must not be null");
        }
        Cursor cursorQuery = null;
        try {
            try {
                cursorQuery = sQLiteDatabase.query("SQLITE_MASTER", new String[]{"name"}, "name=?", new String[]{str}, null, null, null);
                zMoveToFirst = cursorQuery.moveToFirst();
                cursorQuery.close();
            } catch (SQLiteException e) {
                c4794.f14447.m8036("Error querying for table", str, e);
                if (cursorQuery != null) {
                    cursorQuery.close();
                }
                zMoveToFirst = false;
            }
            if (!zMoveToFirst) {
                sQLiteDatabase.execSQL(str2);
            }
            try {
                Set<String> setM7044 = m7044(sQLiteDatabase, str);
                for (String str4 : str3.split(",")) {
                    if (!((HashSet) setM7044).remove(str4)) {
                        StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 35 + String.valueOf(str4).length());
                        sb.append("Table ");
                        sb.append(str);
                        sb.append(" is missing required column: ");
                        sb.append(str4);
                        throw new SQLiteException(sb.toString());
                    }
                }
                if (strArr != null) {
                    for (int i = 0; i < strArr.length; i += 2) {
                        if (!((HashSet) setM7044).remove(strArr[i])) {
                            sQLiteDatabase.execSQL(strArr[i + 1]);
                        }
                    }
                }
                if (((HashSet) setM7044).isEmpty()) {
                    return;
                }
                c4794.f14447.m8036("Table has extra columns. table, columns", str, TextUtils.join(", ", setM7044));
            } catch (SQLiteException e2) {
                c4794.f14444.m8035("Failed to verify columns on table that was just created", str);
                throw e2;
            }
        } catch (Throwable th) {
            if (cursorQuery != null) {
                cursorQuery.close();
            }
            throw th;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7103(C5257 c5257) throws GeneralSecurityException {
        m7060(c5257.m8736());
        if (c5257.m8736() != c5257.m8735()) {
            throw new GeneralSecurityException("MGF1 hash is different from signature hash");
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7104(C5267 c5267) throws GeneralSecurityException {
        m7060(c5267.m8739());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7105(C5271 c5271) throws GeneralSecurityException {
        for (C5445 c5445 : c5271.f15525) {
            if (c5445.f15798.isEmpty()) {
                throw new GeneralSecurityException("Missing type_url.");
            }
            if (c5445.f15797.isEmpty()) {
                throw new GeneralSecurityException("Missing primitive_name.");
            }
            if (c5445.f15801.isEmpty()) {
                throw new GeneralSecurityException("Missing catalogue_name.");
            }
            InterfaceC5177<?> interfaceC5177M8692 = C5197.m8692(c5445.f15801);
            C5197.m8701(interfaceC5177M8692.mo8650());
            C5197.m8700(interfaceC5177M8692.mo8649(c5445.f15798, c5445.f15797, c5445.f15799), c5445.f15800);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7106(C5367 c5367) throws GeneralSecurityException {
        EnumC5379 enumC5379M8791 = c5367.m8791();
        EnumC5422 enumC5422M8792 = c5367.m8792();
        EnumC5413 enumC5413M8790 = c5367.m8790();
        int iOrdinal = enumC5379M8791.ordinal();
        if (iOrdinal != 1 && iOrdinal != 2) {
            throw new GeneralSecurityException("unsupported signature encoding");
        }
        int iOrdinal2 = enumC5413M8790.ordinal();
        if (iOrdinal2 == 1) {
            if (enumC5422M8792 != EnumC5422.SHA256) {
                throw new GeneralSecurityException("Invalid ECDSA parameters");
            }
        } else if (iOrdinal2 == 2) {
            if (enumC5422M8792 != EnumC5422.SHA384 && enumC5422M8792 != EnumC5422.SHA512) {
                throw new GeneralSecurityException("Invalid ECDSA parameters");
            }
        } else {
            if (iOrdinal2 != 3) {
                throw new GeneralSecurityException("Invalid ECDSA parameters");
            }
            if (enumC5422M8792 != EnumC5422.SHA512) {
                throw new GeneralSecurityException("Invalid ECDSA parameters");
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7107(C5388 c5388) throws GeneralSecurityException {
        m7157(m7057(c5388.m8805().m8813()));
        m7155(c5388.m8805().m8814());
        if (c5388.m8804() == EnumC5355.UNKNOWN_FORMAT) {
            throw new GeneralSecurityException("unknown EC point format");
        }
        C5197.m8703(c5388.m8803().m8801());
    }

    /* JADX WARN: Removed duplicated region for block: B:66:0x01b5  */
    /* JADX WARN: Removed duplicated region for block: B:67:0x01b7  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void m7108(InterfaceC6049 interfaceC6049, StringBuilder sb, int i) {
        boolean zEquals;
        HashMap map = new HashMap();
        HashMap map2 = new HashMap();
        TreeSet treeSet = new TreeSet();
        for (Method method : interfaceC6049.getClass().getDeclaredMethods()) {
            map2.put(method.getName(), method);
            if (method.getParameterTypes().length == 0) {
                map.put(method.getName(), method);
                if (method.getName().startsWith("get")) {
                    treeSet.add(method.getName());
                }
            }
        }
        Iterator it = treeSet.iterator();
        while (it.hasNext()) {
            String strReplaceFirst = ((String) it.next()).replaceFirst("get", "");
            boolean zBooleanValue = true;
            if (strReplaceFirst.endsWith("List") && !strReplaceFirst.endsWith("OrBuilderList")) {
                String str = strReplaceFirst.substring(0, 1).toLowerCase() + strReplaceFirst.substring(1, strReplaceFirst.length() - 4);
                Method method2 = (Method) map.get("get" + strReplaceFirst);
                if (method2 != null) {
                    m7092(sb, i, m7181(str), AbstractC6028.m9391(method2, interfaceC6049, new Object[0]));
                }
            }
            if (((Method) map2.get("set" + strReplaceFirst)) != null) {
                if (strReplaceFirst.endsWith("Bytes")) {
                    StringBuilder sbM4889 = C2803.m4889("get");
                    sbM4889.append(strReplaceFirst.substring(0, strReplaceFirst.length() - 5));
                    if (map.containsKey(sbM4889.toString())) {
                    }
                }
                String str2 = strReplaceFirst.substring(0, 1).toLowerCase() + strReplaceFirst.substring(1);
                Method method3 = (Method) map.get("get" + strReplaceFirst);
                Method method4 = (Method) map.get("has" + strReplaceFirst);
                if (method3 != null) {
                    Object objM9391 = AbstractC6028.m9391(method3, interfaceC6049, new Object[0]);
                    if (method4 == null) {
                        if (objM9391 instanceof Boolean) {
                            zEquals = !((Boolean) objM9391).booleanValue();
                        } else if (objM9391 instanceof Integer) {
                            zEquals = ((Integer) objM9391).intValue() == 0;
                        } else if (objM9391 instanceof Float) {
                            if (((Float) objM9391).floatValue() == 0.0f) {
                            }
                        } else if (objM9391 instanceof Double) {
                            if (((Double) objM9391).doubleValue() == 0.0d) {
                            }
                        } else if (objM9391 instanceof String) {
                            zEquals = objM9391.equals("");
                        } else if (objM9391 instanceof AbstractC6013) {
                            zEquals = objM9391.equals(AbstractC6013.f16886);
                        } else if (!(objM9391 instanceof InterfaceC6049) ? !(objM9391 instanceof Enum) || ((Enum) objM9391).ordinal() != 0 : objM9391 != ((InterfaceC6049) objM9391).mo9400()) {
                        }
                        if (zEquals) {
                            zBooleanValue = false;
                        }
                    } else {
                        zBooleanValue = ((Boolean) AbstractC6028.m9391(method4, interfaceC6049, new Object[0])).booleanValue();
                    }
                    if (zBooleanValue) {
                        m7092(sb, i, m7181(str2), objM9391);
                    }
                }
            }
        }
        if (interfaceC6049 instanceof AbstractC6028.AbstractC6034) {
            C6026<AbstractC6028.C6036> c6026 = ((AbstractC6028.AbstractC6034) interfaceC6049).f16922;
            Iterator c6047 = c6026.f16912 ? new C6044.C6047(c6026.f16910.entrySet().iterator()) : c6026.f16910.entrySet().iterator();
            while (c6047.hasNext()) {
                Map.Entry entry = (Map.Entry) c6047.next();
                if (((AbstractC6028.C6036) entry.getKey()) == null) {
                    throw null;
                }
                m7092(sb, i, "[0]", entry.getValue());
            }
        }
        C6062 c6062 = ((AbstractC6028) interfaceC6049).f16913;
        if (c6062 != null) {
            for (int i2 = 0; i2 < c6062.f16959; i2++) {
                m7092(sb, i, String.valueOf(c6062.f16960[i2] >>> 3), c6062.f16961[i2]);
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7109(C6157 c6157, Buffer<?> buffer) {
        long j = c6157.f17123;
        buffer.f2169.mo9533(buffer, j & 4294967295L);
        buffer.f2169.mo9533(buffer, (j >> 32) & 4294967295L);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7110(InterfaceC6575<? super C6549> interfaceC6575, InterfaceC6575<?> interfaceC65752) {
        try {
            InterfaceC6575 interfaceC6575M7066 = m7066((InterfaceC6575) interfaceC6575);
            C6542.C6543 c6543 = C6542.f19318;
            C1337.m2663(interfaceC6575M7066, C6549.f19328);
        } catch (Throwable th) {
            C6542.C6543 c65432 = C6542.f19318;
            interfaceC65752.mo2608(m7010(th));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final void m7111(InterfaceC6578 interfaceC6578, Throwable th) {
        try {
            CoroutineExceptionHandler coroutineExceptionHandler = (CoroutineExceptionHandler) interfaceC6578.get(CoroutineExceptionHandler.f2178);
            if (coroutineExceptionHandler != null) {
                coroutineExceptionHandler.handleException(interfaceC6578, th);
            } else {
                C1326.m2653(interfaceC6578, th);
            }
        } catch (Throwable th2) {
            if (th != th2) {
                RuntimeException runtimeException = new RuntimeException("Exception while trying to handle coroutine exception", th2);
                m7093((Throwable) runtimeException, th);
                th = runtimeException;
            }
            C1326.m2653(interfaceC6578, th);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m7112(InterfaceC6578 interfaceC6578, CancellationException cancellationException, int i, Object obj) {
        if ((i & 1) != 0) {
            cancellationException = null;
        }
        InterfaceC1363 interfaceC1363 = (InterfaceC1363) interfaceC6578.get(InterfaceC1363.f4514);
        if (interfaceC1363 != null) {
            interfaceC1363.mo2685(cancellationException);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x002f  */
    /* JADX WARN: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static void m7113(InterfaceC6727<Method> interfaceC6727, Class<?> cls, ArrayList<Method> arrayList) {
        int i;
        try {
        } catch (Exception unused) {
        }
        for (Method method : cls.getDeclaredMethods()) {
            if (((C6758.C6759) interfaceC6727) == null) {
                throw null;
            }
            if (m7029((AnnotatedElement) method, InterfaceC6752.class) != null) {
                arrayList.add(method);
            }
            if (cls.equals(Object.class)) {
                m7113(interfaceC6727, cls.getSuperclass(), arrayList);
                return;
            }
            return;
        }
        if (cls.equals(Object.class)) {
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7114(C6822 c6822, File file) {
        try {
            Path path = file.toPath();
            C6857.m10004(path, c6822.f19763);
            long j = c6822.f19730;
            if (j <= 0 || !Files.exists(path, new LinkOption[0])) {
                return;
            }
            try {
                Files.setLastModifiedTime(path, FileTime.fromMillis(m6996(j)));
            } catch (Exception unused) {
            }
        } catch (NoSuchMethodError unused2) {
            file.setLastModified(m6996(c6822.f19730));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final /* synthetic */ void m7115(AbstractC6950 abstractC6950, C6952 c6952, String str) {
        if (C6953.f20218 == null) {
            throw null;
        }
        Logger logger = C6953.f20217;
        StringBuilder sb = new StringBuilder();
        sb.append(c6952.f20215);
        sb.append(' ');
        String str2 = String.format("%-22s", Arrays.copyOf(new Object[]{str}, 1));
        C6635.m9823((Object) str2, "java.lang.String.format(format, *args)");
        sb.append(str2);
        sb.append(": ");
        sb.append(abstractC6950.f20207);
        logger.fine(sb.toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7116(boolean z, String str, Object... objArr) {
        if (!z) {
            throw new IllegalStateException(String.format(str, objArr));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7117(byte[] bArr, long j, int i) {
        int i2 = 0;
        while (i2 < 4) {
            bArr[i + i2] = (byte) (255 & j);
            i2++;
            j >>= 8;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m7118(byte b) {
        return b >= 0;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7119(byte b, int i) {
        return ((1 << i) & ((long) b)) != 0;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7120(char c) {
        return Character.isWhitespace(c) || Character.isSpaceChar(c);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7121(char c, char c2, boolean z) {
        if (c == c2) {
            return true;
        }
        if (z) {
            return Character.toUpperCase(c) == Character.toUpperCase(c2) || Character.toLowerCase(c) == Character.toLowerCase(c2);
        }
        return false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <E extends InterfaceC6289<?>> boolean m7122(long j, E e) {
        return (j & e.getValue()) > 0;
    }

    @TargetApi(20)
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7123(Context context) {
        if (f13594 == null) {
            f13594 = Boolean.valueOf(context.getPackageManager().hasSystemFeature("android.hardware.type.watch"));
        }
        return f13594.booleanValue();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7124(Context context, int i) {
        if (!m7125(context, i, "com.google.android.gms")) {
            return false;
        }
        try {
            PackageInfo packageInfo = context.getPackageManager().getPackageInfo("com.google.android.gms", 64);
            C4199 c4199M6857 = C4199.m6857(context);
            if (c4199M6857 == null) {
                throw null;
            }
            if (packageInfo == null) {
                return false;
            }
            if (!C4199.m6859(packageInfo, false)) {
                if (!C4199.m6859(packageInfo, true)) {
                    return false;
                }
                if (!C4198.m6856(c4199M6857.f13413)) {
                    Log.w("GoogleSignatureVerifier", "Test-keys aren't accepted on this build.");
                    return false;
                }
            }
            return true;
        } catch (PackageManager.NameNotFoundException unused) {
            if (Log.isLoggable("UidVerifier", 3)) {
                Log.d("UidVerifier", "Package manager can't find google play services package, defaulting to false");
            }
            return false;
        }
    }

    @TargetApi(19)
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7125(Context context, int i, String str) {
        C4321 c4321M7223 = C4322.m7223(context);
        if (c4321M7223 == null) {
            throw null;
        }
        try {
            ((AppOpsManager) c4321M7223.f13621.getSystemService("appops")).checkPackage(i, str);
            return true;
        } catch (SecurityException unused) {
            return false;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7126(AssertionError assertionError) {
        if (assertionError == null) {
            C6635.m9824("$this$isAndroidGetsocknameError");
            throw null;
        }
        if (assertionError.getCause() == null) {
            return false;
        }
        String message = assertionError.getMessage();
        return message != null ? C6703.m9881((CharSequence) message, (CharSequence) "getsockname failed", false, 2) : false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7127(Iterable<? extends T> iterable, InterfaceC6614<? super T, Boolean> interfaceC6614) {
        if (iterable == null) {
            C6635.m9824("$this$removeAll");
            throw null;
        }
        if (interfaceC6614 != null) {
            return m7128((Iterable) iterable, (InterfaceC6614) interfaceC6614, true);
        }
        C6635.m9824("predicate");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7128(Iterable<? extends T> iterable, InterfaceC6614<? super T, Boolean> interfaceC6614, boolean z) {
        Iterator<? extends T> it = iterable.iterator();
        boolean z2 = false;
        while (it.hasNext()) {
            if (interfaceC6614.mo1606(it.next()).booleanValue() == z) {
                it.remove();
                z2 = true;
            }
        }
        return z2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7129(Object obj, Object obj2) {
        return obj == obj2 || (obj != null && obj.equals(obj2));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m7130(@Nullable Type type, @Nullable Type type2) {
        if (type == type2) {
            return true;
        }
        if (type instanceof Class) {
            return type2 instanceof GenericArrayType ? m7130((Type) ((Class) type).getComponentType(), ((GenericArrayType) type2).getGenericComponentType()) : type.equals(type2);
        }
        if (type instanceof ParameterizedType) {
            if (!(type2 instanceof ParameterizedType)) {
                return false;
            }
            ParameterizedType parameterizedType = (ParameterizedType) type;
            ParameterizedType parameterizedType2 = (ParameterizedType) type2;
            return m7130(parameterizedType.getOwnerType(), parameterizedType2.getOwnerType()) && parameterizedType.getRawType().equals(parameterizedType2.getRawType()) && Arrays.equals(parameterizedType instanceof C6527.C6529 ? ((C6527.C6529) parameterizedType).f19300 : parameterizedType.getActualTypeArguments(), parameterizedType2 instanceof C6527.C6529 ? ((C6527.C6529) parameterizedType2).f19300 : parameterizedType2.getActualTypeArguments());
        }
        if (type instanceof GenericArrayType) {
            if (type2 instanceof Class) {
                return m7130((Type) ((Class) type2).getComponentType(), ((GenericArrayType) type).getGenericComponentType());
            }
            if (type2 instanceof GenericArrayType) {
                return m7130(((GenericArrayType) type).getGenericComponentType(), ((GenericArrayType) type2).getGenericComponentType());
            }
            return false;
        }
        if (type instanceof WildcardType) {
            if (!(type2 instanceof WildcardType)) {
                return false;
            }
            WildcardType wildcardType = (WildcardType) type;
            WildcardType wildcardType2 = (WildcardType) type2;
            return Arrays.equals(wildcardType.getUpperBounds(), wildcardType2.getUpperBounds()) && Arrays.equals(wildcardType.getLowerBounds(), wildcardType2.getLowerBounds());
        }
        if (!(type instanceof TypeVariable) || !(type2 instanceof TypeVariable)) {
            return false;
        }
        TypeVariable typeVariable = (TypeVariable) type;
        TypeVariable typeVariable2 = (TypeVariable) type2;
        return typeVariable.getGenericDeclaration() == typeVariable2.getGenericDeclaration() && typeVariable.getName().equals(typeVariable2.getName());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7131(Collection<? super T> collection, Iterable<? extends T> iterable) {
        if (collection == null) {
            C6635.m9824("$this$addAll");
            throw null;
        }
        if (iterable == null) {
            C6635.m9824("elements");
            throw null;
        }
        if (iterable instanceof Collection) {
            return collection.addAll((Collection) iterable);
        }
        boolean z = false;
        Iterator<? extends T> it = iterable.iterator();
        while (it.hasNext()) {
            if (collection.add(it.next())) {
                z = true;
            }
        }
        return z;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7132(Collection<? super T> collection, T[] tArr) {
        if (collection == null) {
            C6635.m9824("$this$addAll");
            throw null;
        }
        if (tArr != null) {
            return collection.addAll(C6560.m9781(tArr));
        }
        C6635.m9824("elements");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7133(List<T> list, InterfaceC6614<? super T, Boolean> interfaceC6614) {
        int i;
        if (list == null) {
            C6635.m9824("$this$removeAll");
            throw null;
        }
        if (interfaceC6614 == null) {
            C6635.m9824("predicate");
            throw null;
        }
        if (!(list instanceof RandomAccess)) {
            if (!(list instanceof InterfaceC6650)) {
                return m7128((Iterable) list, (InterfaceC6614) interfaceC6614, true);
            }
            C6649.m9834(list, "kotlin.collections.MutableIterable");
            throw null;
        }
        int iM6987 = m6987((List) list);
        if (iM6987 >= 0) {
            int i2 = 0;
            i = 0;
            while (true) {
                T t = list.get(i2);
                if (!interfaceC6614.mo1606(t).booleanValue()) {
                    if (i != i2) {
                        list.set(i, t);
                    }
                    i++;
                }
                if (i2 == iM6987) {
                    break;
                }
                i2++;
            }
        } else {
            i = 0;
        }
        if (i >= list.size()) {
            return false;
        }
        int iM69872 = m6987((List) list);
        if (iM69872 >= i) {
            while (true) {
                list.remove(iM69872);
                if (iM69872 == i) {
                    break;
                }
                iM69872--;
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7134(InterfaceC1327 interfaceC1327) {
        InterfaceC1363 interfaceC1363 = (InterfaceC1363) interfaceC1327.mo337().get(InterfaceC1363.f4514);
        if (interfaceC1363 != null) {
            return interfaceC1363.mo2610();
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7136(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
        if (bArr == null) {
            C6635.m9824("a");
            throw null;
        }
        if (bArr2 == null) {
            C6635.m9824("b");
            throw null;
        }
        for (int i4 = 0; i4 < i3; i4++) {
            if (bArr[i4 + i] != bArr2[i4 + i2]) {
                return false;
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m7137(char[] cArr, char c) {
        if (cArr == null) {
            C6635.m9824("$this$contains");
            throw null;
        }
        int length = cArr.length;
        int i = 0;
        while (true) {
            if (i >= length) {
                i = -1;
                break;
            }
            if (c == cArr[i]) {
                break;
            }
            i++;
        }
        return i >= 0;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> boolean m7138(T[] tArr, T t) {
        if (tArr != null) {
            return m7147((Object[]) tArr, (Object) t) >= 0;
        }
        C6635.m9824("$this$contains");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final byte[] m7139(String str) {
        if (str == null) {
            C6635.m9824("$this$asUtf8ToByteArray");
            throw null;
        }
        byte[] bytes = str.getBytes(C6689.f19437);
        C6635.m9823((Object) bytes, "(this as java.lang.String).getBytes(charset)");
        return bytes;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7140(BigInteger bigInteger, int i) throws GeneralSecurityException {
        byte[] byteArray = bigInteger.toByteArray();
        if (byteArray.length == i) {
            return byteArray;
        }
        int i2 = i + 1;
        if (byteArray.length > i2) {
            throw new GeneralSecurityException("integer too large");
        }
        if (byteArray.length == i2) {
            if (byteArray[0] == 0) {
                return Arrays.copyOfRange(byteArray, 1, byteArray.length);
            }
            throw new GeneralSecurityException("integer too large");
        }
        byte[] bArr = new byte[i];
        System.arraycopy(byteArray, 0, bArr, i - byteArray.length, byteArray.length);
        return bArr;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7141(byte[] bArr) {
        if (bArr.length >= 16) {
            throw new IllegalArgumentException("x must be smaller than a block.");
        }
        byte[] bArrCopyOf = Arrays.copyOf(bArr, 16);
        bArrCopyOf[bArr.length] = -128;
        return bArrCopyOf;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7142(byte[] bArr, int i, EnumC5543 enumC5543) {
        MessageDigest messageDigestM8904 = C5534.f15936.m8904(m7025(enumC5543));
        int digestLength = messageDigestM8904.getDigestLength();
        byte[] bArr2 = new byte[i];
        int length = 0;
        for (int i2 = 0; i2 <= (i - 1) / digestLength; i2++) {
            messageDigestM8904.reset();
            messageDigestM8904.update(bArr);
            messageDigestM8904.update(m7140(BigInteger.valueOf(i2), 4));
            byte[] bArrDigest = messageDigestM8904.digest();
            System.arraycopy(bArrDigest, 0, bArr2, length, Math.min(bArrDigest.length, i - length));
            length += bArrDigest.length;
        }
        return bArr2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7143(byte[] bArr, byte[] bArr2) {
        if (bArr.length != 32) {
            throw new IllegalArgumentException("The key length in bytes must be 32.");
        }
        long jM7000 = m7000(bArr, 0, 0) & 67108863;
        int i = 2;
        long jM70002 = m7000(bArr, 3, 2) & 67108611;
        long jM70003 = m7000(bArr, 6, 4) & 67092735;
        long jM70004 = m7000(bArr, 9, 6) & 66076671;
        long jM70005 = m7000(bArr, 12, 8) & 1048575;
        long j = jM70002 * 5;
        long j2 = jM70003 * 5;
        long j3 = jM70004 * 5;
        long j4 = jM70005 * 5;
        int i2 = 17;
        byte[] bArr3 = new byte[17];
        long j5 = 0;
        long j6 = 0;
        long j7 = 0;
        long j8 = 0;
        long j9 = 0;
        int i3 = 0;
        while (i3 < bArr2.length) {
            int iMin = Math.min(16, bArr2.length - i3);
            System.arraycopy(bArr2, i3, bArr3, 0, iMin);
            bArr3[iMin] = 1;
            if (iMin != 16) {
                Arrays.fill(bArr3, iMin + 1, i2, (byte) 0);
            }
            long jM70006 = m7000(bArr3, 0, 0) + j9;
            long jM70007 = m7000(bArr3, 3, i) + j5;
            long jM70008 = m7000(bArr3, 6, 4) + j6;
            long jM70009 = m7000(bArr3, 9, 6) + j7;
            long jM700010 = j8 + (m7000(bArr3, 12, 8) | ((long) (bArr3[16] << 24)));
            long j10 = (jM700010 * j) + (jM70009 * j2) + (jM70008 * j3) + (jM70007 * j4) + (jM70006 * jM7000);
            long j11 = (jM700010 * j2) + (jM70009 * j3) + (jM70008 * j4) + (jM70007 * jM7000) + (jM70006 * jM70002);
            long j12 = (jM700010 * j3) + (jM70009 * j4) + (jM70008 * jM7000) + (jM70007 * jM70002) + (jM70006 * jM70003);
            long j13 = (jM700010 * j4) + (jM70009 * jM7000) + (jM70008 * jM70002) + (jM70007 * jM70003) + (jM70006 * jM70004);
            long j14 = jM70009 * jM70002;
            long j15 = jM700010 * jM7000;
            long j16 = j11 + (j10 >> 26);
            long j17 = j12 + (j16 >> 26);
            long j18 = j13 + (j17 >> 26);
            long j19 = j15 + j14 + (jM70008 * jM70003) + (jM70007 * jM70004) + (jM70006 * jM70005) + (j18 >> 26);
            long j20 = j19 >> 26;
            j8 = j19 & 67108863;
            long j21 = (j20 * 5) + (j10 & 67108863);
            long j22 = (j16 & 67108863) + (j21 >> 26);
            i3 += 16;
            j6 = j17 & 67108863;
            j7 = j18 & 67108863;
            i2 = 17;
            i = 2;
            j9 = j21 & 67108863;
            j5 = j22;
        }
        long j23 = j6 + (j5 >> 26);
        long j24 = j23 & 67108863;
        long j25 = j7 + (j23 >> 26);
        long j26 = j25 & 67108863;
        long j27 = j8 + (j25 >> 26);
        long j28 = j27 & 67108863;
        long j29 = ((j27 >> 26) * 5) + j9;
        long j30 = j29 >> 26;
        long j31 = j29 & 67108863;
        long j32 = (j5 & 67108863) + j30;
        long j33 = j31 + 5;
        long j34 = j33 & 67108863;
        long j35 = (j33 >> 26) + j32;
        long j36 = j24 + (j35 >> 26);
        long j37 = j26 + (j36 >> 26);
        long j38 = (j28 + (j37 >> 26)) - 67108864;
        long j39 = j38 >> 63;
        long j40 = j31 & j39;
        long j41 = j32 & j39;
        long j42 = j24 & j39;
        long j43 = j26 & j39;
        long j44 = j28 & j39;
        long j45 = ~j39;
        long j46 = j41 | (j35 & 67108863 & j45);
        long j47 = j42 | (j36 & 67108863 & j45);
        long j48 = j43 | (j37 & 67108863 & j45);
        long j49 = (j40 | (j34 & j45) | (j46 << 26)) & 4294967295L;
        long j50 = ((j46 >> 6) | (j47 << 20)) & 4294967295L;
        long j51 = ((j47 >> 12) | (j48 << 14)) & 4294967295L;
        long j52 = ((j48 >> 18) | ((j44 | (j38 & j45)) << 8)) & 4294967295L;
        long jM6999 = m6999(bArr, 16) + j49;
        long jM69992 = m6999(bArr, 20) + j50 + (jM6999 >> 32);
        long jM69993 = m6999(bArr, 24) + j51 + (jM69992 >> 32);
        long jM69994 = (m6999(bArr, 28) + j52 + (jM69993 >> 32)) & 4294967295L;
        byte[] bArr4 = new byte[16];
        m7117(bArr4, jM6999 & 4294967295L, 0);
        m7117(bArr4, jM69992 & 4294967295L, 4);
        m7117(bArr4, jM69993 & 4294967295L, 8);
        m7117(bArr4, jM69994, 12);
        return bArr4;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static byte[] m7144(byte[]... bArr) throws GeneralSecurityException {
        int length = 0;
        for (byte[] bArr2 : bArr) {
            if (length > Integer.MAX_VALUE - bArr2.length) {
                throw new GeneralSecurityException("exceeded size limit");
            }
            length += bArr2.length;
        }
        byte[] bArr3 = new byte[length];
        int length2 = 0;
        for (byte[] bArr4 : bArr) {
            System.arraycopy(bArr4, 0, bArr3, length2, bArr4.length);
            length2 += bArr4.length;
        }
        return bArr3;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static byte m7145(byte b, int i) {
        return (byte) (b | (1 << i));
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static int m7146(byte[] bArr, int i, C4620 c4620) {
        int i2 = i + 1;
        long j = bArr[i];
        if (j >= 0) {
            c4620.f14130 = j;
            return i2;
        }
        int i3 = i2 + 1;
        byte b = bArr[i2];
        long j2 = (j & 127) | (((long) (b & 127)) << 7);
        int i4 = 7;
        while (b < 0) {
            int i5 = i3 + 1;
            byte b2 = bArr[i3];
            i4 += 7;
            j2 |= ((long) (b2 & 127)) << i4;
            b = b2;
            i3 = i5;
        }
        c4620.f14130 = j2;
        return i3;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final <T> int m7147(T[] tArr, T t) {
        if (tArr == null) {
            C6635.m9824("$this$indexOf");
            throw null;
        }
        int i = 0;
        if (t == null) {
            int length = tArr.length;
            while (i < length) {
                if (tArr[i] == null) {
                    return i;
                }
                i++;
            }
            return -1;
        }
        int length2 = tArr.length;
        while (i < length2) {
            if (C6635.m9825(t, tArr[i])) {
                return i;
            }
            i++;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static <E extends Enum<E>> long m7148(Collection<E> collection) {
        long value = 0;
        for (E e : collection) {
            if (!(e instanceof InterfaceC6289)) {
                throw new IllegalArgumentException("Can only be used with EnumWithValue enums.");
            }
            value |= ((InterfaceC6289) e).getValue();
        }
        return value;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static long m7149(List<C6822> list) {
        long j = 0;
        for (C6822 c6822 : list) {
            C6826 c6826 = c6822.f19741;
            if (c6826 != null) {
                long j2 = c6826.f19775;
                if (j2 > 0) {
                    j += j2;
                }
            }
            j += c6822.f19734;
        }
        return j;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static <T> T m7150(@Nullable T t, @Nullable T t2) {
        if (t != null) {
            return t;
        }
        if (t2 != null) {
            return t2;
        }
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static <T> T m7151(T t, String str) {
        if (t != null) {
            return t;
        }
        throw new NullPointerException(str);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static <TResult> TResult m7152(AbstractC5062<TResult> abstractC5062) throws ExecutionException {
        if (abstractC5062.mo8555()) {
            return abstractC5062.mo8552();
        }
        if (((C5085) abstractC5062).f15259) {
            throw new CancellationException("Task is already canceled");
        }
        throw new ExecutionException(abstractC5062.mo8543());
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m7153(long j) {
        String str;
        if (j <= -999500000) {
            str = ((j - ((long) 500000000)) / ((long) 1000000000)) + " s ";
        } else if (j <= -999500) {
            str = ((j - ((long) 500000)) / ((long) 1000000)) + " ms";
        } else if (j <= 0) {
            str = ((j - ((long) 500)) / ((long) 1000)) + " µs";
        } else if (j < 999500) {
            str = ((j + ((long) 500)) / ((long) 1000)) + " µs";
        } else if (j < 999500000) {
            str = ((j + ((long) 500000)) / ((long) 1000000)) + " ms";
        } else {
            str = ((j + ((long) 500000000)) / ((long) 1000000000)) + " s ";
        }
        String str2 = String.format("%6s", Arrays.copyOf(new Object[]{str}, 1));
        C6635.m9823((Object) str2, "java.lang.String.format(format, *args)");
        return str2;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m7154(Object obj) {
        return obj.getClass().getSimpleName();
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static String m7155(EnumC5422 enumC5422) throws NoSuchAlgorithmException {
        int iOrdinal = enumC5422.ordinal();
        if (iOrdinal == 1) {
            return "HmacSha1";
        }
        if (iOrdinal == 3) {
            return "HmacSha256";
        }
        if (iOrdinal == 4) {
            return "HmacSha512";
        }
        throw new NoSuchAlgorithmException("hash unsupported for HMAC: " + enumC5422);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m7156(InterfaceC6575<?> interfaceC6575) {
        Object objM7010;
        if (interfaceC6575 instanceof C1336) {
            return interfaceC6575.toString();
        }
        try {
            C6542.C6543 c6543 = C6542.f19318;
            objM7010 = interfaceC6575 + '@' + m7180(interfaceC6575);
            C6542.m9767(objM7010);
        } catch (Throwable th) {
            C6542.C6543 c65432 = C6542.f19318;
            objM7010 = m7010(th);
        }
        if (C6542.m9768(objM7010) != null) {
            objM7010 = interfaceC6575.getClass().getName() + '@' + m7180(interfaceC6575);
        }
        return (String) objM7010;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static ECParameterSpec m7157(EnumC5530 enumC5530) throws NoSuchAlgorithmException {
        int iOrdinal = enumC5530.ordinal();
        if (iOrdinal == 0) {
            return m7038("115792089210356248762697446949407573530086143415290314195533631308867097853951", "115792089210356248762697446949407573529996955224135760342422259061068512044369", "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", "6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", "4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5");
        }
        if (iOrdinal == 1) {
            return m7038("39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319", "39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643", "b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef", "aa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7", "3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f");
        }
        if (iOrdinal == 2) {
            return m7038("6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151", "6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449", "051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00", "c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66", "11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650");
        }
        throw new NoSuchAlgorithmException("curve not implemented:" + enumC5530);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final <T> List<T> m7158(T... tArr) {
        if (tArr != null) {
            return tArr.length > 0 ? C6560.m9781(tArr) : C6563.f19343;
        }
        C6635.m9824("elements");
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static ExecutorService m7159(String str) {
        ExecutorService executorServiceNewSingleThreadExecutor = Executors.newSingleThreadExecutor(new ThreadFactoryC5682(str, new AtomicLong(1L)));
        Runtime.getRuntime().addShutdownHook(new Thread(new C5684(str, executorServiceNewSingleThreadExecutor, 2L, TimeUnit.SECONDS), C2803.m4879("Crashlytics Shutdown Hook for ", str)));
        return executorServiceNewSingleThreadExecutor;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC1363 m7160(InterfaceC1327 interfaceC1327, InterfaceC6578 interfaceC6578, EnumC1328 enumC1328, InterfaceC6618 interfaceC6618, int i, Object obj) {
        if ((i & 1) != 0) {
            interfaceC6578 = C6583.f19356;
        }
        if ((i & 2) != 0) {
            enumC1328 = EnumC1328.DEFAULT;
        }
        InterfaceC6578 interfaceC6578M2649 = C1322.m2649(interfaceC1327, interfaceC6578);
        AbstractC1301 c1375 = enumC1328.m2654() ? new C1375(interfaceC6578M2649, interfaceC6618) : new C1382(interfaceC6578M2649, true);
        c1375.m2609(enumC1328, c1375, (InterfaceC6618<? super AbstractC1301, ? super InterfaceC6575<? super T>, ? extends Object>) interfaceC6618);
        return c1375;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static EnumC5530 m7161(EnumC5413 enumC5413) throws GeneralSecurityException {
        int iOrdinal = enumC5413.ordinal();
        if (iOrdinal == 1) {
            return EnumC5530.NIST_P256;
        }
        if (iOrdinal == 2) {
            return EnumC5530.NIST_P384;
        }
        if (iOrdinal == 3) {
            return EnumC5530.NIST_P521;
        }
        throw new GeneralSecurityException("unknown curve type: " + enumC5413);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static C6822 m7162(C6828 c6828, String str) throws ZipException {
        if (c6828 == null) {
            throw new ZipException(C2803.m4879("zip model is null, cannot determine file header with exact match for fileName: ", str));
        }
        if (!m7202(str)) {
            throw new ZipException(C2803.m4879("file name is null, cannot determine file header with exact match for fileName: ", str));
        }
        C6817 c6817 = c6828.f19780;
        if (c6817 == null) {
            throw new ZipException(C2803.m4879("central directory is null, cannot determine file header with exact match for fileName: ", str));
        }
        List<C6822> list = c6817.f19746;
        if (list == null) {
            throw new ZipException(C2803.m4879("file Headers are null, cannot determine file header with exact match for fileName: ", str));
        }
        if (list.size() == 0) {
            return null;
        }
        for (C6822 c6822 : c6828.f19780.f19746) {
            String str2 = c6822.f19737;
            if (m7202(str2) && str.equalsIgnoreCase(str2)) {
                return c6822;
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final InterfaceC7129 m7163(Socket socket) throws IOException {
        if (socket == null) {
            C6635.m9824("$this$source");
            throw null;
        }
        C7128 c7128 = new C7128(socket);
        InputStream inputStream = socket.getInputStream();
        C6635.m9823((Object) inputStream, "getInputStream()");
        return new C7102(c7128, new C7115(inputStream, c7128));
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final void m7164(StringBuilder sb, int i, String str, Object obj) {
        if (obj instanceof List) {
            Iterator it = ((List) obj).iterator();
            while (it.hasNext()) {
                m7164(sb, i, str, it.next());
            }
            return;
        }
        if (obj instanceof Map) {
            Iterator it2 = ((Map) obj).entrySet().iterator();
            while (it2.hasNext()) {
                m7164(sb, i, str, (Map.Entry) it2.next());
            }
            return;
        }
        sb.append('\n');
        int i2 = 0;
        for (int i3 = 0; i3 < i; i3++) {
            sb.append(' ');
        }
        sb.append(str);
        if (obj instanceof String) {
            sb.append(": \"");
            sb.append(m7024(AbstractC4435.m7389((String) obj)));
            sb.append('\"');
            return;
        }
        if (obj instanceof AbstractC4435) {
            sb.append(": \"");
            sb.append(m7024((AbstractC4435) obj));
            sb.append('\"');
            return;
        }
        if (obj instanceof AbstractC4421) {
            sb.append(" {");
            m7100((AbstractC4421) obj, sb, i + 2);
            sb.append("\n");
            while (i2 < i) {
                sb.append(' ');
                i2++;
            }
            sb.append("}");
            return;
        }
        if (!(obj instanceof Map.Entry)) {
            sb.append(": ");
            sb.append(obj.toString());
            return;
        }
        sb.append(" {");
        Map.Entry entry = (Map.Entry) obj;
        int i4 = i + 2;
        m7164(sb, i4, "key", entry.getKey());
        m7164(sb, i4, "value", entry.getValue());
        sb.append("\n");
        while (i2 < i) {
            sb.append(' ');
            i2++;
        }
        sb.append("}");
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final <R, T> void m7165(InterfaceC6618<? super R, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618, R r, InterfaceC6575<? super T> interfaceC6575) {
        try {
            InterfaceC6575 interfaceC6575M7066 = m7066((InterfaceC6575) m7067(interfaceC6618, r, interfaceC6575));
            C6542.C6543 c6543 = C6542.f19318;
            C1337.m2663(interfaceC6575M7066, C6549.f19328);
        } catch (Throwable th) {
            C6542.C6543 c65432 = C6542.f19318;
            interfaceC6575.mo2608(m7010(th));
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static void m7166(byte[] bArr, int i) {
        bArr[0] = (byte) i;
        bArr[1] = (byte) (i >> 8);
        bArr[2] = (byte) (i >> 16);
        bArr[3] = (byte) (i >> 24);
        for (int i2 = 4; i2 <= 15; i2++) {
            bArr[i2] = 0;
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static boolean m7167() {
        try {
            Class.forName("android.app.Application", false, null);
            return true;
        } catch (Exception unused) {
            return false;
        }
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static boolean m7168(byte b) {
        return b > -65;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m7169(int i) {
        return i == 1;
    }

    @TargetApi(26)
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static boolean m7170(Context context) {
        if (m7123(context)) {
            if (Build.VERSION.SDK_INT >= 24) {
                if (f13595 == null) {
                    f13595 = Boolean.valueOf(context.getPackageManager().hasSystemFeature("cn.google"));
                }
                if (!f13595.booleanValue() || m7186()) {
                }
            }
            return true;
        }
        return false;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final <T> boolean m7171(Collection<? super T> collection, T[] tArr) {
        if (collection == null) {
            C6635.m9824("$this$removeAll");
            throw null;
        }
        if (tArr == null) {
            C6635.m9824("elements");
            throw null;
        }
        if (!(!(tArr.length == 0))) {
            return false;
        }
        HashSet hashSet = new HashSet(m7176(tArr.length));
        m7040((Object[]) tArr, hashSet);
        return collection.removeAll(hashSet);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m7172(byte[] bArr, byte[] bArr2) {
        if (bArr == null || bArr2 == null || bArr.length != bArr2.length) {
            return false;
        }
        int i = 0;
        for (int i2 = 0; i2 < bArr.length; i2++) {
            i |= bArr[i2] ^ bArr2[i2];
        }
        return i == 0;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static byte[] m7173(byte[] bArr) {
        if (bArr.length != 16) {
            throw new IllegalArgumentException("value must be a block.");
        }
        byte[] bArr2 = new byte[16];
        for (int i = 0; i < 16; i++) {
            bArr2[i] = (byte) ((bArr[i] << 1) & 254);
            if (i < 15) {
                bArr2[i] = (byte) (bArr2[i] | ((byte) ((bArr[i + 1] >> 7) & 1)));
            }
        }
        bArr2[15] = (byte) (((byte) ((bArr[0] >> 7) & 135)) ^ bArr2[15]);
        return bArr2;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final byte[] m7174(byte[] bArr, int i, byte[] bArr2, int i2, int i3) {
        if (i3 < 0 || bArr.length - i3 < i || bArr2.length - i3 < i2) {
            throw new IllegalArgumentException("That combination of buffers, offsets and length to xor result in out-of-bond accesses.");
        }
        byte[] bArr3 = new byte[i3];
        for (int i4 = 0; i4 < i3; i4++) {
            bArr3[i4] = (byte) (bArr[i4 + i] ^ bArr2[i4 + i2]);
        }
        return bArr3;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static byte m7175(byte b, int i) {
        return (byte) (b & (~(1 << i)));
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final int m7176(int i) {
        if (i < 0) {
            return i;
        }
        if (i < 3) {
            return i + 1;
        }
        if (i < 1073741824) {
            return (int) ((i / 0.75f) + 1.0f);
        }
        return Integer.MAX_VALUE;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static int m7177(byte[] bArr, int i) {
        return ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static int m7178(byte[] bArr, int i, C4620 c4620) throws zzft {
        int iM6994 = m6994(bArr, i, c4620);
        int i2 = c4620.f14129;
        if (i2 < 0) {
            throw zzft.m1403();
        }
        if (i2 == 0) {
            c4620.f14131 = "";
            return iM6994;
        }
        c4620.f14131 = new String(bArr, iM6994, i2, C4545.f13958);
        return iM6994 + i2;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static long m7179(long j) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(j);
        if (calendar.get(1) < 1980) {
            return 2162688L;
        }
        return (calendar.get(13) >> 1) | ((r5 - 1980) << 25) | ((calendar.get(2) + 1) << 21) | (calendar.get(5) << 16) | (calendar.get(11) << 11) | (calendar.get(12) << 5);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final String m7180(Object obj) {
        return Integer.toHexString(System.identityHashCode(obj));
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final String m7181(String str) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char cCharAt = str.charAt(i);
            if (Character.isUpperCase(cCharAt)) {
                sb.append("_");
            }
            sb.append(Character.toLowerCase(cCharAt));
        }
        return sb.toString();
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static String m7182(EnumC5422 enumC5422) throws NoSuchAlgorithmException {
        int iOrdinal = enumC5422.ordinal();
        if (iOrdinal == 1) {
            return "HmacSha1";
        }
        if (iOrdinal == 3) {
            return "HmacSha256";
        }
        if (iOrdinal == 4) {
            return "HmacSha512";
        }
        throw new NoSuchAlgorithmException("hash unsupported for HMAC: " + enumC5422);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static String m7183(byte[] bArr) {
        StringBuilder sb = new StringBuilder(bArr.length * 2);
        for (byte b : bArr) {
            int i = b & 255;
            sb.append("0123456789abcdef".charAt(i / 16));
            sb.append("0123456789abcdef".charAt(i % 16));
        }
        return sb.toString();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final <T> List<T> m7184(List<? extends T> list) {
        if (list != 0) {
            int size = list.size();
            return size != 0 ? size != 1 ? list : m7191(list.get(0)) : C6563.f19343;
        }
        C6635.m9824("$this$optimizeReadOnlyList");
        throw null;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final <T> List<T> m7185(T... tArr) {
        if (tArr == null) {
            C6635.m9824("elements");
            throw null;
        }
        ArrayList arrayList = new ArrayList();
        for (T t : tArr) {
            if (t != null) {
                arrayList.add(t);
            }
        }
        return arrayList;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static boolean m7186() {
        return Build.VERSION.SDK_INT >= 26;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final byte[] m7187(byte[] bArr, byte[] bArr2) {
        if (bArr.length == bArr2.length) {
            return m7174(bArr, 0, bArr2, 0, bArr.length);
        }
        throw new IllegalArgumentException("The lengths of x and y should match.");
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static int m7188(int i) {
        if (i >= 200 && i <= 299) {
            return 0;
        }
        if (i >= 300 && i <= 399) {
            return 1;
        }
        if (i >= 400 && i <= 499) {
            return 0;
        }
        if (i >= 500) {
        }
        return 1;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static int m7189(byte[] bArr, int i, C4620 c4620) throws zzft {
        int iM6994 = m6994(bArr, i, c4620);
        int i2 = c4620.f14129;
        if (i2 < 0) {
            throw zzft.m1403();
        }
        if (i2 == 0) {
            c4620.f14131 = "";
            return iM6994;
        }
        c4620.f14131 = C4498.f13909.mo7263(bArr, iM6994, i2);
        return iM6994 + i2;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static long m7190(byte[] bArr, int i) {
        return ((((long) bArr[i + 7]) & 255) << 56) | (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48);
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final <T> List<T> m7191(T t) {
        List<T> listSingletonList = Collections.singletonList(t);
        C6635.m9823((Object) listSingletonList, "java.util.Collections.singletonList(element)");
        return listSingletonList;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final <T> List<T> m7192(T... tArr) {
        if (tArr != null) {
            return tArr.length == 0 ? new ArrayList() : new ArrayList(new C6558(tArr, true));
        }
        C6635.m9824("elements");
        throw null;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final void m7193() {
        throw new ArithmeticException("Index overflow has happened.");
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static byte[] m7194(String str) {
        if (str.length() % 2 != 0) {
            throw new IllegalArgumentException("Expected a string of even length");
        }
        int length = str.length() / 2;
        byte[] bArr = new byte[length];
        for (int i = 0; i < length; i++) {
            int i2 = i * 2;
            int iDigit = Character.digit(str.charAt(i2), 16);
            int iDigit2 = Character.digit(str.charAt(i2 + 1), 16);
            if (iDigit == -1 || iDigit2 == -1) {
                throw new IllegalArgumentException("input is not hexadecimal");
            }
            bArr[i] = (byte) ((iDigit * 16) + iDigit2);
        }
        return bArr;
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static double m7195(byte[] bArr, int i) {
        return Double.longBitsToDouble(m7190(bArr, i));
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static int m7196(byte[] bArr, int i, C4620 c4620) throws zzft {
        int iM6994 = m6994(bArr, i, c4620);
        int i2 = c4620.f14129;
        if (i2 < 0) {
            throw zzft.m1403();
        }
        if (i2 > bArr.length - iM6994) {
            throw zzft.m1402();
        }
        if (i2 == 0) {
            c4620.f14131 = AbstractC4435.f13786;
            return iM6994;
        }
        c4620.f14131 = AbstractC4435.m7390(bArr, iM6994, i2);
        return iM6994 + i2;
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static final <T> List<T> m7197(T[] tArr) {
        if (tArr != null) {
            return new ArrayList(new C6558(tArr, false));
        }
        C6635.m9824("$this$toMutableList");
        throw null;
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static final void m7198(Object obj) {
        if (obj instanceof C6542.C6544) {
            throw ((C6542.C6544) obj).f19320;
        }
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static boolean m7199(String str) {
        return (str == null || str.trim().isEmpty()) ? false : true;
    }

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public static float m7200(byte[] bArr, int i) {
        return Float.intBitsToFloat(m7177(bArr, i));
    }

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public static final <T> Object m7201(Object obj) {
        Throwable thM9768 = C6542.m9768(obj);
        return thM9768 == null ? obj : new C1318(thM9768, false, 2, null);
    }

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public static boolean m7202(String str) {
        return str != null && str.trim().length() > 0;
    }

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public static final String m7203(String str) {
        if (str == null) {
            C6635.m9824("$this$toCanonicalHost");
            throw null;
        }
        int i = 0;
        int i2 = -1;
        if (!C6703.m9881((CharSequence) str, (CharSequence) ":", false, 2)) {
            try {
                String ascii = IDN.toASCII(str);
                C6635.m9823((Object) ascii, "IDN.toASCII(host)");
                Locale locale = Locale.US;
                C6635.m9823((Object) locale, "Locale.US");
                String lowerCase = ascii.toLowerCase(locale);
                C6635.m9823((Object) lowerCase, "(this as java.lang.String).toLowerCase(locale)");
                if (lowerCase.length() == 0) {
                    return null;
                }
                int length = lowerCase.length();
                for (int i3 = 0; i3 < length; i3++) {
                    char cCharAt = lowerCase.charAt(i3);
                    if (cCharAt > 31 && cCharAt < 127 && C6703.m9856((CharSequence) " #%/:?@[\\]", cCharAt, 0, false, 6) == -1) {
                    }
                    i = 1;
                    break;
                }
                if (i != 0) {
                    return null;
                }
                return lowerCase;
            } catch (IllegalArgumentException unused) {
                return null;
            }
        }
        InetAddress inetAddressM7034 = (C6703.m9899(str, "[", false, 2) && C6703.m9885(str, "]", false, 2)) ? m7034(str, 1, str.length() - 1) : m7034(str, 0, str.length());
        if (inetAddressM7034 == null) {
            return null;
        }
        byte[] address = inetAddressM7034.getAddress();
        if (address.length != 16) {
            if (address.length == 4) {
                return inetAddressM7034.getHostAddress();
            }
            throw new AssertionError("Invalid IPv6 address: '" + str + '\'');
        }
        C6635.m9823((Object) address, "address");
        int i4 = 0;
        int i5 = 0;
        while (i4 < address.length) {
            int i6 = i4;
            while (i6 < 16 && address[i6] == 0 && address[i6 + 1] == 0) {
                i6 += 2;
            }
            int i7 = i6 - i4;
            if (i7 > i5 && i7 >= 4) {
                i2 = i4;
                i5 = i7;
            }
            i4 = i6 + 2;
        }
        C7103 c7103 = new C7103();
        while (i < address.length) {
            if (i == i2) {
                c7103.writeByte(58);
                i += i5;
                if (i == 16) {
                    c7103.writeByte(58);
                }
            } else {
                if (i > 0) {
                    c7103.writeByte(58);
                }
                c7103.mo10421((C6943.m10141(address[i], 255) << 8) | (255 & address[i + 1]));
                i += 2;
            }
        }
        return c7103.m10437();
    }

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public static String m7204(String str) {
        int length = str.length();
        int i = 0;
        while (i < length) {
            char cCharAt = str.charAt(i);
            if (cCharAt >= 'A' && cCharAt <= 'Z') {
                char[] charArray = str.toCharArray();
                while (i < length) {
                    char c = charArray[i];
                    if (c >= 'A' && c <= 'Z') {
                        charArray[i] = (char) (c ^ ' ');
                    }
                    i++;
                }
                return String.valueOf(charArray);
            }
            i++;
        }
        return str;
    }

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public static final String m7205(String str) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char cCharAt = str.charAt(i);
            if (Character.isUpperCase(cCharAt)) {
                sb.append("_");
            }
            sb.append(Character.toLowerCase(cCharAt));
        }
        return sb.toString();
    }
}
