package c.m.a; import android.content.Context; import android.content.SharedPreferences; import c.m.a.g.b; import c.m.a.g.c; import c.m.a.g.d.d; import c.m.a.g.d.e; import c.m.a.g.d.g; import c.m.a.g.d.i; import com.lyft.kronos.KronosClock; import d0.z.d.m; import java.util.List; /* compiled from: AndroidClockFactory.kt */ public final class a { public static KronosClock a(Context context, e eVar, List list, long j, long j2, long j3, int i) { List list2; long j4; long j5; long j6; int i2 = i & 2; if ((i & 4) != 0) { c cVar = c.e; list2 = c.a; } else { list2 = null; } if ((i & 8) != 0) { c cVar2 = c.e; j4 = c.d; } else { j4 = j; } if ((i & 16) != 0) { c cVar3 = c.e; j5 = c.f1464c; } else { j5 = j2; } if ((i & 32) != 0) { c cVar4 = c.e; j6 = c.b; } else { j6 = j3; } m.checkParameterIsNotNull(context, "context"); m.checkParameterIsNotNull(list2, "ntpHosts"); c.m.a.g.a aVar = new c.m.a.g.a(); SharedPreferences sharedPreferences = context.getSharedPreferences("com.lyft.kronos.shared_preferences", 0); m.checkExpressionValueIsNotNull(sharedPreferences, "context.getSharedPrefere…ME, Context.MODE_PRIVATE)"); c cVar5 = new c(sharedPreferences); m.checkParameterIsNotNull(aVar, "localClock"); m.checkParameterIsNotNull(cVar5, "syncResponseCache"); m.checkParameterIsNotNull(list2, "ntpHosts"); if (!(aVar instanceof KronosClock)) { return new b(new i(new e(aVar, new d(), new c.m.a.g.d.b()), aVar, new g(cVar5, aVar), null, list2, j4, j5, j6), aVar); } throw new IllegalArgumentException("Local clock should implement Clock instead of KronosClock"); } }