package c.f.j.p; import c.f.j.j.e; import com.airbnb.lottie.parser.AnimatableValueParser; import com.facebook.imagepipeline.request.ImageRequest; /* compiled from: BranchOnSeparateImagesProducer */ public class k implements v0 { public final v0 a; public final v0 b; /* compiled from: BranchOnSeparateImagesProducer */ public class b extends p { /* renamed from: c reason: collision with root package name */ public w0 f494c; public b(l lVar, w0 w0Var, a aVar) { super(lVar); this.f494c = w0Var; } @Override // c.f.j.p.p, c.f.j.p.b public void h(Throwable th) { k.this.b.b(this.b, this.f494c); } @Override // c.f.j.p.b public void i(Object obj, int i) { e eVar = (e) obj; ImageRequest e = this.f494c.e(); boolean e2 = b.e(i); boolean o1 = AnimatableValueParser.o1(eVar, e.i); if (eVar != null && (o1 || e.g)) { if (!e2 || !o1) { this.b.b(eVar, i & -2); } else { this.b.b(eVar, i); } } if (e2 && !o1) { if (eVar != null) { eVar.close(); } k.this.b.b(this.b, this.f494c); } } } public k(v0 v0Var, v0 v0Var2) { this.a = v0Var; this.b = v0Var2; } @Override // c.f.j.p.v0 public void b(l lVar, w0 w0Var) { this.a.b(new b(lVar, w0Var, null), w0Var); } }