package defpackage;

import android.os.Looper;
import java.util.Arrays;
import java.util.Iterator;
import java.util.ServiceConfigurationError;

/* renamed from: ᵣˋˈᵼ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC3348 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static final C4481 f12531;

    static {
        String property;
        int i = AbstractC3107.f11860;
        Object next = null;
        try {
            property = System.getProperty("kotlinx.coroutines.fast.service.loader");
        } catch (SecurityException unused) {
            property = null;
        }
        if (property != null) {
            Boolean.parseBoolean(property);
        }
        try {
            Iterator it = AbstractC3761.m8384(AbstractC3761.m8383(Arrays.asList(new C2271()).iterator())).iterator();
            if (it.hasNext()) {
                next = it.next();
                if (it.hasNext()) {
                    ((C2271) next).getClass();
                    do {
                        ((C2271) it.next()).getClass();
                    } while (it.hasNext());
                }
            }
            if (((C2271) next) == null) {
                ᵹˉᵞ.ᵳٴᵶ("Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'");
                return;
            }
            Looper mainLooper = Looper.getMainLooper();
            if (mainLooper != null) {
                f12531 = new C4481(AbstractC2659.m6656(mainLooper), false);
            } else {
                ᵹˉᵞ.ᵳٴᵶ("The main looper is not available");
            }
        } catch (Throwable th) {
            throw new ServiceConfigurationError(th.getMessage(), th);
        }
    }
}
