package p402.p420;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.p403.AbstractC6566;
import p402.p403.C6560;
import p402.p411.p412.InterfaceC6614;
import p402.p411.p413.C6635;
import p402.p417.C6659;
import p402.p417.C6662;
import p402.p417.C6664;
import p402.p419.C6686;
import p402.p419.InterfaceC6684;

/* JADX INFO: renamed from: ގ.ޔ.މ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C6703 extends C6700 {
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m9855(CharSequence charSequence) {
        if (charSequence != null) {
            return charSequence.length() - 1;
        }
        C6635.m9824("$this$lastIndex");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ int m9856(CharSequence charSequence, char c, int i, boolean z, int i2) {
        if ((i2 & 2) != 0) {
            i = 0;
        }
        if ((i2 & 4) != 0) {
            z = false;
        }
        if (charSequence != null) {
            return (z || !(charSequence instanceof String)) ? m9861(charSequence, new char[]{c}, i, z) : ((String) charSequence).indexOf(c, i);
        }
        C6635.m9824("$this$indexOf");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m9857(CharSequence charSequence, CharSequence charSequence2, int i, int i2, boolean z, boolean z2) {
        C6659 c6659M9844;
        if (z2) {
            int iM9855 = m9855(charSequence);
            if (i > iM9855) {
                i = iM9855;
            }
            if (i2 < 0) {
                i2 = 0;
            }
            c6659M9844 = C6664.m9844(i, i2);
        } else {
            if (i < 0) {
                i = 0;
            }
            int length = charSequence.length();
            if (i2 > length) {
                i2 = length;
            }
            c6659M9844 = new C6662(i, i2);
        }
        if ((charSequence instanceof String) && (charSequence2 instanceof String)) {
            int i3 = c6659M9844.f19412;
            int i4 = c6659M9844.f19413;
            int i5 = c6659M9844.f19414;
            if (i5 >= 0) {
                if (i3 > i4) {
                    return -1;
                }
            } else if (i3 < i4) {
                return -1;
            }
            while (!m9882((String) charSequence2, 0, (String) charSequence, i3, charSequence2.length(), z)) {
                if (i3 == i4) {
                    return -1;
                }
                i3 += i5;
            }
            return i3;
        }
        int i6 = c6659M9844.f19412;
        int i7 = c6659M9844.f19413;
        int i8 = c6659M9844.f19414;
        if (i8 >= 0) {
            if (i6 > i7) {
                return -1;
            }
        } else if (i6 < i7) {
            return -1;
        }
        while (!m9879(charSequence2, 0, charSequence, i6, charSequence2.length(), z)) {
            if (i6 == i7) {
                return -1;
            }
            i6 += i8;
        }
        return i6;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ int m9858(CharSequence charSequence, CharSequence charSequence2, int i, int i2, boolean z, boolean z2, int i3) {
        return m9857(charSequence, charSequence2, i, i2, z, (i3 & 16) != 0 ? false : z2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m9859(CharSequence charSequence, String str, int i, boolean z) {
        if (charSequence == null) {
            C6635.m9824("$this$indexOf");
            throw null;
        }
        if (str != null) {
            return (z || !(charSequence instanceof String)) ? m9858(charSequence, str, i, charSequence.length(), z, false, 16) : ((String) charSequence).indexOf(str, i);
        }
        C6635.m9824("string");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ int m9860(CharSequence charSequence, String str, int i, boolean z, int i2) {
        if ((i2 & 2) != 0) {
            i = 0;
        }
        if ((i2 & 4) != 0) {
            z = false;
        }
        return m9859(charSequence, str, i, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m9861(CharSequence charSequence, char[] cArr, int i, boolean z) {
        boolean z2;
        if (charSequence == null) {
            C6635.m9824("$this$indexOfAny");
            throw null;
        }
        if (cArr == null) {
            C6635.m9824("chars");
            throw null;
        }
        if (!z && cArr.length == 1 && (charSequence instanceof String)) {
            return ((String) charSequence).indexOf(C4303.m6973(cArr), i);
        }
        if (i < 0) {
            i = 0;
        }
        int iM9855 = m9855(charSequence);
        if (i > iM9855) {
            return -1;
        }
        while (true) {
            char cCharAt = charSequence.charAt(i);
            int length = cArr.length;
            int i2 = 0;
            while (true) {
                if (i2 >= length) {
                    z2 = false;
                    break;
                }
                if (C4303.m7121(cArr[i2], cCharAt, z)) {
                    z2 = true;
                    break;
                }
                i2++;
            }
            if (z2) {
                return i;
            }
            if (i == iM9855) {
                return -1;
            }
            i++;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final int m9862(String str, String str2, boolean z) {
        if (str == null) {
            C6635.m9824("$this$compareTo");
            throw null;
        }
        if (str2 != null) {
            return z ? str.compareToIgnoreCase(str2) : str.compareTo(str2);
        }
        C6635.m9824("other");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9863(CharSequence charSequence, C6662 c6662) {
        if (charSequence == null) {
            C6635.m9824("$this$substring");
            throw null;
        }
        if (c6662 != null) {
            return charSequence.subSequence(Integer.valueOf(c6662.f19412).intValue(), Integer.valueOf(c6662.f19413).intValue() + 1).toString();
        }
        C6635.m9824("range");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9864(String str) {
        if (str == null) {
            C6635.m9824("$this$capitalize");
            throw null;
        }
        if (!(str.length() > 0) || !Character.isLowerCase(str.charAt(0))) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        String strSubstring = str.substring(0, 1);
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        String upperCase = strSubstring.toUpperCase();
        C6635.m9823((Object) upperCase, "(this as java.lang.String).toUpperCase()");
        sb.append(upperCase);
        String strSubstring2 = str.substring(1);
        C6635.m9823((Object) strSubstring2, "(this as java.lang.String).substring(startIndex)");
        sb.append(strSubstring2);
        return sb.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9865(String str, char c, String str2) {
        if (str == null) {
            C6635.m9824("$this$substringAfter");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9856 = m9856((CharSequence) str, c, 0, false, 6);
        if (iM9856 == -1) {
            return str2;
        }
        String strSubstring = str.substring(iM9856 + 1, str.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ String m9866(String str, char c, String str2, int i) {
        if ((i & 2) != 0) {
            str2 = str;
        }
        return m9889(str, c, str2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9867(String str, CharSequence charSequence) {
        if (str == null) {
            C6635.m9824("$this$removePrefix");
            throw null;
        }
        if (charSequence == null) {
            C6635.m9824("prefix");
            throw null;
        }
        if (!m9904((CharSequence) str, charSequence, false)) {
            return str;
        }
        String strSubstring = str.substring(charSequence.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.String).substring(startIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ String m9868(String str, String str2, int i) {
        String strSubstring;
        String str3;
        if ((i & 1) != 0) {
            str2 = "|";
        }
        if (str == null) {
            C6635.m9824("$this$trimMargin");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("marginPrefix");
            throw null;
        }
        if (!(!m9895((CharSequence) str2))) {
            throw new IllegalArgumentException("marginPrefix must be non-blank string.".toString());
        }
        List listM7042 = C4303.m7042(m9894((CharSequence) str, new String[]{"\r\n", "\n", "\r"}, false, 0, 6));
        int size = (listM7042.size() * 0) + str.length();
        InterfaceC6614 c6702 = "".length() == 0 ? C6701.f19464 : new C6702("");
        int iM6987 = C4303.m6987(listM7042);
        ArrayList arrayList = new ArrayList();
        int i2 = 0;
        for (Object obj : listM7042) {
            int i3 = i2 + 1;
            if (i2 < 0) {
                C4303.m7193();
                throw null;
            }
            String str4 = (String) obj;
            if ((i2 == 0 || i2 == iM6987) && m9895((CharSequence) str4)) {
                str4 = null;
            } else {
                int length = str4.length();
                int i4 = 0;
                while (true) {
                    if (i4 >= length) {
                        i4 = -1;
                        break;
                    }
                    if (!C4303.m7120(str4.charAt(i4))) {
                        break;
                    }
                    i4++;
                }
                if (i4 != -1 && m9884(str4, str2, i4, false, 4)) {
                    strSubstring = str4.substring(str2.length() + i4);
                    C6635.m9823((Object) strSubstring, "(this as java.lang.String).substring(startIndex)");
                } else {
                    strSubstring = null;
                }
                if (strSubstring != null && (str3 = (String) c6702.mo1606(strSubstring)) != null) {
                    str4 = str3;
                }
            }
            if (str4 != null) {
                arrayList.add(str4);
            }
            i2 = i3;
        }
        StringBuilder sb = new StringBuilder(size);
        C6560.m9771(arrayList, sb, "\n", "", "", -1, "...", (InterfaceC6614) null);
        String string = sb.toString();
        C6635.m9823((Object) string, "mapIndexedNotNull { inde…\"\\n\")\n        .toString()");
        return string;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9869(String str, String str2, String str3) {
        if (str == null) {
            C6635.m9824("$this$substringAfter");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("delimiter");
            throw null;
        }
        if (str3 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9860 = m9860((CharSequence) str, str2, 0, false, 6);
        if (iM9860 == -1) {
            return str3;
        }
        String strSubstring = str.substring(str2.length() + iM9860, str.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ String m9870(String str, String str2, String str3, int i) {
        if ((i & 2) != 0) {
            str3 = str;
        }
        return m9869(str, str2, str3);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ String m9871(String str, String str2, String str3, boolean z, int i) {
        if ((i & 4) != 0) {
            z = false;
        }
        if (str == null) {
            C6635.m9824("$this$replace");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("oldValue");
            throw null;
        }
        if (str3 != null) {
            return C4303.m7027(m9894(str, new String[]{str2}, z, 0, 4), str3, null, null, 0, null, null, 62);
        }
        C6635.m9824("newValue");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m9872(String str, char... cArr) {
        if (str == null) {
            C6635.m9824("$this$trim");
            throw null;
        }
        if (cArr == null) {
            C6635.m9824("chars");
            throw null;
        }
        int length = str.length() - 1;
        int i = 0;
        boolean z = false;
        while (i <= length) {
            boolean zM7137 = C4303.m7137(cArr, str.charAt(!z ? i : length));
            if (z) {
                if (!zM7137) {
                    break;
                }
                length--;
            } else if (zM7137) {
                i++;
            } else {
                z = true;
            }
        }
        return str.subSequence(i, length + 1).toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final List<String> m9873(CharSequence charSequence, String str, boolean z, int i) {
        int length = 0;
        if (!(i >= 0)) {
            throw new IllegalArgumentException(("Limit must be non-negative, but was " + i + '.').toString());
        }
        int iM9859 = m9859(charSequence, str, 0, z);
        if (iM9859 == -1 || i == 1) {
            return C4303.m7191(charSequence.toString());
        }
        boolean z2 = i > 0;
        int i2 = 10;
        if (z2 && i <= 10) {
            i2 = i;
        }
        ArrayList arrayList = new ArrayList(i2);
        do {
            arrayList.add(charSequence.subSequence(length, iM9859).toString());
            length = str.length() + iM9859;
            if (z2 && arrayList.size() == i - 1) {
                break;
            }
            iM9859 = m9859(charSequence, str, length, z);
        } while (iM9859 != -1);
        arrayList.add(charSequence.subSequence(length, charSequence.length()).toString());
        return arrayList;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ List m9874(CharSequence charSequence, char[] cArr, boolean z, int i, int i2) {
        boolean z2 = (i2 & 2) != 0 ? false : z;
        int i3 = (i2 & 4) != 0 ? 0 : i;
        if (charSequence == null) {
            C6635.m9824("$this$split");
            throw null;
        }
        if (cArr == null) {
            C6635.m9824("delimiters");
            throw null;
        }
        if (cArr.length == 1) {
            return m9873(charSequence, String.valueOf(cArr[0]), z2, i3);
        }
        C6686 c6686 = new C6686(m9876(charSequence, cArr, 0, z2, i3, 2));
        ArrayList arrayList = new ArrayList(C4303.m6985(c6686, 10));
        Iterator it = c6686.iterator();
        while (it.hasNext()) {
            arrayList.add(m9863(charSequence, (C6662) it.next()));
        }
        return arrayList;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ List m9875(CharSequence charSequence, String[] strArr, boolean z, int i, int i2) {
        boolean z2 = (i2 & 2) != 0 ? false : z;
        int i3 = (i2 & 4) != 0 ? 0 : i;
        if (charSequence == null) {
            C6635.m9824("$this$split");
            throw null;
        }
        if (strArr == null) {
            C6635.m9824("delimiters");
            throw null;
        }
        if (strArr.length == 1) {
            String str = strArr[0];
            if (!(str.length() == 0)) {
                return m9873(charSequence, str, z2, i3);
            }
        }
        C6686 c6686 = new C6686(m9877(charSequence, strArr, 0, z2, i3, 2));
        ArrayList arrayList = new ArrayList(C4303.m6985(c6686, 10));
        Iterator it = c6686.iterator();
        while (it.hasNext()) {
            arrayList.add(m9863(charSequence, (C6662) it.next()));
        }
        return arrayList;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC6684 m9876(CharSequence charSequence, char[] cArr, int i, boolean z, int i2, int i3) {
        if ((i3 & 2) != 0) {
            i = 0;
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        if ((i3 & 8) != 0) {
            i2 = 0;
        }
        if (i2 >= 0) {
            return new C6690(charSequence, i, i2, new C6704(cArr, z));
        }
        throw new IllegalArgumentException(("Limit must be non-negative, but was " + i2 + '.').toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC6684 m9877(CharSequence charSequence, String[] strArr, int i, boolean z, int i2, int i3) {
        if ((i3 & 2) != 0) {
            i = 0;
        }
        if ((i3 & 4) != 0) {
            z = false;
        }
        if ((i3 & 8) != 0) {
            i2 = 0;
        }
        if (i2 >= 0) {
            return new C6690(charSequence, i, i2, new C6705(C6560.m9781(strArr), z));
        }
        throw new IllegalArgumentException(("Limit must be non-negative, but was " + i2 + '.').toString());
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m9878(CharSequence charSequence, char c, boolean z, int i) {
        if ((i & 2) != 0) {
            z = false;
        }
        if (charSequence != null) {
            return m9856(charSequence, c, 0, z, 2) >= 0;
        }
        C6635.m9824("$this$contains");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m9879(CharSequence charSequence, int i, CharSequence charSequence2, int i2, int i3, boolean z) {
        if (charSequence == null) {
            C6635.m9824("$this$regionMatchesImpl");
            throw null;
        }
        if (charSequence2 == null) {
            C6635.m9824("other");
            throw null;
        }
        if (i2 < 0 || i < 0 || i > charSequence.length() - i3 || i2 > charSequence2.length() - i3) {
            return false;
        }
        for (int i4 = 0; i4 < i3; i4++) {
            if (!C4303.m7121(charSequence.charAt(i + i4), charSequence2.charAt(i2 + i4), z)) {
                return false;
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m9880(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        if (charSequence == null) {
            C6635.m9824("$this$contains");
            throw null;
        }
        if (charSequence2 == null) {
            C6635.m9824("other");
            throw null;
        }
        if (charSequence2 instanceof String) {
            if (m9860(charSequence, (String) charSequence2, 0, z, 2) >= 0) {
                return true;
            }
        } else if (m9858(charSequence, charSequence2, 0, charSequence.length(), z, false, 16) >= 0) {
            return true;
        }
        return false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m9881(CharSequence charSequence, CharSequence charSequence2, boolean z, int i) {
        if ((i & 2) != 0) {
            z = false;
        }
        return m9880(charSequence, charSequence2, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m9882(String str, int i, String str2, int i2, int i3, boolean z) {
        if (str == null) {
            C6635.m9824("$this$regionMatches");
            throw null;
        }
        if (str2 != null) {
            return !z ? str.regionMatches(i, str2, i2, i3) : str.regionMatches(z, i, str2, i2, i3);
        }
        C6635.m9824("other");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final boolean m9883(String str, String str2, int i, boolean z) {
        if (str == null) {
            C6635.m9824("$this$startsWith");
            throw null;
        }
        if (str2 != null) {
            return !z ? str.startsWith(str2, i) : m9882(str, i, str2, 0, str2.length(), z);
        }
        C6635.m9824("prefix");
        throw null;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m9884(String str, String str2, int i, boolean z, int i2) {
        if ((i2 & 4) != 0) {
            z = false;
        }
        return m9883(str, str2, i, z);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ boolean m9885(String str, String str2, boolean z, int i) {
        if ((i & 2) != 0) {
            z = false;
        }
        return m9898(str, str2, z);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ int m9886(CharSequence charSequence, char c, int i, boolean z, int i2) {
        boolean z2;
        if ((i2 & 2) != 0) {
            i = m9855(charSequence);
        }
        if ((i2 & 4) != 0) {
            z = false;
        }
        if (charSequence == null) {
            C6635.m9824("$this$lastIndexOf");
            throw null;
        }
        if (!z && (charSequence instanceof String)) {
            return ((String) charSequence).lastIndexOf(c, i);
        }
        char[] cArr = {c};
        if (!z && (charSequence instanceof String)) {
            return ((String) charSequence).lastIndexOf(C4303.m6973(cArr), i);
        }
        int iM9855 = m9855(charSequence);
        if (i > iM9855) {
            i = iM9855;
        }
        while (i >= 0) {
            char cCharAt = charSequence.charAt(i);
            int i3 = 0;
            while (true) {
                if (i3 >= 1) {
                    z2 = false;
                    break;
                }
                if (C4303.m7121(cArr[i3], cCharAt, z)) {
                    z2 = true;
                    break;
                }
                i3++;
            }
            if (z2) {
                return i;
            }
            i--;
        }
        return -1;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ int m9887(CharSequence charSequence, String str, int i, boolean z, int i2) {
        if ((i2 & 2) != 0) {
            i = m9855(charSequence);
        }
        int i3 = i;
        boolean z2 = (i2 & 4) != 0 ? false : z;
        if (charSequence == null) {
            C6635.m9824("$this$lastIndexOf");
            throw null;
        }
        if (str != null) {
            return (z2 || !(charSequence instanceof String)) ? m9857(charSequence, (CharSequence) str, i3, 0, z2, true) : ((String) charSequence).lastIndexOf(str, i3);
        }
        C6635.m9824("string");
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x0037  */
    /* JADX WARN: Removed duplicated region for block: B:34:0x0058  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x005d  */
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final Integer m9888(String str) {
        int i;
        int i2;
        if (str == null) {
            C6635.m9824("$this$toIntOrNull");
            throw null;
        }
        C4303.m6976(10);
        int length = str.length();
        if (length == 0) {
            return null;
        }
        int i3 = 0;
        char cCharAt = str.charAt(0);
        int i4 = -2147483647;
        boolean z = true;
        if (cCharAt >= '0') {
            i = 0;
        } else {
            if (length == 1) {
                return null;
            }
            if (cCharAt == '-') {
                i4 = Integer.MIN_VALUE;
                i = 1;
                int i5 = -59652323;
                while (i < length) {
                    int iDigit = Character.digit((int) str.charAt(i), 10);
                    if (iDigit < 0) {
                        return null;
                    }
                    if ((i3 < i5 && (i5 != -59652323 || i3 < (i5 = i4 / 10))) || (i2 = i3 * 10) < i4 + iDigit) {
                        return null;
                    }
                    i3 = i2 - iDigit;
                    i++;
                }
                return !z ? Integer.valueOf(i3) : Integer.valueOf(-i3);
            }
            if (cCharAt != '+') {
                return null;
            }
            i = 1;
        }
        z = false;
        int i52 = -59652323;
        while (i < length) {
        }
        return !z ? Integer.valueOf(i3) : Integer.valueOf(-i3);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m9889(String str, char c, String str2) {
        if (str == null) {
            C6635.m9824("$this$substringAfterLast");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9886 = m9886((CharSequence) str, c, 0, false, 6);
        if (iM9886 == -1) {
            return str2;
        }
        String strSubstring = str.substring(iM9886 + 1, str.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ String m9890(String str, char c, String str2, int i) {
        if ((i & 2) != 0) {
            str2 = str;
        }
        return m9901(str, c, str2);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m9891(String str, CharSequence charSequence) {
        if (str == null) {
            C6635.m9824("$this$removeSuffix");
            throw null;
        }
        if (charSequence == null) {
            C6635.m9824("suffix");
            throw null;
        }
        if (!m9897((CharSequence) str, charSequence, false)) {
            return str;
        }
        String strSubstring = str.substring(0, str.length() - charSequence.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ String m9892(String str, String str2, String str3, int i) {
        if ((i & 2) != 0) {
            str3 = str;
        }
        if (str == null) {
            C6635.m9824("$this$substringAfterLast");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("delimiter");
            throw null;
        }
        if (str3 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9887 = m9887((CharSequence) str, str2, 0, false, 6);
        if (iM9887 == -1) {
            return str3;
        }
        String strSubstring = str.substring(str2.length() + iM9887, str.length());
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final String m9893(String str, char... cArr) {
        CharSequence charSequenceSubSequence;
        if (str == null) {
            C6635.m9824("$this$trimStart");
            throw null;
        }
        if (cArr == null) {
            C6635.m9824("chars");
            throw null;
        }
        int i = 0;
        int length = str.length();
        while (true) {
            if (i >= length) {
                charSequenceSubSequence = "";
                break;
            }
            if (!C4303.m7137(cArr, str.charAt(i))) {
                charSequenceSubSequence = str.subSequence(i, str.length());
                break;
            }
            i++;
        }
        return charSequenceSubSequence.toString();
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ InterfaceC6684 m9894(CharSequence charSequence, String[] strArr, boolean z, int i, int i2) {
        boolean z2 = (i2 & 2) != 0 ? false : z;
        int i3 = (i2 & 4) != 0 ? 0 : i;
        if (charSequence == null) {
            C6635.m9824("$this$splitToSequence");
            throw null;
        }
        if (strArr != null) {
            return C4303.m7071(m9877(charSequence, strArr, 0, z2, i3, 2), (InterfaceC6614) new C6706(charSequence));
        }
        C6635.m9824("delimiters");
        throw null;
    }

    /* JADX WARN: Removed duplicated region for block: B:24:? A[RETURN, SYNTHETIC] */
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final boolean m9895(CharSequence charSequence) {
        boolean z;
        if (charSequence == null) {
            C6635.m9824("$this$isBlank");
            throw null;
        }
        if (charSequence.length() != 0) {
            Iterable c6662 = new C6662(0, charSequence.length() - 1);
            if ((c6662 instanceof Collection) && ((Collection) c6662).isEmpty()) {
                z = true;
                if (z) {
                }
            } else {
                Iterator it = c6662.iterator();
                while (it.hasNext()) {
                    if (!C4303.m7120(charSequence.charAt(((AbstractC6566) it).mo9797()))) {
                        z = false;
                        break;
                    }
                }
                z = true;
                if (z) {
                    return false;
                }
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ boolean m9896(CharSequence charSequence, char c, boolean z, int i) {
        if ((i & 2) != 0) {
            z = false;
        }
        if (charSequence != null) {
            return charSequence.length() > 0 && C4303.m7121(charSequence.charAt(m9855(charSequence)), c, z);
        }
        C6635.m9824("$this$endsWith");
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m9897(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        if (charSequence == null) {
            C6635.m9824("$this$endsWith");
            throw null;
        }
        if (charSequence2 != null) {
            return (!z && (charSequence instanceof String) && (charSequence2 instanceof String)) ? m9885((String) charSequence, (String) charSequence2, false, 2) : m9879(charSequence, charSequence.length() - charSequence2.length(), charSequence2, 0, charSequence2.length(), z);
        }
        C6635.m9824("suffix");
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final boolean m9898(String str, String str2, boolean z) {
        if (str == null) {
            C6635.m9824("$this$endsWith");
            throw null;
        }
        if (str2 != null) {
            return !z ? str.endsWith(str2) : m9882(str, str.length() - str2.length(), str2, 0, str2.length(), true);
        }
        C6635.m9824("suffix");
        throw null;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static /* synthetic */ boolean m9899(String str, String str2, boolean z, int i) {
        if ((i & 2) != 0) {
            z = false;
        }
        return m9907(str, str2, z);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final CharSequence m9900(CharSequence charSequence) {
        if (charSequence == null) {
            C6635.m9824("$this$trim");
            throw null;
        }
        int length = charSequence.length() - 1;
        int i = 0;
        boolean z = false;
        while (i <= length) {
            boolean zM7120 = C4303.m7120(charSequence.charAt(!z ? i : length));
            if (z) {
                if (!zM7120) {
                    break;
                }
                length--;
            } else if (zM7120) {
                i++;
            } else {
                z = true;
            }
        }
        return charSequence.subSequence(i, length + 1);
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final String m9901(String str, char c, String str2) {
        if (str == null) {
            C6635.m9824("$this$substringBefore");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9856 = m9856((CharSequence) str, c, 0, false, 6);
        if (iM9856 == -1) {
            return str2;
        }
        String strSubstring = str.substring(0, iM9856);
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static /* synthetic */ String m9902(String str, char c, String str2, int i) {
        if ((i & 2) != 0) {
            str2 = str;
        }
        if (str == null) {
            C6635.m9824("$this$substringBeforeLast");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9886 = m9886((CharSequence) str, c, 0, false, 6);
        if (iM9886 == -1) {
            return str2;
        }
        String strSubstring = str.substring(0, iM9886);
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static /* synthetic */ String m9903(String str, String str2, String str3, int i) {
        if ((i & 2) != 0) {
            str3 = str;
        }
        if (str == null) {
            C6635.m9824("$this$substringBefore");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("delimiter");
            throw null;
        }
        if (str3 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9860 = m9860((CharSequence) str, str2, 0, false, 6);
        if (iM9860 == -1) {
            return str3;
        }
        String strSubstring = str.substring(0, iM9860);
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final boolean m9904(CharSequence charSequence, CharSequence charSequence2, boolean z) {
        if (charSequence == null) {
            C6635.m9824("$this$startsWith");
            throw null;
        }
        if (charSequence2 != null) {
            return (!z && (charSequence instanceof String) && (charSequence2 instanceof String)) ? m9899((String) charSequence, (String) charSequence2, false, 2) : m9879(charSequence, 0, charSequence2, 0, charSequence2.length(), z);
        }
        C6635.m9824("prefix");
        throw null;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static final boolean m9905(String str, String str2, boolean z) {
        return str == null ? str2 == null : !z ? str.equals(str2) : str.equalsIgnoreCase(str2);
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static /* synthetic */ String m9906(String str, String str2, String str3, int i) {
        if ((i & 2) != 0) {
            str3 = str;
        }
        if (str == null) {
            C6635.m9824("$this$substringBeforeLast");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("delimiter");
            throw null;
        }
        if (str3 == null) {
            C6635.m9824("missingDelimiterValue");
            throw null;
        }
        int iM9887 = m9887((CharSequence) str, str2, 0, false, 6);
        if (iM9887 == -1) {
            return str3;
        }
        String strSubstring = str.substring(0, iM9887);
        C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
        return strSubstring;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static final boolean m9907(String str, String str2, boolean z) {
        if (str == null) {
            C6635.m9824("$this$startsWith");
            throw null;
        }
        if (str2 != null) {
            return !z ? str.startsWith(str2) : m9882(str, 0, str2, 0, str2.length(), z);
        }
        C6635.m9824("prefix");
        throw null;
    }
}
