package defpackage;

/* renamed from: ᵶᵼ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC4843 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ C1331 f17985;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f17986;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ BinderC0769 f17987;

    public /* synthetic */ RunnableC4843(BinderC0769 binderC0769, C1331 c1331, int i) {
        this.f17986 = i;
        this.f17985 = c1331;
        this.f17987 = binderC0769;
    }

    @Override // java.lang.Runnable
    public final void run() throws Throwable {
        int i = this.f17986;
        C1331 c1331 = this.f17985;
        BinderC0769 binderC0769 = this.f17987;
        switch (i) {
            case 0:
                binderC0769.f3656.m2263();
                C0524 c0524 = binderC0769.f3656;
                c0524.mo2307().m4042();
                c0524.m2299();
                ᵩʛʽ.ᵝᵵᵺ(c1331);
                String str = c1331.f5474;
                ᵩʛʽ.ˏˋٴ(str);
                int i2 = 0;
                if (c0524.m2254().m5353(null, AbstractC5018.f18686)) {
                    c0524.mo2310().getClass();
                    long jCurrentTimeMillis = System.currentTimeMillis();
                    int iM5346 = c0524.m2254().m5346(null, AbstractC5018.f18633);
                    c0524.m2254();
                    long jLongValue = jCurrentTimeMillis - ((Long) AbstractC5018.f18635.m11195(null)).longValue();
                    while (i2 < iM5346 && c0524.m2275(jLongValue, null)) {
                        i2++;
                    }
                } else {
                    c0524.m2254();
                    long jIntValue = ((Integer) AbstractC5018.f18645.m11195(null)).intValue();
                    while (i2 < jIntValue && c0524.m2275(0L, str)) {
                        i2++;
                    }
                }
                if (c0524.m2254().m5353(null, AbstractC5018.f18710)) {
                    c0524.mo2307().m4042();
                    c0524.m2308();
                }
                C1216 c1216 = c0524.f2714;
                int iM10014 = AbstractC4737.m10014(c1331.f5480);
                c1216.ˀᵗᵝᵭ();
                if (iM10014 == 2 && !C1216.m3756(str)) {
                    C3245 c3245 = c1216.f20600.f2729;
                    C0524.m2252(c3245);
                    C1815 c1815M7595 = c3245.m7595(str);
                    if (c1815M7595 != null && c1815M7595.m5157() && !c1815M7595.m5145().m9827().isEmpty()) {
                        c0524.mo2272().f6935.m6039(str, "[sgtm] Going background, trigger client side upload. appId");
                        c0524.mo2310().getClass();
                        c0524.m2305(System.currentTimeMillis(), str);
                        break;
                    }
                }
                break;
            case 1:
                binderC0769.f3656.m2263();
                C0524 c05242 = binderC0769.f3656;
                c05242.mo2307().m4042();
                c05242.m2299();
                ᵩʛʽ.ˏˋٴ(c1331.f5474);
                c05242.m2268(c1331);
                break;
            case 2:
                binderC0769.f3656.m2263();
                C0524 c05243 = binderC0769.f3656;
                c05243.mo2307().m4042();
                c05243.m2299();
                ᵩʛʽ.ˏˋٴ(c1331.f5474);
                c05243.m2292(c1331);
                c05243.m2253(c1331);
                break;
            default:
                C0524 c05244 = binderC0769.f3656;
                c05244.m2263();
                c05244.m2292(c1331);
                break;
        }
    }
}
