what-the-bank/sources/o/gfV.java

43 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes.dex */
public final class gfV<T> extends C15121ghj<T> {
public ThreadLocal<C13396fZU<InterfaceC14912gbn, Object>> b;
public gfV(InterfaceC14912gbn interfaceC14912gbn, InterfaceC14907gbi<? super T> interfaceC14907gbi) {
super(interfaceC14912gbn.get(gfS.a) == null ? interfaceC14912gbn.plus(gfS.a) : interfaceC14912gbn, interfaceC14907gbi);
this.b = new ThreadLocal<>();
if (interfaceC14907gbi.getContext().get(InterfaceC14909gbk.c) instanceof AbstractC15004geU) {
return;
}
Object e = C15126gho.e(interfaceC14912gbn, null);
C15126gho.c(interfaceC14912gbn, e);
this.b.set(new C13396fZU<>(interfaceC14912gbn, e));
}
@Override // o.C15121ghj, o.AbstractC15020geo
public final void c(Object obj) {
C13396fZU<InterfaceC14912gbn, Object> c13396fZU = this.b.get();
if (c13396fZU != null) {
C15126gho.c(c13396fZU.d, c13396fZU.e);
this.b.set(null);
}
Object d = geL.d(obj, ((C15121ghj) this).c);
InterfaceC14907gbi<T> interfaceC14907gbi = ((C15121ghj) this).c;
InterfaceC14912gbn context = interfaceC14907gbi.getContext();
Object e = C15126gho.e(context, null);
gfV<?> e2 = e != C15126gho.e ? geQ.e(interfaceC14907gbi, context, e) : null;
try {
((C15121ghj) this).c.resumeWith(d);
C14866gag c14866gag = C14866gag.c;
} finally {
if (e2 != null) {
if (e2.b.get() != null) {
e2.b.set(null);
}
}
C15126gho.c(context, e);
}
}
}