Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0
以下内容为反编译后的 f2.java 源代码,内容仅作参考
package a4;
import a4.a1;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
@mi.e(c = "androidx.paging.PagingDataDiffer$collectFrom$2$1$2", f = "PagingDataDiffer.kt", l = {159, 169, 186}, m = "invokeSuspend")
public final class f2 extends mi.i implements si.p<cj.e0, ki.d<? super fi.j>, Object> {
public int f313a;
public final a1<Object> f314b;
public final k2<Object> f315c;
public final a2<Object> f316d;
public f2(a1<Object> a1Var, k2<Object> k2Var, a2<Object> a2Var, ki.d<? super f2> dVar) {
super(2, dVar);
this.f314b = a1Var;
this.f315c = k2Var;
this.f316d = a2Var;
}
@Override
public final ki.d<fi.j> create(Object obj, ki.d<?> dVar) {
return new f2(this.f314b, this.f315c, this.f316d, dVar);
}
@Override
public final Object invoke(cj.e0 e0Var, ki.d<? super fi.j> dVar) {
return ((f2) create(e0Var, dVar)).invokeSuspend(fi.j.f22798a);
}
@Override
public final Object invokeSuspend(Object obj) {
a1<Object> a1Var;
Iterator<si.a<fi.j>> it;
boolean z10;
int i;
int i10;
k0 k0Var;
boolean z11;
boolean z12;
boolean z13;
li.a aVar = li.a.COROUTINE_SUSPENDED;
int i11 = this.f313a;
if (i11 != 0) {
if (i11 != 1 && i11 != 2) {
if (i11 == 3) {
b1.a.p(obj);
k2<Object> k2Var = this.f315c;
v1<Object> v1Var = k2Var.f469d;
a1<Object> a1Var2 = this.f314b;
j2 j2Var = k2Var.f474j;
v1Var.getClass();
ti.j.f(a1Var2, "pageEvent");
ti.j.f(j2Var, "callback");
z10 = a1Var2 instanceof a1.b;
l0 l0Var = l0.APPEND;
l0 l0Var2 = l0.PREPEND;
if (!z10) {
a1.b bVar = (a1.b) a1Var2;
Collection<y2> collection = bVar.f218b;
int i12 = 0;
for (y2 y2Var : collection) {
i12 += y2Var.f752b.size();
}
int a10 = v1Var.a();
int ordinal = bVar.f217a.ordinal();
if (ordinal != 0) {
ArrayList arrayList = v1Var.f679a;
if (ordinal != 1) {
if (ordinal == 2) {
int min = Math.min(v1Var.f682d, i12);
int i13 = v1Var.f681c + v1Var.f680b;
int i14 = i12 - min;
arrayList.addAll(arrayList.size(), collection);
v1Var.f680b += i12;
v1Var.f682d = bVar.f220d;
j2Var.f459a.f466a.c(i13, min);
j2Var.a(i13 + min, i14);
int a11 = (v1Var.a() - a10) - i14;
if (a11 > 0) {
j2Var.a(v1Var.a() - a11, a11);
} else if (a11 < 0) {
j2Var.f459a.f466a.b(v1Var.a(), -a11);
}
}
} else {
int min2 = Math.min(v1Var.f681c, i12);
int i15 = i12 - min2;
arrayList.addAll(0, collection);
v1Var.f680b += i12;
v1Var.f681c = bVar.f219c;
j2Var.f459a.f466a.c(v1Var.f681c - min2, min2);
j2Var.a(0, i15);
int a12 = (v1Var.a() - a10) - i15;
if (a12 > 0) {
j2Var.a(0, a12);
} else if (a12 < 0) {
j2Var.f459a.f466a.b(0, -a12);
}
}
k0 k0Var2 = bVar.f221e;
k0 k0Var3 = bVar.f222f;
ti.j.f(k0Var2, "source");
k2<Object> k2Var2 = j2Var.f459a;
k2Var2.getClass();
u0 u0Var = k2Var2.f470e;
u0Var.getClass();
u0Var.c(new s0(u0Var, k0Var2, k0Var3));
} else {
throw new IllegalStateException("Paging received a refresh event in the middle of an actively loading generation\nof PagingData. If you see this exception, it is most likely a bug in the library.\nPlease file a bug so we can fix it at:\nhttps://issuetracker.google.com/issues/new?component=413106");
}
} else if (a1Var2 instanceof a1.a) {
a1.a aVar2 = (a1.a) a1Var2;
int a13 = v1Var.a();
aVar2.getClass();
aVar2.getClass();
aVar2.getClass();
aVar2.getClass();
if (l0Var2 == null) {
int i16 = v1Var.f681c;
v1Var.f680b -= v1Var.g(new xi.e(0, 0));
v1Var.f681c = 0;
int a14 = v1Var.a() - a13;
if (a14 > 0) {
i10 = 0;
j2Var.a(0, a14);
} else {
i10 = 0;
if (a14 < 0) {
j2Var.f459a.f466a.b(0, -a14);
}
}
int max = Math.max(i10, i16 + a14);
int i17 = 0 - max;
if (i17 > 0) {
j2Var.f459a.f466a.c(max, i17);
}
u0 u0Var2 = j2Var.f459a.f470e;
u0Var2.getClass();
u0Var2.c(new t0(l0Var2, u0Var2));
} else {
int i18 = v1Var.f682d;
v1Var.f680b -= v1Var.g(new xi.e(0, 0));
v1Var.f682d = 0;
int a15 = v1Var.a() - a13;
if (a15 > 0) {
j2Var.a(a13, a15);
} else if (a15 < 0) {
j2Var.f459a.f466a.b(a13 + a15, -a15);
}
if (a15 < 0) {
i = Math.min(i18, -a15);
} else {
i = 0;
}
int i19 = 0 - (i18 - i);
if (i19 > 0) {
j2Var.f459a.f466a.c(v1Var.a() - 0, i19);
}
u0 u0Var3 = j2Var.f459a.f470e;
u0Var3.getClass();
u0Var3.c(new t0(l0Var, u0Var3));
}
} else if (a1Var2 instanceof a1.c) {
a1.c cVar = (a1.c) a1Var2;
k0 k0Var4 = cVar.f223a;
k0 k0Var5 = cVar.f224b;
ti.j.f(k0Var4, "source");
k2<Object> k2Var3 = j2Var.f459a;
k2Var3.getClass();
u0 u0Var4 = k2Var3.f470e;
u0Var4.getClass();
u0Var4.c(new s0(u0Var4, k0Var4, k0Var5));
} else if (a1Var2 instanceof a1.d) {
throw new IllegalStateException("Paging received an event to display a static list, while still actively loading\nfrom an existing generation of PagingData. If you see this exception, it is most\nlikely a bug in the library. Please file a bug so we can fix it at:\nhttps://issuetracker.google.com/issues/new?component=413106");
}
if (this.f314b instanceof a1.a) {
this.f315c.f473h = false;
}
if (this.f314b instanceof a1.b) {
p pVar = (p) this.f315c.f470e.f666c.getValue();
if (pVar != null) {
k0Var = pVar.f592d;
} else {
k0Var = null;
}
if (k0Var != null) {
boolean z14 = k0Var.f462b.f451a;
boolean z15 = k0Var.f463c.f451a;
a1.b bVar2 = (a1.b) this.f314b;
l0 l0Var3 = bVar2.f217a;
if ((l0Var3 == l0Var2 && z14) || (l0Var3 == l0Var && z15)) {
z11 = false;
} else {
z11 = true;
}
Iterable<y2> iterable = bVar2.f218b;
if (!(iterable instanceof Collection) || !((Collection) iterable).isEmpty()) {
for (y2 y2Var2 : iterable) {
if (!y2Var2.f752b.isEmpty()) {
z12 = false;
break;
}
}
}
z12 = true;
if (!z11) {
this.f315c.f473h = false;
} else if (this.f315c.f473h || z12) {
if (!z12) {
int i20 = this.f315c.i;
k2<Object> k2Var4 = this.f315c;
if (i20 >= k2Var4.f469d.f681c) {
int i21 = k2Var4.i;
v1<Object> v1Var2 = this.f315c.f469d;
if (i21 <= v1Var2.f681c + v1Var2.f680b) {
z13 = false;
if (!z13) {
k2<Object> k2Var5 = this.f315c;
f0 f0Var = k2Var5.f468c;
if (f0Var != null) {
f0Var.a(k2Var5.f469d.f(k2Var5.i));
}
} else {
this.f315c.f473h = false;
}
}
}
}
z13 = true;
if (!z13) {
}
}
} else {
throw new IllegalStateException("PagingDataDiffer.combinedLoadStatesCollection.stateFlow shouldnot hold null CombinedLoadStates after Insert event.".toString());
}
}
a1Var = this.f314b;
if (!(a1Var instanceof a1.b)) {
}
it = this.f315c.f471f.iterator();
while (it.hasNext()) {
}
return fi.j.f22798a;
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
b1.a.p(obj);
a1Var = this.f314b;
if (!(a1Var instanceof a1.b) || (a1Var instanceof a1.a) || (a1Var instanceof a1.d)) {
it = this.f315c.f471f.iterator();
while (it.hasNext()) {
it.next().invoke();
}
}
return fi.j.f22798a;
}
b1.a.p(obj);
a1<Object> a1Var3 = this.f314b;
if (a1Var3 instanceof a1.b) {
a1.b bVar3 = (a1.b) a1Var3;
if (bVar3.f217a == l0.REFRESH) {
k2<Object> k2Var6 = this.f315c;
List<y2<T>> list = bVar3.f218b;
int i22 = bVar3.f219c;
int i23 = bVar3.f220d;
k0 k0Var6 = bVar3.f221e;
k0 k0Var7 = bVar3.f222f;
f0 f0Var2 = this.f316d.f227c;
this.f313a = 1;
if (k2.a(k2Var6, list, i22, i23, true, k0Var6, k0Var7, f0Var2, this) == aVar) {
return aVar;
}
a1Var = this.f314b;
if (!(a1Var instanceof a1.b)) {
}
it = this.f315c.f471f.iterator();
while (it.hasNext()) {
}
return fi.j.f22798a;
}
}
if (!(a1Var3 instanceof a1.d)) {
if (this.f315c.c()) {
this.f313a = 3;
if (cj.r.m(this) == aVar) {
return aVar;
}
}
k2<Object> k2Var7 = this.f315c;
v1<Object> v1Var3 = k2Var7.f469d;
a1<Object> a1Var22 = this.f314b;
j2 j2Var2 = k2Var7.f474j;
v1Var3.getClass();
ti.j.f(a1Var22, "pageEvent");
ti.j.f(j2Var2, "callback");
z10 = a1Var22 instanceof a1.b;
l0 l0Var4 = l0.APPEND;
l0 l0Var22 = l0.PREPEND;
if (!z10) {
}
if (this.f314b instanceof a1.a) {
}
if (this.f314b instanceof a1.b) {
}
a1Var = this.f314b;
if (!(a1Var instanceof a1.b)) {
}
it = this.f315c.f471f.iterator();
while (it.hasNext()) {
}
return fi.j.f22798a;
}
((a1.d) this.f314b).getClass();
new y2(null, 0);
throw null;
}
}