package defpackage;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.google.android.datatransport.runtime.synchronization.SynchronizationException;
import j$.util.Objects;

/* renamed from: ᵤᵔᵞ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class RunnableC3434 implements Runnable {

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

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

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final /* synthetic */ Runnable f12846;

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

    public /* synthetic */ RunnableC3434(C0975 c0975, C5456 c5456, int i, Runnable runnable) {
        this.f12845 = c0975;
        this.f12844 = c5456;
        this.f12847 = i;
        this.f12846 = runnable;
    }

    @Override // java.lang.Runnable
    public final void run() {
        C5456 c5456 = this.f12844;
        int i = this.f12847;
        Runnable runnable = this.f12846;
        C0975 c0975 = this.f12845;
        C3089 c3089 = (C3089) c0975.f4340;
        try {
            try {
                C3089 c30892 = (C3089) c0975.f4341;
                Objects.requireNonNull(c30892);
                c3089.m7419(new C1266(c30892, 1));
                NetworkInfo activeNetworkInfo = ((ConnectivityManager) ((Context) c0975.f4343).getSystemService("connectivity")).getActiveNetworkInfo();
                if (activeNetworkInfo == null || !activeNetworkInfo.isConnected()) {
                    c3089.m7419(new C0264(c0975, i, c5456));
                } else {
                    c0975.m3320(c5456, i);
                }
                runnable.run();
            } catch (SynchronizationException unused) {
                ((ʽᵡ) c0975.f4346).ᵤᵼˑʠ(c5456, i + 1, false);
                runnable.run();
            }
        } catch (Throwable th) {
            runnable.run();
            throw th;
        }
    }
}
