package o; import o.C1050UnO; import o.RDy; import o.ykj; /* loaded from: classes.dex */ final class iYo implements Ezi, C1050UnO.Sts { private static final RDy.Sts> e = C1050UnO.c(20, new C1050UnO.RVV>() { // from class: o.iYo.1 @Override // o.C1050UnO.RVV public final /* synthetic */ iYo e() { return new iYo<>(); } }); private Ezi a; private final ykj b = new ykj.LWm(); private boolean c; private boolean d; /* JADX INFO: Access modifiers changed from: package-private */ public static iYo e(Ezi ezi) { iYo iyo = (iYo) e.d(); if (iyo == null) { throw new NullPointerException("Argument must not be null"); } ((iYo) iyo).d = false; ((iYo) iyo).c = true; ((iYo) iyo).a = ezi; return iyo; } iYo() { } /* JADX INFO: Access modifiers changed from: package-private */ public final void j() { synchronized (this) { this.b.b(); if (!this.c) { throw new IllegalStateException("Already unlocked"); } this.c = false; if (this.d) { b(); } } } @Override // o.Ezi public final Class d() { return this.a.d(); } @Override // o.Ezi public final Z e() { return this.a.e(); } @Override // o.Ezi public final int a() { return this.a.a(); } @Override // o.Ezi public final void b() { synchronized (this) { this.b.b(); this.d = true; if (!this.c) { this.a.b(); this.a = null; e.d(this); } } } @Override // o.C1050UnO.Sts public final ykj c() { return this.b; } }