package o;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import java.util.Objects;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.hi0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class RunnableC1409hi0 implements Runnable {
    public final /* synthetic */ C0598Xb l;
    public final /* synthetic */ C2156pc m;
    public final /* synthetic */ int n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Runnable f566o;

    public /* synthetic */ RunnableC1409hi0(C0598Xb c0598Xb, C2156pc c2156pc, int i, Runnable runnable) {
        this.l = c0598Xb;
        this.m = c2156pc;
        this.n = i;
        this.f566o = runnable;
    }

    @Override // java.lang.Runnable
    public final void run() {
        final C2156pc c2156pc = this.m;
        final int i = this.n;
        Runnable runnable = this.f566o;
        final C0598Xb c0598Xb = this.l;
        InterfaceC0918cc0 interfaceC0918cc0 = (InterfaceC0918cc0) c0598Xb.f;
        try {
            try {
                InterfaceC0463Rw interfaceC0463Rw = (InterfaceC0463Rw) c0598Xb.c;
                Objects.requireNonNull(interfaceC0463Rw);
                ((L30) interfaceC0918cc0).j(new G1(15, interfaceC0463Rw));
                NetworkInfo activeNetworkInfo = ((ConnectivityManager) ((Context) c0598Xb.a).getSystemService("connectivity")).getActiveNetworkInfo();
                if (activeNetworkInfo == null || !activeNetworkInfo.isConnected()) {
                    ((L30) interfaceC0918cc0).j(new InterfaceC0823bc0() { // from class: o.ii0
                        @Override // o.InterfaceC0823bc0
                        public final Object d() {
                            ((C3126zm0) c0598Xb.d).O(c2156pc, i + 1, false);
                            return null;
                        }
                    });
                } else {
                    c0598Xb.c(c2156pc, i);
                }
                runnable.run();
            } catch (C0727ac0 unused) {
                ((C3126zm0) c0598Xb.d).O(c2156pc, i + 1, false);
                runnable.run();
            }
        } catch (Throwable th) {
            runnable.run();
            throw th;
        }
    }
}
