package defpackage;

import android.app.UiModeManager;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.hardware.display.DisplayManager;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.SparseArray;
import android.view.Display;
import android.view.WindowManager;
import androidx.media3.common.ParserException;
import com.google.android.gms.dynamite.descriptors.com.google.android.gms.measurement.dynamite.ModuleDescriptor;
import com.google.common.io.BaseEncoding$DecodingException;
import j$.util.DesugarTimeZone;
import j$.util.Objects;
import java.io.Closeable;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Formatter;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.zip.DataFormatException;
import java.util.zip.Inflater;

/* renamed from: ᵦʾﹶ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC3558 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static final Pattern f13323;

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public static final int[] f13324;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public static HashMap f13325;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static final Pattern f13326;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static final long[] f13327;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public static final String[] f13328;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static final String f13329;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final byte[] f13330;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public static final int[] f13331;

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public static final int[] f13332;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static final String[] f13333;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static final Pattern f13334;

    static {
        String str = Build.DEVICE;
        String str2 = Build.MANUFACTURER;
        f13329 = str + ", " + Build.MODEL + ", " + str2 + ", " + Build.VERSION.SDK_INT;
        f13330 = new byte[0];
        f13327 = new long[0];
        f13334 = Pattern.compile("(\\d\\d\\d\\d)\\-(\\d\\d)\\-(\\d\\d)[Tt ](\\d\\d):(\\d\\d):(\\d\\d)([\\.,](\\d+))?([Zz]|((\\+|\\-)(\\d?\\d):?(\\d\\d)?))?");
        f13323 = Pattern.compile("^(-)?P(([0-9]*)Y)?(([0-9]*)M)?(([0-9]*)D)?(T(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?)?$");
        Pattern.compile("%([A-Fa-f0-9]{2})");
        f13326 = Pattern.compile("(?:.*\\.)?isml?(?:/(manifest(.*))?)?", 2);
        f13333 = new String[]{"alb", "sq", "arm", "hy", "baq", "eu", "bur", "my", "tib", "bo", "chi", "zh", "cze", "cs", "dut", "nl", "ger", "de", "gre", "el", "fre", "fr", "geo", "ka", "ice", "is", "mac", "mk", "mao", "mi", "may", "ms", "per", "fa", "rum", "ro", "scc", "hbs-srp", "slo", "sk", "wel", "cy", "id", "ms-ind", "iw", "he", "heb", "he", "ji", "yi", "arb", "ar-arb", "in", "ms-ind", "ind", "ms-ind", "nb", "no-nob", "nob", "no-nob", "nn", "no-nno", "nno", "no-nno", "tw", "ak-twi", "twi", "ak-twi", "bs", "hbs-bos", "bos", "hbs-bos", "hr", "hbs-hrv", "hrv", "hbs-hrv", "sr", "hbs-srp", "srp", "hbs-srp", "cmn", "zh-cmn", "hak", "zh-hak", "nan", "zh-nan", "hsn", "zh-hsn"};
        f13328 = new String[]{"i-lux", "lb", "i-hak", "zh-hak", "i-navajo", "nv", "no-bok", "no-nob", "no-nyn", "no-nno", "zh-guoyu", "zh-cmn", "zh-hakka", "zh-hak", "zh-min-nan", "zh-nan", "zh-xiang", "zh-hsn"};
        f13331 = new int[]{0, 79764919, 159529838, 222504665, 319059676, 398814059, 445009330, 507990021, 638119352, 583659535, 797628118, 726387553, 890018660, 835552979, 1015980042, 944750013, 1276238704, 1221641927, 1167319070, 1095957929, 1595256236, 1540665371, 1452775106, 1381403509, 1780037320, 1859660671, 1671105958, 1733955601, 2031960084, 2111593891, 1889500026, 1952343757, -1742489888, -1662866601, -1851683442, -1788833735, -1960329156, -1880695413, -2103051438, -2040207643, -1104454824, -1159051537, -1213636554, -1284997759, -1389417084, -1444007885, -1532160278, -1603531939, -734892656, -789352409, -575645954, -646886583, -952755380, -1007220997, -827056094, -898286187, -231047128, -151282273, -71779514, -8804623, -515967244, -436212925, -390279782, -327299027, 881225847, 809987520, 1023691545, 969234094, 662832811, 591600412, 771767749, 717299826, 311336399, 374308984, 453813921, 533576470, 25881363, 88864420, 134795389, 214552010, 2023205639, 2086057648, 1897238633, 1976864222, 1804852699, 1867694188, 1645340341, 1724971778, 1587496639, 1516133128, 1461550545, 1406951526, 1302016099, 1230646740, 1142491917, 1087903418, -1398421865, -1469785312, -1524105735, -1578704818, -1079922613, -1151291908, -1239184603, -1293773166, -1968362705, -1905510760, -2094067647, -2014441994, -1716953613, -1654112188, -1876203875, -1796572374, -525066777, -462094256, -382327159, -302564546, -206542021, -143559028, -97365931, -17609246, -960696225, -1031934488, -817968335, -872425850, -709327229, -780559564, -600130067, -654598054, 1762451694, 1842216281, 1619975040, 1682949687, 2047383090, 2127137669, 1938468188, 2001449195, 1325665622, 1271206113, 1183200824, 1111960463, 1543535498, 1489069629, 1434599652, 1363369299, 622672798, 568075817, 748617968, 677256519, 907627842, 853037301, 1067152940, 995781531, 51762726, 131386257, 177728840, 240578815, 269590778, 349224269, 429104020, 491947555, -248556018, -168932423, -122852000, -60002089, -500490030, -420856475, -341238852, -278395381, -685261898, -739858943, -559578920, -630940305, -1004286614, -1058877219, -845023740, -916395085, -1119974018, -1174433591, -1262701040, -1333941337, -1371866206, -1426332139, -1481064244, -1552294533, -1690935098, -1611170447, -1833673816, -1770699233, -2009983462, -1930228819, -2119160460, -2056179517, 1569362073, 1498123566, 1409854455, 1355396672, 1317987909, 1246755826, 1192025387, 1137557660, 2072149281, 2135122070, 1912620623, 1992383480, 1753615357, 1816598090, 1627664531, 1707420964, 295390185, 358241886, 404320391, 483945776, 43990325, 106832002, 186451547, 266083308, 932423249, 861060070, 1041341759, 986742920, 613929101, 542559546, 756411363, 701822548, -978770311, -1050133554, -869589737, -924188512, -693284699, -764654318, -550540341, -605129092, -475935807, -413084042, -366743377, -287118056, -257573603, -194731862, -114850189, -35218492, -1984365303, -1921392450, -2143631769, -2063868976, -1698919467, -1635936670, -1824608069, -1744851700, -1347415887, -1418654458, -1506661409, -1561119128, -1129027987, -1200260134, -1254728445, -1309196108};
        f13332 = new int[]{0, 4129, 8258, 12387, 16516, 20645, 24774, 28903, 33032, 37161, 41290, 45419, 49548, 53677, 57806, 61935};
        f13324 = new int[]{0, 7, 14, 9, 28, 27, 18, 21, 56, 63, 54, 49, 36, 35, 42, 45, 112, 119, 126, 121, 108, 107, 98, 101, 72, 79, 70, 65, 84, 83, 90, 93, 224, 231, 238, 233, 252, 251, 242, 245, 216, 223, 214, 209, 196, 195, 202, 205, 144, 151, 158, 153, 140, 139, 130, 133, 168, 175, 166, 161, 180, 179, 186, 189, 199, 192, 201, 206, 219, 220, 213, 210, 255, 248, 241, 246, 227, 228, 237, 234, 183, 176, ModuleDescriptor.MODULE_VERSION, 190, 171, 172, 165, 162, 143, 136, 129, 134, 147, 148, 157, 154, 39, 32, 41, 46, 59, 60, 53, 50, 31, 24, 17, 22, 3, 4, 13, 10, 87, 80, 89, 94, 75, 76, 69, 66, 111, 104, 97, 102, 115, 116, 125, 122, 137, 142, 135, 128, 149, 146, 155, 156, 177, 182, 191, 184, 173, 170, 163, 164, 249, 254, 247, 240, 229, 226, 235, 236, 193, 198, 207, 200, 221, 218, 211, 212, 105, 110, 103, 96, 117, 114, 123, 124, 81, 86, 95, 88, 77, 74, 67, 68, 25, 30, 23, 16, 5, 2, 11, 12, 33, 38, 47, 40, 61, 58, 51, 52, 78, 73, 64, 71, 82, 85, 92, 91, 118, 113, 120, 127, 106, 109, 100, 99, 62, 57, 48, 55, 34, 37, 44, 43, 6, 1, 8, 15, 26, 29, 20, 19, 174, 169, 160, 167, 178, 181, 188, 187, 150, 145, 152, 159, 138, 141, 132, 131, 222, 217, 208, 215, 194, 197, 204, 203, 230, 225, 232, 239, 250, 253, 244, 243};
    }

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public static boolean m8101(InterfaceC0304 interfaceC0304, boolean z) {
        if (interfaceC0304 != null) {
            C3916 c3916 = (C3916) interfaceC0304;
            if (c3916.m8629() && c3916.m8640() != 1 && c3916.m8640() != 4 && (!z || c3916.m8624() == 0 || c3916.m8624() == 4)) {
                return false;
            }
        }
        return true;
    }

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public static void m8102(ArrayList arrayList, int i, int i2) {
        if (i < 0 || i2 > arrayList.size() || i > i2) {
            ᵨᴵᵺ.ᵻᵢﹳᵰ();
        } else if (i != i2) {
            arrayList.subList(i, i2).clear();
        }
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public static int m8103(int i) {
        if (i == 2 || i == 4) {
            return 6005;
        }
        if (i == 10) {
            return 6004;
        }
        if (i == 7) {
            return 6005;
        }
        if (i == 8) {
            return 6003;
        }
        switch (i) {
            case 15:
                return 6003;
            case 16:
            case 18:
                return 6005;
            case 17:
            case 19:
            case 20:
            case 21:
            case 22:
                return 6004;
            default:
                switch (i) {
                    case 24:
                    case 25:
                    case 26:
                    case 27:
                    case 28:
                        return 6002;
                    default:
                        return 6006;
                }
        }
    }

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public static boolean m8104(int i) {
        return i == 21 || i == 1342177280 || i == 22 || i == 1610612736 || i == 4 || i == 1879048192;
    }

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public static String m8105(String str) throws ClassNotFoundException {
        try {
            Class<?> cls = Class.forName("android.os.SystemProperties");
            return (String) cls.getMethod("get", String.class).invoke(cls, str);
        } catch (Exception e) {
            ᵳʿˉ.ᵸˑ("Failed to read system property ".concat(str), e);
            return null;
        }
    }

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public static String m8106(byte[] bArr) {
        boolean z;
        C2479 c2479 = C4476.f16697;
        C4476 c24792 = c2479.f16698;
        if (c24792 == null) {
            C4505 c4505M9602 = c2479.f16699;
            char[] cArr = c4505M9602.f16792;
            int length = cArr.length;
            int i = 0;
            while (true) {
                if (i >= length) {
                    break;
                }
                if (ᵿᵧ.ᵡⁱᵥ(cArr[i])) {
                    int length2 = cArr.length;
                    int i2 = 0;
                    while (true) {
                        if (i2 >= length2) {
                            z = false;
                            break;
                        }
                        char c = cArr[i2];
                        if (c >= 'a' && c <= 'z') {
                            z = true;
                            break;
                        }
                        i2++;
                    }
                    ᵛᵾˏ.ᵢˇᵭ("Cannot call lowerCase() on a mixed-case alphabet", !z);
                    char[] cArr2 = new char[cArr.length];
                    for (int i3 = 0; i3 < cArr.length; i3++) {
                        char c2 = cArr[i3];
                        if (ᵿᵧ.ᵡⁱᵥ(c2)) {
                            c2 = (char) (c2 ^ ' ');
                        }
                        cArr2[i3] = c2;
                    }
                    C4505 c4505 = new C4505(AbstractC1327.m4107(new StringBuilder(), c4505M9602.f16791, ".lowerCase()"), cArr2);
                    c4505M9602 = c4505M9602.f16790 ? c4505.m9602() : c4505;
                } else {
                    i++;
                }
            }
            c24792 = c4505M9602 == c2479.f16699 ? c2479 : new C2479(c4505M9602);
            c2479.f16698 = c24792;
        }
        return c24792.m9516(bArr);
    }

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public static boolean m8107(int i) {
        return i == 3 || i == 2 || i == 268435456 || i == 21 || i == 1342177280 || i == 22 || i == 1610612736 || i == 4 || i == 1879048192;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static int m8108(int[] iArr, int i, boolean z, boolean z2) {
        int i2;
        int i3;
        int iBinarySearch = Arrays.binarySearch(iArr, i);
        if (iBinarySearch < 0) {
            i3 = -(iBinarySearch + 2);
        } else {
            while (true) {
                i2 = iBinarySearch - 1;
                if (i2 < 0 || iArr[i2] != i) {
                    break;
                }
                iBinarySearch = i2;
            }
            i3 = z ? iBinarySearch : i2;
        }
        return z2 ? Math.max(0, i3) : i3;
    }

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public static String m8109(String str) throws MissingResourceException {
        if (str == null) {
            return null;
        }
        String strReplace = str.replace('_', '-');
        if (!strReplace.isEmpty() && !strReplace.equals("und")) {
            str = strReplace;
        }
        String strConcat = ᵿᵧ.ᵺʙ(str);
        int i = 0;
        String str2 = strConcat.split("-", 2)[0];
        if (f13325 == null) {
            String[] iSOLanguages = Locale.getISOLanguages();
            int length = iSOLanguages.length;
            String[] strArr = f13333;
            HashMap map = new HashMap(length + strArr.length);
            for (String str3 : iSOLanguages) {
                try {
                    String iSO3Language = new Locale(str3).getISO3Language();
                    if (!TextUtils.isEmpty(iSO3Language)) {
                        map.put(iSO3Language, str3);
                    }
                } catch (MissingResourceException unused) {
                }
            }
            for (int i2 = 0; i2 < strArr.length; i2 += 2) {
                map.put(strArr[i2], strArr[i2 + 1]);
            }
            f13325 = map;
        }
        String str4 = (String) f13325.get(str2);
        if (str4 != null) {
            strConcat = str4.concat(strConcat.substring(str2.length()));
            str2 = str4;
        }
        if (!"no".equals(str2) && !"i".equals(str2) && !"zh".equals(str2)) {
            return strConcat;
        }
        while (true) {
            String[] strArr2 = f13328;
            if (i >= strArr2.length) {
                return strConcat;
            }
            if (strConcat.startsWith(strArr2[i])) {
                return strArr2[i + 1] + strConcat.substring(strArr2[i].length());
            }
            i += 2;
        }
    }

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public static long m8110(long j, int i) {
        return m8115(j, 1000000L, i, RoundingMode.DOWN);
    }

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public static void m8111(int i) {
        Integer.toString(i, 36);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public static int m8112(int i, int i2, int i3, byte[] bArr) {
        while (i < i2) {
            i3 = f13331[((i3 >>> 24) ^ (bArr[i] & 255)) & 255] ^ (i3 << 8);
            i++;
        }
        return i3;
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public static boolean m8113(SparseArray sparseArray, int i) {
        return sparseArray.indexOfKey(i) >= 0;
    }

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public static boolean m8114(int i) {
        return i == 10 || i == 13;
    }

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public static long m8115(long j, long j2, long j3, RoundingMode roundingMode) {
        if (j == 0 || j2 == 0) {
            return 0L;
        }
        return (j3 < j2 || j3 % j2 != 0) ? (j3 >= j2 || j2 % j3 != 0) ? (j3 < j || j3 % j != 0) ? (j3 >= j || j % j3 != 0) ? m8129(j, j2, j3, roundingMode) : ᵲᵝᵪ.ᵣᵟᵔ(j2, ᵲᵝᵪ.ˑᵱ(j, j3, RoundingMode.UNNECESSARY)) : ᵲᵝᵪ.ˑᵱ(j2, ᵲᵝᵪ.ˑᵱ(j3, j, RoundingMode.UNNECESSARY), roundingMode) : ᵲᵝᵪ.ᵣᵟᵔ(j, ᵲᵝᵪ.ˑᵱ(j2, j3, RoundingMode.UNNECESSARY)) : ᵲᵝᵪ.ˑᵱ(j, ᵲᵝᵪ.ˑᵱ(j3, j2, RoundingMode.UNNECESSARY), roundingMode);
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public static int m8116(int i, int i2) {
        return ((i + i2) - 1) / i2;
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public static long m8117(long j) {
        return j == -9223372036854775807L ? System.currentTimeMillis() : SystemClock.elapsedRealtime() + j;
    }

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public static Object[] m8118(int i, Object[] objArr) {
        ᵛᵾˏ.ᵯٴᵦ(i <= objArr.length);
        return Arrays.copyOf(objArr, i);
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static int m8119(long[] jArr, long j, boolean z) {
        int i;
        int iBinarySearch = Arrays.binarySearch(jArr, j);
        if (iBinarySearch < 0) {
            i = -(iBinarySearch + 2);
        } else {
            while (true) {
                int i2 = iBinarySearch - 1;
                if (i2 < 0 || jArr[i2] != j) {
                    break;
                }
                iBinarySearch = i2;
            }
            i = iBinarySearch;
        }
        return z ? Math.max(0, i) : i;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static int m8120(List list, Long l, boolean z) {
        int i;
        int iBinarySearch = Collections.binarySearch(list, l);
        if (iBinarySearch < 0) {
            i = -(iBinarySearch + 2);
        } else {
            while (true) {
                int i2 = iBinarySearch - 1;
                if (i2 < 0 || ((Comparable) list.get(i2)).compareTo(l) != 0) {
                    break;
                }
                iBinarySearch = i2;
            }
            i = iBinarySearch;
        }
        return z ? Math.max(0, i) : i;
    }

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public static boolean m8121(C3493 c3493, C3493 c34932, Inflater inflater) {
        if (c3493.m7959() == 0) {
            return false;
        }
        if (c34932.f13082.length < c3493.m7959()) {
            c34932.m7945(c3493.m7959() * 2);
        }
        if (inflater == null) {
            inflater = new Inflater();
        }
        inflater.setInput(c3493.f13082, c3493.f13083, c3493.m7959());
        int iInflate = 0;
        while (true) {
            try {
                byte[] bArr = c34932.f13082;
                iInflate += inflater.inflate(bArr, iInflate, bArr.length - iInflate);
                if (!inflater.finished()) {
                    if (inflater.needsDictionary() || inflater.needsInput()) {
                        break;
                    }
                    byte[] bArr2 = c34932.f13082;
                    if (iInflate == bArr2.length) {
                        c34932.m7945(bArr2.length * 2);
                    }
                } else {
                    c34932.m7950(iInflate);
                    inflater.reset();
                    return true;
                }
            } catch (DataFormatException unused) {
                return false;
            } finally {
                inflater.reset();
            }
        }
        return false;
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public static long m8122(long j, float f) {
        return f == 1.0f ? j : Math.round(j * f);
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public static int m8123(int i) {
        if (i != 2) {
            if (i == 3) {
                return 1;
            }
            if (i != 4) {
                if (i != 21) {
                    if (i != 22) {
                        if (i != 268435456) {
                            if (i != 1342177280) {
                                if (i != 1610612736) {
                                    if (i == 1879048192) {
                                        return 8;
                                    }
                                    ᵨᴵᵺ.ᵻᵢﹳᵰ();
                                    return 0;
                                }
                            }
                        }
                    }
                }
                return 3;
            }
            return 4;
        }
        return 2;
    }

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public static String m8124(StringBuilder sb, Formatter formatter, long j) {
        if (j == -9223372036854775807L) {
            j = 0;
        }
        String str = j < 0 ? "-" : "";
        long jAbs = (Math.abs(j) + 500) / 1000;
        long j2 = jAbs % 60;
        long j3 = (jAbs / 60) % 60;
        long j4 = jAbs / 3600;
        sb.setLength(0);
        return j4 > 0 ? formatter.format("%s%d:%02d:%02d", str, Long.valueOf(j4), Long.valueOf(j3), Long.valueOf(j2)).toString() : formatter.format("%s%02d:%02d", str, Long.valueOf(j3), Long.valueOf(j2)).toString();
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x002c  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x0030 A[RETURN] */
    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static boolean m8125(defpackage.InterfaceC0304 r4) {
        /*
            r0 = 0
            if (r4 != 0) goto L4
            return r0
        L4:
            ᵪᵻᵜᵜ r4 = (defpackage.C3916) r4
            int r1 = r4.m8640()
            r2 = 1
            if (r1 != r2) goto L19
            r3 = 2
            boolean r3 = r4.m8657(r3)
            if (r3 == 0) goto L19
            r4.m8654()
        L17:
            r0 = r2
            goto L26
        L19:
            r3 = 4
            if (r1 != r3) goto L26
            boolean r1 = r4.m8657(r3)
            if (r1 == 0) goto L26
            r4.m8623()
            goto L17
        L26:
            boolean r1 = r4.m8657(r2)
            if (r1 == 0) goto L30
            r4.m8646(r2)
            return r2
        L30:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC3558.m8125(ʾᵣᵱ):boolean");
    }

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public static boolean m8126(Context context) {
        int i = Build.VERSION.SDK_INT;
        if (i < 29 || context.getApplicationInfo().targetSdkVersion < 29) {
            return true;
        }
        if (i == 30) {
            String str = Build.MODEL;
            if (ᵿᵧ.ᵶᵷᵕ(str, "moto g(20)") || ᵿᵧ.ᵶᵷᵕ(str, "rmx3231")) {
                return true;
            }
        }
        return i == 34 && ᵿᵧ.ᵶᵷᵕ(Build.MODEL, "sm-x200");
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public static float m8127(float f, float f2, float f3) {
        return Math.max(f2, Math.min(f, f3));
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public static int m8128(int i) {
        switch (i) {
            case 2:
            case 3:
                return 3;
            case 4:
            case 5:
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                return 21;
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                return 23;
            case 9:
            case 10:
            case 11:
            case 12:
            case 15:
            case 16:
            case 17:
            case 18:
                return 28;
            case 13:
            case 19:
            case 23:
            case 24:
            case 25:
            case 26:
            case 27:
            case 28:
            case 29:
            default:
                return Integer.MAX_VALUE;
            case 14:
                return 25;
            case 20:
                return 30;
            case 21:
            case 22:
                return 31;
            case 30:
            case 31:
                return 34;
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:54:0x00de  */
    /* JADX WARN: Removed duplicated region for block: B:58:0x00f0  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x00f2  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x00f8  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x00fd  */
    /* JADX WARN: Removed duplicated region for block: B:68:0x00ff  */
    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static long m8129(long r9, long r11, long r13, java.math.RoundingMode r15) {
        /*
            Method dump skipped, instructions count: 312
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC3558.m8129(long, long, long, java.math.RoundingMode):long");
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public static Handler m8130(Handler.Callback callback) {
        Looper looperMyLooper = Looper.myLooper();
        looperMyLooper.getClass();
        return new Handler(looperMyLooper, callback);
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public static int m8131(String str) throws NumberFormatException {
        String[] strArrSplit;
        int length;
        int i = 0;
        if (str == null || (length = (strArrSplit = str.split("_", -1)).length) < 2) {
            return 0;
        }
        String str2 = strArrSplit[length - 1];
        boolean z = length >= 3 && "neg".equals(strArrSplit[length - 2]);
        try {
            str2.getClass();
            i = Integer.parseInt(str2);
            if (z) {
                return -i;
            }
        } catch (NumberFormatException unused) {
        }
        return i;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */
    /* JADX WARN: Removed duplicated region for block: B:16:0x0040  */
    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static int m8132(android.net.Uri r8) {
        /*
            java.lang.String r0 = r8.getScheme()
            r1 = 3
            if (r0 == 0) goto L18
            java.lang.String r2 = "rtsp"
            boolean r2 = ᵿᵧ.ᵶᵷᵕ(r2, r0)
            if (r2 != 0) goto L17
            java.lang.String r2 = "rtspt"
            boolean r0 = ᵿᵧ.ᵶᵷᵕ(r2, r0)
            if (r0 == 0) goto L18
        L17:
            return r1
        L18:
            java.lang.String r0 = r8.getLastPathSegment()
            r2 = 4
            if (r0 != 0) goto L21
            goto La4
        L21:
            r3 = 46
            int r3 = r0.lastIndexOf(r3)
            r4 = 0
            r5 = 2
            r6 = 1
            if (r3 < 0) goto L78
            int r3 = r3 + r6
            java.lang.String r0 = r0.substring(r3)
            java.lang.String r0 = ᵿᵧ.ᵺʙ(r0)
            r0.getClass()
            int r3 = r0.hashCode()
            r7 = -1
            switch(r3) {
                case 104579: goto L61;
                case 108321: goto L56;
                case 3242057: goto L4b;
                case 3299913: goto L42;
                default: goto L40;
            }
        L40:
            r1 = r7
            goto L6b
        L42:
            java.lang.String r3 = "m3u8"
            boolean r0 = r0.equals(r3)
            if (r0 != 0) goto L6b
            goto L40
        L4b:
            java.lang.String r1 = "isml"
            boolean r0 = r0.equals(r1)
            if (r0 != 0) goto L54
            goto L40
        L54:
            r1 = r5
            goto L6b
        L56:
            java.lang.String r1 = "mpd"
            boolean r0 = r0.equals(r1)
            if (r0 != 0) goto L5f
            goto L40
        L5f:
            r1 = r6
            goto L6b
        L61:
            java.lang.String r1 = "ism"
            boolean r0 = r0.equals(r1)
            if (r0 != 0) goto L6a
            goto L40
        L6a:
            r1 = r4
        L6b:
            switch(r1) {
                case 0: goto L74;
                case 1: goto L72;
                case 2: goto L74;
                case 3: goto L70;
                default: goto L6e;
            }
        L6e:
            r0 = r2
            goto L75
        L70:
            r0 = r5
            goto L75
        L72:
            r0 = r4
            goto L75
        L74:
            r0 = r6
        L75:
            if (r0 == r2) goto L78
            return r0
        L78:
            java.lang.String r8 = r8.getPath()
            r8.getClass()
            java.util.regex.Pattern r0 = defpackage.AbstractC3558.f13326
            java.util.regex.Matcher r8 = r0.matcher(r8)
            boolean r0 = r8.matches()
            if (r0 == 0) goto La4
            java.lang.String r8 = r8.group(r5)
            if (r8 == 0) goto La3
            java.lang.String r0 = "format=mpd-time-csf"
            boolean r0 = r8.contains(r0)
            if (r0 == 0) goto L9a
            return r4
        L9a:
            java.lang.String r0 = "format=m3u8-aapl"
            boolean r8 = r8.contains(r0)
            if (r8 == 0) goto La3
            return r5
        La3:
            return r6
        La4:
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC3558.m8132(android.net.Uri):int");
    }

    /* renamed from: ᵡᵶᵡ, reason: contains not printable characters */
    public static long m8133(long j) {
        return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j * 1000;
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public static Locale m8134() {
        return Build.VERSION.SDK_INT >= 24 ? Locale.getDefault(Locale.Category.DISPLAY) : Locale.getDefault();
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public static int m8135(int i, String str) {
        int i2 = 0;
        for (String str2 : m8156(str)) {
            if (i == AbstractC2924.m7106(AbstractC2924.m7100(str2))) {
                i2++;
            }
        }
        return i2;
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public static Point m8136(Context context) throws NumberFormatException {
        DisplayManager displayManager = (DisplayManager) context.getSystemService("display");
        Display display = displayManager != null ? displayManager.getDisplay(0) : null;
        if (display == null) {
            WindowManager windowManager = (WindowManager) context.getSystemService("window");
            windowManager.getClass();
            display = windowManager.getDefaultDisplay();
        }
        if (display.getDisplayId() == 0 && m8147(context)) {
            String strM8105 = Build.VERSION.SDK_INT < 28 ? m8105("sys.display-size") : m8105("vendor.display-size");
            if (!TextUtils.isEmpty(strM8105)) {
                try {
                    String[] strArrSplit = strM8105.trim().split("x", -1);
                    if (strArrSplit.length == 2) {
                        int i = Integer.parseInt(strArrSplit[0]);
                        int i2 = Integer.parseInt(strArrSplit[1]);
                        if (i > 0 && i2 > 0) {
                            return new Point(i, i2);
                        }
                    }
                } catch (NumberFormatException unused) {
                }
                ᵳʿˉ.ᵶᵷᵕ("Invalid display size: " + strM8105);
            }
            if ("Sony".equals(Build.MANUFACTURER) && Build.MODEL.startsWith("BRAVIA") && context.getPackageManager().hasSystemFeature("com.sony.dtv.hardware.panel.qfhd")) {
                return new Point(3840, 2160);
            }
        }
        Point point = new Point();
        Display.Mode mode = display.getMode();
        point.x = mode.getPhysicalWidth();
        point.y = mode.getPhysicalHeight();
        return point;
    }

    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    public static String m8137(int i) {
        return new String(new byte[]{(byte) (i >> 24), (byte) (i >> 16), (byte) (i >> 8), (byte) i}, StandardCharsets.US_ASCII);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static long m8138(long j, long j2) {
        long j3 = j + j2;
        long j4 = (((j2 ^ j) > 0L ? 1 : ((j2 ^ j) == 0L ? 0 : -1)) < 0) | ((j ^ j3) >= 0) ? j3 : ((j3 >>> 63) ^ 1) + Long.MAX_VALUE;
        if ((j4 != Long.MIN_VALUE || j3 == Long.MIN_VALUE) && (j4 != Long.MAX_VALUE || j3 == Long.MAX_VALUE)) {
            return j4;
        }
        return Long.MAX_VALUE;
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public static C3446 m8139(int i, int i2, int i3) {
        C2153 c2153 = new C2153();
        c2153.f8516 = AbstractC2924.m7101("audio/raw");
        c2153.f8517 = i2;
        c2153.f8513 = i3;
        c2153.f8526 = i;
        return new C3446(c2153);
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public static byte[] m8140(String str) {
        C2479 c2479 = C4476.f16697;
        C4476 c24792 = c2479.f16701;
        if (c24792 == null) {
            C4505 c4505M9602 = c2479.f16699.m9602();
            c24792 = c4505M9602 == c2479.f16699 ? c2479 : new C2479(c4505M9602);
            c2479.f16701 = c24792;
        }
        try {
            int length = (int) (((c24792.f16699.f16794 * r6.length()) + 7) / 8);
            byte[] bArr = new byte[length];
            int iMo1697 = c24792.mo1697(bArr, c24792.m9514(str));
            if (iMo1697 == length) {
                return bArr;
            }
            byte[] bArr2 = new byte[iMo1697];
            System.arraycopy(bArr, 0, bArr2, 0, iMo1697);
            return bArr2;
        } catch (BaseEncoding$DecodingException e) {
            throw new IllegalArgumentException(e);
        }
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public static int m8141(int i) {
        if (i == 10) {
            return Build.VERSION.SDK_INT >= 32 ? 737532 : 6396;
        }
        if (i == 16) {
            return Build.VERSION.SDK_INT >= 32 ? 205215996 : 0;
        }
        if (i == 24) {
            return Build.VERSION.SDK_INT >= 32 ? 67108860 : 0;
        }
        switch (i) {
            case 1:
                break;
            case 2:
                break;
            case 3:
                break;
            case 4:
                break;
            case 5:
                break;
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                break;
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                break;
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                break;
            default:
                switch (i) {
                    case 13:
                        if (Build.VERSION.SDK_INT >= 32) {
                        }
                        break;
                    case 14:
                        if (Build.VERSION.SDK_INT >= 32) {
                        }
                        break;
                }
        }
        return 0;
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public static boolean m8142(SparseArray sparseArray, SparseArray sparseArray2) {
        if (sparseArray == null) {
            return sparseArray2 == null;
        }
        if (sparseArray2 == null) {
            return false;
        }
        if (Build.VERSION.SDK_INT >= 31) {
            return sparseArray.contentEquals(sparseArray2);
        }
        int size = sparseArray.size();
        if (size != sparseArray2.size()) {
            return false;
        }
        for (int i = 0; i < size; i++) {
            if (!Objects.equals(sparseArray.valueAt(i), sparseArray2.get(sparseArray.keyAt(i)))) {
                return false;
            }
        }
        return true;
    }

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public static long m8143(String str) throws ParserException {
        Matcher matcher = f13334.matcher(str);
        if (!matcher.matches()) {
            throw ParserException.m356("Invalid date/time format: " + str, null);
        }
        int i = 0;
        if (matcher.group(9) != null && !matcher.group(9).equalsIgnoreCase("Z")) {
            int i2 = Integer.parseInt(matcher.group(12)) * 60;
            String strGroup = matcher.group(13);
            i = strGroup != null ? Integer.parseInt(strGroup) + i2 : i2;
            if ("-".equals(matcher.group(11))) {
                i *= -1;
            }
        }
        GregorianCalendar gregorianCalendar = new GregorianCalendar(DesugarTimeZone.getTimeZone("GMT"));
        gregorianCalendar.clear();
        gregorianCalendar.set(Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)) - 1, Integer.parseInt(matcher.group(3)), Integer.parseInt(matcher.group(4)), Integer.parseInt(matcher.group(5)), Integer.parseInt(matcher.group(6)));
        if (!TextUtils.isEmpty(matcher.group(8))) {
            gregorianCalendar.set(14, new BigDecimal("0." + matcher.group(8)).movePointRight(3).intValue());
        }
        long timeInMillis = gregorianCalendar.getTimeInMillis();
        return i != 0 ? timeInMillis - (i * 60000) : timeInMillis;
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public static int m8144(int i, ByteOrder byteOrder) {
        if (i == 8) {
            return 3;
        }
        if (i == 16) {
            return byteOrder.equals(ByteOrder.LITTLE_ENDIAN) ? 2 : 268435456;
        }
        if (i == 24) {
            return byteOrder.equals(ByteOrder.LITTLE_ENDIAN) ? 21 : 1342177280;
        }
        if (i != 32) {
            return 0;
        }
        return byteOrder.equals(ByteOrder.LITTLE_ENDIAN) ? 22 : 1610612736;
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public static boolean m8145(Object[] objArr, Object obj) {
        for (Object obj2 : objArr) {
            if (Objects.equals(obj2, obj)) {
                return true;
            }
        }
        return false;
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public static int m8146(SparseArray sparseArray) {
        if (Build.VERSION.SDK_INT >= 31) {
            return sparseArray.contentHashCode();
        }
        int iHashCode = 17;
        for (int i = 0; i < sparseArray.size(); i++) {
            iHashCode = Objects.hashCode(sparseArray.valueAt(i)) + ((sparseArray.keyAt(i) + (iHashCode * 31)) * 31);
        }
        return iHashCode;
    }

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public static boolean m8147(Context context) {
        UiModeManager uiModeManager = (UiModeManager) context.getApplicationContext().getSystemService("uimode");
        return uiModeManager != null && uiModeManager.getCurrentModeType() == 4;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static int m8148(long[] jArr, long j, boolean z) {
        int i;
        int iBinarySearch = Arrays.binarySearch(jArr, j);
        if (iBinarySearch < 0) {
            return ~iBinarySearch;
        }
        while (true) {
            i = iBinarySearch + 1;
            if (i >= jArr.length || jArr[i] != j) {
                break;
            }
            iBinarySearch = i;
        }
        return z ? iBinarySearch : i;
    }

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public static String[] m8149() {
        Configuration configuration = Resources.getSystem().getConfiguration();
        String[] strArrSplit = Build.VERSION.SDK_INT >= 24 ? configuration.getLocales().toLanguageTags().split(",", -1) : new String[]{configuration.locale.toLanguageTag()};
        for (int i = 0; i < strArrSplit.length; i++) {
            strArrSplit[i] = m8109(strArrSplit[i]);
        }
        return strArrSplit;
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public static int m8150(int i, int i2, int i3) {
        return Math.max(i2, Math.min(i, i3));
    }

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public static void m8151(long[] jArr, long j) {
        long j2;
        RoundingMode roundingMode = RoundingMode.DOWN;
        int i = 0;
        if (j >= 1000000 && j % 1000000 == 0) {
            long j3 = ᵲᵝᵪ.ˑᵱ(j, 1000000L, RoundingMode.UNNECESSARY);
            while (i < jArr.length) {
                jArr[i] = ᵲᵝᵪ.ˑᵱ(jArr[i], j3, roundingMode);
                i++;
            }
            return;
        }
        if (j < 1000000 && 1000000 % j == 0) {
            long j4 = ᵲᵝᵪ.ˑᵱ(1000000L, j, RoundingMode.UNNECESSARY);
            while (i < jArr.length) {
                jArr[i] = ᵲᵝᵪ.ᵣᵟᵔ(jArr[i], j4);
                i++;
            }
            return;
        }
        int i2 = 0;
        while (i2 < jArr.length) {
            long j5 = jArr[i2];
            if (j5 != 0) {
                if (j >= j5 && j % j5 == 0) {
                    jArr[i2] = ᵲᵝᵪ.ˑᵱ(1000000L, ᵲᵝᵪ.ˑᵱ(j, j5, RoundingMode.UNNECESSARY), roundingMode);
                } else if (j >= j5 || j5 % j != 0) {
                    j2 = j;
                    jArr[i2] = m8129(j5, 1000000L, j2, roundingMode);
                } else {
                    jArr[i2] = ᵲᵝᵪ.ᵣᵟᵔ(1000000L, ᵲᵝᵪ.ˑᵱ(j5, j, RoundingMode.UNNECESSARY));
                }
                j2 = j;
            } else {
                j2 = j;
            }
            i2++;
            j = j2;
        }
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public static String m8152(byte[] bArr) {
        return new String(bArr, StandardCharsets.UTF_8);
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public static long m8153(long j, long j2, long j3) {
        return Math.max(j2, Math.min(j, j3));
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static void m8154(Closeable closeable) throws IOException {
        if (closeable != null) {
            try {
                closeable.close();
            } catch (IOException unused) {
            }
        }
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public static long m8155(long j, float f) {
        return f == 1.0f ? j : Math.round(j / f);
    }

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public static String[] m8156(String str) {
        return TextUtils.isEmpty(str) ? new String[0] : str.trim().split("(\\s*,\\s*)", -1);
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static int m8157(C2124 c2124, long j) {
        int i = c2124.f8374 - 1;
        int i2 = 0;
        while (i2 <= i) {
            int i3 = (i2 + i) >>> 1;
            if (c2124.m5722(i3) < j) {
                i2 = i3 + 1;
            } else {
                i = i3 - 1;
            }
        }
        int i4 = i + 1;
        if (i4 < c2124.f8374 && c2124.m5722(i4) == j) {
            return i4;
        }
        if (i == -1) {
            return 0;
        }
        return i;
    }

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public static void m8158(Handler handler, Runnable runnable) {
        Looper looper = handler.getLooper();
        if (looper.getThread().isAlive()) {
            if (looper == Looper.myLooper()) {
                runnable.run();
            } else {
                handler.post(runnable);
            }
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x0041  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x0049 A[ORIG_RETURN, RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:26:0x004b  */
    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static defpackage.C0938 m8159(java.lang.String r9, java.lang.String r10, java.lang.String r11) {
        /*
            if (r9 != 0) goto L3
            goto L49
        L3:
            boolean r10 = defpackage.AbstractC2924.m7102(r9, r10)
            if (r10 != 0) goto La
            goto L49
        La:
            java.lang.String r10 = "dvhe"
            boolean r10 = r9.startsWith(r10)
            r0 = -1
            r1 = 6
            if (r10 != 0) goto L45
            java.lang.String r10 = "dvh1"
            boolean r10 = r9.startsWith(r10)
            if (r10 != 0) goto L45
            java.lang.String r10 = "dav1"
            boolean r9 = r9.startsWith(r10)
            if (r9 == 0) goto L25
            goto L45
        L25:
            if (r11 == 0) goto L41
            java.lang.String r9 = "db1p"
            boolean r9 = r11.equals(r9)
            r10 = 2
            if (r9 == 0) goto L34
        L30:
            r4 = r10
            r3 = r1
            r5 = r3
            goto L47
        L34:
            java.lang.String r9 = "db4"
            boolean r9 = r11.startsWith(r9)
            if (r9 == 0) goto L41
            r9 = 7
            r5 = r9
            r4 = r10
            r3 = r1
            goto L47
        L41:
            r3 = r0
            r4 = r3
            r5 = r4
            goto L47
        L45:
            r10 = 1
            goto L30
        L47:
            if (r3 != r0) goto L4b
        L49:
            r9 = 0
            return r9
        L4b:
            ˇˈʖ r2 = new ˇˈʖ
            r6 = 0
            r7 = -1
            r8 = r7
            r2.<init>(r3, r4, r5, r6, r7, r8)
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.AbstractC3558.m8159(java.lang.String, java.lang.String, java.lang.String):ˇˈʖ");
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public static String m8160(int i, String str) {
        String[] strArrM8156 = m8156(str);
        if (strArrM8156.length == 0) {
            return null;
        }
        StringBuilder sb = new StringBuilder();
        for (String str2 : strArrM8156) {
            if (i == AbstractC2924.m7106(AbstractC2924.m7100(str2))) {
                if (sb.length() > 0) {
                    sb.append(",");
                }
                sb.append(str2);
            }
        }
        if (sb.length() > 0) {
            return sb.toString();
        }
        return null;
    }

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public static long m8161(long j) {
        return (j == -9223372036854775807L || j == Long.MIN_VALUE) ? j : j / 1000;
    }

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public static String m8162(int i) {
        switch (i) {
            case -2:
                return "none";
            case -1:
                return "unknown";
            case 0:
                return "default";
            case 1:
                return "audio";
            case 2:
                return "video";
            case 3:
                return "text";
            case 4:
                return "image";
            case 5:
                return "metadata";
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                return "camera motion";
            default:
                return i >= 10000 ? AbstractC3915.m8596(i, "custom (", ")") : "?";
        }
    }
}
