package defpackage;

import android.text.InputFilter;
import android.widget.TextView;

/* renamed from: ˏˆᵚ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1827 implements InputFilter {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final TextView f7420;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public C1778 f7421;

    public C1827(TextView textView) {
        this.f7420 = textView;
    }

    /* JADX WARN: Code restructure failed: missing block: B:10:0x0017, code lost:
    
        if (r1 != 3) goto L27;
     */
    @Override // android.text.InputFilter
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.CharSequence filter(java.lang.CharSequence r4, int r5, int r6, android.text.Spanned r7, int r8, int r9) {
        /*
            r3 = this;
            android.widget.TextView r0 = r3.f7420
            boolean r1 = r0.isInEditMode()
            if (r1 == 0) goto L9
            goto L48
        L9:
            ˈᵵ r1 = defpackage.C1104.m3504()
            int r1 = r1.m3508()
            if (r1 == 0) goto L49
            r2 = 1
            if (r1 == r2) goto L1a
            r5 = 3
            if (r1 == r5) goto L49
            goto L48
        L1a:
            if (r9 != 0) goto L2b
            if (r8 != 0) goto L2b
            int r3 = r7.length()
            if (r3 != 0) goto L2b
            java.lang.CharSequence r3 = r0.getText()
            if (r4 != r3) goto L2b
            goto L48
        L2b:
            if (r4 == 0) goto L48
            if (r5 != 0) goto L36
            int r3 = r4.length()
            if (r6 != r3) goto L36
            goto L3a
        L36:
            java.lang.CharSequence r4 = r4.subSequence(r5, r6)
        L3a:
            ˈᵵ r3 = defpackage.C1104.m3504()
            int r5 = r4.length()
            r6 = 0
            java.lang.CharSequence r3 = r3.m3505(r4, r6, r5)
            return r3
        L48:
            return r4
        L49:
            ˈᵵ r5 = defpackage.C1104.m3504()
            ˎᵰᵕ r6 = r3.f7421
            if (r6 != 0) goto L58
            ˎᵰᵕ r6 = new ˎᵰᵕ
            r6.<init>(r0, r3)
            r3.f7421 = r6
        L58:
            ˎᵰᵕ r3 = r3.f7421
            r5.m3506(r3)
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1827.filter(java.lang.CharSequence, int, int, android.text.Spanned, int, int):java.lang.CharSequence");
    }
}
