package FSaI4_7.IFxWkV_5;

import java.util.ArrayList;
import java.util.List;
/* compiled from: _Arrays.kt */
/* loaded from: classes.dex */
public class X6FRs_4 extends Mqv2r_3 {
    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static final <T> boolean m2KQgRr5e_0(T[] tArr, T t) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(tArr, "$receiver");
        return KQgRr5e_0((Object[]) tArr, (Object) t) >= 0;
    }

    public static final <T> List<T> QxJ9d_1(T[] tArr) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(tArr, "$receiver");
        return new ArrayList(FSaI4_7.KQgRr5e_0((Object[]) tArr));
    }

    public static final <T> int KQgRr5e_0(T[] tArr, T t) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(tArr, "$receiver");
        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 (FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.KQgRr5e_0(t, tArr[i])) {
                return i;
            }
            i++;
        }
        return -1;
    }
}
