mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
661 lines
44 KiB
Java
661 lines
44 KiB
Java
package kotlin.collections.unsigned;
|
|
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import io.sentry.protocol.MetricSummary;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigInteger;
|
|
import java.util.Comparator;
|
|
import java.util.List;
|
|
import kotlin.Deprecated;
|
|
import kotlin.DeprecatedSinceKotlin;
|
|
import kotlin.Metadata;
|
|
import kotlin.ReplaceWith;
|
|
import kotlin.UByte;
|
|
import kotlin.UByteArray;
|
|
import kotlin.UInt;
|
|
import kotlin.UIntArray;
|
|
import kotlin.ULong;
|
|
import kotlin.ULongArray;
|
|
import kotlin.UShort;
|
|
import kotlin.UShortArray;
|
|
import kotlin.UnsignedKt;
|
|
import kotlin.collections.AbstractList;
|
|
import kotlin.collections.ArraysKt;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.ranges.IntRange;
|
|
|
|
/* compiled from: _UArraysJvm.kt */
|
|
@Metadata(d1 = {"\u0000h\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b \n\u0002\u0010\u000f\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0018\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\t\u001a\u0019\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0003H\u0007¢\u0006\u0004\b\u0004\u0010\u0005\u001a\u0019\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00060\u0001*\u00020\u0007H\u0007¢\u0006\u0004\b\b\u0010\t\u001a\u0019\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\n0\u0001*\u00020\u000bH\u0007¢\u0006\u0004\b\f\u0010\r\u001a\u0019\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u000e0\u0001*\u00020\u000fH\u0007¢\u0006\u0004\b\u0010\u0010\u0011\u001a/\u0010\u0012\u001a\u00020\u0013*\u00020\u00032\u0006\u0010\u0014\u001a\u00020\u00022\b\b\u0002\u0010\u0015\u001a\u00020\u00132\b\b\u0002\u0010\u0016\u001a\u00020\u0013H\u0007¢\u0006\u0004\b\u0017\u0010\u0018\u001a/\u0010\u0012\u001a\u00020\u0013*\u00020\u00072\u0006\u0010\u0014\u001a\u00020\u00062\b\b\u0002\u0010\u0015\u001a\u00020\u00132\b\b\u0002\u0010\u0016\u001a\u00020\u0013H\u0007¢\u0006\u0004\b\u0019\u0010\u001a\u001a/\u0010\u0012\u001a\u00020\u0013*\u00020\u000b2\u0006\u0010\u0014\u001a\u00020\n2\b\b\u0002\u0010\u0015\u001a\u00020\u00132\b\b\u0002\u0010\u0016\u001a\u00020\u0013H\u0007¢\u0006\u0004\b\u001b\u0010\u001c\u001a/\u0010\u0012\u001a\u00020\u0013*\u00020\u000f2\u0006\u0010\u0014\u001a\u00020\u000e2\b\b\u0002\u0010\u0015\u001a\u00020\u00132\b\b\u0002\u0010\u0016\u001a\u00020\u0013H\u0007¢\u0006\u0004\b\u001d\u0010\u001e\u001a\u001c\u0010\u001f\u001a\u00020\u0002*\u00020\u00032\u0006\u0010 \u001a\u00020\u0013H\u0087\b¢\u0006\u0004\b!\u0010\"\u001a\u001c\u0010\u001f\u001a\u00020\u0006*\u00020\u00072\u0006\u0010 \u001a\u00020\u0013H\u0087\b¢\u0006\u0004\b#\u0010$\u001a\u001c\u0010\u001f\u001a\u00020\n*\u00020\u000b2\u0006\u0010 \u001a\u00020\u0013H\u0087\b¢\u0006\u0004\b%\u0010&\u001a\u001c\u0010\u001f\u001a\u00020\u000e*\u00020\u000f2\u0006\u0010 \u001a\u00020\u0013H\u0087\b¢\u0006\u0004\b'\u0010(\u001a\u0015\u0010)\u001a\u0004\u0018\u00010\u0002*\u00020\u0003H\u0007¢\u0006\u0004\b*\u0010+\u001a\u0015\u0010)\u001a\u0004\u0018\u00010\u0006*\u00020\u0007H\u0007¢\u0006\u0004\b,\u0010-\u001a\u0015\u0010)\u001a\u0004\u0018\u00010\n*\u00020\u000bH\u0007¢\u0006\u0004\b.\u0010/\u001a\u0015\u0010)\u001a\u0004\u0018\u00010\u000e*\u00020\u000fH\u0007¢\u0006\u0004\b0\u00101\u001a=\u00102\u001a\u0004\u0018\u00010\u0002\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u00032\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\b7\u00108\u001a=\u00102\u001a\u0004\u0018\u00010\u0006\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u00072\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\b9\u0010:\u001a=\u00102\u001a\u0004\u0018\u00010\n\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u000b2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\b;\u0010<\u001a=\u00102\u001a\u0004\u0018\u00010\u000e\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u000f2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\b=\u0010>\u001a1\u0010?\u001a\u0004\u0018\u00010\u0002*\u00020\u00032\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00020Aj\n\u0012\u0006\b\u0000\u0012\u00020\u0002`BH\u0007¢\u0006\u0004\bC\u0010D\u001a1\u0010?\u001a\u0004\u0018\u00010\u0006*\u00020\u00072\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00060Aj\n\u0012\u0006\b\u0000\u0012\u00020\u0006`BH\u0007¢\u0006\u0004\bE\u0010F\u001a1\u0010?\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\n0Aj\n\u0012\u0006\b\u0000\u0012\u00020\n`BH\u0007¢\u0006\u0004\bG\u0010H\u001a1\u0010?\u001a\u0004\u0018\u00010\u000e*\u00020\u000f2\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u000e0Aj\n\u0012\u0006\b\u0000\u0012\u00020\u000e`BH\u0007¢\u0006\u0004\bI\u0010J\u001a\u0015\u0010K\u001a\u0004\u0018\u00010\u0002*\u00020\u0003H\u0007¢\u0006\u0004\bL\u0010+\u001a\u0015\u0010K\u001a\u0004\u0018\u00010\u0006*\u00020\u0007H\u0007¢\u0006\u0004\bM\u0010-\u001a\u0015\u0010K\u001a\u0004\u0018\u00010\n*\u00020\u000bH\u0007¢\u0006\u0004\bN\u0010/\u001a\u0015\u0010K\u001a\u0004\u0018\u00010\u000e*\u00020\u000fH\u0007¢\u0006\u0004\bO\u00101\u001a=\u0010P\u001a\u0004\u0018\u00010\u0002\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u00032\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\bQ\u00108\u001a=\u0010P\u001a\u0004\u0018\u00010\u0006\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u00072\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\bR\u0010:\u001a=\u0010P\u001a\u0004\u0018\u00010\n\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u000b2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\bS\u0010<\u001a=\u0010P\u001a\u0004\u0018\u00010\u000e\"\u000e\b\u0000\u00103*\b\u0012\u0004\u0012\u0002H304*\u00020\u000f2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u0002H306H\u0087\bø\u0001\u0000¢\u0006\u0004\bT\u0010>\u001a1\u0010U\u001a\u0004\u0018\u00010\u0002*\u00020\u00032\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00020Aj\n\u0012\u0006\b\u0000\u0012\u00020\u0002`BH\u0007¢\u0006\u0004\bV\u0010D\u001a1\u0010U\u001a\u0004\u0018\u00010\u0006*\u00020\u00072\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00060Aj\n\u0012\u0006\b\u0000\u0012\u00020\u0006`BH\u0007¢\u0006\u0004\bW\u0010F\u001a1\u0010U\u001a\u0004\u0018\u00010\n*\u00020\u000b2\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\n0Aj\n\u0012\u0006\b\u0000\u0012\u00020\n`BH\u0007¢\u0006\u0004\bX\u0010H\u001a1\u0010U\u001a\u0004\u0018\u00010\u000e*\u00020\u000f2\u001a\u0010@\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u000e0Aj\n\u0012\u0006\b\u0000\u0012\u00020\u000e`BH\u0007¢\u0006\u0004\bY\u0010J\u001a+\u0010Z\u001a\u00020[*\u00020\u00032\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020[06H\u0087\bø\u0001\u0000¢\u0006\u0004\b\\\u0010]\u001a+\u0010Z\u001a\u00020^*\u00020\u00032\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020^06H\u0087\bø\u0001\u0000¢\u0006\u0004\b_\u0010`\u001a+\u0010Z\u001a\u00020[*\u00020\u00072\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020[06H\u0087\bø\u0001\u0000¢\u0006\u0004\b\\\u0010a\u001a+\u0010Z\u001a\u00020^*\u00020\u00072\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020^06H\u0087\bø\u0001\u0000¢\u0006\u0004\b_\u0010b\u001a+\u0010Z\u001a\u00020[*\u00020\u000b2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020[06H\u0087\bø\u0001\u0000¢\u0006\u0004\b\\\u0010c\u001a+\u0010Z\u001a\u00020^*\u00020\u000b2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\n\u0012\u0004\u0012\u00020^06H\u0087\bø\u0001\u0000¢\u0006\u0004\b_\u0010d\u001a+\u0010Z\u001a\u00020[*\u00020\u000f2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020[06H\u0087\bø\u0001\u0000¢\u0006\u0004\b\\\u0010e\u001a+\u0010Z\u001a\u00020^*\u00020\u000f2\u0012\u00105\u001a\u000e\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00020^06H\u0087\bø\u0001\u0000¢\u0006\u0004\b_\u0010f\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006g"}, d2 = {"asList", "", "Lkotlin/UByte;", "Lkotlin/UByteArray;", "asList-GBYM_sE", "([B)Ljava/util/List;", "Lkotlin/UInt;", "Lkotlin/UIntArray;", "asList--ajY-9A", "([I)Ljava/util/List;", "Lkotlin/ULong;", "Lkotlin/ULongArray;", "asList-QwZRm1k", "([J)Ljava/util/List;", "Lkotlin/UShort;", "Lkotlin/UShortArray;", "asList-rL5Bavg", "([S)Ljava/util/List;", "binarySearch", "", "element", "fromIndex", "toIndex", "binarySearch-WpHrYlw", "([BBII)I", "binarySearch-2fe2U9s", "([IIII)I", "binarySearch-K6DWlUc", "([JJII)I", "binarySearch-EtDCXyQ", "([SSII)I", "elementAt", "index", "elementAt-PpDY95g", "([BI)B", "elementAt-qFRl0hI", "([II)I", "elementAt-r7IrZao", "([JI)J", "elementAt-nggk6HY", "([SI)S", MetricSummary.JsonKeys.MAX, "max-GBYM_sE", "([B)Lkotlin/UByte;", "max--ajY-9A", "([I)Lkotlin/UInt;", "max-QwZRm1k", "([J)Lkotlin/ULong;", "max-rL5Bavg", "([S)Lkotlin/UShort;", "maxBy", "R", "", "selector", "Lkotlin/Function1;", "maxBy-JOV_ifY", "([BLkotlin/jvm/functions/Function1;)Lkotlin/UByte;", "maxBy-jgv0xPQ", "([ILkotlin/jvm/functions/Function1;)Lkotlin/UInt;", "maxBy-MShoTSo", "([JLkotlin/jvm/functions/Function1;)Lkotlin/ULong;", "maxBy-xTcfx_M", "([SLkotlin/jvm/functions/Function1;)Lkotlin/UShort;", "maxWith", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "maxWith-XMRcp5o", "([BLjava/util/Comparator;)Lkotlin/UByte;", "maxWith-YmdZ_VM", "([ILjava/util/Comparator;)Lkotlin/UInt;", "maxWith-zrEWJaI", "([JLjava/util/Comparator;)Lkotlin/ULong;", "maxWith-eOHTfZs", "([SLjava/util/Comparator;)Lkotlin/UShort;", MetricSummary.JsonKeys.MIN, "min-GBYM_sE", "min--ajY-9A", "min-QwZRm1k", "min-rL5Bavg", "minBy", "minBy-JOV_ifY", "minBy-jgv0xPQ", "minBy-MShoTSo", "minBy-xTcfx_M", "minWith", "minWith-XMRcp5o", "minWith-YmdZ_VM", "minWith-zrEWJaI", "minWith-eOHTfZs", "sumOf", "Ljava/math/BigDecimal;", "sumOfBigDecimal", "([BLkotlin/jvm/functions/Function1;)Ljava/math/BigDecimal;", "Ljava/math/BigInteger;", "sumOfBigInteger", "([BLkotlin/jvm/functions/Function1;)Ljava/math/BigInteger;", "([ILkotlin/jvm/functions/Function1;)Ljava/math/BigDecimal;", "([ILkotlin/jvm/functions/Function1;)Ljava/math/BigInteger;", "([JLkotlin/jvm/functions/Function1;)Ljava/math/BigDecimal;", "([JLkotlin/jvm/functions/Function1;)Ljava/math/BigInteger;", "([SLkotlin/jvm/functions/Function1;)Ljava/math/BigDecimal;", "([SLkotlin/jvm/functions/Function1;)Ljava/math/BigInteger;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, pn = "kotlin.collections", xi = ConstraintLayout.LayoutParams.Table.LAYOUT_EDITOR_ABSOLUTEX, xs = "kotlin/collections/unsigned/UArraysKt")
|
|
/* loaded from: classes3.dex */
|
|
class UArraysKt___UArraysJvmKt {
|
|
/* renamed from: elementAt-qFRl0hI, reason: not valid java name */
|
|
private static final int m6180elementAtqFRl0hI(int[] elementAt, int i) {
|
|
Intrinsics.checkNotNullParameter(elementAt, "$this$elementAt");
|
|
return UIntArray.m5853getpVg5ArA(elementAt, i);
|
|
}
|
|
|
|
/* renamed from: elementAt-r7IrZao, reason: not valid java name */
|
|
private static final long m6181elementAtr7IrZao(long[] elementAt, int i) {
|
|
Intrinsics.checkNotNullParameter(elementAt, "$this$elementAt");
|
|
return ULongArray.m5932getsVKNKU(elementAt, i);
|
|
}
|
|
|
|
/* renamed from: elementAt-PpDY95g, reason: not valid java name */
|
|
private static final byte m6178elementAtPpDY95g(byte[] elementAt, int i) {
|
|
Intrinsics.checkNotNullParameter(elementAt, "$this$elementAt");
|
|
return UByteArray.m5774getw2LRezQ(elementAt, i);
|
|
}
|
|
|
|
/* renamed from: elementAt-nggk6HY, reason: not valid java name */
|
|
private static final short m6179elementAtnggk6HY(short[] elementAt, int i) {
|
|
Intrinsics.checkNotNullParameter(elementAt, "$this$elementAt");
|
|
return UShortArray.m6037getMh2AYeg(elementAt, i);
|
|
}
|
|
|
|
/* renamed from: asList--ajY-9A, reason: not valid java name */
|
|
public static final List<UInt> m6166asListajY9A(int[] asList) {
|
|
Intrinsics.checkNotNullParameter(asList, "$this$asList");
|
|
return new UArraysKt___UArraysJvmKt$asList$1(asList);
|
|
}
|
|
|
|
/* renamed from: asList-QwZRm1k, reason: not valid java name */
|
|
public static final List<ULong> m6168asListQwZRm1k(long[] asList) {
|
|
Intrinsics.checkNotNullParameter(asList, "$this$asList");
|
|
return new UArraysKt___UArraysJvmKt$asList$2(asList);
|
|
}
|
|
|
|
/* renamed from: asList-GBYM_sE, reason: not valid java name */
|
|
public static final List<UByte> m6167asListGBYM_sE(byte[] asList) {
|
|
Intrinsics.checkNotNullParameter(asList, "$this$asList");
|
|
return new UArraysKt___UArraysJvmKt$asList$3(asList);
|
|
}
|
|
|
|
/* renamed from: asList-rL5Bavg, reason: not valid java name */
|
|
public static final List<UShort> m6169asListrL5Bavg(short[] asList) {
|
|
Intrinsics.checkNotNullParameter(asList, "$this$asList");
|
|
return new UArraysKt___UArraysJvmKt$asList$4(asList);
|
|
}
|
|
|
|
/* renamed from: binarySearch-2fe2U9s$default, reason: not valid java name */
|
|
public static /* synthetic */ int m6171binarySearch2fe2U9s$default(int[] iArr, int i, int i2, int i3, int i4, Object obj) {
|
|
if ((i4 & 2) != 0) {
|
|
i2 = 0;
|
|
}
|
|
if ((i4 & 4) != 0) {
|
|
i3 = UIntArray.m5854getSizeimpl(iArr);
|
|
}
|
|
return UArraysKt.m6170binarySearch2fe2U9s(iArr, i, i2, i3);
|
|
}
|
|
|
|
/* renamed from: binarySearch-2fe2U9s, reason: not valid java name */
|
|
public static final int m6170binarySearch2fe2U9s(int[] binarySearch, int i, int i2, int i3) {
|
|
Intrinsics.checkNotNullParameter(binarySearch, "$this$binarySearch");
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(i2, i3, UIntArray.m5854getSizeimpl(binarySearch));
|
|
int i4 = i3 - 1;
|
|
while (i2 <= i4) {
|
|
int i5 = (i2 + i4) >>> 1;
|
|
int uintCompare = UnsignedKt.uintCompare(binarySearch[i5], i);
|
|
if (uintCompare < 0) {
|
|
i2 = i5 + 1;
|
|
} else {
|
|
if (uintCompare <= 0) {
|
|
return i5;
|
|
}
|
|
i4 = i5 - 1;
|
|
}
|
|
}
|
|
return -(i2 + 1);
|
|
}
|
|
|
|
/* renamed from: binarySearch-K6DWlUc$default, reason: not valid java name */
|
|
public static /* synthetic */ int m6175binarySearchK6DWlUc$default(long[] jArr, long j, int i, int i2, int i3, Object obj) {
|
|
if ((i3 & 2) != 0) {
|
|
i = 0;
|
|
}
|
|
if ((i3 & 4) != 0) {
|
|
i2 = ULongArray.m5933getSizeimpl(jArr);
|
|
}
|
|
return UArraysKt.m6174binarySearchK6DWlUc(jArr, j, i, i2);
|
|
}
|
|
|
|
/* renamed from: binarySearch-K6DWlUc, reason: not valid java name */
|
|
public static final int m6174binarySearchK6DWlUc(long[] binarySearch, long j, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(binarySearch, "$this$binarySearch");
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(i, i2, ULongArray.m5933getSizeimpl(binarySearch));
|
|
int i3 = i2 - 1;
|
|
while (i <= i3) {
|
|
int i4 = (i + i3) >>> 1;
|
|
int ulongCompare = UnsignedKt.ulongCompare(binarySearch[i4], j);
|
|
if (ulongCompare < 0) {
|
|
i = i4 + 1;
|
|
} else {
|
|
if (ulongCompare <= 0) {
|
|
return i4;
|
|
}
|
|
i3 = i4 - 1;
|
|
}
|
|
}
|
|
return -(i + 1);
|
|
}
|
|
|
|
/* renamed from: binarySearch-WpHrYlw$default, reason: not valid java name */
|
|
public static /* synthetic */ int m6177binarySearchWpHrYlw$default(byte[] bArr, byte b, int i, int i2, int i3, Object obj) {
|
|
if ((i3 & 2) != 0) {
|
|
i = 0;
|
|
}
|
|
if ((i3 & 4) != 0) {
|
|
i2 = UByteArray.m5775getSizeimpl(bArr);
|
|
}
|
|
return UArraysKt.m6176binarySearchWpHrYlw(bArr, b, i, i2);
|
|
}
|
|
|
|
/* renamed from: binarySearch-WpHrYlw, reason: not valid java name */
|
|
public static final int m6176binarySearchWpHrYlw(byte[] binarySearch, byte b, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(binarySearch, "$this$binarySearch");
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(i, i2, UByteArray.m5775getSizeimpl(binarySearch));
|
|
int i3 = b & 255;
|
|
int i4 = i2 - 1;
|
|
while (i <= i4) {
|
|
int i5 = (i + i4) >>> 1;
|
|
int uintCompare = UnsignedKt.uintCompare(binarySearch[i5], i3);
|
|
if (uintCompare < 0) {
|
|
i = i5 + 1;
|
|
} else {
|
|
if (uintCompare <= 0) {
|
|
return i5;
|
|
}
|
|
i4 = i5 - 1;
|
|
}
|
|
}
|
|
return -(i + 1);
|
|
}
|
|
|
|
/* renamed from: binarySearch-EtDCXyQ$default, reason: not valid java name */
|
|
public static /* synthetic */ int m6173binarySearchEtDCXyQ$default(short[] sArr, short s, int i, int i2, int i3, Object obj) {
|
|
if ((i3 & 2) != 0) {
|
|
i = 0;
|
|
}
|
|
if ((i3 & 4) != 0) {
|
|
i2 = UShortArray.m6038getSizeimpl(sArr);
|
|
}
|
|
return UArraysKt.m6172binarySearchEtDCXyQ(sArr, s, i, i2);
|
|
}
|
|
|
|
/* renamed from: binarySearch-EtDCXyQ, reason: not valid java name */
|
|
public static final int m6172binarySearchEtDCXyQ(short[] binarySearch, short s, int i, int i2) {
|
|
Intrinsics.checkNotNullParameter(binarySearch, "$this$binarySearch");
|
|
AbstractList.INSTANCE.checkRangeIndexes$kotlin_stdlib(i, i2, UShortArray.m6038getSizeimpl(binarySearch));
|
|
int i3 = s & UShort.MAX_VALUE;
|
|
int i4 = i2 - 1;
|
|
while (i <= i4) {
|
|
int i5 = (i + i4) >>> 1;
|
|
int uintCompare = UnsignedKt.uintCompare(binarySearch[i5], i3);
|
|
if (uintCompare < 0) {
|
|
i = i5 + 1;
|
|
} else {
|
|
if (uintCompare <= 0) {
|
|
return i5;
|
|
}
|
|
i4 = i5 - 1;
|
|
}
|
|
}
|
|
return -(i + 1);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: max--ajY-9A, reason: not valid java name */
|
|
public static final /* synthetic */ UInt m6182maxajY9A(int[] max) {
|
|
Intrinsics.checkNotNullParameter(max, "$this$max");
|
|
return UArraysKt.m6550maxOrNullajY9A(max);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: max-QwZRm1k, reason: not valid java name */
|
|
public static final /* synthetic */ ULong m6184maxQwZRm1k(long[] max) {
|
|
Intrinsics.checkNotNullParameter(max, "$this$max");
|
|
return UArraysKt.m6552maxOrNullQwZRm1k(max);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: max-GBYM_sE, reason: not valid java name */
|
|
public static final /* synthetic */ UByte m6183maxGBYM_sE(byte[] max) {
|
|
Intrinsics.checkNotNullParameter(max, "$this$max");
|
|
return UArraysKt.m6551maxOrNullGBYM_sE(max);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: max-rL5Bavg, reason: not valid java name */
|
|
public static final /* synthetic */ UShort m6185maxrL5Bavg(short[] max) {
|
|
Intrinsics.checkNotNullParameter(max, "$this$max");
|
|
return UArraysKt.m6553maxOrNullrL5Bavg(max);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxBy-jgv0xPQ, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UInt m6188maxByjgv0xPQ(int[] maxBy, Function1<? super UInt, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(maxBy, "$this$maxBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UIntArray.m5856isEmptyimpl(maxBy)) {
|
|
return null;
|
|
}
|
|
int m5853getpVg5ArA = UIntArray.m5853getpVg5ArA(maxBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(maxBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UInt.m5787boximpl(m5853getpVg5ArA));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
int m5853getpVg5ArA2 = UIntArray.m5853getpVg5ArA(maxBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UInt.m5787boximpl(m5853getpVg5ArA2));
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
m5853getpVg5ArA = m5853getpVg5ArA2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UInt.m5787boximpl(m5853getpVg5ArA);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxBy-MShoTSo, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> ULong m6187maxByMShoTSo(long[] maxBy, Function1<? super ULong, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(maxBy, "$this$maxBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (ULongArray.m5935isEmptyimpl(maxBy)) {
|
|
return null;
|
|
}
|
|
long m5932getsVKNKU = ULongArray.m5932getsVKNKU(maxBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(maxBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(ULong.m5866boximpl(m5932getsVKNKU));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
long m5932getsVKNKU2 = ULongArray.m5932getsVKNKU(maxBy, it.nextInt());
|
|
R invoke2 = selector.invoke(ULong.m5866boximpl(m5932getsVKNKU2));
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
m5932getsVKNKU = m5932getsVKNKU2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return ULong.m5866boximpl(m5932getsVKNKU);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxBy-JOV_ifY, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UByte m6186maxByJOV_ifY(byte[] maxBy, Function1<? super UByte, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(maxBy, "$this$maxBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UByteArray.m5777isEmptyimpl(maxBy)) {
|
|
return null;
|
|
}
|
|
byte m5774getw2LRezQ = UByteArray.m5774getw2LRezQ(maxBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(maxBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UByte.m5710boximpl(m5774getw2LRezQ));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
byte m5774getw2LRezQ2 = UByteArray.m5774getw2LRezQ(maxBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UByte.m5710boximpl(m5774getw2LRezQ2));
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
m5774getw2LRezQ = m5774getw2LRezQ2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UByte.m5710boximpl(m5774getw2LRezQ);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxBy-xTcfx_M, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UShort m6189maxByxTcfx_M(short[] maxBy, Function1<? super UShort, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(maxBy, "$this$maxBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UShortArray.m6040isEmptyimpl(maxBy)) {
|
|
return null;
|
|
}
|
|
short m6037getMh2AYeg = UShortArray.m6037getMh2AYeg(maxBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(maxBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UShort.m5973boximpl(m6037getMh2AYeg));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
short m6037getMh2AYeg2 = UShortArray.m6037getMh2AYeg(maxBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UShort.m5973boximpl(m6037getMh2AYeg2));
|
|
if (invoke.compareTo(invoke2) < 0) {
|
|
m6037getMh2AYeg = m6037getMh2AYeg2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UShort.m5973boximpl(m6037getMh2AYeg);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxWith-YmdZ_VM, reason: not valid java name */
|
|
public static final /* synthetic */ UInt m6191maxWithYmdZ_VM(int[] maxWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(maxWith, "$this$maxWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6559maxWithOrNullYmdZ_VM(maxWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxWith-zrEWJaI, reason: not valid java name */
|
|
public static final /* synthetic */ ULong m6193maxWithzrEWJaI(long[] maxWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(maxWith, "$this$maxWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6561maxWithOrNullzrEWJaI(maxWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxWith-XMRcp5o, reason: not valid java name */
|
|
public static final /* synthetic */ UByte m6190maxWithXMRcp5o(byte[] maxWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(maxWith, "$this$maxWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6558maxWithOrNullXMRcp5o(maxWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: maxWith-eOHTfZs, reason: not valid java name */
|
|
public static final /* synthetic */ UShort m6192maxWitheOHTfZs(short[] maxWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(maxWith, "$this$maxWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6560maxWithOrNulleOHTfZs(maxWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: min--ajY-9A, reason: not valid java name */
|
|
public static final /* synthetic */ UInt m6194minajY9A(int[] min) {
|
|
Intrinsics.checkNotNullParameter(min, "$this$min");
|
|
return UArraysKt.m6606minOrNullajY9A(min);
|
|
}
|
|
|
|
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: min-QwZRm1k, reason: not valid java name */
|
|
public static final /* synthetic */ ULong m6196minQwZRm1k(long[] min) {
|
|
Intrinsics.checkNotNullParameter(min, "$this$min");
|
|
return UArraysKt.m6608minOrNullQwZRm1k(min);
|
|
}
|
|
|
|
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: min-GBYM_sE, reason: not valid java name */
|
|
public static final /* synthetic */ UByte m6195minGBYM_sE(byte[] min) {
|
|
Intrinsics.checkNotNullParameter(min, "$this$min");
|
|
return UArraysKt.m6607minOrNullGBYM_sE(min);
|
|
}
|
|
|
|
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: min-rL5Bavg, reason: not valid java name */
|
|
public static final /* synthetic */ UShort m6197minrL5Bavg(short[] min) {
|
|
Intrinsics.checkNotNullParameter(min, "$this$min");
|
|
return UArraysKt.m6609minOrNullrL5Bavg(min);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minBy-jgv0xPQ, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UInt m6200minByjgv0xPQ(int[] minBy, Function1<? super UInt, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(minBy, "$this$minBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UIntArray.m5856isEmptyimpl(minBy)) {
|
|
return null;
|
|
}
|
|
int m5853getpVg5ArA = UIntArray.m5853getpVg5ArA(minBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(minBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UInt.m5787boximpl(m5853getpVg5ArA));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
int m5853getpVg5ArA2 = UIntArray.m5853getpVg5ArA(minBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UInt.m5787boximpl(m5853getpVg5ArA2));
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
m5853getpVg5ArA = m5853getpVg5ArA2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UInt.m5787boximpl(m5853getpVg5ArA);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r2v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minBy-MShoTSo, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> ULong m6199minByMShoTSo(long[] minBy, Function1<? super ULong, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(minBy, "$this$minBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (ULongArray.m5935isEmptyimpl(minBy)) {
|
|
return null;
|
|
}
|
|
long m5932getsVKNKU = ULongArray.m5932getsVKNKU(minBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(minBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(ULong.m5866boximpl(m5932getsVKNKU));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
long m5932getsVKNKU2 = ULongArray.m5932getsVKNKU(minBy, it.nextInt());
|
|
R invoke2 = selector.invoke(ULong.m5866boximpl(m5932getsVKNKU2));
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
m5932getsVKNKU = m5932getsVKNKU2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return ULong.m5866boximpl(m5932getsVKNKU);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minBy-JOV_ifY, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UByte m6198minByJOV_ifY(byte[] minBy, Function1<? super UByte, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(minBy, "$this$minBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UByteArray.m5777isEmptyimpl(minBy)) {
|
|
return null;
|
|
}
|
|
byte m5774getw2LRezQ = UByteArray.m5774getw2LRezQ(minBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(minBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UByte.m5710boximpl(m5774getw2LRezQ));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
byte m5774getw2LRezQ2 = UByteArray.m5774getw2LRezQ(minBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UByte.m5710boximpl(m5774getw2LRezQ2));
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
m5774getw2LRezQ = m5774getw2LRezQ2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UByte.m5710boximpl(m5774getw2LRezQ);
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
|
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minBy-xTcfx_M, reason: not valid java name */
|
|
private static final /* synthetic */ <R extends Comparable<? super R>> UShort m6201minByxTcfx_M(short[] minBy, Function1<? super UShort, ? extends R> selector) {
|
|
Intrinsics.checkNotNullParameter(minBy, "$this$minBy");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
if (UShortArray.m6040isEmptyimpl(minBy)) {
|
|
return null;
|
|
}
|
|
short m6037getMh2AYeg = UShortArray.m6037getMh2AYeg(minBy, 0);
|
|
int lastIndex = ArraysKt.getLastIndex(minBy);
|
|
if (lastIndex != 0) {
|
|
R invoke = selector.invoke(UShort.m5973boximpl(m6037getMh2AYeg));
|
|
?? it = new IntRange(1, lastIndex).iterator();
|
|
while (it.hasNext()) {
|
|
short m6037getMh2AYeg2 = UShortArray.m6037getMh2AYeg(minBy, it.nextInt());
|
|
R invoke2 = selector.invoke(UShort.m5973boximpl(m6037getMh2AYeg2));
|
|
if (invoke.compareTo(invoke2) > 0) {
|
|
m6037getMh2AYeg = m6037getMh2AYeg2;
|
|
invoke = invoke2;
|
|
}
|
|
}
|
|
}
|
|
return UShort.m5973boximpl(m6037getMh2AYeg);
|
|
}
|
|
|
|
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minWith-YmdZ_VM, reason: not valid java name */
|
|
public static final /* synthetic */ UInt m6203minWithYmdZ_VM(int[] minWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(minWith, "$this$minWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6615minWithOrNullYmdZ_VM(minWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minWith-zrEWJaI, reason: not valid java name */
|
|
public static final /* synthetic */ ULong m6205minWithzrEWJaI(long[] minWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(minWith, "$this$minWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6617minWithOrNullzrEWJaI(minWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minWith-XMRcp5o, reason: not valid java name */
|
|
public static final /* synthetic */ UByte m6202minWithXMRcp5o(byte[] minWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(minWith, "$this$minWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6614minWithOrNullXMRcp5o(minWith, comparator);
|
|
}
|
|
|
|
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
|
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
|
/* renamed from: minWith-eOHTfZs, reason: not valid java name */
|
|
public static final /* synthetic */ UShort m6204minWitheOHTfZs(short[] minWith, Comparator comparator) {
|
|
Intrinsics.checkNotNullParameter(minWith, "$this$minWith");
|
|
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
|
return UArraysKt.m6616minWithOrNulleOHTfZs(minWith, comparator);
|
|
}
|
|
|
|
private static final BigDecimal sumOfBigDecimal(int[] sumOf, Function1<? super UInt, ? extends BigDecimal> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5854getSizeimpl = UIntArray.m5854getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5854getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UInt.m5787boximpl(UIntArray.m5853getpVg5ArA(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigDecimal sumOfBigDecimal(long[] sumOf, Function1<? super ULong, ? extends BigDecimal> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5933getSizeimpl = ULongArray.m5933getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5933getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(ULong.m5866boximpl(ULongArray.m5932getsVKNKU(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigDecimal sumOfBigDecimal(byte[] sumOf, Function1<? super UByte, ? extends BigDecimal> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5775getSizeimpl = UByteArray.m5775getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5775getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UByte.m5710boximpl(UByteArray.m5774getw2LRezQ(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigDecimal sumOfBigDecimal(short[] sumOf, Function1<? super UShort, ? extends BigDecimal> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m6038getSizeimpl = UShortArray.m6038getSizeimpl(sumOf);
|
|
for (int i = 0; i < m6038getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UShort.m5973boximpl(UShortArray.m6037getMh2AYeg(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigInteger sumOfBigInteger(int[] sumOf, Function1<? super UInt, ? extends BigInteger> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigInteger valueOf = BigInteger.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5854getSizeimpl = UIntArray.m5854getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5854getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UInt.m5787boximpl(UIntArray.m5853getpVg5ArA(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigInteger sumOfBigInteger(long[] sumOf, Function1<? super ULong, ? extends BigInteger> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigInteger valueOf = BigInteger.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5933getSizeimpl = ULongArray.m5933getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5933getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(ULong.m5866boximpl(ULongArray.m5932getsVKNKU(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigInteger sumOfBigInteger(byte[] sumOf, Function1<? super UByte, ? extends BigInteger> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigInteger valueOf = BigInteger.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m5775getSizeimpl = UByteArray.m5775getSizeimpl(sumOf);
|
|
for (int i = 0; i < m5775getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UByte.m5710boximpl(UByteArray.m5774getw2LRezQ(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
|
|
private static final BigInteger sumOfBigInteger(short[] sumOf, Function1<? super UShort, ? extends BigInteger> selector) {
|
|
Intrinsics.checkNotNullParameter(sumOf, "$this$sumOf");
|
|
Intrinsics.checkNotNullParameter(selector, "selector");
|
|
BigInteger valueOf = BigInteger.valueOf(0L);
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
|
int m6038getSizeimpl = UShortArray.m6038getSizeimpl(sumOf);
|
|
for (int i = 0; i < m6038getSizeimpl; i++) {
|
|
valueOf = valueOf.add(selector.invoke(UShort.m5973boximpl(UShortArray.m6037getMh2AYeg(sumOf, i))));
|
|
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
|
}
|
|
return valueOf;
|
|
}
|
|
}
|