package defpackage;

import android.net.ConnectivityManager;
import java.io.IOException;
import java.util.LinkedHashMap;

/* renamed from: ᵲˈˏ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class C4475 implements InterfaceC4622 {

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

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

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

    public /* synthetic */ C4475(Object obj, int i, Object obj2) {
        this.f16694 = i;
        this.f16693 = obj;
        this.f16695 = obj2;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    private final Object m9512() {
        ˈᵾᵣᴵ r0 = (ˈᵾᵣᴵ) this.f16693;
        ConnectivityManager connectivityManager = (ConnectivityManager) this.f16695;
        synchronized (C2833.f10913) {
            LinkedHashMap linkedHashMap = C2833.f10911;
            linkedHashMap.remove(r0);
            if (linkedHashMap.isEmpty()) {
                ᵼᵫᵧˀ r02 = ᵼᵫᵧˀ.ˀᵗᵝᵭ();
                int i = AbstractC4623.f17105;
                r02.getClass();
                connectivityManager.unregisterNetworkCallback(C2833.f10912);
                C2833.f10910 = null;
                C2833.f10914 = null;
                C2833.f10909 = false;
            }
        }
        return C3637.f13536;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    private final Object m9513() {
        int i;
        long jM7295;
        C4498[] c4498Arr;
        C1487 c1487 = (C1487) this.f16693;
        C2985 c2985 = (C2985) this.f16695;
        C3057 c3057 = new C3057();
        C4560 c4560 = c1487.f5989;
        synchronized (c4560.f16959) {
            synchronized (c4560) {
                try {
                    C2985 c29852 = c4560.f16966;
                    C2985 c29853 = new C2985();
                    for (int i2 = 0; i2 < 10; i2++) {
                        if (((1 << i2) & c29852.f11531) != 0) {
                            c29853.m7296(i2, c29852.f11532[i2]);
                        }
                    }
                    for (int i3 = 0; i3 < 10; i3++) {
                        if (((1 << i3) & c2985.f11531) != 0) {
                            c29853.m7296(i3, c2985.f11532[i3]);
                        }
                    }
                    c3057.f11710 = c29853;
                    jM7295 = c29853.m7295() - c29852.m7295();
                    c4498Arr = (jM7295 == 0 || c4560.f16971.isEmpty()) ? null : (C4498[]) c4560.f16971.values().toArray(new C4498[0]);
                    c4560.f16966 = (C2985) c3057.f11710;
                    C0897.m3015(c4560.f16962, c4560.f16979 + " onSettings", new C4475(c4560, 6, c3057));
                } catch (Throwable th) {
                    throw th;
                }
            }
            try {
                c4560.f16959.m9647((C2985) c3057.f11710);
            } catch (IOException e) {
                c4560.m9719(2, 2, e);
            }
        }
        if (c4498Arr != null) {
            for (C4498 c4498 : c4498Arr) {
                synchronized (c4498) {
                    c4498.f16763 += jM7295;
                    if (jM7295 > 0) {
                        c4498.notifyAll();
                    }
                }
            }
        }
        return C3637.f13536;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00ea  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x0155  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x016a  */
    @Override // defpackage.InterfaceC4622
    /* renamed from: ᵥᵯˎ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object mo1401() {
        /*
            Method dump skipped, instructions count: 958
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C4475.mo1401():java.lang.Object");
    }
}
