package FSaI4_7.IFxWkV_5;

import java.util.Arrays;
/* compiled from: CollectionsJVM.kt */
/* loaded from: classes.dex */
public class IMuAHx_6 {
    public static final <T> Object[] KQgRr5e_0(T[] tArr, boolean z) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(tArr, "$receiver");
        if (z && FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.KQgRr5e_0(tArr.getClass(), Object[].class)) {
            return tArr;
        }
        Object[] copyOf = Arrays.copyOf(tArr, tArr.length, Object[].class);
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.KQgRr5e_0((Object) copyOf, "java.util.Arrays.copyOf(… Array<Any?>::class.java)");
        return copyOf;
    }
}
