package p138.p176.p177.p190.p238;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Handler;
import android.os.Looper;
import android.util.SparseArray;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p190.p191.C3463;
import p138.p176.p177.p190.p191.InterfaceC3466;
import p138.p176.p177.p190.p238.InterfaceC4090;
import p138.p176.p177.p190.p239.C4125;
import p138.p176.p177.p190.p239.C4142;
import p138.p176.p177.p190.p239.C4150;
import p138.p176.p177.p190.p239.InterfaceC4120;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ྌ.ފ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4100 implements InterfaceC4090, InterfaceC4115 {

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public static final Map<String, int[]> f13093;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public static final long[] f13094;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public static final long[] f13095;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public static final long[] f13096;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public static final long[] f13097;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public static C4100 f13098;

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Context f13099;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final SparseArray<Long> f13100;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final C4125<InterfaceC4090.InterfaceC4091> f13101;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final C4142 f13102;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final InterfaceC4120 f13103;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public int f13104;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public long f13105;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public long f13106;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public int f13107;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public long f13108;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public long f13109;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public long f13110;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public long f13111;

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ྌ.ފ$֏, reason: contains not printable characters */
    public static class C4101 extends BroadcastReceiver {

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static C4101 f13112;

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final Handler f13113 = new Handler(Looper.getMainLooper());

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final ArrayList<WeakReference<C4100>> f13114 = new ArrayList<>();

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static synchronized C4101 m6603(Context context) {
            if (f13112 == null) {
                f13112 = new C4101();
                IntentFilter intentFilter = new IntentFilter();
                intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
                context.registerReceiver(f13112, intentFilter);
            }
            return f13112;
        }

        @Override // android.content.BroadcastReceiver
        public synchronized void onReceive(Context context, Intent intent) {
            if (isInitialStickyBroadcast()) {
                return;
            }
            m6604();
            for (int i = 0; i < this.f13114.size(); i++) {
                C4100 c4100 = this.f13114.get(i).get();
                if (c4100 != null) {
                    c4100.m6601();
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final void m6604() {
            for (int size = this.f13114.size() - 1; size >= 0; size--) {
                if (this.f13114.get(size).get() == null) {
                    this.f13114.remove(size);
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public /* synthetic */ void m6605(C4100 c4100) {
            c4100.m6601();
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public synchronized void m6606(final C4100 c4100) {
            m6604();
            this.f13114.add(new WeakReference<>(c4100));
            this.f13113.post(new Runnable() { // from class: ދ.ހ.֏.ؠ.ྌ.ؠ
                @Override // java.lang.Runnable
                public final void run() {
                    this.f13058.m6605(c4100);
                }
            });
        }
    }

    static {
        HashMap map = new HashMap();
        map.put("AD", new int[]{1, 1, 0, 0});
        map.put("AE", new int[]{1, 4, 4, 4});
        map.put("AF", new int[]{4, 4, 3, 3});
        map.put("AG", new int[]{3, 1, 0, 1});
        map.put("AI", new int[]{1, 0, 0, 3});
        map.put("AL", new int[]{1, 2, 0, 1});
        map.put("AM", new int[]{2, 2, 2, 2});
        map.put("AO", new int[]{3, 4, 2, 0});
        map.put("AR", new int[]{2, 3, 2, 2});
        map.put("AS", new int[]{3, 0, 4, 2});
        map.put("AT", new int[]{0, 3, 0, 0});
        map.put("AU", new int[]{0, 3, 0, 1});
        map.put("AW", new int[]{1, 1, 0, 3});
        map.put("AX", new int[]{0, 3, 0, 2});
        map.put("AZ", new int[]{3, 3, 3, 3});
        map.put("BA", new int[]{1, 1, 0, 1});
        map.put("BB", new int[]{0, 2, 0, 0});
        map.put("BD", new int[]{2, 1, 3, 3});
        map.put("BE", new int[]{0, 0, 0, 1});
        map.put("BF", new int[]{4, 4, 4, 1});
        map.put("BG", new int[]{0, 1, 0, 0});
        map.put("BH", new int[]{2, 1, 3, 4});
        map.put("BI", new int[]{4, 4, 4, 4});
        map.put("BJ", new int[]{4, 4, 4, 4});
        map.put("BL", new int[]{1, 0, 2, 2});
        map.put("BM", new int[]{1, 2, 0, 0});
        map.put("BN", new int[]{4, 1, 3, 2});
        map.put("BO", new int[]{1, 2, 3, 2});
        map.put("BQ", new int[]{1, 1, 2, 4});
        map.put("BR", new int[]{2, 3, 3, 2});
        map.put("BS", new int[]{2, 1, 1, 4});
        map.put("BT", new int[]{3, 0, 3, 1});
        map.put("BW", new int[]{4, 4, 1, 2});
        map.put("BY", new int[]{0, 1, 1, 2});
        map.put("BZ", new int[]{2, 2, 2, 1});
        map.put("CA", new int[]{0, 3, 1, 3});
        map.put("CD", new int[]{4, 4, 2, 2});
        map.put("CF", new int[]{4, 4, 3, 0});
        map.put("CG", new int[]{3, 4, 2, 4});
        map.put("CH", new int[]{0, 0, 1, 0});
        map.put("CI", new int[]{3, 4, 3, 3});
        map.put("CK", new int[]{2, 4, 1, 0});
        map.put("CL", new int[]{1, 2, 2, 3});
        map.put("CM", new int[]{3, 4, 3, 1});
        map.put("CN", new int[]{2, 0, 2, 3});
        map.put("CO", new int[]{2, 3, 2, 2});
        map.put("CR", new int[]{2, 3, 4, 4});
        map.put("CU", new int[]{4, 4, 3, 1});
        map.put("CV", new int[]{2, 3, 1, 2});
        map.put("CW", new int[]{1, 1, 0, 0});
        map.put("CY", new int[]{1, 1, 0, 0});
        map.put("CZ", new int[]{0, 1, 0, 0});
        map.put("DE", new int[]{0, 1, 1, 3});
        map.put("DJ", new int[]{4, 3, 4, 1});
        map.put("DK", new int[]{0, 0, 1, 1});
        map.put("DM", new int[]{1, 0, 1, 3});
        map.put("DO", new int[]{3, 3, 4, 4});
        map.put("DZ", new int[]{3, 3, 4, 4});
        map.put("EC", new int[]{2, 3, 4, 3});
        map.put("EE", new int[]{0, 1, 0, 0});
        map.put("EG", new int[]{3, 4, 2, 2});
        map.put("EH", new int[]{2, 0, 3, 3});
        map.put("ER", new int[]{4, 2, 2, 0});
        map.put("ES", new int[]{0, 1, 1, 1});
        map.put("ET", new int[]{4, 4, 4, 0});
        map.put("FI", new int[]{0, 0, 1, 0});
        map.put("FJ", new int[]{3, 0, 3, 3});
        map.put("FK", new int[]{3, 4, 2, 2});
        map.put("FM", new int[]{4, 0, 4, 0});
        map.put("FO", new int[]{0, 0, 0, 0});
        map.put("FR", new int[]{1, 0, 3, 1});
        map.put("GA", new int[]{3, 3, 2, 2});
        map.put("GB", new int[]{0, 1, 3, 3});
        map.put("GD", new int[]{2, 0, 4, 4});
        map.put("GE", new int[]{1, 1, 1, 4});
        map.put("GF", new int[]{2, 3, 4, 4});
        map.put("GG", new int[]{0, 1, 0, 0});
        map.put("GH", new int[]{3, 3, 2, 2});
        map.put("GI", new int[]{0, 0, 0, 1});
        map.put("GL", new int[]{2, 2, 0, 2});
        map.put("GM", new int[]{4, 4, 3, 4});
        map.put("GN", new int[]{3, 4, 4, 2});
        map.put("GP", new int[]{2, 1, 1, 4});
        map.put("GQ", new int[]{4, 4, 3, 0});
        map.put("GR", new int[]{1, 1, 0, 2});
        map.put("GT", new int[]{3, 3, 3, 3});
        map.put("GU", new int[]{1, 2, 4, 4});
        map.put("GW", new int[]{4, 4, 4, 1});
        map.put("GY", new int[]{3, 2, 1, 1});
        map.put("HK", new int[]{0, 2, 3, 4});
        map.put("HN", new int[]{3, 2, 3, 2});
        map.put("HR", new int[]{1, 1, 0, 1});
        map.put("HT", new int[]{4, 4, 4, 4});
        map.put("HU", new int[]{0, 1, 0, 0});
        map.put("ID", new int[]{3, 2, 3, 4});
        map.put("IE", new int[]{1, 0, 1, 1});
        map.put("IL", new int[]{0, 0, 2, 3});
        map.put("IM", new int[]{0, 0, 0, 1});
        map.put("IN", new int[]{2, 2, 4, 4});
        map.put("IO", new int[]{4, 2, 2, 2});
        map.put("IQ", new int[]{3, 3, 4, 2});
        map.put("IR", new int[]{3, 0, 2, 2});
        map.put("IS", new int[]{0, 1, 0, 0});
        map.put("IT", new int[]{1, 0, 1, 2});
        map.put("JE", new int[]{1, 0, 0, 1});
        map.put("JM", new int[]{2, 3, 3, 1});
        map.put("JO", new int[]{1, 2, 1, 2});
        map.put("JP", new int[]{0, 2, 1, 1});
        map.put("KE", new int[]{3, 4, 4, 3});
        map.put("KG", new int[]{1, 1, 2, 2});
        map.put("KH", new int[]{1, 0, 4, 4});
        map.put("KI", new int[]{4, 4, 4, 4});
        map.put("KM", new int[]{4, 3, 2, 3});
        map.put("KN", new int[]{1, 0, 1, 3});
        map.put("KP", new int[]{4, 2, 4, 2});
        map.put("KR", new int[]{0, 1, 1, 1});
        map.put("KW", new int[]{2, 3, 1, 1});
        map.put("KY", new int[]{1, 1, 0, 1});
        map.put("KZ", new int[]{1, 2, 2, 3});
        map.put("LA", new int[]{2, 2, 1, 1});
        map.put("LB", new int[]{3, 2, 0, 0});
        map.put("LC", new int[]{1, 1, 0, 0});
        map.put("LI", new int[]{0, 0, 2, 4});
        map.put("LK", new int[]{2, 1, 2, 3});
        map.put("LR", new int[]{3, 4, 3, 1});
        map.put("LS", new int[]{3, 3, 2, 0});
        map.put("LT", new int[]{0, 0, 0, 0});
        map.put("LU", new int[]{0, 0, 0, 0});
        map.put("LV", new int[]{0, 0, 0, 0});
        map.put("LY", new int[]{4, 4, 4, 4});
        map.put("MA", new int[]{2, 1, 2, 1});
        map.put("MC", new int[]{0, 0, 0, 1});
        map.put("MD", new int[]{1, 1, 0, 0});
        map.put("ME", new int[]{1, 2, 1, 2});
        map.put("MF", new int[]{1, 1, 1, 1});
        map.put("MG", new int[]{3, 4, 2, 2});
        map.put("MH", new int[]{4, 0, 2, 4});
        map.put("MK", new int[]{1, 0, 0, 0});
        map.put("ML", new int[]{4, 4, 2, 0});
        map.put("MM", new int[]{3, 3, 1, 2});
        map.put("MN", new int[]{2, 3, 2, 3});
        map.put("MO", new int[]{0, 0, 4, 4});
        map.put("MP", new int[]{0, 2, 4, 4});
        map.put("MQ", new int[]{2, 1, 1, 4});
        map.put("MR", new int[]{4, 2, 4, 2});
        map.put("MS", new int[]{1, 2, 3, 3});
        map.put("MT", new int[]{0, 1, 0, 0});
        map.put("MU", new int[]{2, 2, 3, 4});
        map.put("MV", new int[]{4, 3, 0, 2});
        map.put("MW", new int[]{3, 2, 1, 0});
        map.put("MX", new int[]{2, 4, 4, 3});
        map.put("MY", new int[]{2, 2, 3, 3});
        map.put("MZ", new int[]{3, 3, 2, 1});
        map.put("NA", new int[]{3, 3, 2, 1});
        map.put("NC", new int[]{2, 0, 3, 3});
        map.put("NE", new int[]{4, 4, 4, 3});
        map.put("NF", new int[]{1, 2, 2, 2});
        map.put("NG", new int[]{3, 4, 3, 1});
        map.put("NI", new int[]{3, 3, 4, 4});
        map.put("NL", new int[]{0, 2, 3, 3});
        map.put("NO", new int[]{0, 1, 1, 0});
        map.put("NP", new int[]{2, 2, 2, 2});
        map.put("NR", new int[]{4, 0, 3, 1});
        map.put("NZ", new int[]{0, 0, 1, 2});
        map.put("OM", new int[]{3, 2, 1, 3});
        map.put("PA", new int[]{1, 3, 3, 4});
        map.put("PE", new int[]{2, 3, 4, 4});
        map.put("PF", new int[]{2, 2, 0, 1});
        map.put("PG", new int[]{4, 3, 3, 1});
        map.put("PH", new int[]{3, 0, 3, 4});
        map.put("PK", new int[]{3, 3, 3, 3});
        map.put("PL", new int[]{1, 0, 1, 3});
        map.put("PM", new int[]{0, 2, 2, 0});
        map.put("PR", new int[]{1, 2, 3, 3});
        map.put("PS", new int[]{3, 3, 2, 4});
        map.put("PT", new int[]{1, 1, 0, 0});
        map.put("PW", new int[]{2, 1, 2, 0});
        map.put("PY", new int[]{2, 0, 2, 3});
        map.put("QA", new int[]{2, 2, 1, 2});
        map.put("RE", new int[]{1, 0, 2, 2});
        map.put("RO", new int[]{0, 1, 1, 2});
        map.put("RS", new int[]{1, 2, 0, 0});
        map.put("RU", new int[]{0, 1, 1, 1});
        map.put("RW", new int[]{4, 4, 2, 4});
        map.put("SA", new int[]{2, 2, 2, 1});
        map.put("SB", new int[]{4, 4, 3, 0});
        map.put("SC", new int[]{4, 2, 0, 1});
        map.put("SD", new int[]{4, 4, 4, 3});
        map.put("SE", new int[]{0, 1, 0, 0});
        map.put("SG", new int[]{0, 2, 3, 3});
        map.put("SH", new int[]{4, 4, 2, 3});
        map.put("SI", new int[]{0, 0, 0, 0});
        map.put("SJ", new int[]{2, 0, 2, 4});
        map.put("SK", new int[]{0, 1, 0, 0});
        map.put("SL", new int[]{4, 3, 3, 3});
        map.put("SM", new int[]{0, 0, 2, 4});
        map.put("SN", new int[]{3, 4, 4, 2});
        map.put("SO", new int[]{3, 4, 4, 3});
        map.put("SR", new int[]{2, 2, 1, 0});
        map.put("SS", new int[]{4, 3, 4, 3});
        map.put("ST", new int[]{3, 4, 2, 2});
        map.put("SV", new int[]{2, 3, 3, 4});
        map.put("SX", new int[]{2, 4, 1, 0});
        map.put("SY", new int[]{4, 3, 2, 1});
        map.put("SZ", new int[]{4, 4, 3, 4});
        map.put("TC", new int[]{1, 2, 1, 1});
        map.put("TD", new int[]{4, 4, 4, 2});
        map.put("TG", new int[]{3, 3, 1, 0});
        map.put("TH", new int[]{1, 3, 4, 4});
        map.put("TJ", new int[]{4, 4, 4, 4});
        map.put("TL", new int[]{4, 2, 4, 4});
        map.put("TM", new int[]{4, 1, 2, 2});
        map.put("TN", new int[]{2, 2, 1, 2});
        map.put("TO", new int[]{3, 3, 3, 1});
        map.put("TR", new int[]{2, 2, 1, 2});
        map.put("TT", new int[]{1, 3, 1, 2});
        map.put("TV", new int[]{4, 2, 2, 4});
        map.put("TW", new int[]{0, 0, 0, 0});
        map.put("TZ", new int[]{3, 3, 4, 3});
        map.put("UA", new int[]{0, 2, 1, 2});
        map.put("UG", new int[]{4, 3, 3, 2});
        map.put("US", new int[]{1, 1, 3, 3});
        map.put("UY", new int[]{2, 2, 1, 1});
        map.put("UZ", new int[]{2, 2, 2, 2});
        map.put("VA", new int[]{1, 2, 4, 2});
        map.put("VC", new int[]{2, 0, 2, 4});
        map.put("VE", new int[]{4, 4, 4, 3});
        map.put("VG", new int[]{3, 0, 1, 3});
        map.put("VI", new int[]{1, 1, 4, 4});
        map.put("VN", new int[]{0, 2, 4, 4});
        map.put("VU", new int[]{4, 1, 3, 1});
        map.put("WS", new int[]{3, 3, 3, 2});
        map.put("XK", new int[]{1, 2, 1, 0});
        map.put("YE", new int[]{4, 4, 4, 3});
        map.put("YT", new int[]{2, 2, 2, 3});
        map.put("ZA", new int[]{2, 4, 2, 2});
        map.put("ZM", new int[]{3, 2, 2, 1});
        map.put("ZW", new int[]{3, 3, 2, 1});
        f13093 = Collections.unmodifiableMap(map);
        f13094 = new long[]{5700000, 3500000, 2000000, 1100000, 470000};
        f13095 = new long[]{200000, 148000, 132000, 115000, 95000};
        f13096 = new long[]{2200000, 1300000, 970000, 810000, 490000};
        f13097 = new long[]{5300000, 3200000, 2000000, 1400000, 690000};
    }

    @Deprecated
    public C4100() {
        this(null, new SparseArray(), 2000, InterfaceC4120.f13167, false);
    }

    public C4100(Context context, SparseArray<Long> sparseArray, int i, InterfaceC4120 interfaceC4120, boolean z) {
        this.f13099 = context == null ? null : context.getApplicationContext();
        this.f13100 = sparseArray;
        this.f13101 = new C4125<>();
        this.f13102 = new C4142(i);
        this.f13103 = interfaceC4120;
        int iM6796 = context == null ? 0 : C4150.m6796(context);
        this.f13107 = iM6796;
        this.f13110 = m6596(iM6796);
        if (context == null || !z) {
            return;
        }
        C4101.m6603(context).m6606(this);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static synchronized C4100 m6593(Context context) {
        if (f13098 == null) {
            Context applicationContext = context == null ? null : context.getApplicationContext();
            int[] iArr = f13093.get(C4150.m6756(context));
            if (iArr == null) {
                iArr = new int[]{2, 2, 2, 2};
            }
            SparseArray sparseArray = new SparseArray(6);
            sparseArray.append(0, 1000000L);
            sparseArray.append(2, Long.valueOf(f13094[iArr[0]]));
            sparseArray.append(3, Long.valueOf(f13095[iArr[1]]));
            sparseArray.append(4, Long.valueOf(f13096[iArr[2]]));
            sparseArray.append(5, Long.valueOf(f13097[iArr[3]]));
            sparseArray.append(7, Long.valueOf(f13094[iArr[0]]));
            sparseArray.append(9, Long.valueOf(f13094[iArr[0]]));
            f13098 = new C4100(applicationContext, sparseArray, 2000, InterfaceC4120.f13167, true);
        }
        return f13098;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m6594(int i, long j, long j2, InterfaceC4090.InterfaceC4091 interfaceC4091) {
        C3463.C3464 c3464;
        C3463 c3463 = (C3463) interfaceC4091;
        C3463.C3465 c3465 = c3463.f10245;
        if (c3465.f10250.isEmpty()) {
            c3464 = null;
        } else {
            c3464 = c3465.f10250.get(r0.size() - 1);
        }
        c3463.m5698(c3464);
        Iterator<InterfaceC3466> it = c3463.f10242.iterator();
        while (it.hasNext()) {
            it.next().m5748();
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final long m6596(int i) {
        Long l = this.f13100.get(i);
        if (l == null) {
            l = this.f13100.get(0);
        }
        if (l == null) {
            l = 1000000L;
        }
        return l.longValue();
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4090
    /* JADX INFO: renamed from: ֏ */
    public InterfaceC4115 mo6575() {
        return this;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m6597(final int i, final long j, final long j2) {
        if (i == 0 && j == 0 && j2 == this.f13111) {
            return;
        }
        this.f13111 = j2;
        this.f13101.m6633(new C4125.InterfaceC4126() { // from class: ދ.ހ.֏.ؠ.ྌ.֏
            @Override // p138.p176.p177.p190.p239.C4125.InterfaceC4126
            /* JADX INFO: renamed from: ֏ */
            public final void mo5822(Object obj) {
                C4100.m6594(i, j, j2, (InterfaceC4090.InterfaceC4091) obj);
            }
        });
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4090
    /* JADX INFO: renamed from: ֏ */
    public void mo6576(Handler handler, InterfaceC4090.InterfaceC4091 interfaceC4091) {
        this.f13101.m6631(handler, interfaceC4091);
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4090
    /* JADX INFO: renamed from: ֏ */
    public void mo6577(InterfaceC4090.InterfaceC4091 interfaceC4091) {
        this.f13101.m6632(interfaceC4091);
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4115
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public synchronized void mo6598(InterfaceC4095 interfaceC4095, C4098 c4098, boolean z) {
        if (z) {
            C0567.m1932(this.f13104 > 0);
            long jMo6619 = this.f13103.mo6619();
            int i = (int) (jMo6619 - this.f13105);
            this.f13108 += (long) i;
            this.f13109 += this.f13106;
            if (i > 0) {
                this.f13102.m6723((int) Math.sqrt(this.f13106), (this.f13106 * 8000.0f) / i);
                if (this.f13108 >= 2000 || this.f13109 >= 524288) {
                    this.f13110 = (long) this.f13102.m6722(0.5f);
                }
                m6597(i, this.f13106, this.f13110);
                this.f13105 = jMo6619;
                this.f13106 = 0L;
            }
            this.f13104--;
        }
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4115
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public synchronized void mo6599(InterfaceC4095 interfaceC4095, C4098 c4098, boolean z, int i) {
        if (z) {
            this.f13106 += (long) i;
        }
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4090
    /* JADX INFO: renamed from: ؠ */
    public synchronized long mo6578() {
        return this.f13110;
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4115
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public synchronized void mo6600(InterfaceC4095 interfaceC4095, C4098 c4098, boolean z) {
        if (z) {
            if (this.f13104 == 0) {
                this.f13105 = this.f13103.mo6619();
            }
            this.f13104++;
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final synchronized void m6601() {
        int iM6796 = this.f13099 == null ? 0 : C4150.m6796(this.f13099);
        if (this.f13107 == iM6796) {
            return;
        }
        this.f13107 = iM6796;
        if (iM6796 != 1 && iM6796 != 0 && iM6796 != 8) {
            this.f13110 = m6596(iM6796);
            long jMo6619 = this.f13103.mo6619();
            m6597(this.f13104 > 0 ? (int) (jMo6619 - this.f13105) : 0, this.f13106, this.f13110);
            this.f13105 = jMo6619;
            this.f13106 = 0L;
            this.f13109 = 0L;
            this.f13108 = 0L;
            C4142 c4142 = this.f13102;
            c4142.f13237.clear();
            c4142.f13239 = -1;
            c4142.f13240 = 0;
            c4142.f13241 = 0;
        }
    }

    @Override // p138.p176.p177.p190.p238.InterfaceC4115
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void mo6602(InterfaceC4095 interfaceC4095, C4098 c4098, boolean z) {
    }
}
