package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.text.TextUtils; import java.util.List; import o.PRA; /* loaded from: classes3.dex */ public final class CY extends C16157lj { /* JADX INFO: Access modifiers changed from: package-private */ @InterfaceC13391fZD public CY(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public static /* synthetic */ WW d(boolean z, C17480xBa c17480xBa) { C1177Xf c1177Xf; String c = c(c17480xBa.b, z); if (!TextUtils.isEmpty(c17480xBa.h)) { c = c17480xBa.h; } WW a = WW.a(); a.s = c17480xBa.b; a.t = c17480xBa.b; a.p = c17480xBa.l; a.x = c; a.c = c(c17480xBa.a); a.d = c17480xBa.a; a.e = c(c17480xBa); a.r = c17480xBa.k; a.k = c17480xBa.h; a.i = c17480xBa.c; a.h = c17480xBa.d; a.g = c17480xBa.j; a.w = c17480xBa.g; vDw vdw = c17480xBa.i; if (vdw == null) { c1177Xf = null; } else { c1177Xf = new C1177Xf(vdw.f, vdw.b, vdw.e != null ? vdw.e.doubleValue() : 0.0d, vdw.a != null ? vdw.a.doubleValue() : 0.0d, vdw.d, vdw.g, vdw.c); } a.f = c1177Xf; a.j = c17480xBa.f; a.q = c17480xBa.f9306o; return a; } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ boolean c(boolean z, WW ww) { if (z) { return (ww.p == null || ww.p == ZGL.TYPE_FIXED) ? false : true; } return true; } public final List a(List list, final boolean z, final boolean z2) { YKU yku = new YKU(list); YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this, z) { // from class: o.CZ private CY b; private boolean e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return CY.d(this.e, (C17480xBa) obj); } { this.b = this; this.e = z; } })); return (List) new YKU(yku2.a, new GEP(yku2.b, new Jel(z2) { // from class: o.CW private boolean d; @Override // o.Jel public final boolean e(Object obj) { return CY.c(this.d, (WW) obj); } { this.d = z2; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } }