discord-jadx/app/src/main/java/d0/t/p0.java
2021-06-27 22:44:35 +02:00

83 lines
3.7 KiB
Java

package d0.t;
import d0.f0.k;
import d0.f0.l;
import d0.w.h.a.e;
import d0.w.h.a.j;
import d0.z.d.m;
import java.util.Iterator;
import java.util.List;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function2;
/* compiled from: SlidingWindow.kt */
public final class p0 {
/* compiled from: SlidingWindow.kt */
@e(c = "kotlin.collections.SlidingWindowKt$windowedIterator$1", f = "SlidingWindow.kt", l = {34, 40, 49, 55, 58}, m = "invokeSuspend")
public static final class a extends j implements Function2<k<? super List<? extends T>>, Continuation<? super Unit>, Object> {
public final /* synthetic */ Iterator $iterator;
public final /* synthetic */ boolean $partialWindows;
public final /* synthetic */ boolean $reuseBuffer;
public final /* synthetic */ int $size;
public final /* synthetic */ int $step;
public int I$0;
private /* synthetic */ Object L$0;
public Object L$1;
public Object L$2;
public int label;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(int i, int i2, Iterator it, boolean z2, boolean z3, Continuation continuation) {
super(2, continuation);
this.$size = i;
this.$step = i2;
this.$iterator = it;
this.$reuseBuffer = z2;
this.$partialWindows = z3;
}
@Override // d0.w.h.a.a
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
m.checkNotNullParameter(continuation, "completion");
a aVar = new a(this.$size, this.$step, this.$iterator, this.$reuseBuffer, this.$partialWindows, continuation);
aVar.L$0 = obj;
return aVar;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Continuation<? super Unit> continuation) {
return ((a) create(obj, continuation)).invokeSuspend(Unit.a);
}
/* JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:57)
at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:15)
*/
/* JADX WARNING: Removed duplicated region for block: B:44:0x00ea */
/* JADX WARNING: Removed duplicated region for block: B:59:0x0128 */
/* JADX WARNING: Removed duplicated region for block: B:62:0x0132 */
@Override // d0.w.h.a.a
public final java.lang.Object invokeSuspend(java.lang.Object r13) {
/*
// Method dump skipped, instructions count: 363
*/
throw new UnsupportedOperationException("Method not decompiled: d0.t.p0.a.invokeSuspend(java.lang.Object):java.lang.Object");
}
}
public static final void checkWindowSizeStep(int i, int i2) {
if (!(i > 0 && i2 > 0)) {
throw new IllegalArgumentException((i != i2 ? c.d.b.a.a.p("Both size ", i, " and step ", i2, " must be greater than zero.") : c.d.b.a.a.n("size ", i, " must be greater than zero.")).toString());
}
}
public static final <T> Iterator<List<T>> windowedIterator(Iterator<? extends T> it, int i, int i2, boolean z2, boolean z3) {
m.checkNotNullParameter(it, "iterator");
return !it.hasNext() ? v.i : l.iterator(new a(i, i2, it, z3, z2, null));
}
}