package o; import com.airbnb.deeplinkdispatch.UrlTreeKt; import java.util.Collections; import java.util.HashSet; import java.util.Set; import java.util.WeakHashMap; /* loaded from: classes.dex */ public final class ySr { public boolean d; public final Set e = Collections.newSetFromMap(new WeakHashMap()); public final Set a = new HashSet(); public final boolean d(PXc pXc) { boolean z = true; if (pXc == null) { return true; } boolean remove = this.e.remove(pXc); if (!this.a.remove(pXc) && !remove) { z = false; } if (z) { pXc.c(); } return z; } public final String toString() { StringBuilder sb = new StringBuilder(); sb.append(super.toString()); sb.append("{numRequests="); sb.append(this.e.size()); sb.append(", isPaused="); sb.append(this.d); sb.append(UrlTreeKt.componentParamSuffix); return sb.toString(); } }