package p037.p041.p042;

import android.R;
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorSet;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.TimeInterpolator;
import android.animation.TypeConverter;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.app.AppOpsManager;
import android.app.Dialog;
import android.app.UiModeManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.database.Cursor;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PointF;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.icu.text.DecimalFormatSymbols;
import android.location.Location;
import android.location.LocationManager;
import android.media.AudioManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.CancellationSignal;
import android.os.IBinder;
import android.os.ParcelFileDescriptor;
import android.os.Parcelable;
import android.os.PowerManager;
import android.os.Process;
import android.os.StrictMode;
import android.text.TextDirectionHeuristic;
import android.text.TextDirectionHeuristics;
import android.text.TextPaint;
import android.text.TextUtils;
import android.text.method.PasswordTransformationMethod;
import android.transition.Transition;
import android.transition.TransitionSet;
import android.transition.TransitionValues;
import android.util.AndroidRuntimeException;
import android.util.AttributeSet;
import android.util.Base64;
import android.util.Log;
import android.util.LongSparseArray;
import android.util.Property;
import android.util.Size;
import android.util.SizeF;
import android.util.SparseIntArray;
import android.util.StateSet;
import android.util.TypedValue;
import android.util.Xml;
import android.view.ActionMode;
import android.view.InflateException;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.KeyboardShortcutGroup;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.CompoundButton;
import android.widget.FrameLayout;
import android.widget.ListAdapter;
import android.widget.PopupWindow;
import android.widget.TextView;
import androidx.appcompat.view.menu.ExpandedMenuView;
import androidx.appcompat.widget.ActionBarContextView;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.ContentFrameLayout;
import androidx.appcompat.widget.ViewStubCompat;
import androidx.fragment.app.Fragment;
import androidx.leanback.transition.FadeAndShortSlide;
import androidx.recyclerview.widget.RecyclerView;
import ar.tvplayer.core.data.api.stalker.TtvChannel;
import ar.tvplayer.core.data.api.stalker.TtvJs;
import ar.tvplayer.core.data.api.stalker.TtvResponse;
import ar.tvplayer.core.data.api.xtreamcodes.ServerInfo;
import ar.tvplayer.core.data.api.xtreamcodes.ServerInfoResponse;
import ar.tvplayer.core.data.db.entities.֏;
import ar.tvplayer.core.data.db.entities.ބ;
import ar.tvplayer.core.data.db.entities.ކ;
import ar.tvplayer.core.data.db.entities.އ;
import ar.tvplayer.core.data.db.entities.މ;
import ar.tvplayer.core.data.db.entities.ގ;
import ar.tvplayer.core.data.db.entities.ޏ;
import ar.tvplayer.core.data.db.entities.ސ;
import ar.tvplayer.core.data.db.entities.ޑ;
import ar.tvplayer.core.data.db.entities.ޔ;
import ar.tvplayer.core.data.db.entities.ޕ;
import ar.tvplayer.core.data.db.entities.ޙ;
import ar.tvplayer.core.data.db.entities.ޢ;
import ar.tvplayer.core.data.db.entities.ޤ;
import ar.tvplayer.core.data.db.entities.ࢣ;
import ar.tvplayer.core.data.parsers.m3u.ؠ;
import ar.tvplayer.core.data.parsers.m3u.ހ;
import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.data.prefs.ၮ;
import ar.tvplayer.core.data.prefs.ၯ;
import ar.tvplayer.core.data.prefs.ၰ;
import ar.tvplayer.core.data.prefs.ၵ;
import ar.tvplayer.core.data.prefs.ၶ;
import ar.tvplayer.core.data.prefs.ၷ;
import ar.tvplayer.core.data.prefs.ၸ;
import ar.tvplayer.core.data.prefs.ၹ;
import ar.tvplayer.core.data.prefs.ၺ;
import ar.tvplayer.core.data.prefs.ၻ;
import ar.tvplayer.core.data.prefs.ၼ;
import ar.tvplayer.core.domain.ލ;
import ar.tvplayer.core.util.CommonUtilsKt;
import java.io.ByteArrayInputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.lang.Thread;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import kotlin.TypeCastException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import p000.p001.p021.C1255;
import p000.p001.p021.p023.C1262;
import p000.p001.p021.p023.C1267;
import p000.p001.p021.p023.EnumC1265;
import p000.p001.p021.p023.InterfaceC1261;
import p025.p026.C1340;
import p025.p026.InterfaceC1327;
import p025.p026.InterfaceC1363;
import p037.p041.C1468;
import p037.p041.C1470;
import p037.p041.C1473;
import p037.p041.C1474;
import p037.p041.C1476;
import p037.p041.C1477;
import p037.p041.p042.C1517;
import p037.p041.p042.C1520;
import p037.p041.p043.p044.C1527;
import p037.p041.p049.AbstractC1547;
import p037.p041.p049.C1550;
import p037.p041.p049.C1551;
import p037.p041.p049.C1552;
import p037.p041.p049.WindowCallbackC1559;
import p037.p041.p049.p050.C1569;
import p037.p041.p049.p050.C1569.C1570;
import p037.p041.p049.p050.C1572;
import p037.p041.p049.p050.InterfaceC1587;
import p037.p041.p051.C1609;
import p037.p041.p051.C1611;
import p037.p041.p051.C1612;
import p037.p041.p051.C1613;
import p037.p041.p051.C1615;
import p037.p041.p051.C1617;
import p037.p041.p051.C1618;
import p037.p041.p051.C1620;
import p037.p041.p051.C1623;
import p037.p041.p051.C1624;
import p037.p041.p051.C1625;
import p037.p041.p051.C1628;
import p037.p041.p051.C1642;
import p037.p041.p051.C1647;
import p037.p041.p051.C1689;
import p037.p041.p051.C1697;
import p037.p041.p051.C1698;
import p037.p041.p051.InterfaceC1648;
import p037.p041.p051.InterfaceC1699;
import p037.p041.p051.ViewOnLongClickListenerC1693;
import p037.p057.C1729;
import p037.p058.p061.C1733;
import p037.p058.p061.C1735;
import p037.p058.p061.C1741;
import p037.p058.p061.p062.C1744;
import p037.p058.p061.p062.C1745;
import p037.p058.p061.p062.C1747;
import p037.p058.p061.p062.C1749;
import p037.p065.C1792;
import p037.p065.C1794;
import p037.p065.p067.C1830;
import p037.p065.p068.C1850;
import p037.p065.p068.p069.C1852;
import p037.p065.p068.p069.C1854;
import p037.p065.p068.p069.C1855;
import p037.p065.p068.p069.C1856;
import p037.p065.p068.p069.InterfaceC1853;
import p037.p065.p070.C1864;
import p037.p065.p070.p071.C1875;
import p037.p065.p070.p071.InterfaceC1872;
import p037.p065.p075.C1883;
import p037.p065.p076.C1898;
import p037.p065.p078.C1910;
import p037.p065.p078.C1920;
import p037.p065.p078.C1929;
import p037.p065.p078.C1931;
import p037.p065.p078.C1935;
import p037.p065.p078.C1937;
import p037.p065.p078.InterfaceC1934;
import p037.p065.p080.ActionModeCallbackC1966;
import p037.p089.C1985;
import p037.p089.C1986;
import p037.p089.p090.C2005;
import p037.p091.C2077;
import p037.p091.p094.C2105;
import p037.p091.p094.C2110;
import p037.p099.AbstractC2210;
import p037.p099.AbstractC2245;
import p037.p099.C2204;
import p037.p099.C2221;
import p037.p099.InterfaceC2219;
import p037.p107.p108.AbstractC2365;
import p037.p109.AbstractC2401;
import p037.p119.p120.p121.C2521;
import p037.p119.p120.p121.C2527;
import p037.p119.p120.p121.C2528;
import p037.p123.C2549;
import p037.p123.C2578;
import p037.p123.EnumC2543;
import p037.p123.EnumC2564;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p138.p395.p396.AbstractC6487;
import p138.p395.p396.C6485;
import p138.p395.p396.C6509;
import p402.C6541;
import p402.C6549;
import p402.p403.C6560;
import p402.p403.C6565;
import p402.p411.p412.InterfaceC6614;
import p402.p411.p413.C6635;
import p402.p415.InterfaceC6652;
import p402.p419.InterfaceC6684;
import p402.p420.C6703;
import p447.AbstractC6936;
import p447.C6908;
import p447.C6926;
import p447.C6933;
import p495.p496.C7399;

/* JADX INFO: renamed from: މ.ؠ.ވ.ފ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class LayoutInflaterFactory2C1494 extends AbstractC1493 implements C1572.InterfaceC1573, LayoutInflater.Factory2 {

    /* JADX INFO: renamed from: ഺ, reason: contains not printable characters */
    public static final C1729<String, Integer> f4676 = new C1729<>();

    /* JADX INFO: renamed from: ൎ, reason: contains not printable characters */
    public static final boolean f4677 = false;

    /* JADX INFO: renamed from: ໞ, reason: contains not printable characters */
    public static final int[] f4678 = {R.attr.windowBackground};

    /* JADX INFO: renamed from: ໟ, reason: contains not printable characters */
    public static final boolean f4679 = !"robolectric".equals(Build.FINGERPRINT);

    /* JADX INFO: renamed from: ྈ, reason: contains not printable characters */
    public static final boolean f4680 = true;

    /* JADX INFO: renamed from: ྉ, reason: contains not printable characters */
    public static boolean f4681;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final Object f4682;

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

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

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

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final InterfaceC1492 f4686;

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

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public MenuInflater f4688;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public CharSequence f4689;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public InterfaceC1648 f4690;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public C1497 f4691;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public C1508 f4692;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public AbstractC1547 f4693;

    /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
    public ActionBarContextView f4694;

    /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
    public PopupWindow f4695;

    /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
    public Runnable f4696;

    /* JADX INFO: renamed from: ޖ, reason: contains not printable characters */
    public boolean f4699;

    /* JADX INFO: renamed from: ޗ, reason: contains not printable characters */
    public ViewGroup f4700;

    /* JADX INFO: renamed from: ޘ, reason: contains not printable characters */
    public TextView f4701;

    /* JADX INFO: renamed from: ޙ, reason: contains not printable characters */
    public View f4702;

    /* JADX INFO: renamed from: ޚ, reason: contains not printable characters */
    public boolean f4703;

    /* JADX INFO: renamed from: ޛ, reason: contains not printable characters */
    public boolean f4704;

    /* JADX INFO: renamed from: ޜ, reason: contains not printable characters */
    public boolean f4705;

    /* JADX INFO: renamed from: ޝ, reason: contains not printable characters */
    public boolean f4706;

    /* JADX INFO: renamed from: ޞ, reason: contains not printable characters */
    public boolean f4707;

    /* JADX INFO: renamed from: ޟ, reason: contains not printable characters */
    public boolean f4708;

    /* JADX INFO: renamed from: ޠ, reason: contains not printable characters */
    public boolean f4709;

    /* JADX INFO: renamed from: ޡ, reason: contains not printable characters */
    public boolean f4710;

    /* JADX INFO: renamed from: ޢ, reason: contains not printable characters */
    public C1507[] f4711;

    /* JADX INFO: renamed from: ޣ, reason: contains not printable characters */
    public C1507 f4712;

    /* JADX INFO: renamed from: ޤ, reason: contains not printable characters */
    public boolean f4713;

    /* JADX INFO: renamed from: ޥ, reason: contains not printable characters */
    public boolean f4714;

    /* JADX INFO: renamed from: ޱ, reason: contains not printable characters */
    public boolean f4715;

    /* JADX INFO: renamed from: ࢠ, reason: contains not printable characters */
    public boolean f4716;

    /* JADX INFO: renamed from: ࢢ, reason: contains not printable characters */
    public boolean f4717;

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

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

    /* JADX INFO: renamed from: ࢥ, reason: contains not printable characters */
    public boolean f4720;

    /* JADX INFO: renamed from: ࢦ, reason: contains not printable characters */
    public boolean f4721;

    /* JADX INFO: renamed from: ࢧ, reason: contains not printable characters */
    public AbstractC1502 f4722;

    /* JADX INFO: renamed from: ࢨ, reason: contains not printable characters */
    public AbstractC1502 f4723;

    /* JADX INFO: renamed from: ࢩ, reason: contains not printable characters */
    public boolean f4724;

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

    /* JADX INFO: renamed from: ࢬ, reason: contains not printable characters */
    public boolean f4727;

    /* JADX INFO: renamed from: ೱ, reason: contains not printable characters */
    public Rect f4728;

    /* JADX INFO: renamed from: ೲ, reason: contains not printable characters */
    public Rect f4729;

    /* JADX INFO: renamed from: ഩ, reason: contains not printable characters */
    public C1517 f4730;

    /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
    public C1931 f4697 = null;

    /* JADX INFO: renamed from: ޕ, reason: contains not printable characters */
    public boolean f4698 = true;

    /* JADX INFO: renamed from: ࢫ, reason: contains not printable characters */
    public final Runnable f4726 = new RunnableC1496();

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$֏, reason: contains not printable characters */
    public class C1495 implements Thread.UncaughtExceptionHandler {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final /* synthetic */ Thread.UncaughtExceptionHandler f4731;

        public C1495(Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
            this.f4731 = uncaughtExceptionHandler;
        }

        @Override // java.lang.Thread.UncaughtExceptionHandler
        public void uncaughtException(Thread thread, Throwable th) {
            String message;
            boolean z = false;
            if ((th instanceof Resources.NotFoundException) && (message = th.getMessage()) != null && (message.contains("drawable") || message.contains("Drawable"))) {
                z = true;
            }
            if (!z) {
                this.f4731.uncaughtException(thread, th);
                return;
            }
            Resources.NotFoundException notFoundException = new Resources.NotFoundException(th.getMessage() + ". If the resource you are trying to use is a vector resource, you may be referencing it in an unsupported way. See AppCompatDelegate.setCompatVectorFromResourcesEnabled() for more info.");
            notFoundException.initCause(th.getCause());
            notFoundException.setStackTrace(th.getStackTrace());
            this.f4731.uncaughtException(thread, notFoundException);
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ؠ, reason: contains not printable characters */
    public class RunnableC1496 implements Runnable {
        public RunnableC1496() {
        }

        @Override // java.lang.Runnable
        public void run() {
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if ((layoutInflaterFactory2C1494.f4725 & 1) != 0) {
                layoutInflaterFactory2C1494.m2846(0);
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C14942 = LayoutInflaterFactory2C1494.this;
            if ((layoutInflaterFactory2C14942.f4725 & 4096) != 0) {
                layoutInflaterFactory2C14942.m2846(108);
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C14943 = LayoutInflaterFactory2C1494.this;
            layoutInflaterFactory2C14943.f4724 = false;
            layoutInflaterFactory2C14943.f4725 = 0;
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ހ, reason: contains not printable characters */
    public final class C1497 implements InterfaceC1587.InterfaceC1588 {
        public C1497() {
        }

        @Override // p037.p041.p049.p050.InterfaceC1587.InterfaceC1588
        /* JADX INFO: renamed from: ֏ */
        public void mo142(C1572 c1572, boolean z) {
            LayoutInflaterFactory2C1494.this.m2844(c1572);
        }

        @Override // p037.p041.p049.p050.InterfaceC1587.InterfaceC1588
        /* JADX INFO: renamed from: ֏ */
        public boolean mo143(C1572 c1572) {
            Window.Callback callbackM2853 = LayoutInflaterFactory2C1494.this.m2853();
            if (callbackM2853 == null) {
                return true;
            }
            callbackM2853.onMenuOpened(108, c1572);
            return true;
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ށ, reason: contains not printable characters */
    public class C1498 implements AbstractC1547.InterfaceC1548 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public AbstractC1547.InterfaceC1548 f4734;

        /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ށ$֏, reason: contains not printable characters */
        public class C1499 extends C1935 {
            public C1499() {
            }

            @Override // p037.p065.p078.InterfaceC1934
            /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
            public void mo2861(View view) {
                LayoutInflaterFactory2C1494.this.f4694.setVisibility(8);
                LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
                PopupWindow popupWindow = layoutInflaterFactory2C1494.f4695;
                if (popupWindow != null) {
                    popupWindow.dismiss();
                } else if (layoutInflaterFactory2C1494.f4694.getParent() instanceof View) {
                    C1920.m3773((View) LayoutInflaterFactory2C1494.this.f4694.getParent());
                }
                LayoutInflaterFactory2C1494.this.f4694.removeAllViews();
                LayoutInflaterFactory2C1494.this.f4697.m3788((InterfaceC1934) null);
                LayoutInflaterFactory2C1494 layoutInflaterFactory2C14942 = LayoutInflaterFactory2C1494.this;
                layoutInflaterFactory2C14942.f4697 = null;
                C1920.m3773(layoutInflaterFactory2C14942.f4700);
            }
        }

        public C1498(AbstractC1547.InterfaceC1548 interfaceC1548) {
            this.f4734 = interfaceC1548;
        }

        @Override // p037.p041.p049.AbstractC1547.InterfaceC1548
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void mo2857(AbstractC1547 abstractC1547) {
            this.f4734.mo2857(abstractC1547);
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (layoutInflaterFactory2C1494.f4695 != null) {
                layoutInflaterFactory2C1494.f4684.getDecorView().removeCallbacks(LayoutInflaterFactory2C1494.this.f4696);
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C14942 = LayoutInflaterFactory2C1494.this;
            if (layoutInflaterFactory2C14942.f4694 != null) {
                layoutInflaterFactory2C14942.m2849();
                LayoutInflaterFactory2C1494 layoutInflaterFactory2C14943 = LayoutInflaterFactory2C1494.this;
                C1931 c1931M3736 = C1920.m3736(layoutInflaterFactory2C14943.f4694);
                c1931M3736.m3786(0.0f);
                layoutInflaterFactory2C14943.f4697 = c1931M3736;
                C1931 c1931 = LayoutInflaterFactory2C1494.this.f4697;
                C1499 c1499 = new C1499();
                View view = c1931.f6382.get();
                if (view != null) {
                    c1931.m3791(view, c1499);
                }
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C14944 = LayoutInflaterFactory2C1494.this;
            InterfaceC1492 interfaceC1492 = layoutInflaterFactory2C14944.f4686;
            if (interfaceC1492 != null) {
                interfaceC1492.onSupportActionModeFinished(layoutInflaterFactory2C14944.f4693);
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C14945 = LayoutInflaterFactory2C1494.this;
            layoutInflaterFactory2C14945.f4693 = null;
            C1920.m3773(layoutInflaterFactory2C14945.f4700);
        }

        @Override // p037.p041.p049.AbstractC1547.InterfaceC1548
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo2858(AbstractC1547 abstractC1547, Menu menu) {
            C1920.m3773(LayoutInflaterFactory2C1494.this.f4700);
            return this.f4734.mo2858(abstractC1547, menu);
        }

        @Override // p037.p041.p049.AbstractC1547.InterfaceC1548
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public boolean mo2859(AbstractC1547 abstractC1547, MenuItem menuItem) {
            return this.f4734.mo2859(abstractC1547, menuItem);
        }

        @Override // p037.p041.p049.AbstractC1547.InterfaceC1548
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public boolean mo2860(AbstractC1547 abstractC1547, Menu menu) {
            return this.f4734.mo2860(abstractC1547, menu);
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ނ, reason: contains not printable characters */
    public class C1500 extends WindowCallbackC1559 {
        public C1500(Window.Callback callback) {
            super(callback);
        }

        @Override // android.view.Window.Callback
        public boolean dispatchKeyEvent(KeyEvent keyEvent) {
            return LayoutInflaterFactory2C1494.this.m2841(keyEvent) || this.f4991.dispatchKeyEvent(keyEvent);
        }

        /* JADX WARN: Removed duplicated region for block: B:25:? A[RETURN, SYNTHETIC] */
        @Override // android.view.Window.Callback
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public boolean dispatchKeyShortcutEvent(KeyEvent keyEvent) {
            boolean z;
            if (!this.f4991.dispatchKeyShortcutEvent(keyEvent)) {
                LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
                int keyCode = keyEvent.getKeyCode();
                layoutInflaterFactory2C1494.m2854();
                AbstractC1478 abstractC1478 = layoutInflaterFactory2C1494.f4687;
                if (abstractC1478 == null || !abstractC1478.mo2808(keyCode, keyEvent)) {
                    C1507 c1507 = layoutInflaterFactory2C1494.f4712;
                    if (c1507 == null || !layoutInflaterFactory2C1494.m2842(c1507, keyEvent.getKeyCode(), keyEvent, 1)) {
                        if (layoutInflaterFactory2C1494.f4712 == null) {
                            C1507 c1507M2847 = layoutInflaterFactory2C1494.m2847(0);
                            layoutInflaterFactory2C1494.m2845(c1507M2847, keyEvent);
                            boolean zM2842 = layoutInflaterFactory2C1494.m2842(c1507M2847, keyEvent.getKeyCode(), keyEvent, 1);
                            c1507M2847.f4777 = false;
                            if (zM2842) {
                            }
                            if (z) {
                                return false;
                            }
                        }
                        z = false;
                        if (z) {
                        }
                    } else {
                        C1507 c15072 = layoutInflaterFactory2C1494.f4712;
                        if (c15072 != null) {
                            c15072.f4778 = true;
                        }
                    }
                    z = true;
                    if (z) {
                    }
                } else {
                    z = true;
                    if (z) {
                    }
                }
            }
            return true;
        }

        @Override // android.view.Window.Callback
        public void onContentChanged() {
        }

        @Override // android.view.Window.Callback
        public boolean onCreatePanelMenu(int i, Menu menu) {
            if (i != 0 || (menu instanceof C1572)) {
                return this.f4991.onCreatePanelMenu(i, menu);
            }
            return false;
        }

        @Override // android.view.Window.Callback
        public boolean onMenuOpened(int i, Menu menu) {
            this.f4991.onMenuOpened(i, menu);
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (layoutInflaterFactory2C1494 == null) {
                throw null;
            }
            if (i == 108) {
                layoutInflaterFactory2C1494.m2854();
                AbstractC1478 abstractC1478 = layoutInflaterFactory2C1494.f4687;
                if (abstractC1478 != null) {
                    abstractC1478.mo2806(true);
                }
            }
            return true;
        }

        @Override // android.view.Window.Callback
        public void onPanelClosed(int i, Menu menu) {
            this.f4991.onPanelClosed(i, menu);
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (layoutInflaterFactory2C1494 == null) {
                throw null;
            }
            if (i == 108) {
                layoutInflaterFactory2C1494.m2854();
                AbstractC1478 abstractC1478 = layoutInflaterFactory2C1494.f4687;
                if (abstractC1478 != null) {
                    abstractC1478.mo2806(false);
                    return;
                }
                return;
            }
            if (i == 0) {
                C1507 c1507M2847 = layoutInflaterFactory2C1494.m2847(i);
                if (c1507M2847.f4779) {
                    layoutInflaterFactory2C1494.m2840(c1507M2847, false);
                }
            }
        }

        @Override // android.view.Window.Callback
        public boolean onPreparePanel(int i, View view, Menu menu) {
            C1572 c1572 = menu instanceof C1572 ? (C1572) menu : null;
            if (i == 0 && c1572 == null) {
                return false;
            }
            if (c1572 != null) {
                c1572.f5101 = true;
            }
            boolean zOnPreparePanel = this.f4991.onPreparePanel(i, view, menu);
            if (c1572 != null) {
                c1572.f5101 = false;
            }
            return zOnPreparePanel;
        }

        @Override // android.view.Window.Callback
        public void onProvideKeyboardShortcuts(List<KeyboardShortcutGroup> list, Menu menu, int i) {
            C1572 c1572;
            C1507 c1507M2847 = LayoutInflaterFactory2C1494.this.m2847(0);
            if (c1507M2847 == null || (c1572 = c1507M2847.f4774) == null) {
                this.f4991.onProvideKeyboardShortcuts(list, menu, i);
            } else {
                this.f4991.onProvideKeyboardShortcuts(list, c1572, i);
            }
        }

        @Override // android.view.Window.Callback
        public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) {
            if (Build.VERSION.SDK_INT >= 23) {
                return null;
            }
            return LayoutInflaterFactory2C1494.this.f4698 ? m2862(callback) : this.f4991.onWindowStartingActionMode(callback);
        }

        @Override // android.view.Window.Callback
        public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int i) {
            return (LayoutInflaterFactory2C1494.this.f4698 && i == 0) ? m2862(callback) : this.f4991.onWindowStartingActionMode(callback, i);
        }

        /* JADX WARN: Removed duplicated region for block: B:27:0x004e  */
        /* JADX WARN: Removed duplicated region for block: B:28:0x0052  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public final ActionMode m2862(ActionMode.Callback callback) {
            AbstractC1547 abstractC1547OnWindowStartingSupportActionMode;
            Context c1550;
            AbstractC1547 abstractC1547;
            InterfaceC1492 interfaceC1492;
            InterfaceC1492 interfaceC14922;
            C1552.C1553 c1553 = new C1552.C1553(LayoutInflaterFactory2C1494.this.f4683, callback);
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (layoutInflaterFactory2C1494 == null) {
                throw null;
            }
            AbstractC1547 abstractC15472 = layoutInflaterFactory2C1494.f4693;
            if (abstractC15472 != null) {
                abstractC15472.mo3008();
            }
            C1498 c1498 = layoutInflaterFactory2C1494.new C1498(c1553);
            layoutInflaterFactory2C1494.m2854();
            AbstractC1478 abstractC1478 = layoutInflaterFactory2C1494.f4687;
            if (abstractC1478 != null) {
                AbstractC1547 abstractC1547Mo2803 = abstractC1478.mo2803(c1498);
                layoutInflaterFactory2C1494.f4693 = abstractC1547Mo2803;
                if (abstractC1547Mo2803 != null && (interfaceC14922 = layoutInflaterFactory2C1494.f4686) != null) {
                    interfaceC14922.onSupportActionModeStarted(abstractC1547Mo2803);
                }
            }
            if (layoutInflaterFactory2C1494.f4693 == null) {
                layoutInflaterFactory2C1494.m2849();
                AbstractC1547 abstractC15473 = layoutInflaterFactory2C1494.f4693;
                if (abstractC15473 != null) {
                    abstractC15473.mo3008();
                }
                InterfaceC1492 interfaceC14923 = layoutInflaterFactory2C1494.f4686;
                if (interfaceC14923 == null || layoutInflaterFactory2C1494.f4717) {
                    abstractC1547OnWindowStartingSupportActionMode = null;
                    if (abstractC1547OnWindowStartingSupportActionMode == null) {
                        layoutInflaterFactory2C1494.f4693 = abstractC1547OnWindowStartingSupportActionMode;
                    } else {
                        if (layoutInflaterFactory2C1494.f4694 == null) {
                            if (layoutInflaterFactory2C1494.f4708) {
                                TypedValue typedValue = new TypedValue();
                                Resources.Theme theme = layoutInflaterFactory2C1494.f4683.getTheme();
                                theme.resolveAttribute(C1468.actionBarTheme, typedValue, true);
                                if (typedValue.resourceId != 0) {
                                    Resources.Theme themeNewTheme = layoutInflaterFactory2C1494.f4683.getResources().newTheme();
                                    themeNewTheme.setTo(theme);
                                    themeNewTheme.applyStyle(typedValue.resourceId, true);
                                    c1550 = new C1550(layoutInflaterFactory2C1494.f4683, 0);
                                    c1550.getTheme().setTo(themeNewTheme);
                                } else {
                                    c1550 = layoutInflaterFactory2C1494.f4683;
                                }
                                layoutInflaterFactory2C1494.f4694 = new ActionBarContextView(c1550);
                                PopupWindow popupWindow = new PopupWindow(c1550, (AttributeSet) null, C1468.actionModePopupWindowStyle);
                                layoutInflaterFactory2C1494.f4695 = popupWindow;
                                C1505.m2944(popupWindow, 2);
                                layoutInflaterFactory2C1494.f4695.setContentView(layoutInflaterFactory2C1494.f4694);
                                layoutInflaterFactory2C1494.f4695.setWidth(-1);
                                c1550.getTheme().resolveAttribute(C1468.actionBarSize, typedValue, true);
                                layoutInflaterFactory2C1494.f4694.setContentHeight(TypedValue.complexToDimensionPixelSize(typedValue.data, c1550.getResources().getDisplayMetrics()));
                                layoutInflaterFactory2C1494.f4695.setHeight(-2);
                                layoutInflaterFactory2C1494.f4696 = new RunnableC1512(layoutInflaterFactory2C1494);
                            } else {
                                ViewStubCompat viewStubCompat = (ViewStubCompat) layoutInflaterFactory2C1494.f4700.findViewById(C1473.action_mode_bar_stub);
                                if (viewStubCompat != null) {
                                    layoutInflaterFactory2C1494.m2854();
                                    AbstractC1478 abstractC14782 = layoutInflaterFactory2C1494.f4687;
                                    Context contextMo2811 = abstractC14782 != null ? abstractC14782.mo2811() : null;
                                    if (contextMo2811 == null) {
                                        contextMo2811 = layoutInflaterFactory2C1494.f4683;
                                    }
                                    viewStubCompat.setLayoutInflater(LayoutInflater.from(contextMo2811));
                                    layoutInflaterFactory2C1494.f4694 = (ActionBarContextView) viewStubCompat.m207();
                                }
                            }
                        }
                        if (layoutInflaterFactory2C1494.f4694 != null) {
                            layoutInflaterFactory2C1494.m2849();
                            layoutInflaterFactory2C1494.f4694.m120();
                            C1551 c1551 = new C1551(layoutInflaterFactory2C1494.f4694.getContext(), layoutInflaterFactory2C1494.f4694, c1498, layoutInflaterFactory2C1494.f4695 == null);
                            if (c1498.f4734.mo2860(c1551, c1551.f4934)) {
                                c1551.mo3020();
                                layoutInflaterFactory2C1494.f4694.m119(c1551);
                                layoutInflaterFactory2C1494.f4693 = c1551;
                                if (layoutInflaterFactory2C1494.m2855()) {
                                    layoutInflaterFactory2C1494.f4694.setAlpha(0.0f);
                                    C1931 c1931M3736 = C1920.m3736(layoutInflaterFactory2C1494.f4694);
                                    c1931M3736.m3786(1.0f);
                                    layoutInflaterFactory2C1494.f4697 = c1931M3736;
                                    C1514 c1514 = new C1514(layoutInflaterFactory2C1494);
                                    View view = c1931M3736.f6382.get();
                                    if (view != null) {
                                        c1931M3736.m3791(view, c1514);
                                    }
                                } else {
                                    layoutInflaterFactory2C1494.f4694.setAlpha(1.0f);
                                    layoutInflaterFactory2C1494.f4694.setVisibility(0);
                                    layoutInflaterFactory2C1494.f4694.sendAccessibilityEvent(32);
                                    if (layoutInflaterFactory2C1494.f4694.getParent() instanceof View) {
                                        ((View) layoutInflaterFactory2C1494.f4694.getParent()).requestApplyInsets();
                                    }
                                }
                                if (layoutInflaterFactory2C1494.f4695 != null) {
                                    layoutInflaterFactory2C1494.f4684.getDecorView().post(layoutInflaterFactory2C1494.f4696);
                                }
                            } else {
                                layoutInflaterFactory2C1494.f4693 = null;
                            }
                        }
                    }
                    abstractC1547 = layoutInflaterFactory2C1494.f4693;
                    if (abstractC1547 != null && (interfaceC1492 = layoutInflaterFactory2C1494.f4686) != null) {
                        interfaceC1492.onSupportActionModeStarted(abstractC1547);
                    }
                    layoutInflaterFactory2C1494.f4693 = layoutInflaterFactory2C1494.f4693;
                } else {
                    try {
                        abstractC1547OnWindowStartingSupportActionMode = interfaceC14923.onWindowStartingSupportActionMode(c1498);
                    } catch (AbstractMethodError unused) {
                        abstractC1547OnWindowStartingSupportActionMode = null;
                    }
                    if (abstractC1547OnWindowStartingSupportActionMode == null) {
                    }
                    abstractC1547 = layoutInflaterFactory2C1494.f4693;
                    if (abstractC1547 != null) {
                        interfaceC1492.onSupportActionModeStarted(abstractC1547);
                    }
                    layoutInflaterFactory2C1494.f4693 = layoutInflaterFactory2C1494.f4693;
                }
            }
            AbstractC1547 abstractC15474 = layoutInflaterFactory2C1494.f4693;
            if (abstractC15474 != null) {
                return c1553.m3052(abstractC15474);
            }
            return null;
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ރ, reason: contains not printable characters */
    public class C1501 extends AbstractC1502 {

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final PowerManager f4738;

        public C1501(Context context) {
            super();
            this.f4738 = (PowerManager) context.getApplicationContext().getSystemService("power");
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public IntentFilter mo2863() {
            IntentFilter intentFilter = new IntentFilter();
            intentFilter.addAction("android.os.action.POWER_SAVE_MODE_CHANGED");
            return intentFilter;
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public int mo2864() {
            return this.f4738.isPowerSaveMode() ? 2 : 1;
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public void mo2865() {
            LayoutInflaterFactory2C1494.this.m2848();
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ބ, reason: contains not printable characters */
    public abstract class AbstractC1502 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public BroadcastReceiver f4740;

        /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ބ$֏, reason: contains not printable characters */
        public class C1503 extends BroadcastReceiver {
            public C1503() {
            }

            @Override // android.content.BroadcastReceiver
            public void onReceive(Context context, Intent intent) {
                AbstractC1502.this.mo2865();
            }
        }

        public AbstractC1502() {
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void m2866() {
            BroadcastReceiver broadcastReceiver = this.f4740;
            if (broadcastReceiver != null) {
                try {
                    LayoutInflaterFactory2C1494.this.f4683.unregisterReceiver(broadcastReceiver);
                } catch (IllegalArgumentException unused) {
                }
                this.f4740 = null;
            }
        }

        /* JADX INFO: renamed from: ؠ */
        public abstract IntentFilter mo2863();

        /* JADX INFO: renamed from: ހ */
        public abstract int mo2864();

        /* JADX INFO: renamed from: ށ */
        public abstract void mo2865();

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public void m2867() {
            m2866();
            IntentFilter intentFilterMo2863 = mo2863();
            if (intentFilterMo2863 == null || intentFilterMo2863.countActions() == 0) {
                return;
            }
            if (this.f4740 == null) {
                this.f4740 = new C1503();
            }
            LayoutInflaterFactory2C1494.this.f4683.registerReceiver(this.f4740, intentFilterMo2863);
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ޅ, reason: contains not printable characters */
    public class C1504 extends AbstractC1502 {

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final C1520 f4743;

        public C1504(C1520 c1520) {
            super();
            this.f4743 = c1520;
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ؠ */
        public IntentFilter mo2863() {
            IntentFilter intentFilter = new IntentFilter();
            intentFilter.addAction("android.intent.action.TIME_SET");
            intentFilter.addAction("android.intent.action.TIMEZONE_CHANGED");
            intentFilter.addAction("android.intent.action.TIME_TICK");
            return intentFilter;
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ހ */
        public int mo2864() {
            boolean z;
            long j;
            C1520 c1520 = this.f4743;
            C1520.C1521 c1521 = c1520.f4810;
            if (c1521.f4812 > System.currentTimeMillis()) {
                z = c1521.f4811;
            } else {
                Location locationM3003 = C1505.m2872(c1520.f4808, "android.permission.ACCESS_COARSE_LOCATION") == 0 ? c1520.m3003("network") : null;
                Location locationM30032 = C1505.m2872(c1520.f4808, "android.permission.ACCESS_FINE_LOCATION") == 0 ? c1520.m3003("gps") : null;
                if (locationM30032 == null || locationM3003 == null ? locationM30032 != null : locationM30032.getTime() > locationM3003.getTime()) {
                    locationM3003 = locationM30032;
                }
                if (locationM3003 != null) {
                    C1520.C1521 c15212 = c1520.f4810;
                    long jCurrentTimeMillis = System.currentTimeMillis();
                    if (C1519.f4803 == null) {
                        C1519.f4803 = new C1519();
                    }
                    C1519 c1519 = C1519.f4803;
                    c1519.m3002(jCurrentTimeMillis - 86400000, locationM3003.getLatitude(), locationM3003.getLongitude());
                    c1519.m3002(jCurrentTimeMillis, locationM3003.getLatitude(), locationM3003.getLongitude());
                    boolean z2 = c1519.f4806 == 1;
                    long j2 = c1519.f4805;
                    long j3 = c1519.f4804;
                    c1519.m3002(jCurrentTimeMillis + 86400000, locationM3003.getLatitude(), locationM3003.getLongitude());
                    long j4 = c1519.f4805;
                    if (j2 == -1 || j3 == -1) {
                        j = 43200000 + jCurrentTimeMillis;
                    } else {
                        j = (jCurrentTimeMillis > j3 ? j4 + 0 : jCurrentTimeMillis > j2 ? j3 + 0 : j2 + 0) + 60000;
                    }
                    c15212.f4811 = z2;
                    c15212.f4812 = j;
                    z = c1521.f4811;
                } else {
                    Log.i("TwilightManager", "Could not get last known location. This is probably because the app does not have any location permissions. Falling back to hardcoded sunrise/sunset values.");
                    int i = Calendar.getInstance().get(11);
                    z = i < 6 || i >= 22;
                }
            }
            return z ? 2 : 1;
        }

        @Override // p037.p041.p042.LayoutInflaterFactory2C1494.AbstractC1502
        /* JADX INFO: renamed from: ށ */
        public void mo2865() {
            LayoutInflaterFactory2C1494.this.m2848();
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ކ, reason: contains not printable characters */
    public static class C1505 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Field f4745;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static boolean f4746;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static Class<?> f4747;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public static boolean f4748;

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public static Field f4749;

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public static boolean f4750;

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public static Field f4751;

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public static boolean f4752;

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public static Method f4753;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public static boolean f4754;

        /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
        public static Method f4755;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public static boolean f4756;

        /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
        public static Field f4757;

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public static boolean f4758;

        /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
        public static Method f4759;

        /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
        public static boolean f4760;

        /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
        public static Field f4761;

        /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
        public static boolean f4762;

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

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static float m2868(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, float f) {
            return !m2963(xmlPullParser, str) ? f : typedArray.getFloat(i, f);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2869(int i) {
            if (i >= 0) {
                return i;
            }
            throw new IllegalArgumentException();
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final int m2870(int i, long j, String str, Integer num, long j2, String str2, Integer num2) {
            if (str == null) {
                C6635.m9824("playlistName1");
                throw null;
            }
            if (str2 == null) {
                C6635.m9824("playlistName2");
                throw null;
            }
            int iM9819 = 0;
            if (i == 0) {
                int iM9862 = C6703.m9862(str, str2, true);
                return iM9862 == 0 ? (j > j2 ? 1 : (j == j2 ? 0 : -1)) : iM9862;
            }
            if (i != 1) {
                return 0;
            }
            if (num != null && num2 != null) {
                iM9819 = C6635.m9819(num.intValue(), num2.intValue());
            } else if (num != null) {
                iM9819 = -1;
            } else if (num2 != null) {
                iM9819 = 1;
            }
            return iM9819 == 0 ? m2870(0, j, str, num, j2, str2, num2) : iM9819;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2871(Context context, int i, int i2) {
            TypedValue typedValue = new TypedValue();
            context.getTheme().resolveAttribute(i, typedValue, true);
            return typedValue.resourceId != 0 ? i : i2;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2872(Context context, String str) {
            int iMyPid = Process.myPid();
            int iMyUid = Process.myUid();
            String packageName = context.getPackageName();
            if (context.checkPermission(str, iMyPid, iMyUid) == -1) {
                return -1;
            }
            String strPermissionToOp = Build.VERSION.SDK_INT >= 23 ? AppOpsManager.permissionToOp(str) : null;
            if (strPermissionToOp != null) {
                if (packageName == null) {
                    String[] packagesForUid = context.getPackageManager().getPackagesForUid(iMyUid);
                    if (packagesForUid == null || packagesForUid.length <= 0) {
                        return -1;
                    }
                    packageName = packagesForUid[0];
                }
                if ((Build.VERSION.SDK_INT >= 23 ? ((AppOpsManager) context.getSystemService(AppOpsManager.class)).noteProxyOpNoThrow(strPermissionToOp, packageName) : 1) != 0) {
                    return -2;
                }
            }
            return 0;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2873(TypedArray typedArray, int i, int i2, int i3) {
            return typedArray.getResourceId(i, typedArray.getResourceId(i2, i3));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2874(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, int i2) {
            return !m2963(xmlPullParser, str) ? i2 : typedArray.getColor(i, i2);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2875(Cursor cursor, String str) {
            int columnIndex = cursor.getColumnIndex(str);
            if (columnIndex >= 0) {
                return columnIndex;
            }
            return cursor.getColumnIndex("`" + str + "`");
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2876(Drawable drawable) {
            if (Build.VERSION.SDK_INT >= 23) {
                return drawable.getLayoutDirection();
            }
            if (!f4756) {
                try {
                    Method declaredMethod = Drawable.class.getDeclaredMethod("getLayoutDirection", new Class[0]);
                    f4755 = declaredMethod;
                    declaredMethod.setAccessible(true);
                } catch (NoSuchMethodException e) {
                    Log.i("DrawableCompat", "Failed to retrieve getLayoutDirection() method", e);
                }
                f4756 = true;
            }
            Method method = f4755;
            if (method != null) {
                try {
                    return ((Integer) method.invoke(drawable, new Object[0])).intValue();
                } catch (Exception e2) {
                    Log.i("DrawableCompat", "Failed to invoke getLayoutDirection() via reflection", e2);
                    f4755 = null;
                }
            }
            return 0;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2877(RecyclerView.C0221 c0221, AbstractC2365 abstractC2365, View view, View view2, RecyclerView.AbstractC0202 abstractC0202, boolean z) {
            if (abstractC0202.m664() == 0 || c0221.m728() == 0 || view == null || view2 == null) {
                return 0;
            }
            if (!z) {
                return Math.abs(abstractC0202.m681(view) - abstractC0202.m681(view2)) + 1;
            }
            return Math.min(abstractC2365.mo4419(), abstractC2365.mo4407(view2) - abstractC2365.mo4414(view));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2878(RecyclerView.C0221 c0221, AbstractC2365 abstractC2365, View view, View view2, RecyclerView.AbstractC0202 abstractC0202, boolean z, boolean z2) {
            if (abstractC0202.m664() == 0 || c0221.m728() == 0 || view == null || view2 == null) {
                return 0;
            }
            int iMax = z2 ? Math.max(0, (c0221.m728() - Math.max(abstractC0202.m681(view), abstractC0202.m681(view2))) - 1) : Math.max(0, Math.min(abstractC0202.m681(view), abstractC0202.m681(view2)));
            if (z) {
                return Math.round((iMax * (Math.abs(abstractC2365.mo4407(view2) - abstractC2365.mo4414(view)) / (Math.abs(abstractC0202.m681(view) - abstractC0202.m681(view2)) + 1))) + (abstractC2365.mo4417() - abstractC2365.mo4414(view)));
            }
            return iMax;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final int m2879(ގ r24, ގ r25, int i, boolean z, String str, long j, String str2, Integer num, int i2, Integer num2, long j2, String str3, long j3, String str4, Integer num3, int i3, Integer num4, long j4) {
            int iM2870;
            int iM9819 = 0;
            if (!z || r25 == ގ.ވ) {
                iM2870 = 0;
            } else {
                iM2870 = m2870(i, j, str2, num, j3, str4, num3);
                if (iM2870 != 0) {
                    return iM2870;
                }
            }
            int iOrdinal = r25.ordinal();
            if (iOrdinal == 1) {
                int iM98192 = C6635.m9819(i2, i3);
                return iM98192 == 0 ? m2870(i, j, str2, num, j3, str4, num3) : iM98192;
            }
            if (iOrdinal == 2) {
                int iM9862 = C6703.m9862(str, str3, true);
                return iM9862 == 0 ? m2870(i, j, str2, num, j3, str4, num3) : iM9862;
            }
            if (iOrdinal == 3) {
                int i4 = (j4 > j2 ? 1 : (j4 == j2 ? 0 : -1));
                if (i4 != 0) {
                    return i4;
                }
                int iM98193 = C6635.m9819(i2, i3);
                return iM98193 == 0 ? m2870(i, j, str2, num, j3, str4, num3) : iM98193;
            }
            if (iOrdinal != 4) {
                return iM2870;
            }
            if (num2 != null && num4 != null) {
                iM9819 = C6635.m9819(num2.intValue(), num4.intValue());
            } else if (num2 != null) {
                iM9819 = -1;
            } else if (num4 != null) {
                iM9819 = 1;
            }
            return (iM9819 != 0 || r24 == ގ.ވ) ? iM9819 : m2879(r24, r24, i, z, str, j, str2, num, i2, num2, j2, str3, j3, str4, num3, i3, num4, j4);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final int m2880(ސ r8, ސ r9, String str, Integer num, Integer num2, String str2, Integer num3, Integer num4) {
            int iM9819;
            int iOrdinal = r9.ordinal();
            int iM98192 = 1;
            if (iOrdinal != 1) {
                if (iOrdinal != 2) {
                    if (iOrdinal != 3) {
                        return 0;
                    }
                    if (num2 != null && num4 != null) {
                        iM98192 = C6635.m9819(num2.intValue(), num4.intValue());
                    } else if (num2 != null) {
                        iM98192 = -1;
                    } else if (num4 == null) {
                        iM98192 = 0;
                    }
                    return (iM98192 != 0 || r8 == ސ.އ) ? iM98192 : m2880(r8, r8, str, num, num2, str2, num3, num4);
                }
                if (str == null || str2 == null) {
                    return 0;
                }
                iM9819 = C6703.m9862(str, str2, true);
            } else {
                if (num == null || num3 == null) {
                    return 0;
                }
                iM9819 = C6635.m9819(num.intValue(), num3.intValue());
            }
            return iM9819;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final int m2881(Integer num, Integer num2) {
            if (num2 != null) {
                num = num2;
            }
            if (num != null) {
                return num.intValue();
            }
            return 3;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static int m2882(C2578.EnumC2579 enumC2579) {
            int iOrdinal = enumC2579.ordinal();
            if (iOrdinal == 0) {
                return 0;
            }
            int i = 1;
            if (iOrdinal != 1) {
                i = 2;
                if (iOrdinal != 2) {
                    i = 3;
                    if (iOrdinal != 3) {
                        i = 4;
                        if (iOrdinal != 4) {
                            if (iOrdinal == 5) {
                                return 5;
                            }
                            throw new IllegalArgumentException("Could not convert " + enumC2579 + " to int");
                        }
                    }
                }
            }
            return i;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final /* synthetic */ long m2883(int i, int i2, Integer num, Integer num2) {
            int iIntValue;
            if (num2 != null) {
                iIntValue = num2.intValue();
            } else {
                if (num == null || num.intValue() == 0) {
                    if (i == 0) {
                        i = i2;
                    }
                    return TimeUnit.HOURS.toSeconds(i);
                }
                iIntValue = num.intValue();
            }
            return ((long) iIntValue) * 60;
        }

        /* JADX WARN: Code restructure failed: missing block: B:163:0x032d, code lost:
        
            if (r27 == null) goto L172;
         */
        /* JADX WARN: Code restructure failed: missing block: B:164:0x032f, code lost:
        
            if (r13 == null) goto L172;
         */
        /* JADX WARN: Code restructure failed: missing block: B:165:0x0331, code lost:
        
            r1 = new android.animation.Animator[r13.size()];
            r2 = r13.iterator();
            r3 = 0;
         */
        /* JADX WARN: Code restructure failed: missing block: B:167:0x0340, code lost:
        
            if (r2.hasNext() == false) goto L180;
         */
        /* JADX WARN: Code restructure failed: missing block: B:168:0x0342, code lost:
        
            r1[r3] = (android.animation.Animator) r2.next();
            r3 = r3 + 1;
         */
        /* JADX WARN: Code restructure failed: missing block: B:169:0x034e, code lost:
        
            if (r28 != 0) goto L171;
         */
        /* JADX WARN: Code restructure failed: missing block: B:170:0x0350, code lost:
        
            r27.playTogether(r1);
         */
        /* JADX WARN: Code restructure failed: missing block: B:171:0x0354, code lost:
        
            r27.playSequentially(r1);
         */
        /* JADX WARN: Code restructure failed: missing block: B:172:0x0357, code lost:
        
            return r0;
         */
        /* JADX WARN: Removed duplicated region for block: B:158:0x0306  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static Animator m2884(Context context, Resources resources, Resources.Theme theme, XmlPullParser xmlPullParser, AttributeSet attributeSet, AnimatorSet animatorSet, int i, float f) throws XmlPullParserException, IOException {
            int i2;
            PropertyValuesHolder[] propertyValuesHolderArr;
            AttributeSet attributeSet2;
            String str;
            int i3;
            PropertyValuesHolder propertyValuesHolderM2888;
            int size;
            ValueAnimator valueAnimatorM2889;
            Resources resources2 = resources;
            Resources.Theme theme2 = theme;
            int depth = xmlPullParser.getDepth();
            Animator animator = null;
            ArrayList arrayList = null;
            while (true) {
                int next = xmlPullParser.next();
                int i4 = 3;
                boolean z = false;
                if (next == 3 && xmlPullParser.getDepth() <= depth) {
                    break;
                }
                int i5 = 1;
                if (next == 1) {
                    break;
                }
                int i6 = 2;
                if (next == 2) {
                    String name = xmlPullParser.getName();
                    if (name.equals("objectAnimator")) {
                        valueAnimatorM2889 = new ObjectAnimator();
                        m2889(context, resources, theme, attributeSet, valueAnimatorM2889, f, xmlPullParser);
                    } else if (name.equals("animator")) {
                        valueAnimatorM2889 = m2889(context, resources, theme, attributeSet, (ValueAnimator) null, f, xmlPullParser);
                    } else {
                        if (name.equals("set")) {
                            AnimatorSet animatorSet2 = new AnimatorSet();
                            TypedArray typedArrayM2894 = m2894(resources2, theme2, attributeSet, C2521.f7908);
                            m2884(context, resources, theme, xmlPullParser, attributeSet, animatorSet2, m2968(typedArrayM2894, xmlPullParser, "ordering", 0, 0), f);
                            typedArrayM2894.recycle();
                            i2 = depth;
                            animator = animatorSet2;
                        } else {
                            String str2 = "propertyValuesHolder";
                            if (!name.equals("propertyValuesHolder")) {
                                StringBuilder sbM4889 = C2803.m4889("Unknown animator name: ");
                                sbM4889.append(xmlPullParser.getName());
                                throw new RuntimeException(sbM4889.toString());
                            }
                            AttributeSet attributeSetAsAttributeSet = Xml.asAttributeSet(xmlPullParser);
                            ArrayList arrayList2 = null;
                            while (true) {
                                int eventType = xmlPullParser.getEventType();
                                if (eventType == i4 || eventType == i5) {
                                    break;
                                }
                                if (eventType != i6) {
                                    xmlPullParser.next();
                                } else {
                                    if (xmlPullParser.getName().equals(str2)) {
                                        TypedArray typedArrayM28942 = m2894(resources2, theme2, attributeSetAsAttributeSet, C2521.f7909);
                                        String strM2913 = m2913(typedArrayM28942, xmlPullParser, "propertyName", i4);
                                        int iM2968 = m2968(typedArrayM28942, xmlPullParser, "valueType", i6, 4);
                                        ArrayList arrayList3 = null;
                                        attributeSet2 = attributeSetAsAttributeSet;
                                        int i7 = iM2968;
                                        while (true) {
                                            int next2 = xmlPullParser.next();
                                            if (next2 == i4) {
                                                break;
                                            }
                                            int i8 = i4;
                                            if (next2 == 1) {
                                                break;
                                            }
                                            if (xmlPullParser.getName().equals("keyframe")) {
                                                if (i7 == 4) {
                                                    TypedArray typedArrayM28943 = m2894(resources2, theme2, Xml.asAttributeSet(xmlPullParser), C2521.f7910);
                                                    TypedValue typedValuePeekValue = !m2963(xmlPullParser, "value") ? null : typedArrayM28943.peekValue(0);
                                                    i7 = ((typedValuePeekValue != null) && m2990(typedValuePeekValue.type)) ? 3 : 0;
                                                    typedArrayM28943.recycle();
                                                }
                                                String str3 = str2;
                                                TypedArray typedArrayM28944 = m2894(resources2, theme2, Xml.asAttributeSet(xmlPullParser), C2521.f7910);
                                                float fM2868 = m2868(typedArrayM28944, xmlPullParser, "fraction", 3, -1.0f);
                                                TypedValue typedValuePeekValue2 = !m2963(xmlPullParser, "value") ? null : typedArrayM28944.peekValue(0);
                                                boolean z2 = typedValuePeekValue2 != null;
                                                int i9 = depth;
                                                int i10 = i7 == 4 ? (z2 && m2990(typedValuePeekValue2.type)) ? 3 : 0 : i7;
                                                Keyframe keyframeOfInt = z2 ? i10 != 0 ? (i10 == 1 || i10 == 3) ? Keyframe.ofInt(fM2868, m2968(typedArrayM28944, xmlPullParser, "value", 0, 0)) : null : Keyframe.ofFloat(fM2868, m2868(typedArrayM28944, xmlPullParser, "value", 0, 0.0f)) : i10 == 0 ? Keyframe.ofFloat(fM2868) : Keyframe.ofInt(fM2868);
                                                int resourceId = !m2963(xmlPullParser, "interpolator") ? 0 : typedArrayM28944.getResourceId(1, 0);
                                                if (resourceId > 0) {
                                                    keyframeOfInt.setInterpolator(AnimationUtils.loadInterpolator(context, resourceId));
                                                }
                                                typedArrayM28944.recycle();
                                                if (keyframeOfInt != null) {
                                                    if (arrayList3 == null) {
                                                        arrayList3 = new ArrayList();
                                                    }
                                                    arrayList3.add(keyframeOfInt);
                                                }
                                                xmlPullParser.next();
                                                i4 = 3;
                                                resources2 = resources;
                                                theme2 = theme;
                                                str2 = str3;
                                                depth = i9;
                                            } else {
                                                resources2 = resources;
                                                theme2 = theme;
                                                i4 = i8;
                                            }
                                        }
                                        str = str2;
                                        i3 = depth;
                                        if (arrayList3 == null || (size = arrayList3.size()) <= 0) {
                                            i4 = 3;
                                            propertyValuesHolderM2888 = null;
                                        } else {
                                            Keyframe keyframe = (Keyframe) arrayList3.get(0);
                                            Keyframe keyframe2 = (Keyframe) arrayList3.get(size - 1);
                                            float fraction = keyframe2.getFraction();
                                            if (fraction < 1.0f) {
                                                if (fraction < 0.0f) {
                                                    keyframe2.setFraction(1.0f);
                                                } else {
                                                    arrayList3.add(arrayList3.size(), m2886(keyframe2, 1.0f));
                                                    size++;
                                                }
                                            }
                                            float fraction2 = keyframe.getFraction();
                                            if (fraction2 != 0.0f) {
                                                if (fraction2 < 0.0f) {
                                                    keyframe.setFraction(0.0f);
                                                } else {
                                                    arrayList3.add(0, m2886(keyframe, 0.0f));
                                                    size++;
                                                }
                                            }
                                            Keyframe[] keyframeArr = new Keyframe[size];
                                            arrayList3.toArray(keyframeArr);
                                            int i11 = 0;
                                            while (i11 < size) {
                                                Keyframe keyframe3 = keyframeArr[i11];
                                                if (keyframe3.getFraction() < 0.0f) {
                                                    if (i11 == 0) {
                                                        keyframe3.setFraction(0.0f);
                                                    } else {
                                                        int i12 = size - 1;
                                                        if (i11 == i12) {
                                                            keyframe3.setFraction(1.0f);
                                                        } else {
                                                            int i13 = i11;
                                                            for (int i14 = i11 + 1; i14 < i12 && keyframeArr[i14].getFraction() < 0.0f; i14++) {
                                                                i13 = i14;
                                                            }
                                                            float fraction3 = (keyframeArr[i13 + 1].getFraction() - keyframeArr[i11 - 1].getFraction()) / ((i13 - i11) + 2);
                                                            int i15 = i11;
                                                            while (i15 <= i13) {
                                                                keyframeArr[i15].setFraction(keyframeArr[i15 - 1].getFraction() + fraction3);
                                                                i15++;
                                                                size = size;
                                                            }
                                                        }
                                                    }
                                                }
                                                i11++;
                                                size = size;
                                            }
                                            propertyValuesHolderM2888 = PropertyValuesHolder.ofKeyframe(strM2913, keyframeArr);
                                            i4 = 3;
                                            if (i7 == 3) {
                                                propertyValuesHolderM2888.setEvaluator(C2528.f7925);
                                            }
                                        }
                                        if (propertyValuesHolderM2888 == null) {
                                            propertyValuesHolderM2888 = m2888(typedArrayM28942, iM2968, 0, 1, strM2913);
                                        }
                                        if (propertyValuesHolderM2888 != null) {
                                            if (arrayList2 == null) {
                                                arrayList2 = new ArrayList();
                                            }
                                            arrayList2.add(propertyValuesHolderM2888);
                                        }
                                        typedArrayM28942.recycle();
                                    } else {
                                        attributeSet2 = attributeSetAsAttributeSet;
                                        str = str2;
                                        i3 = depth;
                                    }
                                    xmlPullParser.next();
                                    i5 = 1;
                                    i6 = 2;
                                    resources2 = resources;
                                    theme2 = theme;
                                    attributeSetAsAttributeSet = attributeSet2;
                                    str2 = str;
                                    depth = i3;
                                }
                            }
                            i2 = depth;
                            if (arrayList2 != null) {
                                int size2 = arrayList2.size();
                                propertyValuesHolderArr = new PropertyValuesHolder[size2];
                                for (int i16 = 0; i16 < size2; i16++) {
                                    propertyValuesHolderArr[i16] = (PropertyValuesHolder) arrayList2.get(i16);
                                }
                            } else {
                                propertyValuesHolderArr = null;
                            }
                            if (propertyValuesHolderArr != null && (animator instanceof ValueAnimator)) {
                                ((ValueAnimator) animator).setValues(propertyValuesHolderArr);
                            }
                            z = true;
                        }
                        if (animatorSet != null && !z) {
                            if (arrayList == null) {
                                arrayList = new ArrayList();
                            }
                            arrayList.add(animator);
                        }
                        resources2 = resources;
                        theme2 = theme;
                        depth = i2;
                    }
                    animator = valueAnimatorM2889;
                    i2 = depth;
                    if (animatorSet != null) {
                        if (arrayList == null) {
                        }
                        arrayList.add(animator);
                    }
                    resources2 = resources;
                    theme2 = theme;
                    depth = i2;
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Animator m2885(View view, TransitionValues transitionValues, int i, int i2, float f, float f2, float f3, float f4, TimeInterpolator timeInterpolator, Transition transition) {
            float translationX = view.getTranslationX();
            float translationY = view.getTranslationY();
            if (((int[]) transitionValues.view.getTag(C2077.transitionPosition)) != null) {
                f = (r2[0] - i) + translationX;
                f2 = (r2[1] - i2) + translationY;
            }
            int iRound = Math.round(f - translationX) + i;
            int iRound2 = Math.round(f2 - translationY) + i2;
            view.setTranslationX(f);
            view.setTranslationY(f2);
            if (f == f3 && f2 == f4) {
                return null;
            }
            Path path = new Path();
            path.moveTo(f, f2);
            path.lineTo(f3, f4);
            ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(view, (Property<View, Float>) View.TRANSLATION_X, (Property<View, Float>) View.TRANSLATION_Y, path);
            C2110 c2110 = new C2110(view, transitionValues.view, iRound, iRound2, translationX, translationY);
            transition.addListener(c2110);
            objectAnimatorOfFloat.addListener(c2110);
            objectAnimatorOfFloat.addPauseListener(c2110);
            objectAnimatorOfFloat.setInterpolator(timeInterpolator);
            return objectAnimatorOfFloat;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Keyframe m2886(Keyframe keyframe, float f) {
            return keyframe.getType() == Float.TYPE ? Keyframe.ofFloat(f) : keyframe.getType() == Integer.TYPE ? Keyframe.ofInt(f) : Keyframe.ofObject(f);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static <T> ObjectAnimator m2887(T t, Property<T, PointF> property, Path path) {
            return ObjectAnimator.ofObject(t, property, (TypeConverter) null, path);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static PropertyValuesHolder m2888(TypedArray typedArray, int i, int i2, int i3, String str) {
            PropertyValuesHolder propertyValuesHolderOfInt;
            PropertyValuesHolder propertyValuesHolderOfObject;
            TypedValue typedValuePeekValue = typedArray.peekValue(i2);
            boolean z = typedValuePeekValue != null;
            int i4 = z ? typedValuePeekValue.type : 0;
            TypedValue typedValuePeekValue2 = typedArray.peekValue(i3);
            boolean z2 = typedValuePeekValue2 != null;
            int i5 = z2 ? typedValuePeekValue2.type : 0;
            if (i == 4) {
                i = ((z && m2990(i4)) || (z2 && m2990(i5))) ? 3 : 0;
            }
            boolean z3 = i == 0;
            PropertyValuesHolder propertyValuesHolder = null;
            if (i != 2) {
                C2528 c2528 = i == 3 ? C2528.f7925 : null;
                if (z3) {
                    if (z) {
                        float dimension = i4 == 5 ? typedArray.getDimension(i2, 0.0f) : typedArray.getFloat(i2, 0.0f);
                        if (z2) {
                            propertyValuesHolderOfInt = PropertyValuesHolder.ofFloat(str, dimension, i5 == 5 ? typedArray.getDimension(i3, 0.0f) : typedArray.getFloat(i3, 0.0f));
                        } else {
                            propertyValuesHolderOfInt = PropertyValuesHolder.ofFloat(str, dimension);
                        }
                    } else {
                        propertyValuesHolderOfInt = PropertyValuesHolder.ofFloat(str, i5 == 5 ? typedArray.getDimension(i3, 0.0f) : typedArray.getFloat(i3, 0.0f));
                    }
                } else {
                    if (!z) {
                        if (z2) {
                            propertyValuesHolderOfInt = PropertyValuesHolder.ofInt(str, i5 == 5 ? (int) typedArray.getDimension(i3, 0.0f) : m2990(i5) ? typedArray.getColor(i3, 0) : typedArray.getInt(i3, 0));
                        }
                        if (propertyValuesHolder == null && c2528 != null) {
                            propertyValuesHolder.setEvaluator(c2528);
                            return propertyValuesHolder;
                        }
                    }
                    int dimension2 = i4 == 5 ? (int) typedArray.getDimension(i2, 0.0f) : m2990(i4) ? typedArray.getColor(i2, 0) : typedArray.getInt(i2, 0);
                    if (z2) {
                        propertyValuesHolderOfInt = PropertyValuesHolder.ofInt(str, dimension2, i5 == 5 ? (int) typedArray.getDimension(i3, 0.0f) : m2990(i5) ? typedArray.getColor(i3, 0) : typedArray.getInt(i3, 0));
                    } else {
                        propertyValuesHolderOfInt = PropertyValuesHolder.ofInt(str, dimension2);
                    }
                }
                propertyValuesHolder = propertyValuesHolderOfInt;
                return propertyValuesHolder == null ? propertyValuesHolder : propertyValuesHolder;
            }
            String string = typedArray.getString(i2);
            String string2 = typedArray.getString(i3);
            C1864[] c1864ArrM2966 = m2966(string);
            C1864[] c1864ArrM29662 = m2966(string2);
            if (c1864ArrM2966 == null && c1864ArrM29662 == null) {
                return null;
            }
            if (c1864ArrM2966 == null) {
                if (c1864ArrM29662 != null) {
                    return PropertyValuesHolder.ofObject(str, new C2527(), c1864ArrM29662);
                }
                return null;
            }
            C2527 c2527 = new C2527();
            if (c1864ArrM29662 == null) {
                propertyValuesHolderOfObject = PropertyValuesHolder.ofObject(str, c2527, c1864ArrM2966);
            } else {
                if (!m2964(c1864ArrM2966, c1864ArrM29662)) {
                    throw new InflateException(" Can't morph from " + string + " to " + string2);
                }
                propertyValuesHolderOfObject = PropertyValuesHolder.ofObject(str, c2527, c1864ArrM2966, c1864ArrM29662);
            }
            return propertyValuesHolderOfObject;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static ValueAnimator m2889(Context context, Resources resources, Resources.Theme theme, AttributeSet attributeSet, ValueAnimator valueAnimator, float f, XmlPullParser xmlPullParser) {
            ValueAnimator valueAnimator2;
            TypedArray typedArray;
            TypedArray typedArray2;
            ValueAnimator valueAnimator3;
            TypedArray typedArrayM2894 = m2894(resources, theme, attributeSet, C2521.f7907);
            TypedArray typedArrayM28942 = m2894(resources, theme, attributeSet, C2521.f7911);
            ValueAnimator valueAnimator4 = valueAnimator == null ? new ValueAnimator() : valueAnimator;
            long jM2968 = m2968(typedArrayM2894, xmlPullParser, "duration", 1, 300);
            int resourceId = 0;
            long jM29682 = m2968(typedArrayM2894, xmlPullParser, "startOffset", 2, 0);
            int iM2968 = m2968(typedArrayM2894, xmlPullParser, "valueType", 7, 4);
            if (m2963(xmlPullParser, "valueFrom") && m2963(xmlPullParser, "valueTo")) {
                if (iM2968 == 4) {
                    TypedValue typedValuePeekValue = typedArrayM2894.peekValue(5);
                    boolean z = typedValuePeekValue != null;
                    int i = z ? typedValuePeekValue.type : 0;
                    TypedValue typedValuePeekValue2 = typedArrayM2894.peekValue(6);
                    boolean z2 = typedValuePeekValue2 != null;
                    iM2968 = ((z && m2990(i)) || (z2 && m2990(z2 ? typedValuePeekValue2.type : 0))) ? 3 : 0;
                }
                PropertyValuesHolder propertyValuesHolderM2888 = m2888(typedArrayM2894, iM2968, 5, 6, "");
                if (propertyValuesHolderM2888 != null) {
                    valueAnimator4.setValues(propertyValuesHolderM2888);
                }
            }
            valueAnimator4.setDuration(jM2968);
            valueAnimator4.setStartDelay(jM29682);
            valueAnimator4.setRepeatCount(m2968(typedArrayM2894, xmlPullParser, "repeatCount", 3, 0));
            valueAnimator4.setRepeatMode(m2968(typedArrayM2894, xmlPullParser, "repeatMode", 4, 1));
            if (typedArrayM28942 != null) {
                ObjectAnimator objectAnimator = (ObjectAnimator) valueAnimator4;
                String strM2913 = m2913(typedArrayM28942, xmlPullParser, "pathData", 1);
                if (strM2913 != null) {
                    String strM29132 = m2913(typedArrayM28942, xmlPullParser, "propertyXName", 2);
                    String strM29133 = m2913(typedArrayM28942, xmlPullParser, "propertyYName", 3);
                    if (strM29132 == null && strM29133 == null) {
                        throw new InflateException(typedArrayM28942.getPositionDescription() + " propertyXName or propertyYName is needed for PathData");
                    }
                    Path pathM2971 = m2971(strM2913);
                    float f2 = 0.5f * f;
                    PathMeasure pathMeasure = new PathMeasure(pathM2971, false);
                    ArrayList arrayList = new ArrayList();
                    arrayList.add(Float.valueOf(0.0f));
                    float length = 0.0f;
                    do {
                        length += pathMeasure.getLength();
                        arrayList.add(Float.valueOf(length));
                    } while (pathMeasure.nextContour());
                    PathMeasure pathMeasure2 = new PathMeasure(pathM2971, false);
                    int iMin = Math.min(100, ((int) (length / f2)) + 1);
                    float[] fArr = new float[iMin];
                    float[] fArr2 = new float[iMin];
                    float[] fArr3 = new float[2];
                    float f3 = length / (iMin - 1);
                    valueAnimator2 = valueAnimator4;
                    typedArray = typedArrayM2894;
                    int i2 = 0;
                    float f4 = 0.0f;
                    while (true) {
                        if (resourceId >= iMin) {
                            break;
                        }
                        int i3 = iMin;
                        pathMeasure2.getPosTan(f4 - ((Float) arrayList.get(i2)).floatValue(), fArr3, null);
                        fArr[resourceId] = fArr3[0];
                        fArr2[resourceId] = fArr3[1];
                        f4 += f3;
                        int i4 = i2 + 1;
                        if (i4 < arrayList.size() && f4 > ((Float) arrayList.get(i4)).floatValue()) {
                            pathMeasure2.nextContour();
                            i2 = i4;
                        }
                        resourceId++;
                        iMin = i3;
                    }
                    PropertyValuesHolder propertyValuesHolderOfFloat = strM29132 != null ? PropertyValuesHolder.ofFloat(strM29132, fArr) : null;
                    PropertyValuesHolder propertyValuesHolderOfFloat2 = strM29133 != null ? PropertyValuesHolder.ofFloat(strM29133, fArr2) : null;
                    if (propertyValuesHolderOfFloat == null) {
                        resourceId = 0;
                        objectAnimator.setValues(propertyValuesHolderOfFloat2);
                    } else {
                        resourceId = 0;
                        if (propertyValuesHolderOfFloat2 == null) {
                            objectAnimator.setValues(propertyValuesHolderOfFloat);
                        } else {
                            objectAnimator.setValues(propertyValuesHolderOfFloat, propertyValuesHolderOfFloat2);
                        }
                    }
                } else {
                    valueAnimator2 = valueAnimator4;
                    typedArray = typedArrayM2894;
                    objectAnimator.setPropertyName(m2913(typedArrayM28942, xmlPullParser, "propertyName", 0));
                }
            } else {
                valueAnimator2 = valueAnimator4;
                typedArray = typedArrayM2894;
            }
            if (m2963(xmlPullParser, "interpolator")) {
                typedArray2 = typedArray;
                resourceId = typedArray2.getResourceId(resourceId, resourceId);
            } else {
                typedArray2 = typedArray;
            }
            if (resourceId > 0) {
                valueAnimator3 = valueAnimator2;
                valueAnimator3.setInterpolator(AnimationUtils.loadInterpolator(context, resourceId));
            } else {
                valueAnimator3 = valueAnimator2;
            }
            typedArray2.recycle();
            if (typedArrayM28942 != null) {
                typedArrayM28942.recycle();
            }
            return valueAnimator3;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Intent m2890(Activity activity) {
            Intent parentActivityIntent = activity.getParentActivityIntent();
            if (parentActivityIntent != null) {
                return parentActivityIntent;
            }
            try {
                String strM2976 = m2976((Context) activity, activity.getComponentName());
                if (strM2976 == null) {
                    return null;
                }
                ComponentName componentName = new ComponentName(activity, strM2976);
                try {
                    return m2976((Context) activity, componentName) == null ? Intent.makeMainActivity(componentName) : new Intent().setComponent(componentName);
                } catch (PackageManager.NameNotFoundException unused) {
                    Log.e("NavUtils", "getParentActivityIntent: bad parentActivityName '" + strM2976 + "' in manifest");
                    return null;
                }
            } catch (PackageManager.NameNotFoundException e) {
                throw new IllegalArgumentException(e);
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Intent m2891(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
            String strM2976 = m2976(context, componentName);
            if (strM2976 == null) {
                return null;
            }
            ComponentName componentName2 = new ComponentName(componentName.getPackageName(), strM2976);
            return m2976(context, componentName2) == null ? Intent.makeMainActivity(componentName2) : new Intent().setComponent(componentName2);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static ColorStateList m2892(Resources resources, XmlPullParser xmlPullParser, Resources.Theme theme) throws XmlPullParserException, IOException {
            int next;
            AttributeSet attributeSetAsAttributeSet = Xml.asAttributeSet(xmlPullParser);
            do {
                next = xmlPullParser.next();
                if (next == 2) {
                    break;
                }
            } while (next != 1);
            if (next == 2) {
                return m2893(resources, xmlPullParser, attributeSetAsAttributeSet, theme);
            }
            throw new XmlPullParserException("No start tag found");
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static ColorStateList m2893(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
            int depth;
            String name = xmlPullParser.getName();
            if (!name.equals("selector")) {
                throw new XmlPullParserException(xmlPullParser.getPositionDescription() + ": invalid color state list tag " + name);
            }
            int i = 1;
            int depth2 = xmlPullParser.getDepth() + 1;
            Object[] objArr = new int[20][];
            int[] iArr = new int[20];
            int i2 = 0;
            while (true) {
                int next = xmlPullParser.next();
                if (next == i || ((depth = xmlPullParser.getDepth()) < depth2 && next == 3)) {
                    break;
                }
                if (next == 2 && depth <= depth2 && xmlPullParser.getName().equals("item")) {
                    int[] iArr2 = C1794.ColorStateListItem;
                    TypedArray typedArrayObtainAttributes = theme == null ? resources.obtainAttributes(attributeSet, iArr2) : theme.obtainStyledAttributes(attributeSet, iArr2, 0, 0);
                    int color = typedArrayObtainAttributes.getColor(C1794.ColorStateListItem_android_color, -65281);
                    float f = 1.0f;
                    if (typedArrayObtainAttributes.hasValue(C1794.ColorStateListItem_android_alpha)) {
                        f = typedArrayObtainAttributes.getFloat(C1794.ColorStateListItem_android_alpha, 1.0f);
                    } else if (typedArrayObtainAttributes.hasValue(C1794.ColorStateListItem_alpha)) {
                        f = typedArrayObtainAttributes.getFloat(C1794.ColorStateListItem_alpha, 1.0f);
                    }
                    typedArrayObtainAttributes.recycle();
                    int attributeCount = attributeSet.getAttributeCount();
                    int[] iArr3 = new int[attributeCount];
                    int i3 = 0;
                    for (int i4 = 0; i4 < attributeCount; i4++) {
                        int attributeNameResource = attributeSet.getAttributeNameResource(i4);
                        if (attributeNameResource != 16843173 && attributeNameResource != 16843551 && attributeNameResource != C1792.alpha) {
                            int i5 = i3 + 1;
                            if (!attributeSet.getAttributeBooleanValue(i4, false)) {
                                attributeNameResource = -attributeNameResource;
                            }
                            iArr3[i3] = attributeNameResource;
                            i3 = i5;
                        }
                    }
                    int[] iArrTrimStateSet = StateSet.trimStateSet(iArr3, i3);
                    int iRound = (Math.round(Color.alpha(color) * f) << 24) | (color & 16777215);
                    int i6 = i2 + 1;
                    if (i6 > iArr.length) {
                        int[] iArr4 = new int[i2 <= 4 ? 8 : i2 * 2];
                        System.arraycopy(iArr, 0, iArr4, 0, i2);
                        iArr = iArr4;
                    }
                    iArr[i2] = iRound;
                    if (i6 > objArr.length) {
                        Object[] objArr2 = (Object[]) Array.newInstance(objArr.getClass().getComponentType(), i2 > 4 ? i2 * 2 : 8);
                        System.arraycopy(objArr, 0, objArr2, 0, i2);
                        objArr = objArr2;
                    }
                    objArr[i2] = iArrTrimStateSet;
                    objArr = (int[][]) objArr;
                    i2 = i6;
                }
                i = 1;
            }
            int[] iArr5 = new int[i2];
            int[][] iArr6 = new int[i2][];
            System.arraycopy(iArr, 0, iArr5, 0, i2);
            System.arraycopy(objArr, 0, iArr6, 0, i2);
            return new ColorStateList(iArr6, iArr5);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static TypedArray m2894(Resources resources, Resources.Theme theme, AttributeSet attributeSet, int[] iArr) {
            return theme == null ? resources.obtainAttributes(attributeSet, iArr) : theme.obtainStyledAttributes(attributeSet, iArr, 0, 0);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Drawable m2895(CompoundButton compoundButton) {
            if (Build.VERSION.SDK_INT >= 23) {
                return compoundButton.getButtonDrawable();
            }
            if (!f4758) {
                try {
                    Field declaredField = CompoundButton.class.getDeclaredField("mButtonDrawable");
                    f4757 = declaredField;
                    declaredField.setAccessible(true);
                } catch (NoSuchFieldException e) {
                    Log.i("CompoundButtonCompat", "Failed to retrieve mButtonDrawable field", e);
                }
                f4758 = true;
            }
            Field field = f4757;
            if (field != null) {
                try {
                    return (Drawable) field.get(compoundButton);
                } catch (IllegalAccessException e2) {
                    Log.i("CompoundButtonCompat", "Failed to get button drawable via reflection", e2);
                    f4757 = null;
                }
            }
            return null;
        }

        /* JADX WARN: Multi-variable type inference failed */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final Bundle m2896(C6541<String, ? extends Object>... c6541Arr) {
            if (c6541Arr == null) {
                C6635.m9824("pairs");
                throw null;
            }
            Bundle bundle = new Bundle(c6541Arr.length);
            for (C6541<String, ? extends Object> c6541 : c6541Arr) {
                String str = c6541.f19316;
                B b = c6541.f19317;
                if (b == 0) {
                    bundle.putString(str, null);
                } else if (b instanceof Boolean) {
                    bundle.putBoolean(str, ((Boolean) b).booleanValue());
                } else if (b instanceof Byte) {
                    bundle.putByte(str, ((Number) b).byteValue());
                } else if (b instanceof Character) {
                    bundle.putChar(str, ((Character) b).charValue());
                } else if (b instanceof Double) {
                    bundle.putDouble(str, ((Number) b).doubleValue());
                } else if (b instanceof Float) {
                    bundle.putFloat(str, ((Number) b).floatValue());
                } else if (b instanceof Integer) {
                    bundle.putInt(str, ((Number) b).intValue());
                } else if (b instanceof Long) {
                    bundle.putLong(str, ((Number) b).longValue());
                } else if (b instanceof Short) {
                    bundle.putShort(str, ((Number) b).shortValue());
                } else if (b instanceof Bundle) {
                    bundle.putBundle(str, (Bundle) b);
                } else if (b instanceof CharSequence) {
                    bundle.putCharSequence(str, (CharSequence) b);
                } else if (b instanceof Parcelable) {
                    bundle.putParcelable(str, (Parcelable) b);
                } else if (b instanceof boolean[]) {
                    bundle.putBooleanArray(str, (boolean[]) b);
                } else if (b instanceof byte[]) {
                    bundle.putByteArray(str, (byte[]) b);
                } else if (b instanceof char[]) {
                    bundle.putCharArray(str, (char[]) b);
                } else if (b instanceof double[]) {
                    bundle.putDoubleArray(str, (double[]) b);
                } else if (b instanceof float[]) {
                    bundle.putFloatArray(str, (float[]) b);
                } else if (b instanceof int[]) {
                    bundle.putIntArray(str, (int[]) b);
                } else if (b instanceof long[]) {
                    bundle.putLongArray(str, (long[]) b);
                } else if (b instanceof short[]) {
                    bundle.putShortArray(str, (short[]) b);
                } else if (b instanceof Object[]) {
                    Class<?> componentType = b.getClass().getComponentType();
                    if (componentType == null) {
                        C6635.m9822();
                        throw null;
                    }
                    C6635.m9823((Object) componentType, "value::class.java.componentType!!");
                    if (Parcelable.class.isAssignableFrom(componentType)) {
                        bundle.putParcelableArray(str, (Parcelable[]) b);
                    } else if (String.class.isAssignableFrom(componentType)) {
                        bundle.putStringArray(str, (String[]) b);
                    } else if (CharSequence.class.isAssignableFrom(componentType)) {
                        bundle.putCharSequenceArray(str, (CharSequence[]) b);
                    } else {
                        if (!Serializable.class.isAssignableFrom(componentType)) {
                            throw new IllegalArgumentException("Illegal value array type " + componentType.getCanonicalName() + " for key \"" + str + '\"');
                        }
                        bundle.putSerializable(str, (Serializable) b);
                    }
                } else if (b instanceof Serializable) {
                    bundle.putSerializable(str, (Serializable) b);
                } else if (b instanceof IBinder) {
                    bundle.putBinder(str, (IBinder) b);
                } else if (b instanceof Size) {
                    bundle.putSize(str, (Size) b);
                } else {
                    if (!(b instanceof SizeF)) {
                        throw new IllegalArgumentException("Illegal value type " + b.getClass().getCanonicalName() + " for key \"" + str + '\"');
                    }
                    bundle.putSizeF(str, (SizeF) b);
                }
            }
            return bundle;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static ActionMode.Callback m2897(TextView textView, ActionMode.Callback callback) {
            int i = Build.VERSION.SDK_INT;
            return (i < 26 || i > 27 || (callback instanceof ActionModeCallbackC1966)) ? callback : new ActionModeCallbackC1966(callback, textView);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static InputConnection m2898(InputConnection inputConnection, EditorInfo editorInfo, View view) {
            if (inputConnection != null && editorInfo.hintText == null) {
                ViewParent parent = view.getParent();
                while (true) {
                    if (!(parent instanceof View)) {
                        break;
                    }
                    if (parent instanceof InterfaceC1699) {
                        editorInfo.hintText = ((InterfaceC1699) parent).m3320();
                        break;
                    }
                    parent = parent.getParent();
                }
            }
            return inputConnection;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ֏ m2899(long j, String str, String str2, String str3, String str4, String str5, Integer num, boolean z, int i) {
            if (str == null) {
                C6635.m9824("name");
                throw null;
            }
            if (str2 == null) {
                C6635.m9824("url");
                throw null;
            }
            if (str3 == null) {
                C6635.m9824("logo");
                throw null;
            }
            if (str4 == null) {
                C6635.m9824("group");
                throw null;
            }
            if (str5 != null) {
                return new ֏(0L, j, str, (String) null, str2, str3, str4, str5, "", 0, -1, "", "", (String) null, (EnumC1265) null, num, (String) null, z, i, true, false, false, 0L, 0, 0L, 0L, (ޢ) null, (ޢ) null, ޏ.ބ, (Integer) null, "", (ࢣ) null, (Integer) null, "", (Integer) null, (Integer) null, (Boolean) null);
            }
            C6635.m9824("tvgId");
            throw null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ކ m2900(long j, C1267 c1267, String str, ގ r22, ގ r23, boolean z, Boolean bool, boolean z2, Boolean bool2, boolean z3, Integer num) {
            if (c1267 == null) {
                C6635.m9824("channelGroupData");
                throw null;
            }
            if (r22 == null) {
                C6635.m9824("prevSorting");
                throw null;
            }
            if (r23 != null) {
                return new ކ(j, c1267.m2558(), c1267.f4385, c1267.f4386, str, r22, r23, z, bool, z2, bool2, z3, num);
            }
            C6635.m9824("sorting");
            throw null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ގ m2901(ކ r0) {
            ގ r02;
            ގ r03;
            return (r0 == null || (r02 = r0.ބ) == null || (r03 = r02.ރ()) == null) ? ގ.ބ : r03;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ޑ m2902(long j, long j2, C1267 c1267, ޤ r24, long j3) {
            if (c1267 == null) {
                C6635.m9824("groupData");
                throw null;
            }
            if (r24 != null) {
                return new ޑ(j, j2, c1267.f4384.f4393, c1267.f4385, r24.ހ, r24.ށ, r24.ނ, r24.ރ, j3);
            }
            C6635.m9824("program");
            throw null;
        }

        /* JADX WARN: Removed duplicated region for block: B:25:0x003f  */
        /* JADX WARN: Removed duplicated region for block: B:26:0x0045  */
        /* JADX WARN: Removed duplicated region for block: B:31:0x0053  */
        /* JADX WARN: Removed duplicated region for block: B:32:0x0059  */
        /* JADX WARN: Removed duplicated region for block: B:37:0x0067  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static final ޕ m2903(long j, InterfaceC1261 interfaceC1261, String str, String str2, boolean z, boolean z2, boolean z3, boolean z4, boolean z5, EnumC1265 enumC1265, Integer num, Integer num2, boolean z6, boolean z7, ޔ r48, ސ r49, ސ r50, Long l, Long l2, boolean z8, boolean z9, Integer num3) {
            String str3;
            String str4;
            EnumC1265 enumC12652;
            EnumC1265 enumC12653;
            Integer num4;
            Integer num5;
            if (interfaceC1261 == null) {
                C6635.m9824("abstractPlaylist");
                throw null;
            }
            if (str == null) {
                C6635.m9824("name");
                throw null;
            }
            if (str2 == null) {
                C6635.m9824("url");
                throw null;
            }
            if (r48 == null) {
                C6635.m9824("logosPriority");
                throw null;
            }
            if (r49 == null) {
                C6635.m9824("prevGroupsSorting");
                throw null;
            }
            if (r50 == null) {
                C6635.m9824("groupsSorting");
                throw null;
            }
            boolean z10 = interfaceC1261 instanceof ހ;
            String str5 = z10 ? ((ހ) interfaceC1261).ؠ : "";
            int i = z10 ? ((ހ) interfaceC1261).ހ : 0;
            boolean z11 = interfaceC1261 instanceof ar.tvplayer.core.data.api.xtreamcodes.֏;
            if (z10) {
                str4 = ((ހ) interfaceC1261).ށ;
            } else {
                if (!z11) {
                    str3 = null;
                    if (!z10) {
                        enumC12653 = ((ހ) interfaceC1261).ނ;
                    } else {
                        if (!z11) {
                            enumC12652 = null;
                            if (z10) {
                                num5 = ((ހ) interfaceC1261).ރ;
                            } else {
                                if (!z11) {
                                    num4 = null;
                                    return new ޕ(j, str, str2, z, z2, z3, z4, z5, interfaceC1261.m2552(), str5, i, z11, str3, enumC12652, num4, z10 ? ((ހ) interfaceC1261).ބ : null, enumC1265, num, num2, z6, z7, r48, r49, r50, l, l2, z8, z9, num3);
                                }
                                num5 = ((ar.tvplayer.core.data.api.xtreamcodes.֏) interfaceC1261).ހ;
                            }
                            num4 = num5;
                            if (z10) {
                            }
                            return new ޕ(j, str, str2, z, z2, z3, z4, z5, interfaceC1261.m2552(), str5, i, z11, str3, enumC12652, num4, z10 ? ((ހ) interfaceC1261).ބ : null, enumC1265, num, num2, z6, z7, r48, r49, r50, l, l2, z8, z9, num3);
                        }
                        enumC12653 = ((ar.tvplayer.core.data.api.xtreamcodes.֏) interfaceC1261).ؠ;
                    }
                    enumC12652 = enumC12653;
                    if (z10) {
                    }
                    num4 = num5;
                    if (z10) {
                    }
                    return new ޕ(j, str, str2, z, z2, z3, z4, z5, interfaceC1261.m2552(), str5, i, z11, str3, enumC12652, num4, z10 ? ((ހ) interfaceC1261).ބ : null, enumC1265, num, num2, z6, z7, r48, r49, r50, l, l2, z8, z9, num3);
                }
                str4 = ((ar.tvplayer.core.data.api.xtreamcodes.֏) interfaceC1261).֏;
            }
            str3 = str4;
            if (!z10) {
            }
            enumC12652 = enumC12653;
            if (z10) {
            }
            num4 = num5;
            if (z10) {
            }
            return new ޕ(j, str, str2, z, z2, z3, z4, z5, interfaceC1261.m2552(), str5, i, z11, str3, enumC12652, num4, z10 ? ((ހ) interfaceC1261).ބ : null, enumC1265, num, num2, z6, z7, r48, r49, r50, l, l2, z8, z9, num3);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ޤ m2904(ޙ r17, boolean z) {
            long jLongValue;
            long jLongValue2;
            String str;
            String str2;
            String str3 = r17 != null ? r17.ވ : null;
            boolean z2 = !(str3 == null || str3.length() == 0);
            if ((r17 != null ? r17.ބ : null) == null && !z2) {
                return null;
            }
            if (!z && !z2) {
                Long l = r17 != null ? r17.ބ : null;
                if (l == null) {
                    C6635.m9822();
                    throw null;
                }
                jLongValue = l.longValue();
            } else {
                if (r17 == null) {
                    C6635.m9822();
                    throw null;
                }
                jLongValue = r17.ؠ;
            }
            if (z || z2) {
                jLongValue2 = r17.ހ;
            } else {
                Long l2 = r17.ޅ;
                if (l2 == null) {
                    C6635.m9822();
                    throw null;
                }
                jLongValue2 = l2.longValue();
            }
            if (z2) {
                str = r17.ވ;
                if (str == null) {
                    C6635.m9822();
                    throw null;
                }
            } else {
                str = r17.ކ;
                if (str == null) {
                    C6635.m9822();
                    throw null;
                }
            }
            String str4 = str;
            if (z2) {
                str2 = "";
            } else {
                str2 = r17.އ;
                if (str2 == null) {
                    C6635.m9822();
                    throw null;
                }
            }
            return new ޤ(0L, 0L, jLongValue, jLongValue2, str4, str2, (Integer) null, (Integer) null);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ޤ m2905(ar.tvplayer.core.data.parsers.xmltv.ހ r14, long j, long j2) {
            if (r14 == null) {
                C6635.m9824("xmltvProgram");
                throw null;
            }
            long j3 = r14.ؠ;
            long j4 = r14.ހ;
            String str = r14.ށ;
            return new ޤ(j2, j, j3, j4, str, r14.ނ, Integer.valueOf(str.length()), Integer.valueOf(r14.ނ.length()));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static /* synthetic */ ޤ m2906(ar.tvplayer.core.data.parsers.xmltv.ހ r0, long j, long j2, int i) {
            if ((i & 4) != 0) {
                j2 = 0;
            }
            return m2905(r0, j, j2);
        }

        /* JADX WARN: Removed duplicated region for block: B:71:0x0124 A[RETURN] */
        /* JADX WARN: Removed duplicated region for block: B:95:0x0125 A[EXC_TOP_SPLITTER, SYNTHETIC] */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static final ހ m2907(ހ r18) {
            Object next;
            String str;
            boolean z;
            C6933 c6933Mo10025;
            ހ r0;
            ރ r14;
            ރ r10;
            if (r18 == null) {
                C6635.m9824("playlist");
                throw null;
            }
            if (!CommonUtilsKt.ބ()) {
                return r18;
            }
            String strM2911 = m2911();
            if (strM2911.length() == 0) {
                return r18;
            }
            Iterator it = r18.ޅ.iterator();
            while (true) {
                if (!it.hasNext()) {
                    next = null;
                    break;
                }
                next = it.next();
                if (((ؠ) next).ލ) {
                    break;
                }
            }
            ؠ r12 = (ؠ) next;
            if (r12 == null || (str = r12.ؠ) == null || !m2981(strM2911, str)) {
                return r18;
            }
            try {
                C6926.C6927 c6927 = new C6926.C6927();
                c6927.m10124("http://stb.onlineott.tv/stalker_portal/server/load.php?type=tv_archive&action=create_link");
                c6927.m10119("Authorization", "Bearer " + strM2911);
                c6927.m10119("Cookie", "mac=10dd101325fb5addf1d0dfc5e89df4af; stb_lang=ru; timezone=GMT");
                c6933Mo10025 = CommonUtilsKt.ހ().mo10028(c6927.m10123()).mo10025();
                try {
                } finally {
                }
            } catch (Exception e) {
                C7399.m11004("StalkerUtils").mo11006(e, "Failed to create tv_archive link", new Object[0]);
                z = false;
            }
            if (c6933Mo10025.m10127()) {
                AbstractC6936 abstractC6936 = c6933Mo10025.f20152;
                if (abstractC6936 == null) {
                    C6635.m9822();
                    throw null;
                }
                String strM10138 = abstractC6936.m10138();
                String strM9903 = C6703.m9903(C6703.m9870(strM10138, "string(17) \\\"", (String) null, 2), "\\\"\\n", (String) null, 2);
                String strM99032 = C6703.m9903(C6703.m9870(strM10138, "token=", (String) null, 2), "&ch_id=", (String) null, 2);
                if (strM9903.length() > 0) {
                    if (strM99032.length() > 0) {
                        if (ރ.ߠ == null || (r14 = ރ.ߠ) == null) {
                            throw null;
                        }
                        ރ.ȋ.m9836(r14, ރ.ށ[184], strM9903);
                        if (ރ.ߠ == null || (r10 = ރ.ߠ) == null) {
                            throw null;
                        }
                        ރ.ł.m9836(r10, ރ.ށ[185], strM99032);
                        z = true;
                    }
                    C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                }
                if (z) {
                    return r18;
                }
                try {
                    C6926.C6927 c69272 = new C6926.C6927();
                    c69272.m10124("http://stb.onlineott.tv/stalker_portal/server/load.php?type=itv&action=get_all_channels");
                    c69272.m10119("Authorization", "Bearer " + strM2911);
                    c69272.m10119("Cookie", "mac=10dd101325fb5addf1d0dfc5e89df4af; stb_lang=ru; timezone=GMT");
                    c6933Mo10025 = CommonUtilsKt.ހ().mo10028(c69272.m10123()).mo10025();
                    try {
                        if (c6933Mo10025.m10127()) {
                            r0 = m2908(c6933Mo10025, r18);
                        } else {
                            C7399.m11004("StalkerUtils").mo11007("Response from server is unsuccessful, code = " + c6933Mo10025.f20149, new Object[0]);
                            r0 = r18;
                        }
                        C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                        return r0;
                    } finally {
                        try {
                            throw th;
                        } finally {
                        }
                    }
                } catch (Exception e2) {
                    C7399.m11004("StalkerUtils").mo11006(e2, "Failed to load TTV channels", new Object[0]);
                    return r18;
                }
            }
            C7399.m11004("StalkerUtils").mo11007("Response from server is unsuccessful, code = " + c6933Mo10025.f20149, new Object[0]);
            z = false;
            C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
            if (z) {
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final ހ m2908(C6933 c6933, ހ r32) {
            int i;
            TtvJs ttvJs;
            AbstractC6487 abstractC6487M9745 = new C6509(new C6509.C6510()).m9745(TtvResponse.class);
            AbstractC6936 abstractC6936 = c6933.f20152;
            if (abstractC6936 == null) {
                C6635.m9822();
                throw null;
            }
            TtvResponse ttvResponse = (TtvResponse) abstractC6487M9745.m9680(abstractC6936.mo10137());
            List<TtvChannel> list = (ttvResponse == null || (ttvJs = ttvResponse.֏) == null) ? null : ttvJs.֏;
            if (list == null || !(!list.isEmpty()) || r32.ޅ.isEmpty()) {
                return r32;
            }
            ArrayList arrayList = new ArrayList(r32.ޅ);
            HashMap map = new HashMap(arrayList.size());
            int i2 = 0;
            boolean z = false;
            for (Object obj : arrayList) {
                int i3 = i2 + 1;
                if (i2 < 0) {
                    C4303.m7193();
                    throw null;
                }
                ؠ r10 = (ؠ) obj;
                if (m2991(r10.ؠ)) {
                    map.put(CommonUtilsKt.ކ(r10.֏), Integer.valueOf(i2));
                    arrayList.set(i2, ؠ.֏((ؠ) arrayList.get(i2), (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, 0, 0, (String) null, (String) null, (String) null, (EnumC1265) null, 0, (String) null, false, false, false, 126975));
                    i2 = i3;
                } else {
                    i2 = i3;
                    z = true;
                }
            }
            SparseIntArray sparseIntArray = new SparseIntArray();
            for (TtvChannel ttvChannel : list) {
                Integer num = (Integer) map.get(CommonUtilsKt.ކ(ttvChannel.֏));
                if (num != null && (i = ttvChannel.ؠ) > 0) {
                    int i4 = i / 24;
                    int iIntValue = num.intValue();
                    ؠ r11 = (ؠ) arrayList.get(num.intValue());
                    arrayList.set(iIntValue, ؠ.֏(r11, (String) null, (String) null, (String) null, (String) null, (String) null, (String) null, 0, 0, (String) null, (String) null, (String) null, z ? EnumC1265.FLUSSONIC : r11.މ, Integer.valueOf(i4), (String) null, false, false, false, 124927));
                    sparseIntArray.put(i4, sparseIntArray.get(i4, 0) + 1);
                }
            }
            int size = sparseIntArray.size();
            int i5 = 0;
            int i6 = 0;
            for (int i7 = 0; i7 < size; i7++) {
                int iKeyAt = sparseIntArray.keyAt(i7);
                int iValueAt = sparseIntArray.valueAt(i7);
                if (iValueAt > i6) {
                    i5 = iKeyAt;
                    i6 = iValueAt;
                }
            }
            if (i5 > 0) {
                return ހ.֏(r32, (String) null, (String) null, 0, (String) null, z ? EnumC1265.AUTO : EnumC1265.FLUSSONIC, Integer.valueOf(i5), (String) null, arrayList, false, 335);
            }
            return r32;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static File m2909(Context context) {
            File cacheDir = context.getCacheDir();
            if (cacheDir == null) {
                return null;
            }
            StringBuilder sbM4889 = C2803.m4889(".font");
            sbM4889.append(Process.myPid());
            sbM4889.append("-");
            sbM4889.append(Process.myTid());
            sbM4889.append("-");
            String string = sbM4889.toString();
            for (int i = 0; i < 100; i++) {
                File file = new File(cacheDir, C2803.m4871(string, i));
                if (file.createNewFile()) {
                    return file;
                }
            }
            return null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static Object m2910(boolean z) {
            C2105 c2105 = new C2105();
            c2105.setReparent(z);
            return c2105;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final String m2911() {
            String strM9903;
            try {
                C6926.C6927 c6927 = new C6926.C6927();
                c6927.m10124("http://stb.onlineott.tv/stalker_portal/server/load.php?type=stb&action=handshake&token=C202C900E598558D0790F96B40E2D378");
                C6933 c6933Mo10025 = CommonUtilsKt.ހ().mo10028(c6927.m10123()).mo10025();
                try {
                    if (c6933Mo10025.m10127()) {
                        AbstractC6936 abstractC6936 = c6933Mo10025.f20152;
                        if (abstractC6936 == null) {
                            C6635.m9822();
                            throw null;
                        }
                        strM9903 = C6703.m9903(C6703.m9870(abstractC6936.m10138(), "\"token\":\"", (String) null, 2), "\"", (String) null, 2);
                    } else {
                        C7399.m11004("StalkerUtils").mo11007("Response from server is unsuccessful, code = " + c6933Mo10025.f20149, new Object[0]);
                        strM9903 = "";
                    }
                    C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                    return strM9903;
                } finally {
                }
            } catch (Exception e) {
                C7399.m11004("StalkerUtils").mo11006(e, "Failed to handshake", new Object[0]);
                return "";
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static String m2912(TypedArray typedArray, int i, int i2) {
            String string = typedArray.getString(i);
            return string == null ? typedArray.getString(i2) : string;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static String m2913(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i) {
            if (m2963(xmlPullParser, str)) {
                return typedArray.getString(i);
            }
            return null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final String m2914(ar.tvplayer.core.data.api.xtreamcodes.ؠ r6) {
            String str;
            ServerInfo serverInfo;
            if (!CommonUtilsKt.ބ()) {
                return null;
            }
            try {
                String str2 = r6.֏ + "player_api.php?username=" + r6.ؠ + "&password=" + r6.ހ;
                C6926.C6927 c6927 = new C6926.C6927();
                c6927.m10124(str2);
                C6933 c6933Mo10025 = CommonUtilsKt.ހ().mo10028(c6927.m10123()).mo10025();
                try {
                    if (c6933Mo10025.m10127()) {
                        AbstractC6487 abstractC6487M9745 = new C6509(new C6509.C6510()).m9745(ServerInfoResponse.class);
                        if (abstractC6487M9745 == null) {
                            throw null;
                        }
                        C6485 c6485 = new C6485(abstractC6487M9745, abstractC6487M9745);
                        AbstractC6936 abstractC6936 = c6933Mo10025.f20152;
                        if (abstractC6936 == null) {
                            C6635.m9822();
                            throw null;
                        }
                        ServerInfoResponse serverInfoResponse = (ServerInfoResponse) c6485.m9680(abstractC6936.mo10137());
                        if (serverInfoResponse != null && (serverInfo = serverInfoResponse.֏) != null) {
                            str = serverInfo.֏;
                        }
                        C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                        return str;
                    }
                    C7399.m11004("XtreamCodesUtils").mo11007("Response from server is unsuccessful, code = " + c6933Mo10025.f20149, new Object[0]);
                    str = null;
                    C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                    return str;
                } finally {
                }
            } catch (Exception e) {
                C7399.m11004("XtreamCodesUtils").mo11006(e, "Failed to get Xtream Codes server time zone", new Object[0]);
                return null;
            }
        }

        /* JADX WARN: Removed duplicated region for block: B:24:0x0046  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static final String m2915(String str, String str2) {
            boolean z;
            if (str == null) {
                C6635.m9824("name");
                throw null;
            }
            if (!(ar.tvplayer.core.domain.ޏ.ވ.ހ().length() > 0)) {
                if (CommonUtilsKt.ރ()) {
                    ar.tvplayer.core.domain.ޏ r1 = ar.tvplayer.core.domain.ޏ.ވ;
                    if (r1 == null) {
                        throw null;
                    }
                    boolean z2 = ((Number) ar.tvplayer.core.domain.ޏ.ބ.m9835(r1, ar.tvplayer.core.domain.ޏ.ށ[2])).intValue() == 2;
                    boolean z3 = ar.tvplayer.core.domain.ޑ.֏;
                    boolean z4 = C1255.f4369;
                    boolean z5 = ލ.ؠ;
                    if (z2 && z3 && (!z4 || z5)) {
                        z = true;
                    }
                }
                z = false;
            }
            if (!z) {
                return str;
            }
            if (str2 != null) {
                return str2;
            }
            if (!ރ.ߠ.آ()) {
                return str;
            }
            ރ r10 = ރ.ߠ;
            if (r10 == null) {
                throw null;
            }
            String str3 = (String) ރ.І.m9835(r10, ރ.ށ[196]);
            m2987(str3);
            String string = C6703.m9900(str3).toString();
            if (string.length() > 0) {
                for (String str4 : C6703.m9875((CharSequence) string, new String[]{","}, false, 0, 6)) {
                    if (str4 == null) {
                        throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
                    }
                    String string2 = C6703.m9900(str4).toString();
                    if (string2.length() > 0) {
                        if (string2 == null) {
                            C6635.m9824("$this$last");
                            throw null;
                        }
                        if (string2.length() == 0) {
                            throw new NoSuchElementException("Char sequence is empty.");
                        }
                        if (Character.isLetterOrDigit(string2.charAt(C6703.m9855((CharSequence) string2)))) {
                            string2 = C2803.m4879(string2, " ");
                        }
                    }
                    if (str == null) {
                        C6635.m9824("$this$removePrefix");
                        throw null;
                    }
                    if (string2 == null) {
                        C6635.m9824("prefix");
                        throw null;
                    }
                    if (C6703.m9904((CharSequence) str, (CharSequence) string2, true)) {
                        str = str.substring(string2.length());
                        C6635.m9823((Object) str, "(this as java.lang.String).substring(startIndex)");
                    }
                    str = C6703.m9900(str).toString();
                }
            }
            ރ r102 = ރ.ߠ;
            if (r102 == null) {
                throw null;
            }
            String str5 = (String) ރ.Ӏ.m9835(r102, ރ.ށ[197]);
            m2987(str5);
            String string3 = C6703.m9900(str5).toString();
            if (!(string3.length() > 0)) {
                return str;
            }
            for (String str6 : C6703.m9875((CharSequence) string3, new String[]{","}, false, 0, 6)) {
                if (str6 == null) {
                    throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
                }
                String string4 = C6703.m9900(str6).toString();
                if (str == null) {
                    C6635.m9824("$this$removeSuffix");
                    throw null;
                }
                if (string4 == null) {
                    C6635.m9824("suffix");
                    throw null;
                }
                if (C6703.m9897((CharSequence) str, (CharSequence) string4, true)) {
                    str = str.substring(0, str.length() - string4.length());
                    C6635.m9823((Object) str, "(this as java.lang.Strin…ing(startIndex, endIndex)");
                }
                str = C6703.m9900(str).toString();
            }
            return str;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final String m2916(String str, String str2, String str3, String str4) {
            if (str == null) {
                C6635.m9824("_serverAddress");
                throw null;
            }
            if (str2 == null) {
                C6635.m9824("username");
                throw null;
            }
            if (str3 == null) {
                C6635.m9824("password");
                throw null;
            }
            if (str4 == null) {
                C6635.m9824("_output");
                throw null;
            }
            String strM9891 = C6703.m9891(str, "/");
            if (!CommonUtilsKt.ނ(strM9891)) {
                strM9891 = C2803.m4879("http://", strM9891);
            }
            if (str4.length() == 0) {
                str4 = "ts";
            }
            StringBuilder sb = new StringBuilder();
            sb.append(strM9891);
            sb.append("/get.php?username=");
            sb.append(str2);
            sb.append("&password=");
            sb.append(str3);
            return C2803.m4884(sb, "&type=m3u_plus&output=", str4);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final /* synthetic */ String m2917(String str, String str2, boolean z) {
            return str != null ? str : (!z || str2 == null) ? "-" : str2;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static String m2918(InterfaceC1261 interfaceC1261, String str) {
            if (str == null) {
                C6635.m9824("playlistUrl");
                throw null;
            }
            int iM9886 = C6703.m9886((CharSequence) str, '/', 0, false, 6);
            int iM98862 = C6703.m9886((CharSequence) str, '.', 0, false, 6);
            if (m2992(str) || iM98862 == -1 || iM98862 <= iM9886) {
                return CommonUtilsKt.ށ(str);
            }
            String strSubstring = str.substring(iM9886 + 1, iM98862);
            C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
            return strSubstring;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static ByteBuffer m2919(Context context, CancellationSignal cancellationSignal, Uri uri) {
            try {
                ParcelFileDescriptor parcelFileDescriptorOpenFileDescriptor = context.getContentResolver().openFileDescriptor(uri, "r", cancellationSignal);
                if (parcelFileDescriptorOpenFileDescriptor == null) {
                    if (parcelFileDescriptorOpenFileDescriptor != null) {
                        parcelFileDescriptorOpenFileDescriptor.close();
                    }
                    return null;
                }
                try {
                    FileInputStream fileInputStream = new FileInputStream(parcelFileDescriptorOpenFileDescriptor.getFileDescriptor());
                    try {
                        FileChannel channel = fileInputStream.getChannel();
                        MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_ONLY, 0L, channel.size());
                        fileInputStream.close();
                        parcelFileDescriptorOpenFileDescriptor.close();
                        return map;
                    } finally {
                    }
                } finally {
                }
            } catch (IOException unused) {
                return null;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static List<List<byte[]>> m2920(Resources resources, int i) {
            if (i == 0) {
                return Collections.emptyList();
            }
            TypedArray typedArrayObtainTypedArray = resources.obtainTypedArray(i);
            try {
                if (typedArrayObtainTypedArray.length() == 0) {
                    return Collections.emptyList();
                }
                ArrayList arrayList = new ArrayList();
                if (typedArrayObtainTypedArray.getType(0) == 1) {
                    for (int i2 = 0; i2 < typedArrayObtainTypedArray.length(); i2++) {
                        int resourceId = typedArrayObtainTypedArray.getResourceId(i2, 0);
                        if (resourceId != 0) {
                            arrayList.add(m2923(resources.getStringArray(resourceId)));
                        }
                    }
                } else {
                    arrayList.add(m2923(resources.getStringArray(i)));
                }
                return arrayList;
            } finally {
                typedArrayObtainTypedArray.recycle();
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final List<ބ> m2921(List<ބ> list) {
            if (list != null) {
                return list.isEmpty() ? list : C6560.m9778((Iterable) list, (Comparator) new މ(list.get(0).ނ.ރ().ބ(), list.get(0).ރ.ރ().ބ()));
            }
            C6635.m9824("$this$sortGroups");
            throw null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final List<ar.tvplayer.core.data.db.entities.ؠ> m2922(List<ar.tvplayer.core.data.db.entities.ؠ> list, ގ r4, ގ r5) {
            if (list == null) {
                C6635.m9824("channels");
                throw null;
            }
            if (r4 == null) {
                C6635.m9824("_prevSorting");
                throw null;
            }
            if (r5 != null) {
                return C6560.m9778((Iterable) list, (Comparator) new އ(r4.ބ(), r5.ބ(), ރ.ߠ.ޣ(), ރ.ߠ.ࠚ()));
            }
            C6635.m9824("_sorting");
            throw null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static List<byte[]> m2923(String[] strArr) {
            ArrayList arrayList = new ArrayList();
            for (String str : strArr) {
                arrayList.add(Base64.decode(str, 0));
            }
            return arrayList;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final EnumC1265 m2924(EnumC1265 enumC1265, EnumC1265 enumC12652) {
            return enumC12652 == null ? enumC1265 != null ? enumC1265 : EnumC1265.NONE : enumC12652.ordinal() != 1 ? enumC12652 : enumC1265 != null ? enumC1265 : EnumC1265.AUTO;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final InterfaceC1327 m2925(AbstractC2245 abstractC2245) {
            if (abstractC2245 == null) {
                C6635.m9824("$this$viewModelScope");
                throw null;
            }
            InterfaceC1327 interfaceC1327 = (InterfaceC1327) abstractC2245.m4303("androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY");
            if (interfaceC1327 != null) {
                return interfaceC1327;
            }
            Object objM4304 = abstractC2245.m4304("androidx.lifecycle.ViewModelCoroutineScope.JOB_KEY", new C2204(C4303.m7047((InterfaceC1363) null, 1).plus(C1340.m2665().mo2725())));
            C6635.m9823(objM4304, "setTagIfAbsent(JOB_KEY,\n…patchers.Main.immediate))");
            return (InterfaceC1327) objM4304;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static C1852 m2926(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme, String str, int i, int i2) {
            C1852 c1852M3658;
            if (m2963(xmlPullParser, str)) {
                TypedValue typedValue = new TypedValue();
                typedArray.getValue(i, typedValue);
                int i3 = typedValue.type;
                if (i3 >= 28 && i3 <= 31) {
                    return new C1852(null, null, typedValue.data);
                }
                try {
                    c1852M3658 = C1852.m3658(typedArray.getResources(), typedArray.getResourceId(i, 0), theme);
                } catch (Exception e) {
                    Log.e("ComplexColorCompat", "Failed to inflate ComplexColor.", e);
                    c1852M3658 = null;
                }
                if (c1852M3658 != null) {
                    return c1852M3658;
                }
            }
            return new C1852(null, null, i2);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static InterfaceC1853 m2927(XmlPullParser xmlPullParser, Resources resources) throws XmlPullParserException, IOException {
            int next;
            do {
                next = xmlPullParser.next();
                if (next == 2) {
                    break;
                }
            } while (next != 1);
            if (next != 2) {
                throw new XmlPullParserException("No start tag found");
            }
            xmlPullParser.require(2, null, "font-family");
            if (!xmlPullParser.getName().equals("font-family")) {
                m2953(xmlPullParser);
                return null;
            }
            TypedArray typedArrayObtainAttributes = resources.obtainAttributes(Xml.asAttributeSet(xmlPullParser), C1794.FontFamily);
            String string = typedArrayObtainAttributes.getString(C1794.FontFamily_fontProviderAuthority);
            String string2 = typedArrayObtainAttributes.getString(C1794.FontFamily_fontProviderPackage);
            String string3 = typedArrayObtainAttributes.getString(C1794.FontFamily_fontProviderQuery);
            int resourceId = typedArrayObtainAttributes.getResourceId(C1794.FontFamily_fontProviderCerts, 0);
            int integer = typedArrayObtainAttributes.getInteger(C1794.FontFamily_fontProviderFetchStrategy, 1);
            int integer2 = typedArrayObtainAttributes.getInteger(C1794.FontFamily_fontProviderFetchTimeout, 500);
            typedArrayObtainAttributes.recycle();
            if (string != null && string2 != null && string3 != null) {
                while (xmlPullParser.next() != 3) {
                    m2953(xmlPullParser);
                }
                return new C1856(new C1883(string, string2, string3, m2920(resources, resourceId)), integer, integer2);
            }
            ArrayList arrayList = new ArrayList();
            while (xmlPullParser.next() != 3) {
                if (xmlPullParser.getEventType() == 2) {
                    if (xmlPullParser.getName().equals("font")) {
                        TypedArray typedArrayObtainAttributes2 = resources.obtainAttributes(Xml.asAttributeSet(xmlPullParser), C1794.FontFamilyFont);
                        int i = typedArrayObtainAttributes2.getInt(typedArrayObtainAttributes2.hasValue(C1794.FontFamilyFont_fontWeight) ? C1794.FontFamilyFont_fontWeight : C1794.FontFamilyFont_android_fontWeight, 400);
                        boolean z = 1 == typedArrayObtainAttributes2.getInt(typedArrayObtainAttributes2.hasValue(C1794.FontFamilyFont_fontStyle) ? C1794.FontFamilyFont_fontStyle : C1794.FontFamilyFont_android_fontStyle, 0);
                        int i2 = typedArrayObtainAttributes2.hasValue(C1794.FontFamilyFont_ttcIndex) ? C1794.FontFamilyFont_ttcIndex : C1794.FontFamilyFont_android_ttcIndex;
                        String string4 = typedArrayObtainAttributes2.getString(typedArrayObtainAttributes2.hasValue(C1794.FontFamilyFont_fontVariationSettings) ? C1794.FontFamilyFont_fontVariationSettings : C1794.FontFamilyFont_android_fontVariationSettings);
                        int i3 = typedArrayObtainAttributes2.getInt(i2, 0);
                        int i4 = typedArrayObtainAttributes2.hasValue(C1794.FontFamilyFont_font) ? C1794.FontFamilyFont_font : C1794.FontFamilyFont_android_font;
                        int resourceId2 = typedArrayObtainAttributes2.getResourceId(i4, 0);
                        String string5 = typedArrayObtainAttributes2.getString(i4);
                        typedArrayObtainAttributes2.recycle();
                        while (xmlPullParser.next() != 3) {
                            m2953(xmlPullParser);
                        }
                        arrayList.add(new C1855(string5, i, z, string4, i3, resourceId2));
                    } else {
                        m2953(xmlPullParser);
                    }
                }
            }
            if (arrayList.isEmpty()) {
                return null;
            }
            return new C1854((C1855[]) arrayList.toArray(new C1855[arrayList.size()]));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static C1898.C1899 m2928(TextView textView) {
            int breakStrategy;
            int hyphenationFrequency;
            TextDirectionHeuristic textDirectionHeuristic;
            if (Build.VERSION.SDK_INT >= 28) {
                return new C1898.C1899(textView.getTextMetricsParams());
            }
            TextPaint textPaint = new TextPaint(textView.getPaint());
            if (Build.VERSION.SDK_INT >= 23) {
                breakStrategy = 1;
                hyphenationFrequency = 1;
            } else {
                breakStrategy = 0;
                hyphenationFrequency = 0;
            }
            TextDirectionHeuristic textDirectionHeuristic2 = TextDirectionHeuristics.FIRSTSTRONG_LTR;
            if (Build.VERSION.SDK_INT >= 23) {
                breakStrategy = textView.getBreakStrategy();
                hyphenationFrequency = textView.getHyphenationFrequency();
            }
            if (textView.getTransformationMethod() instanceof PasswordTransformationMethod) {
                textDirectionHeuristic = TextDirectionHeuristics.LTR;
            } else if (Build.VERSION.SDK_INT < 28 || (textView.getInputType() & 15) != 3) {
                boolean z = textView.getLayoutDirection() == 1;
                switch (textView.getTextDirection()) {
                    case 2:
                        textDirectionHeuristic = TextDirectionHeuristics.ANYRTL_LTR;
                        break;
                    case 3:
                        textDirectionHeuristic = TextDirectionHeuristics.LTR;
                        break;
                    case 4:
                        textDirectionHeuristic = TextDirectionHeuristics.RTL;
                        break;
                    case 5:
                        textDirectionHeuristic = TextDirectionHeuristics.LOCALE;
                        break;
                    case 6:
                        textDirectionHeuristic = TextDirectionHeuristics.FIRSTSTRONG_LTR;
                        break;
                    case 7:
                        textDirectionHeuristic = TextDirectionHeuristics.FIRSTSTRONG_RTL;
                        break;
                    default:
                        textDirectionHeuristic = !z ? TextDirectionHeuristics.FIRSTSTRONG_LTR : TextDirectionHeuristics.FIRSTSTRONG_RTL;
                        break;
                }
            } else {
                byte directionality = Character.getDirectionality(DecimalFormatSymbols.getInstance(textView.getTextLocale()).getDigitStrings()[0].codePointAt(0));
                textDirectionHeuristic = (directionality == 1 || directionality == 2) ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR;
            }
            return new C1898.C1899(textPaint, textDirectionHeuristic, breakStrategy, hyphenationFrequency);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static C2005 m2929(Context context, Fragment fragment, boolean z) {
            Fragment.C0088 c0088 = fragment.mAnimationInfo;
            boolean z2 = false;
            int i = c0088 == null ? 0 : c0088.f643;
            int nextAnim = fragment.getNextAnim();
            fragment.setNextAnim(0);
            ViewGroup viewGroup = fragment.mContainer;
            if (viewGroup != null && viewGroup.getTag(C1986.visible_removing_fragment_view_tag) != null) {
                fragment.mContainer.setTag(C1986.visible_removing_fragment_view_tag, null);
            }
            ViewGroup viewGroup2 = fragment.mContainer;
            if (viewGroup2 != null && viewGroup2.getLayoutTransition() != null) {
                return null;
            }
            if (nextAnim != 0) {
                boolean zEquals = "anim".equals(context.getResources().getResourceTypeName(nextAnim));
                if (zEquals) {
                    try {
                        Animation animationLoadAnimation = AnimationUtils.loadAnimation(context, nextAnim);
                        if (animationLoadAnimation != null) {
                            return new C2005(animationLoadAnimation);
                        }
                        z2 = true;
                    } catch (Resources.NotFoundException e) {
                        throw e;
                    } catch (RuntimeException unused) {
                    }
                }
                if (!z2) {
                    try {
                        Animator animatorLoadAnimator = AnimatorInflater.loadAnimator(context, nextAnim);
                        if (animatorLoadAnimator != null) {
                            return new C2005(animatorLoadAnimator);
                        }
                    } catch (RuntimeException e2) {
                        if (zEquals) {
                            throw e2;
                        }
                        Animation animationLoadAnimation2 = AnimationUtils.loadAnimation(context, nextAnim);
                        if (animationLoadAnimation2 != null) {
                            return new C2005(animationLoadAnimation2);
                        }
                    }
                }
            }
            if (i == 0) {
                return null;
            }
            int i2 = i != 4097 ? i != 4099 ? i != 8194 ? -1 : z ? C1985.fragment_close_enter : C1985.fragment_close_exit : z ? C1985.fragment_fade_enter : C1985.fragment_fade_exit : z ? C1985.fragment_open_enter : C1985.fragment_open_exit;
            if (i2 < 0) {
                return null;
            }
            return new C2005(AnimationUtils.loadAnimation(context, i2));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static <T extends AbstractC2401> AbstractC2401.C2402<T> m2930(Context context, Class<T> cls, String str) {
            if (str == null || str.trim().length() == 0) {
                throw new IllegalArgumentException("Cannot build a database with null or empty name. If you are trying to create an in memory database, use Room.inMemoryDatabaseBuilder");
            }
            return new AbstractC2401.C2402<>(context, cls, str);
        }

        /* JADX WARN: Removed duplicated region for block: B:48:0x0061 A[EXC_TOP_SPLITTER, SYNTHETIC] */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static C2549 m2931(byte[] bArr) throws Throwable {
            ObjectInputStream objectInputStream;
            Throwable th;
            IOException e;
            C2549 c2549 = new C2549();
            if (bArr == null) {
                return c2549;
            }
            ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bArr);
            try {
                try {
                    objectInputStream = new ObjectInputStream(byteArrayInputStream);
                    try {
                        try {
                            for (int i = objectInputStream.readInt(); i > 0; i--) {
                                c2549.f8041.add(new C2549.C2550(Uri.parse(objectInputStream.readUTF()), objectInputStream.readBoolean()));
                            }
                            try {
                                objectInputStream.close();
                            } catch (IOException e2) {
                                e2.printStackTrace();
                            }
                            byteArrayInputStream.close();
                        } catch (IOException e3) {
                            e = e3;
                            e.printStackTrace();
                            if (objectInputStream != null) {
                                try {
                                    objectInputStream.close();
                                } catch (IOException e4) {
                                    e4.printStackTrace();
                                }
                            }
                            byteArrayInputStream.close();
                        }
                    } catch (Throwable th2) {
                        th = th2;
                        if (objectInputStream != null) {
                            try {
                                objectInputStream.close();
                            } catch (IOException e5) {
                                e5.printStackTrace();
                            }
                        }
                        try {
                            byteArrayInputStream.close();
                            throw th;
                        } catch (IOException e6) {
                            e6.printStackTrace();
                            throw th;
                        }
                    }
                } catch (IOException e7) {
                    e7.printStackTrace();
                }
            } catch (IOException e8) {
                objectInputStream = null;
                e = e8;
            } catch (Throwable th3) {
                objectInputStream = null;
                th = th3;
                if (objectInputStream != null) {
                }
                byteArrayInputStream.close();
                throw th;
            }
            return c2549;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final <T> InterfaceC6652<Object, T> m2932(SharedPreferences sharedPreferences, T t) {
            if (sharedPreferences == null) {
                C6635.m9824("prefs");
                throw null;
            }
            if (t instanceof Boolean) {
                return new ၼ(sharedPreferences, t, ၯ.އ, ၰ.އ);
            }
            if (t instanceof Float) {
                return new ၼ(sharedPreferences, t, ၵ.އ, ၶ.އ);
            }
            if (t instanceof Integer) {
                return new ၼ(sharedPreferences, t, ၷ.އ, ၸ.އ);
            }
            if (t instanceof Long) {
                return new ၼ(sharedPreferences, t, ၹ.އ, ၺ.އ);
            }
            if (t instanceof String) {
                return new ၼ(sharedPreferences, t, ၻ.އ, ၮ.އ);
            }
            throw new IllegalArgumentException();
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final InterfaceC6684<View> m2933(ViewGroup viewGroup) {
            if (viewGroup != null) {
                return new C1929(viewGroup);
            }
            C6635.m9824("$this$children");
            throw null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2934(int i, InterfaceC6614<? super Integer, C6549> interfaceC6614) {
            if (interfaceC6614 != null) {
                interfaceC6614.mo1606(Integer.valueOf(i));
            } else {
                C6635.m9824("setter");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2935(long j, C1267 c1267, C1262 c1262) {
            if (ރ.ߠ == null) {
                throw null;
            }
            long jLongValue = Long.valueOf(j).longValue();
            ރ r0 = ރ.ߠ;
            if (r0 == null) {
                throw null;
            }
            ރ.ޓ.m9836(r0, ރ.ށ[17], Long.valueOf(jLongValue));
            C6549 c6549 = C6549.f19328;
            if (ރ.ߠ == null) {
                throw null;
            }
            Integer num = 0;
            int iIntValue = num.intValue();
            ރ r6 = ރ.ߠ;
            if (r6 == null) {
                throw null;
            }
            ރ.ޘ.m9836(r6, ރ.ށ[22], Integer.valueOf(iIntValue));
            C6549 c65492 = C6549.f19328;
            if (c1267 != null) {
                ރ r5 = ރ.ߠ;
                int i = c1267.f4384.f4393;
                if (r5 == null) {
                    throw null;
                }
                int iIntValue2 = Integer.valueOf(i).intValue();
                ރ r62 = ރ.ߠ;
                if (r62 == null) {
                    throw null;
                }
                ރ.ޔ.m9836(r62, ރ.ށ[18], Integer.valueOf(iIntValue2));
                C6549 c65493 = C6549.f19328;
                ރ r52 = ރ.ߠ;
                long j2 = c1267.f4385;
                if (r52 == null) {
                    throw null;
                }
                long jLongValue2 = Long.valueOf(j2).longValue();
                ރ r02 = ރ.ߠ;
                if (r02 == null) {
                    throw null;
                }
                ރ.ޕ.m9836(r02, ރ.ށ[19], Long.valueOf(jLongValue2));
                C6549 c65494 = C6549.f19328;
                ރ r53 = ރ.ߠ;
                String str = c1267.f4386;
                if (r53 == null) {
                    throw null;
                }
                if (str == null) {
                    C6635.m9824("value");
                    throw null;
                }
                if (str == null) {
                    C6635.m9824("it");
                    throw null;
                }
                ރ r54 = ރ.ߠ;
                if (r54 == null) {
                    throw null;
                }
                ރ.ޖ.m9836(r54, ރ.ށ[20], str);
                C6549 c65495 = C6549.f19328;
            }
            C1262.f4371.m2556(c1262);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static /* synthetic */ void m2936(long j, C1267 c1267, C1262 c1262, int i) {
            if ((i & 2) != 0) {
                c1267 = null;
            }
            if ((i & 4) != 0) {
                c1262 = null;
            }
            m2935(j, c1267, c1262);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2937(long j, InterfaceC6614<? super Long, C6549> interfaceC6614) {
            if (interfaceC6614 != null) {
                interfaceC6614.mo1606(Long.valueOf(j));
            } else {
                C6635.m9824("setter");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2938(Context context, long j) {
            if (context == null) {
                C6635.m9824("$this$startReminderPopupActivity");
                throw null;
            }
            Intent intent = new Intent("ar.tvplayer.tv.action.REMINDER");
            intent.addFlags(268435456);
            intent.addFlags(8388608);
            intent.addFlags(65536);
            intent.addFlags(1073741824);
            intent.putExtra("ar.tvplayer.core.ReminderId", j);
            context.startActivity(intent);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2939(Drawable drawable, int i) {
            drawable.setTint(i);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2940(Drawable drawable, ColorStateList colorStateList) {
            drawable.setTintList(colorStateList);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2941(Drawable drawable, PorterDuff.Mode mode) {
            drawable.setTintMode(mode);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2942(View view, CharSequence charSequence) {
            if (Build.VERSION.SDK_INT >= 26) {
                view.setTooltipText(charSequence);
                return;
            }
            ViewOnLongClickListenerC1693 viewOnLongClickListenerC1693 = ViewOnLongClickListenerC1693.f5520;
            if (viewOnLongClickListenerC1693 != null && viewOnLongClickListenerC1693.f5522 == view) {
                ViewOnLongClickListenerC1693.m3311((ViewOnLongClickListenerC1693) null);
            }
            if (!TextUtils.isEmpty(charSequence)) {
                new ViewOnLongClickListenerC1693(view, charSequence);
                return;
            }
            ViewOnLongClickListenerC1693 viewOnLongClickListenerC16932 = ViewOnLongClickListenerC1693.f5521;
            if (viewOnLongClickListenerC16932 != null && viewOnLongClickListenerC16932.f5522 == view) {
                viewOnLongClickListenerC16932.m3314();
            }
            view.setOnLongClickListener(null);
            view.setLongClickable(false);
            view.setOnHoverListener(null);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2943(View view, boolean z) {
            if (view != null) {
                view.setVisibility(z ? 8 : 0);
            } else {
                C6635.m9824("$this$isGone");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2944(PopupWindow popupWindow, int i) {
            if (Build.VERSION.SDK_INT >= 23) {
                popupWindow.setWindowLayoutType(i);
                return;
            }
            if (!f4760) {
                try {
                    Method declaredMethod = PopupWindow.class.getDeclaredMethod("setWindowLayoutType", Integer.TYPE);
                    f4759 = declaredMethod;
                    declaredMethod.setAccessible(true);
                } catch (Exception unused) {
                }
                f4760 = true;
            }
            Method method = f4759;
            if (method != null) {
                try {
                    method.invoke(popupWindow, Integer.valueOf(i));
                } catch (Exception unused2) {
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2945(PopupWindow popupWindow, boolean z) {
            if (Build.VERSION.SDK_INT >= 23) {
                popupWindow.setOverlapAnchor(z);
                return;
            }
            if (!f4762) {
                try {
                    Field declaredField = PopupWindow.class.getDeclaredField("mOverlapAnchor");
                    f4761 = declaredField;
                    declaredField.setAccessible(true);
                } catch (NoSuchFieldException e) {
                    Log.i("PopupWindowCompatApi21", "Could not fetch mOverlapAnchor field from PopupWindow", e);
                }
                f4762 = true;
            }
            Field field = f4761;
            if (field != null) {
                try {
                    field.set(popupWindow, Boolean.valueOf(z));
                } catch (IllegalAccessException e2) {
                    Log.i("PopupWindowCompatApi21", "Could not set overlap anchor field in PopupWindow", e2);
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2946(TextView textView, int i) {
            m2869(i);
            if (Build.VERSION.SDK_INT >= 28) {
                textView.setFirstBaselineToTopHeight(i);
                return;
            }
            Paint.FontMetricsInt fontMetricsInt = textView.getPaint().getFontMetricsInt();
            int i2 = textView.getIncludeFontPadding() ? fontMetricsInt.top : fontMetricsInt.ascent;
            if (i > Math.abs(i2)) {
                textView.setPadding(textView.getPaddingLeft(), i + i2, textView.getPaddingRight(), textView.getPaddingBottom());
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2947(TextView textView, C1898 c1898) {
            if (Build.VERSION.SDK_INT >= 29) {
                if (c1898 == null) {
                    throw null;
                }
                textView.setText((CharSequence) null);
            } else {
                C1898.C1899 c1899M2928 = m2928(textView);
                if (c1898 == null) {
                    throw null;
                }
                if (!c1899M2928.m3714(null)) {
                    throw new IllegalArgumentException("Given text can not be applied to TextView.");
                }
                textView.setText(c1898);
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2948(Fragment fragment) {
            FadeAndShortSlide fadeAndShortSlide = new FadeAndShortSlide(8388611);
            FadeAndShortSlide fadeAndShortSlide2 = new FadeAndShortSlide(8388613);
            fragment.ensureAnimationInfo().f644 = fadeAndShortSlide2;
            fragment.ensureAnimationInfo().f646 = fadeAndShortSlide;
            fragment.ensureAnimationInfo().f647 = fadeAndShortSlide;
            fragment.ensureAnimationInfo().f645 = fadeAndShortSlide2;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2949(AutoCloseable autoCloseable) {
            if (autoCloseable != null) {
                try {
                    autoCloseable.close();
                } catch (RuntimeException e) {
                    throw e;
                } catch (Exception unused) {
                }
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2950(Object obj) {
            if (!f4748) {
                try {
                    f4747 = Class.forName("android.content.res.ThemedResourceCache");
                } catch (ClassNotFoundException e) {
                    Log.e("ResourcesFlusher", "Could not find ThemedResourceCache class", e);
                }
                f4748 = true;
            }
            Class<?> cls = f4747;
            if (cls == null) {
                return;
            }
            if (!f4750) {
                try {
                    Field declaredField = cls.getDeclaredField("mUnthemedEntries");
                    f4749 = declaredField;
                    declaredField.setAccessible(true);
                } catch (NoSuchFieldException e2) {
                    Log.e("ResourcesFlusher", "Could not retrieve ThemedResourceCache#mUnthemedEntries field", e2);
                }
                f4750 = true;
            }
            Field field = f4749;
            if (field == null) {
                return;
            }
            LongSparseArray longSparseArray = null;
            try {
                longSparseArray = (LongSparseArray) field.get(obj);
            } catch (IllegalAccessException e3) {
                Log.e("ResourcesFlusher", "Could not retrieve value from ThemedResourceCache#mUnthemedEntries", e3);
            }
            if (longSparseArray != null) {
                longSparseArray.clear();
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2951(Object obj, Object obj2) {
            ((TransitionSet) obj).addTransition((Transition) obj2);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2952(Object obj, StringBuilder sb) {
            int iLastIndexOf;
            if (obj == null) {
                sb.append("null");
                return;
            }
            String simpleName = obj.getClass().getSimpleName();
            if (simpleName.length() <= 0 && (iLastIndexOf = (simpleName = obj.getClass().getName()).lastIndexOf(46)) > 0) {
                simpleName = simpleName.substring(iLastIndexOf + 1);
            }
            sb.append(simpleName);
            sb.append('{');
            sb.append(Integer.toHexString(System.identityHashCode(obj)));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static void m2953(XmlPullParser xmlPullParser) throws XmlPullParserException, IOException {
            int i = 1;
            while (i > 0) {
                int next = xmlPullParser.next();
                if (next == 2) {
                    i++;
                } else if (next == 3) {
                    i--;
                }
            }
        }

        /* JADX WARN: Removed duplicated region for block: B:177:0x02d0  */
        /* JADX WARN: Removed duplicated region for block: B:197:0x0324  */
        /* JADX WARN: Removed duplicated region for block: B:203:0x034e  */
        /* JADX WARN: Removed duplicated region for block: B:287:0x0519  */
        /* JADX WARN: Removed duplicated region for block: B:401:0x0737  */
        /* JADX WARN: Removed duplicated region for block: B:402:0x073a  */
        /* JADX WARN: Removed duplicated region for block: B:405:0x0740  */
        /* JADX WARN: Removed duplicated region for block: B:406:0x0743  */
        /* JADX WARN: Removed duplicated region for block: B:408:0x0747  */
        /* JADX WARN: Removed duplicated region for block: B:412:0x0756  */
        /* JADX WARN: Removed duplicated region for block: B:414:0x0759  */
        /* JADX WARN: Removed duplicated region for block: B:416:0x0766 A[ADDED_TO_REGION] */
        /* JADX WARN: Removed duplicated region for block: B:424:0x0785 A[ADDED_TO_REGION, REMOVE, SYNTHETIC] */
        /* JADX WARN: Removed duplicated region for block: B:46:0x00ec  */
        /* JADX WARN: Removed duplicated region for block: B:48:0x00ef  */
        /* JADX WARN: Removed duplicated region for block: B:58:0x010f  */
        /* JADX WARN: Removed duplicated region for block: B:61:0x0115  */
        /* JADX WARN: Removed duplicated region for block: B:75:0x014a  */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static void m2954(C1749 c1749, C1735 c1735, int i) {
            int i2;
            C1744[] c1744Arr;
            int i3;
            float f;
            int i4;
            boolean z;
            boolean z2;
            boolean z3;
            boolean z4;
            boolean z5;
            C1747 c1747;
            C1747 c17472;
            int i5;
            C1735 c17352;
            C1735 c17353;
            C1747 c17473;
            int i6;
            C1747 c17474;
            C1747 c17475;
            C1745 c1745;
            C1741 c1741;
            C1741 c17412;
            C1745 c17452;
            C1741 c17413;
            C1741 c17414;
            C1747 c17476;
            C1747 c17477;
            C1741 c17415;
            C1741 c17416;
            int size;
            C1744 c1744;
            ArrayList<C1747> arrayList;
            int i7;
            C1747 c17478;
            C1744[] c1744Arr2;
            C1747 c17479;
            C1747 c174710;
            C1747 c174711;
            int i8;
            C1747 c174712;
            boolean z6;
            C1747 c174713;
            C1749 c17492 = c1749;
            C1735 c17354 = c1735;
            int i9 = 2;
            if (i == 0) {
                i2 = c17492.f5801;
                c1744Arr = c17492.f5804;
                i3 = 0;
            } else {
                i2 = c17492.f5802;
                c1744Arr = c17492.f5803;
                i3 = 2;
            }
            int i10 = 0;
            while (i10 < i2) {
                C1744 c17442 = c1744Arr[i10];
                int i11 = 8;
                int i12 = 1;
                if (!c17442.f5716) {
                    int i13 = c17442.f5711 * 2;
                    C1747 c174714 = c17442.f5697;
                    C1747 c174715 = c174714;
                    boolean z7 = false;
                    while (!z7) {
                        c17442.f5705 += i12;
                        C1747[] c1747Arr = c174714.f5788;
                        int i14 = c17442.f5711;
                        c1747Arr[i14] = null;
                        c174714.f5787[i14] = null;
                        if (c174714.f5781 != i11) {
                            c17442.f5708 += i12;
                            if (c174714.m3454(i14) != C1747.EnumC1748.MATCH_CONSTRAINT) {
                                int i15 = c17442.f5709;
                                int i16 = c17442.f5711;
                                c17442.f5709 = i15 + (i16 == 0 ? c174714.m3473() : i16 == i12 ? c174714.m3464() : 0);
                            }
                            int iM3448 = c174714.f5765[i13].m3448() + c17442.f5709;
                            c17442.f5709 = iM3448;
                            int i17 = i13 + 1;
                            c17442.f5709 = c174714.f5765[i17].m3448() + iM3448;
                            int iM34482 = c174714.f5765[i13].m3448() + c17442.f5710;
                            c17442.f5710 = iM34482;
                            c17442.f5710 = c174714.f5765[i17].m3448() + iM34482;
                            if (c17442.f5698 == null) {
                                c17442.f5698 = c174714;
                            }
                            c17442.f5700 = c174714;
                            C1747.EnumC1748[] enumC1748Arr = c174714.f5767;
                            int i18 = c17442.f5711;
                            if (enumC1748Arr[i18] == C1747.EnumC1748.MATCH_CONSTRAINT) {
                                int[] iArr = c174714.f5745;
                                if (iArr[i18] == 0 || iArr[i18] == 3 || iArr[i18] == i9) {
                                    c17442.f5706++;
                                    float[] fArr = c174714.f5786;
                                    int i19 = c17442.f5711;
                                    float f2 = fArr[i19];
                                    if (f2 > 0.0f) {
                                        c17442.f5707 += fArr[i19];
                                    }
                                    int i20 = c17442.f5711;
                                    if (c174714.f5781 == 8 || c174714.f5767[i20] != C1747.EnumC1748.MATCH_CONSTRAINT) {
                                        z6 = false;
                                        if (z6) {
                                            if (f2 < 0.0f) {
                                                c17442.f5713 = true;
                                            } else {
                                                c17442.f5714 = true;
                                            }
                                            if (c17442.f5704 == null) {
                                                c17442.f5704 = new ArrayList<>();
                                            }
                                            c17442.f5704.add(c174714);
                                        }
                                        if (c17442.f5702 == null) {
                                            c17442.f5702 = c174714;
                                        }
                                        c174713 = c17442.f5703;
                                        if (c174713 != null) {
                                            c174713.f5787[c17442.f5711] = c174714;
                                        }
                                        c17442.f5703 = c174714;
                                    } else {
                                        int[] iArr2 = c174714.f5745;
                                        if (iArr2[i20] == 0 || iArr2[i20] == 3) {
                                            z6 = true;
                                        }
                                        if (z6) {
                                        }
                                        if (c17442.f5702 == null) {
                                        }
                                        c174713 = c17442.f5703;
                                        if (c174713 != null) {
                                        }
                                        c17442.f5703 = c174714;
                                    }
                                }
                                if (c17442.f5711 == 0) {
                                    int i21 = c174714.f5743;
                                } else {
                                    int i22 = c174714.f5744;
                                }
                            }
                        }
                        if (c174715 != c174714) {
                            c174715.f5788[c17442.f5711] = c174714;
                        }
                        C1745 c17453 = c174714.f5765[i13 + 1].f5719;
                        if (c17453 != null) {
                            c174712 = c17453.f5717;
                            C1745[] c1745Arr = c174712.f5765;
                            if (c1745Arr[i13].f5719 == null || c1745Arr[i13].f5719.f5717 != c174714) {
                                c174712 = null;
                            }
                        }
                        if (c174712 == null) {
                            c174712 = c174714;
                            z7 = true;
                        }
                        c174715 = c174714;
                        i12 = 1;
                        i11 = 8;
                        i9 = 2;
                        c174714 = c174712;
                    }
                    C1747 c174716 = c17442.f5698;
                    if (c174716 != null) {
                        c17442.f5709 -= c174716.f5765[i13].m3448();
                    }
                    C1747 c174717 = c17442.f5700;
                    if (c174717 != null) {
                        c17442.f5709 -= c174717.f5765[i13 + 1].m3448();
                    }
                    c17442.f5699 = c174714;
                    if (c17442.f5711 == 0 && c17442.f5712) {
                        c17442.f5701 = c174714;
                    } else {
                        c17442.f5701 = c17442.f5697;
                    }
                    c17442.f5715 = c17442.f5714 && c17442.f5713;
                }
                c17442.f5716 = true;
                C1747 c174718 = c17442.f5697;
                C1747 c174719 = c17442.f5699;
                C1747 c174720 = c17442.f5698;
                C1747 c174721 = c17442.f5700;
                C1747 c174722 = c17442.f5701;
                float f3 = c17442.f5707;
                boolean z8 = c17492.f5767[i] == C1747.EnumC1748.WRAP_CONTENT;
                if (i == 0) {
                    z = c174722.f5784 == 0;
                    f = f3;
                    boolean z9 = c174722.f5784 == 1;
                    if (c174722.f5784 == 2) {
                        z2 = z9;
                        i4 = i10;
                        z3 = z2;
                        z4 = z;
                        z5 = true;
                    } else {
                        z2 = z9;
                        i4 = i10;
                        z3 = z2;
                        z4 = z;
                        z5 = false;
                    }
                } else {
                    f = f3;
                    i4 = i10;
                    z = c174722.f5785 == 0;
                    z2 = c174722.f5785 == 1;
                    if (c174722.f5785 == 2) {
                        z3 = z2;
                        z4 = z;
                        z5 = true;
                    } else {
                        z3 = z2;
                        z4 = z;
                        z5 = false;
                    }
                }
                C1747 c174723 = c174718;
                boolean z10 = false;
                while (!z10) {
                    C1745 c17454 = c174723.f5765[i3];
                    int i23 = z5 ? 1 : 4;
                    int iM34483 = c17454.m3448();
                    boolean z11 = z10;
                    int i24 = i2;
                    boolean z12 = c174723.f5767[i] == C1747.EnumC1748.MATCH_CONSTRAINT && c174723.f5745[i] == 0;
                    C1745 c17455 = c17454.f5719;
                    if (c17455 != null && c174723 != c174718) {
                        iM34483 = c17455.m3448() + iM34483;
                    }
                    int i25 = iM34483;
                    if (!z5 || c174723 == c174718 || c174723 == c174720) {
                        c1744Arr2 = c1744Arr;
                    } else {
                        c1744Arr2 = c1744Arr;
                        i23 = 5;
                    }
                    C1745 c17456 = c17454.f5719;
                    if (c17456 != null) {
                        if (c174723 == c174720) {
                            c17479 = c174722;
                            c174710 = c174718;
                            c17354.m3432(c17454.f5722, c17456.f5722, i25, 6);
                        } else {
                            c17479 = c174722;
                            c174710 = c174718;
                            c17354.m3432(c17454.f5722, c17456.f5722, i25, 7);
                        }
                        c17354.m3418(c17454.f5722, c17454.f5719.f5722, i25, (z12 && !z5 && c17454.f5719.f5717 == c17492) ? 5 : i23);
                    } else {
                        c17479 = c174722;
                        c174710 = c174718;
                    }
                    if (z8) {
                        if (c174723.f5781 == 8 || c174723.f5767[i] != C1747.EnumC1748.MATCH_CONSTRAINT) {
                            i8 = 0;
                        } else {
                            C1745[] c1745Arr2 = c174723.f5765;
                            i8 = 0;
                            c17354.m3432(c1745Arr2[i3 + 1].f5722, c1745Arr2[i3].f5722, 0, 5);
                        }
                        c17354.m3432(c174723.f5765[i3].f5722, c17492.f5765[i3].f5722, i8, 7);
                    }
                    C1745 c17457 = c174723.f5765[i3 + 1].f5719;
                    if (c17457 != null) {
                        c174711 = c17457.f5717;
                        C1745[] c1745Arr3 = c174711.f5765;
                        if (c1745Arr3[i3].f5719 == null || c1745Arr3[i3].f5719.f5717 != c174723) {
                            c174711 = null;
                        }
                    }
                    if (c174711 != null) {
                        c174723 = c174711;
                        z10 = z11;
                    } else {
                        z10 = true;
                    }
                    c1744Arr = c1744Arr2;
                    i2 = i24;
                    c174722 = c17479;
                    c174718 = c174710;
                }
                C1747 c174724 = c174722;
                C1747 c174725 = c174718;
                int i26 = i2;
                C1744[] c1744Arr3 = c1744Arr;
                if (c174721 != null) {
                    int i27 = i3 + 1;
                    if (c174719.f5765[i27].f5719 != null) {
                        C1745 c17458 = c174721.f5765[i27];
                        if (!(c174721.f5767[i] == C1747.EnumC1748.MATCH_CONSTRAINT && c174721.f5745[i] == 0) || z5) {
                            if (z5) {
                                C1745 c17459 = c17458.f5719;
                                if (c17459.f5717 == c17492) {
                                    c17354.m3418(c17458.f5722, c17459.f5722, -c17458.m3448(), 4);
                                }
                            }
                            c17354.m3434(c17458.f5722, c174719.f5765[i27].f5719.f5722, -c17458.m3448(), 6);
                        } else {
                            C1745 c174510 = c17458.f5719;
                            if (c174510.f5717 == c17492) {
                                c17354.m3418(c17458.f5722, c174510.f5722, -c17458.m3448(), 5);
                            }
                            c17354.m3434(c17458.f5722, c174719.f5765[i27].f5719.f5722, -c17458.m3448(), 6);
                        }
                    }
                }
                if (z8) {
                    int i28 = i3 + 1;
                    C1741 c17417 = c17492.f5765[i28].f5722;
                    C1745[] c1745Arr4 = c174719.f5765;
                    c17354.m3432(c17417, c1745Arr4[i28].f5722, c1745Arr4[i28].m3448(), 7);
                }
                ArrayList<C1747> arrayList2 = c17442.f5704;
                if (arrayList2 != null && (size = arrayList2.size()) > 1) {
                    if (c17442.f5713 && !c17442.f5715) {
                        f = c17442.f5706;
                    }
                    C1747 c174726 = null;
                    float f4 = 0.0f;
                    int i29 = 0;
                    while (i29 < size) {
                        C1747 c174727 = arrayList2.get(i29);
                        float f5 = c174727.f5786[i];
                        if (f5 < 0.0f) {
                            if (c17442.f5715) {
                                C1745[] c1745Arr5 = c174727.f5765;
                                c17354.m3418(c1745Arr5[i3 + 1].f5722, c1745Arr5[i3].f5722, 0, 4);
                                c1744 = c17442;
                                arrayList = arrayList2;
                                i7 = size;
                                i29++;
                                c17442 = c1744;
                                size = i7;
                                arrayList2 = arrayList;
                            } else {
                                f5 = 1.0f;
                            }
                        }
                        if (f5 == 0.0f) {
                            C1745[] c1745Arr6 = c174727.f5765;
                            c17354.m3418(c1745Arr6[i3 + 1].f5722, c1745Arr6[i3].f5722, 0, 7);
                            c1744 = c17442;
                            arrayList = arrayList2;
                            i7 = size;
                            i29++;
                            c17442 = c1744;
                            size = i7;
                            arrayList2 = arrayList;
                        } else {
                            if (c174726 != null) {
                                C1745[] c1745Arr7 = c174726.f5765;
                                C1741 c17418 = c1745Arr7[i3].f5722;
                                int i30 = i3 + 1;
                                C1741 c17419 = c1745Arr7[i30].f5722;
                                C1745[] c1745Arr8 = c174727.f5765;
                                arrayList = arrayList2;
                                C1741 c174110 = c1745Arr8[i3].f5722;
                                C1741 c174111 = c1745Arr8[i30].f5722;
                                i7 = size;
                                C1733 c1733M3430 = c1735.m3430();
                                c17478 = c174727;
                                c1733M3430.f5641 = 0.0f;
                                c1744 = c17442;
                                if (f == 0.0f || f4 == f5) {
                                    c1733M3430.f5643.m3405(c17418, 1.0f);
                                    c1733M3430.f5643.m3405(c17419, -1.0f);
                                    c1733M3430.f5643.m3405(c174111, 1.0f);
                                    c1733M3430.f5643.m3405(c174110, -1.0f);
                                } else if (f4 == 0.0f) {
                                    c1733M3430.f5643.m3405(c17418, 1.0f);
                                    c1733M3430.f5643.m3405(c17419, -1.0f);
                                } else if (f5 == 0.0f) {
                                    c1733M3430.f5643.m3405(c174110, 1.0f);
                                    c1733M3430.f5643.m3405(c174111, -1.0f);
                                } else {
                                    float f6 = (f4 / f) / (f5 / f);
                                    c1733M3430.f5643.m3405(c17418, 1.0f);
                                    c1733M3430.f5643.m3405(c17419, -1.0f);
                                    c1733M3430.f5643.m3405(c174111, f6);
                                    c1733M3430.f5643.m3405(c174110, -f6);
                                }
                                c17354.m3423(c1733M3430);
                            } else {
                                c1744 = c17442;
                                arrayList = arrayList2;
                                i7 = size;
                                c17478 = c174727;
                            }
                            f4 = f5;
                            c174726 = c17478;
                            i29++;
                            c17442 = c1744;
                            size = i7;
                            arrayList2 = arrayList;
                        }
                    }
                }
                C1744 c17443 = c17442;
                if (c174720 == null || !(c174720 == c174721 || z5)) {
                    c1747 = c174721;
                    c17472 = c174720;
                    i5 = i4;
                    if (!z4 || c17472 == null) {
                        int i31 = 8;
                        if (z3 && c17472 != null) {
                            int i32 = c17443.f5706;
                            boolean z13 = i32 > 0 && c17443.f5705 == i32;
                            C1747 c174728 = c17472;
                            C1747 c174729 = c174728;
                            while (c174729 != null) {
                                C1747 c174730 = c174729.f5788[i];
                                while (c174730 != null && c174730.f5781 == i31) {
                                    c174730 = c174730.f5788[i];
                                }
                                if (c174729 == c17472 || c174729 == c1747 || c174730 == null) {
                                    c17473 = c174728;
                                    i6 = 8;
                                    c17474 = c174730;
                                } else {
                                    C1747 c174731 = c174730 == c1747 ? null : c174730;
                                    C1745 c174511 = c174729.f5765[i3];
                                    C1741 c174112 = c174511.f5722;
                                    C1745 c174512 = c174511.f5719;
                                    int i33 = i3 + 1;
                                    C1741 c174113 = c174728.f5765[i33].f5722;
                                    int iM34484 = c174511.m3448();
                                    int iM34485 = c174729.f5765[i33].m3448();
                                    if (c174731 != null) {
                                        c1745 = c174731.f5765[i3];
                                        c1741 = c1745.f5722;
                                        c17475 = c174731;
                                        C1745 c174513 = c1745.f5719;
                                        c17412 = c174513 != null ? c174513.f5722 : null;
                                    } else {
                                        c17475 = c174731;
                                        c1745 = c1747.f5765[i3];
                                        c1741 = c1745 != null ? c1745.f5722 : null;
                                        c17412 = c174729.f5765[i33].f5722;
                                    }
                                    int iM34486 = c1745 != null ? c1745.m3448() + iM34485 : iM34485;
                                    int iM34487 = c174728.f5765[i33].m3448() + iM34484;
                                    int i34 = z13 ? 7 : 4;
                                    if (c174112 == null || c174113 == null || c1741 == null || c17412 == null) {
                                        c17473 = c174728;
                                        i6 = 8;
                                    } else {
                                        c17473 = c174728;
                                        i6 = 8;
                                        c1735.m3426(c174112, c174113, iM34487, 0.5f, c1741, c17412, iM34486, i34);
                                    }
                                    c17474 = c17475;
                                }
                                if (c174729.f5781 != i6) {
                                    c17473 = c174729;
                                }
                                c174729 = c17474;
                                c174728 = c17473;
                                i31 = 8;
                            }
                            C1745 c174514 = c17472.f5765[i3];
                            C1745 c174515 = c174725.f5765[i3].f5719;
                            int i35 = i3 + 1;
                            C1745 c174516 = c1747.f5765[i35];
                            C1745 c174517 = c174719.f5765[i35].f5719;
                            if (c174515 != null) {
                                if (c17472 != c1747) {
                                    c17353 = c1735;
                                    c17353.m3418(c174514.f5722, c174515.f5722, c174514.m3448(), 4);
                                } else {
                                    c17353 = c1735;
                                    if (c174517 != null) {
                                        c17352 = c17353;
                                        c1735.m3426(c174514.f5722, c174515.f5722, c174514.m3448(), 0.5f, c174516.f5722, c174517.f5722, c174516.m3448(), 4);
                                    }
                                }
                                c17352 = c17353;
                            } else {
                                c17352 = c1735;
                            }
                            if (c174517 != null && c17472 != c1747) {
                                c17352.m3418(c174516.f5722, c174517.f5722, -c174516.m3448(), 4);
                            }
                        }
                        if ((z4 || z3) && c17472 != null) {
                            C1745 c174518 = c17472.f5765[i3];
                            int i36 = i3 + 1;
                            C1745 c174519 = c1747.f5765[i36];
                            C1745 c174520 = c174518.f5719;
                            c17415 = c174520 != null ? c174520.f5722 : null;
                            C1745 c174521 = c174519.f5719;
                            C1741 c174114 = c174521 != null ? c174521.f5722 : null;
                            if (c174719 != c1747) {
                                C1745 c174522 = c174719.f5765[i36].f5719;
                                c17416 = c174522 != null ? c174522.f5722 : null;
                            } else {
                                c17416 = c174114;
                            }
                            if (c17472 == c1747) {
                                C1745[] c1745Arr9 = c17472.f5765;
                                C1745 c174523 = c1745Arr9[i3];
                                c174519 = c1745Arr9[i36];
                                c174518 = c174523;
                            }
                            if (c17415 != null && c17416 != null) {
                                c1735.m3426(c174518.f5722, c17415, c174518.m3448(), 0.5f, c17416, c174519.f5722, c1747.f5765[i36].m3448(), 5);
                            }
                        }
                        i10 = i5 + 1;
                        i9 = 2;
                        c17354 = c17352;
                        c1744Arr = c1744Arr3;
                        i2 = i26;
                        c17492 = c1749;
                    } else {
                        int i37 = c17443.f5706;
                        boolean z14 = i37 > 0 && c17443.f5705 == i37;
                        C1747 c174732 = c17472;
                        C1747 c174733 = c174732;
                        while (c174733 != null) {
                            C1747 c174734 = c174733.f5788[i];
                            while (c174734 != null && c174734.f5781 == 8) {
                                c174734 = c174734.f5788[i];
                            }
                            if (c174734 != null || c174733 == c1747) {
                                C1745 c174524 = c174733.f5765[i3];
                                C1741 c174115 = c174524.f5722;
                                C1745 c174525 = c174524.f5719;
                                C1741 c174116 = c174525 != null ? c174525.f5722 : null;
                                if (c174732 != c174733) {
                                    c174116 = c174732.f5765[i3 + 1].f5722;
                                } else if (c174733 == c17472 && c174732 == c174733) {
                                    C1745[] c1745Arr10 = c174725.f5765;
                                    c174116 = c1745Arr10[i3].f5719 != null ? c1745Arr10[i3].f5719.f5722 : null;
                                }
                                int iM34488 = c174524.m3448();
                                int i38 = i3 + 1;
                                int iM34489 = c174733.f5765[i38].m3448();
                                if (c174734 != null) {
                                    C1745 c174526 = c174734.f5765[i3];
                                    c17413 = c174526.f5722;
                                    c17452 = c174526;
                                    c17414 = c174733.f5765[i38].f5722;
                                } else {
                                    C1745 c174527 = c174719.f5765[i38].f5719;
                                    if (c174527 != null) {
                                        c17413 = c174527.f5722;
                                        c17452 = c174527;
                                    } else {
                                        c17452 = c174527;
                                        c17413 = null;
                                    }
                                    c17414 = c174733.f5765[i38].f5722;
                                }
                                C1745 c174528 = c17452;
                                C1741 c174117 = c17414;
                                if (c174528 != null) {
                                    iM34489 += c174528.m3448();
                                }
                                if (c174732 != null) {
                                    iM34488 += c174732.f5765[i38].m3448();
                                }
                                if (c174115 == null || c174116 == null || c17413 == null || c174117 == null) {
                                    c17476 = c174734;
                                    c17477 = c174732;
                                } else {
                                    if (c174733 == c17472) {
                                        iM34488 = c17472.f5765[i3].m3448();
                                    }
                                    c17476 = c174734;
                                    c17477 = c174732;
                                    c1735.m3426(c174115, c174116, iM34488, 0.5f, c17413, c174117, c174733 == c1747 ? c1747.f5765[i38].m3448() : iM34489, z14 ? 7 : 5);
                                }
                            }
                            if (c174733.f5781 != 8) {
                                c17477 = c174733;
                            }
                            c174732 = c17477;
                            c174733 = c17476;
                        }
                    }
                } else {
                    C1745 c174529 = c174725.f5765[i3];
                    int i39 = i3 + 1;
                    C1745 c174530 = c174719.f5765[i39];
                    C1745 c174531 = c174529.f5719;
                    C1741 c174118 = c174531 != null ? c174531.f5722 : null;
                    C1745 c174532 = c174530.f5719;
                    C1741 c174119 = c174532 != null ? c174532.f5722 : null;
                    C1745 c174533 = c174720.f5765[i3];
                    C1745 c174534 = c174721.f5765[i39];
                    if (c174118 == null || c174119 == null) {
                        c1747 = c174721;
                        c17472 = c174720;
                        i5 = i4;
                    } else {
                        c1747 = c174721;
                        c17472 = c174720;
                        i5 = i4;
                        c1735.m3426(c174533.f5722, c174118, c174533.m3448(), i == 0 ? c174724.f5778 : c174724.f5779, c174119, c174534.f5722, c174534.m3448(), 5);
                    }
                }
                c17352 = c17354;
                if (z4) {
                    C1745 c1745182 = c17472.f5765[i3];
                    int i362 = i3 + 1;
                    C1745 c1745192 = c1747.f5765[i362];
                    C1745 c1745202 = c1745182.f5719;
                    if (c1745202 != null) {
                    }
                    C1745 c1745212 = c1745192.f5719;
                    if (c1745212 != null) {
                    }
                    if (c174719 != c1747) {
                    }
                    if (c17472 == c1747) {
                    }
                    if (c17415 != null) {
                    }
                } else {
                    C1745 c17451822 = c17472.f5765[i3];
                    int i3622 = i3 + 1;
                    C1745 c17451922 = c1747.f5765[i3622];
                    C1745 c17452022 = c17451822.f5719;
                    if (c17452022 != null) {
                    }
                    C1745 c17452122 = c17451922.f5719;
                    if (c17452122 != null) {
                    }
                    if (c174719 != c1747) {
                    }
                    if (c17472 == c1747) {
                    }
                    if (c17415 != null) {
                    }
                }
                i10 = i5 + 1;
                i9 = 2;
                c17354 = c17352;
                c1744Arr = c1744Arr3;
                i2 = i26;
                c17492 = c1749;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final void m2955(boolean z, InterfaceC6614<? super Boolean, C6549> interfaceC6614) {
            if (interfaceC6614 != null) {
                interfaceC6614.mo1606(Boolean.valueOf(z));
            } else {
                C6635.m9824("setter");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static final boolean m2956(long j, long j2, int i, boolean z) {
            if (i <= 0) {
                return false;
            }
            long jCurrentTimeMillis = System.currentTimeMillis() / ((long) 1000);
            if (jCurrentTimeMillis - TimeUnit.DAYS.toSeconds(i) <= j && jCurrentTimeMillis > j) {
                return z || j2 < jCurrentTimeMillis;
            }
            return false;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2958(Context context, Uri uri) {
            Cursor cursorQuery = null;
            try {
                cursorQuery = context.getContentResolver().query(uri, new String[]{"document_id"}, null, null, null);
                return cursorQuery.getCount() > 0;
            } catch (Exception e) {
                Log.w("DocumentFile", "Failed query: " + e);
                return false;
            } finally {
                m2949((AutoCloseable) cursorQuery);
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2959(TypedArray typedArray, int i, int i2, boolean z) {
            return typedArray.getBoolean(i, typedArray.getBoolean(i2, z));
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2960(ViewGroup viewGroup, View view) {
            while (view != null) {
                if (view == viewGroup) {
                    return true;
                }
                Object parent = view.getParent();
                if (!(parent instanceof View)) {
                    return false;
                }
                view = (View) parent;
            }
            return false;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2961(File file, Resources resources, int i) throws Throwable {
            InputStream inputStreamOpenRawResource;
            try {
                inputStreamOpenRawResource = resources.openRawResource(i);
            } catch (Throwable th) {
                th = th;
                inputStreamOpenRawResource = null;
            }
            try {
                boolean zM2962 = m2962(file, inputStreamOpenRawResource);
                if (inputStreamOpenRawResource != null) {
                    try {
                        inputStreamOpenRawResource.close();
                    } catch (IOException unused) {
                    }
                }
                return zM2962;
            } catch (Throwable th2) {
                th = th2;
                if (inputStreamOpenRawResource != null) {
                    try {
                        inputStreamOpenRawResource.close();
                    } catch (IOException unused2) {
                    }
                }
                throw th;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2962(File file, InputStream inputStream) throws Throwable {
            FileOutputStream fileOutputStream;
            StrictMode.ThreadPolicy threadPolicyAllowThreadDiskWrites = StrictMode.allowThreadDiskWrites();
            FileOutputStream fileOutputStream2 = null;
            try {
                try {
                    fileOutputStream = new FileOutputStream(file, false);
                } catch (IOException e) {
                    e = e;
                }
            } catch (Throwable th) {
                th = th;
            }
            try {
                byte[] bArr = new byte[1024];
                while (true) {
                    int i = inputStream.read(bArr);
                    if (i == -1) {
                        break;
                    }
                    fileOutputStream.write(bArr, 0, i);
                }
                try {
                    fileOutputStream.close();
                } catch (IOException unused) {
                }
                StrictMode.setThreadPolicy(threadPolicyAllowThreadDiskWrites);
                return true;
            } catch (IOException e2) {
                e = e2;
                fileOutputStream2 = fileOutputStream;
                Log.e("TypefaceCompatUtil", "Error copying resource contents to temp file: " + e.getMessage());
                if (fileOutputStream2 != null) {
                    try {
                        fileOutputStream2.close();
                    } catch (IOException unused2) {
                    }
                }
                StrictMode.setThreadPolicy(threadPolicyAllowThreadDiskWrites);
                return false;
            } catch (Throwable th2) {
                th = th2;
                fileOutputStream2 = fileOutputStream;
                if (fileOutputStream2 != null) {
                    try {
                        fileOutputStream2.close();
                    } catch (IOException unused3) {
                    }
                }
                StrictMode.setThreadPolicy(threadPolicyAllowThreadDiskWrites);
                throw th;
            }
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2963(XmlPullParser xmlPullParser, String str) {
            return xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static boolean m2964(C1864[] c1864Arr, C1864[] c1864Arr2) {
            if (c1864Arr == null || c1864Arr2 == null || c1864Arr.length != c1864Arr2.length) {
                return false;
            }
            for (int i = 0; i < c1864Arr.length; i++) {
                if (c1864Arr[i].f6256 != c1864Arr2[i].f6256 || c1864Arr[i].f6257.length != c1864Arr2[i].f6257.length) {
                    return false;
                }
            }
            return true;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static float[] m2965(float[] fArr, int i, int i2) {
            if (i > i2) {
                throw new IllegalArgumentException();
            }
            int length = fArr.length;
            if (i < 0 || i > length) {
                throw new ArrayIndexOutOfBoundsException();
            }
            int i3 = i2 - i;
            int iMin = Math.min(i3, length - i);
            float[] fArr2 = new float[i3];
            System.arraycopy(fArr, i, fArr2, 0, iMin);
            return fArr2;
        }

        /* JADX WARN: Code restructure failed: missing block: B:41:0x008b, code lost:
        
            if (r13 == false) goto L42;
         */
        /* JADX WARN: Removed duplicated region for block: B:21:0x0048  */
        /* JADX WARN: Removed duplicated region for block: B:49:0x0098 A[Catch: NumberFormatException -> 0x00ba, LOOP:3: B:29:0x006d->B:49:0x0098, LOOP_END, TryCatch #0 {NumberFormatException -> 0x00ba, blocks: (B:26:0x005a, B:29:0x006d, B:31:0x0073, B:36:0x0081, B:49:0x0098, B:51:0x009d, B:54:0x00ad, B:56:0x00b2), top: B:71:0x005a }] */
        /* JADX WARN: Removed duplicated region for block: B:51:0x009d A[Catch: NumberFormatException -> 0x00ba, TryCatch #0 {NumberFormatException -> 0x00ba, blocks: (B:26:0x005a, B:29:0x006d, B:31:0x0073, B:36:0x0081, B:49:0x0098, B:51:0x009d, B:54:0x00ad, B:56:0x00b2), top: B:71:0x005a }] */
        /* JADX WARN: Removed duplicated region for block: B:53:0x00ac  */
        /* JADX WARN: Removed duplicated region for block: B:54:0x00ad A[Catch: NumberFormatException -> 0x00ba, TryCatch #0 {NumberFormatException -> 0x00ba, blocks: (B:26:0x005a, B:29:0x006d, B:31:0x0073, B:36:0x0081, B:49:0x0098, B:51:0x009d, B:54:0x00ad, B:56:0x00b2), top: B:71:0x005a }] */
        /* JADX WARN: Removed duplicated region for block: B:75:0x00d7 A[SYNTHETIC] */
        /* JADX WARN: Removed duplicated region for block: B:84:0x0097 A[SYNTHETIC] */
        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        /*
            Code decompiled incorrectly, please refer to instructions dump.
        */
        public static C1864[] m2966(String str) {
            String strTrim;
            float[] fArrM2965;
            if (str == null) {
                return null;
            }
            ArrayList arrayList = new ArrayList();
            int i = 0;
            int i2 = 1;
            int i3 = 0;
            while (i2 < str.length()) {
                while (i2 < str.length()) {
                    char cCharAt = str.charAt(i2);
                    if ((cCharAt - 'Z') * (cCharAt - 'A') > 0) {
                        if ((cCharAt - 'z') * (cCharAt - 'a') > 0) {
                            continue;
                        }
                        i2++;
                    }
                    if (cCharAt == 'e' || cCharAt == 'E') {
                        i2++;
                    } else {
                        strTrim = str.substring(i3, i2).trim();
                        if (strTrim.length() > 0) {
                            if (strTrim.charAt(i) == 'z' || strTrim.charAt(i) == 'Z') {
                                fArrM2965 = new float[i];
                            } else {
                                try {
                                    float[] fArr = new float[strTrim.length()];
                                    int length = strTrim.length();
                                    int i4 = 1;
                                    int i5 = 0;
                                    while (i4 < length) {
                                        boolean z = false;
                                        boolean z2 = false;
                                        boolean z3 = false;
                                        boolean z4 = false;
                                        int i6 = i4;
                                        while (i6 < strTrim.length()) {
                                            char cCharAt2 = strTrim.charAt(i6);
                                            if (cCharAt2 != ' ') {
                                                if (cCharAt2 == 'E' || cCharAt2 == 'e') {
                                                    z4 = true;
                                                    if (z) {
                                                        if (i4 < i6) {
                                                            fArr[i5] = Float.parseFloat(strTrim.substring(i4, i6));
                                                            i5++;
                                                        }
                                                        if (z2) {
                                                            i6++;
                                                        }
                                                        i4 = i6;
                                                        i = 0;
                                                    } else {
                                                        i6++;
                                                    }
                                                } else {
                                                    switch (cCharAt2) {
                                                        case '-':
                                                            if (i6 != i4) {
                                                            }
                                                            break;
                                                        case '.':
                                                            if (!z3) {
                                                                z3 = true;
                                                            }
                                                            z2 = true;
                                                            break;
                                                    }
                                                    z4 = false;
                                                    if (z) {
                                                    }
                                                }
                                            }
                                            z = true;
                                            z4 = false;
                                            if (z) {
                                            }
                                        }
                                        if (i4 < i6) {
                                        }
                                        if (z2) {
                                        }
                                        i4 = i6;
                                        i = 0;
                                    }
                                    fArrM2965 = m2965(fArr, i, i5);
                                    i = 0;
                                } catch (NumberFormatException e) {
                                    throw new RuntimeException(C2803.m4880("error in parsing \"", strTrim, "\""), e);
                                }
                            }
                            arrayList.add(new C1864(strTrim.charAt(i), fArrM2965));
                        }
                        i3 = i2;
                        i2++;
                        i = 0;
                    }
                }
                strTrim = str.substring(i3, i2).trim();
                if (strTrim.length() > 0) {
                }
                i3 = i2;
                i2++;
                i = 0;
            }
            if (i2 - i3 == 1 && i3 < str.length()) {
                arrayList.add(new C1864(str.charAt(i3), new float[0]));
            }
            return (C1864[]) arrayList.toArray(new C1864[arrayList.size()]);
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static C1864[] m2967(C1864[] c1864Arr) {
            if (c1864Arr == null) {
                return null;
            }
            C1864[] c1864Arr2 = new C1864[c1864Arr.length];
            for (int i = 0; i < c1864Arr.length; i++) {
                c1864Arr2[i] = new C1864(c1864Arr[i]);
            }
            return c1864Arr2;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static int m2968(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, int i2) {
            return !m2963(xmlPullParser, str) ? i2 : typedArray.getInt(i, i2);
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static int m2969(Cursor cursor, String str) {
            int columnIndex = cursor.getColumnIndex(str);
            if (columnIndex >= 0) {
                return columnIndex;
            }
            return cursor.getColumnIndexOrThrow("`" + str + "`");
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static int m2970(RecyclerView.C0221 c0221, AbstractC2365 abstractC2365, View view, View view2, RecyclerView.AbstractC0202 abstractC0202, boolean z) {
            if (abstractC0202.m664() == 0 || c0221.m728() == 0 || view == null || view2 == null) {
                return 0;
            }
            if (!z) {
                return c0221.m728();
            }
            return (int) (((abstractC2365.mo4407(view2) - abstractC2365.mo4414(view)) / (Math.abs(abstractC0202.m681(view) - abstractC0202.m681(view2)) + 1)) * c0221.m728());
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static Path m2971(String str) {
            Path path = new Path();
            C1864[] c1864ArrM2966 = m2966(str);
            if (c1864ArrM2966 == null) {
                return null;
            }
            try {
                C1864.m3670(c1864ArrM2966, path);
                return path;
            } catch (RuntimeException e) {
                throw new RuntimeException(C2803.m4879("Error in parsing ", str), e);
            }
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static Drawable m2972(Drawable drawable) {
            return (Build.VERSION.SDK_INT < 23 && !(drawable instanceof InterfaceC1872)) ? new C1875(drawable) : drawable;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static final ގ m2973(ކ r0) {
            ގ r02;
            ގ r03;
            return (r0 == null || (r02 = r0.ޅ) == null || (r03 = r02.ރ()) == null) ? ގ.ބ : r03;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static <T> T m2974(T t, Object obj) {
            if (t != null) {
                return t;
            }
            throw new NullPointerException(String.valueOf(obj));
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static Object m2975(boolean z) {
            TransitionSet transitionSet = new TransitionSet();
            transitionSet.setOrdering(z ? 1 : 0);
            return transitionSet;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static String m2976(Context context, ComponentName componentName) throws PackageManager.NameNotFoundException {
            String string;
            PackageManager packageManager = context.getPackageManager();
            int i = Build.VERSION.SDK_INT;
            int i2 = 640;
            int i3 = Build.VERSION.SDK_INT;
            if (i3 >= 29) {
                i2 = 269222528;
            } else if (i3 >= 24) {
                i2 = 787072;
            }
            ActivityInfo activityInfo = packageManager.getActivityInfo(componentName, i2);
            String str = activityInfo.parentActivityName;
            if (str != null) {
                return str;
            }
            Bundle bundle = activityInfo.metaData;
            if (bundle == null || (string = bundle.getString("android.support.PARENT_ACTIVITY")) == null) {
                return null;
            }
            if (string.charAt(0) != '.') {
                return string;
            }
            return context.getPackageName() + string;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static EnumC2543 m2977(int i) {
            if (i == 0) {
                return EnumC2543.EXPONENTIAL;
            }
            if (i == 1) {
                return EnumC2543.LINEAR;
            }
            throw new IllegalArgumentException(C2803.m4872("Could not convert ", i, " to BackoffPolicy"));
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static final void m2978() {
            ރ r0;
            if (ރ.ߠ == null) {
                throw null;
            }
            Long l = 0L;
            long jLongValue = l.longValue();
            ރ r02 = ރ.ߠ;
            if (r02 == null) {
                throw null;
            }
            ރ.ޓ.m9836(r02, ރ.ށ[17], Long.valueOf(jLongValue));
            C6549 c6549 = C6549.f19328;
            if (ރ.ߠ == null) {
                throw null;
            }
            Integer num = 0;
            int iIntValue = num.intValue();
            ރ r4 = ރ.ߠ;
            if (r4 == null) {
                throw null;
            }
            ރ.ޔ.m9836(r4, ރ.ށ[18], Integer.valueOf(iIntValue));
            C6549 c65492 = C6549.f19328;
            if (ރ.ߠ == null) {
                throw null;
            }
            Long l2 = 0L;
            long jLongValue2 = l2.longValue();
            ރ r03 = ރ.ߠ;
            if (r03 == null) {
                throw null;
            }
            ރ.ޕ.m9836(r03, ރ.ށ[19], Long.valueOf(jLongValue2));
            C6549 c65493 = C6549.f19328;
            if (ރ.ߠ == null || (r0 = ރ.ߠ) == null) {
                throw null;
            }
            ރ.ޖ.m9836(r0, ރ.ށ[20], "");
            C6549 c65494 = C6549.f19328;
            if (ރ.ߠ == null) {
                throw null;
            }
            Long l3 = 0L;
            long jLongValue3 = l3.longValue();
            ރ r04 = ރ.ߠ;
            if (r04 == null) {
                throw null;
            }
            ރ.ߺ.m9836(r04, ރ.ށ[181], Long.valueOf(jLongValue3));
            C6549 c65495 = C6549.f19328;
            if (ރ.ߠ == null) {
                throw null;
            }
            Long l4 = 0L;
            long jLongValue4 = l4.longValue();
            ރ r05 = ރ.ߠ;
            if (r05 == null) {
                throw null;
            }
            ރ.ĭ.m9836(r05, ރ.ށ[182], Long.valueOf(jLongValue4));
            C6549 c65496 = C6549.f19328;
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static final void m2979(View view, boolean z) {
            if (view != null) {
                view.setVisibility(z ? 0 : 8);
            } else {
                C6635.m9824("$this$isVisible");
                throw null;
            }
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static void m2980(TextView textView, int i) {
            m2869(i);
            Paint.FontMetricsInt fontMetricsInt = textView.getPaint().getFontMetricsInt();
            int i2 = textView.getIncludeFontPadding() ? fontMetricsInt.bottom : fontMetricsInt.descent;
            if (i > Math.abs(i2)) {
                textView.setPadding(textView.getPaddingLeft(), textView.getPaddingTop(), textView.getPaddingRight(), i - i2);
            }
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static final boolean m2981(String str, String str2) {
            boolean z;
            String strM9903 = C6703.m9903(C6703.m9870(str2, "&login=", (String) null, 2), "&key=", (String) null, 2);
            String strM9870 = C6703.m9870(str2, "&key=", (String) null, 2);
            try {
                C6926.C6927 c6927 = new C6926.C6927();
                c6927.m10124("http://stb.onlineott.tv/stalker_portal/server/load.php?type=stb&action=do_auth&login=" + strM9903 + "&password=" + strM9870);
                StringBuilder sb = new StringBuilder();
                sb.append("Bearer ");
                sb.append(str);
                c6927.m10119("Authorization", sb.toString());
                c6927.m10119("Cookie", "mac=10dd101325fb5addf1d0dfc5e89df4af; stb_lang=ru; timezone=GMT");
                C6933 c6933Mo10025 = CommonUtilsKt.ހ().mo10028(c6927.m10123()).mo10025();
                try {
                    if (c6933Mo10025.m10127()) {
                        z = true;
                    } else {
                        C7399.m11004("StalkerUtils").mo11007("Response from server is unsuccessful, code = " + c6933Mo10025.f20149, new Object[0]);
                        z = false;
                    }
                    C4303.m7088((Closeable) c6933Mo10025, (Throwable) null);
                    return z;
                } finally {
                }
            } catch (Exception e) {
                C7399.m11004("StalkerUtils").mo11006(e, "Failed to auth", new Object[0]);
                return false;
            }
        }

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public static CharSequence[] m2982(TypedArray typedArray, int i, int i2) {
            CharSequence[] textArray = typedArray.getTextArray(i);
            return textArray == null ? typedArray.getTextArray(i2) : textArray;
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static final String m2983(String str) {
            if (str != null) {
                return C6703.m9890(C6703.m9866(str, '/', (String) null, 2), '.', (String) null, 2);
            }
            C6635.m9824("url");
            throw null;
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static EnumC2564 m2984(int i) {
            if (i == 0) {
                return EnumC2564.NOT_REQUIRED;
            }
            if (i == 1) {
                return EnumC2564.CONNECTED;
            }
            if (i == 2) {
                return EnumC2564.UNMETERED;
            }
            if (i == 3) {
                return EnumC2564.NOT_ROAMING;
            }
            if (i == 4) {
                return EnumC2564.METERED;
            }
            throw new IllegalArgumentException(C2803.m4872("Could not convert ", i, " to NetworkType"));
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static void m2985(TextView textView, int i) {
            m2869(i);
            if (i != textView.getPaint().getFontMetricsInt(null)) {
                textView.setLineSpacing(i - r0, 1.0f);
            }
        }

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public static final boolean m2986(boolean z) {
            return z;
        }

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public static final String m2987(String str) {
            if (str != null) {
                return str;
            }
            C6635.m9824("value");
            throw null;
        }

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public static C2578.EnumC2579 m2988(int i) {
            if (i == 0) {
                return C2578.EnumC2579.ENQUEUED;
            }
            if (i == 1) {
                return C2578.EnumC2579.RUNNING;
            }
            if (i == 2) {
                return C2578.EnumC2579.SUCCEEDED;
            }
            if (i == 3) {
                return C2578.EnumC2579.FAILED;
            }
            if (i == 4) {
                return C2578.EnumC2579.BLOCKED;
            }
            if (i == 5) {
                return C2578.EnumC2579.CANCELLED;
            }
            throw new IllegalArgumentException(C2803.m4872("Could not convert ", i, " to State"));
        }

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public static final String m2989(String str) {
            if (str == null) {
                C6635.m9824("playlistUrl");
                throw null;
            }
            int iM9860 = C6703.m9860((CharSequence) str, "&type=", 0, false, 6);
            if (iM9860 != -1) {
                str = str.substring(0, iM9860);
                C6635.m9823((Object) str, "(this as java.lang.Strin…ing(startIndex, endIndex)");
            }
            return C6703.m9871(str, "get.php?", "xmltv.php?", false, 4);
        }

        /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
        public static boolean m2990(int i) {
            return i >= 28 && i <= 31;
        }

        /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
        public static final boolean m2991(String str) {
            if (str != null) {
                return C6703.m9880((CharSequence) str, (CharSequence) "//ott.onlineott.tv/", true);
            }
            C6635.m9824("url");
            throw null;
        }

        /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
        public static final boolean m2992(String str) {
            if (str != null) {
                return C6703.m9880((CharSequence) str, (CharSequence) "/get.php?username=", true) && C6703.m9880((CharSequence) str, (CharSequence) "&password=", true) && C6703.m9880((CharSequence) str, (CharSequence) "&type=", true) && C6703.m9880((CharSequence) str, (CharSequence) "&output=", true);
            }
            C6635.m9824("url");
            throw null;
        }

        /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
        public static final Set<String> m2993(String str) {
            if (str == null || str.length() == 0) {
                return C6565.f19345;
            }
            HashSet hashSet = new HashSet();
            for (String str2 : C6703.m9875((CharSequence) str, new String[]{","}, false, 0, 6)) {
                if (str2 == null) {
                    throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
                }
                hashSet.add(C6703.m9900(str2).toString());
            }
            return hashSet;
        }

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public static final ar.tvplayer.core.data.api.xtreamcodes.ؠ m2994(String str) {
            if (str == null) {
                C6635.m9824("url");
                throw null;
            }
            if (!CommonUtilsKt.ނ(str)) {
                return null;
            }
            try {
                List<String> list = C6908.f20012.m10099(str).f20019;
                if (list.size() != 3 && list.size() != 4) {
                    return null;
                }
                if (list.size() == 4 && !C6703.m9905(list.get(0), "live", true) && !C6703.m9905(list.get(0), "movie", true) && !C6703.m9905(list.get(0), "series", true)) {
                    return null;
                }
                try {
                    return new ar.tvplayer.core.data.api.xtreamcodes.ؠ(C6703.m9903(str, '/' + list.get(0) + '/', (String) null, 2) + "/", list.get(list.size() - 3), list.get(list.size() - 2), Integer.parseInt(C6703.m9890(list.get(list.size() - 1), '.', (String) null, 2)), "");
                } catch (NumberFormatException unused) {
                    return null;
                }
            } catch (Exception e) {
                C7399.m11004("XtreamCodesUtils").mo11006(e, C2803.m4879("Failed to parse HTTP url: ", str), new Object[0]);
                return null;
            }
        }

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public static final ar.tvplayer.core.data.api.xtreamcodes.ؠ m2995(String str) {
            if (str == null) {
                C6635.m9824("url");
                throw null;
            }
            int iM9860 = C6703.m9860((CharSequence) str, "get.php?username=", 0, false, 6);
            int iM98602 = C6703.m9860((CharSequence) str, "&password=", 0, false, 6);
            int iM98603 = C6703.m9860((CharSequence) str, "&type=", 0, false, 6);
            int iM98604 = C6703.m9860((CharSequence) str, "&output=", 0, false, 6);
            if (iM9860 == -1 || iM98602 <= iM9860 || iM98603 <= iM98602 || iM98604 <= iM98603) {
                return null;
            }
            String strSubstring = str.substring(0, iM9860);
            C6635.m9823((Object) strSubstring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
            String strSubstring2 = str.substring(iM9860 + 17, iM98602);
            C6635.m9823((Object) strSubstring2, "(this as java.lang.Strin…ing(startIndex, endIndex)");
            String strSubstring3 = str.substring(iM98602 + 10, iM98603);
            C6635.m9823((Object) strSubstring3, "(this as java.lang.Strin…ing(startIndex, endIndex)");
            String strSubstring4 = str.substring(iM98604 + 8);
            C6635.m9823((Object) strSubstring4, "(this as java.lang.String).substring(startIndex)");
            return new ar.tvplayer.core.data.api.xtreamcodes.ؠ(strSubstring, strSubstring2, strSubstring3, 0, strSubstring4);
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$އ, reason: contains not printable characters */
    public class C1506 extends ContentFrameLayout {
        public C1506(Context context) {
            super(context);
        }

        @Override // android.view.ViewGroup, android.view.View
        public boolean dispatchKeyEvent(KeyEvent keyEvent) {
            return LayoutInflaterFactory2C1494.this.m2841(keyEvent) || super.dispatchKeyEvent(keyEvent);
        }

        @Override // android.view.ViewGroup
        public boolean onInterceptTouchEvent(MotionEvent motionEvent) {
            if (motionEvent.getAction() == 0) {
                int x = (int) motionEvent.getX();
                int y = (int) motionEvent.getY();
                if (x < -5 || y < -5 || x > getWidth() + 5 || y > getHeight() + 5) {
                    LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
                    layoutInflaterFactory2C1494.m2840(layoutInflaterFactory2C1494.m2847(0), true);
                    return true;
                }
            }
            return super.onInterceptTouchEvent(motionEvent);
        }

        @Override // android.view.View
        public void setBackgroundResource(int i) {
            setBackgroundDrawable(C1527.m3025(getContext(), i));
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$ވ, reason: contains not printable characters */
    public static final class C1507 {

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

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

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

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

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

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

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

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

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

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

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

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

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

        /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
        public boolean f4778;

        /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
        public boolean f4779;

        /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
        public boolean f4780;

        /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
        public boolean f4781 = false;

        /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
        public boolean f4782;

        /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
        public Bundle f4783;

        public C1507(int i) {
            this.f4765 = i;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public void m2996(C1572 c1572) {
            C1569 c1569;
            C1572 c15722 = this.f4774;
            if (c1572 == c15722) {
                return;
            }
            if (c15722 != null) {
                c15722.m3091(this.f4775);
            }
            this.f4774 = c1572;
            if (c1572 == null || (c1569 = this.f4775) == null) {
                return;
            }
            c1572.m3092(c1569, c1572.f5077);
        }
    }

    /* JADX INFO: renamed from: މ.ؠ.ވ.ފ$މ, reason: contains not printable characters */
    public final class C1508 implements InterfaceC1587.InterfaceC1588 {
        public C1508() {
        }

        @Override // p037.p041.p049.p050.InterfaceC1587.InterfaceC1588
        /* JADX INFO: renamed from: ֏ */
        public void mo142(C1572 c1572, boolean z) {
            C1572 c1572Mo3102 = c1572.mo3102();
            boolean z2 = c1572Mo3102 != c1572;
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (z2) {
                c1572 = c1572Mo3102;
            }
            C1507 c1507M2836 = layoutInflaterFactory2C1494.m2836((Menu) c1572);
            if (c1507M2836 != null) {
                if (!z2) {
                    LayoutInflaterFactory2C1494.this.m2840(c1507M2836, z);
                } else {
                    LayoutInflaterFactory2C1494.this.m2837(c1507M2836.f4765, c1507M2836, c1572Mo3102);
                    LayoutInflaterFactory2C1494.this.m2840(c1507M2836, true);
                }
            }
        }

        @Override // p037.p041.p049.p050.InterfaceC1587.InterfaceC1588
        /* JADX INFO: renamed from: ֏ */
        public boolean mo143(C1572 c1572) {
            Window.Callback callbackM2853;
            if (c1572 != c1572.mo3102()) {
                return true;
            }
            LayoutInflaterFactory2C1494 layoutInflaterFactory2C1494 = LayoutInflaterFactory2C1494.this;
            if (!layoutInflaterFactory2C1494.f4705 || (callbackM2853 = layoutInflaterFactory2C1494.m2853()) == null || LayoutInflaterFactory2C1494.this.f4717) {
                return true;
            }
            callbackM2853.onMenuOpened(108, c1572);
            return true;
        }
    }

    static {
        if (!f4677 || f4681) {
            return;
        }
        Thread.setDefaultUncaughtExceptionHandler(new C1495(Thread.getDefaultUncaughtExceptionHandler()));
        f4681 = true;
    }

    public LayoutInflaterFactory2C1494(Context context, Window window, InterfaceC1492 interfaceC1492, Object obj) {
        Integer orDefault;
        ActivityC1491 activityC1491;
        this.f4718 = -100;
        this.f4683 = context;
        this.f4686 = interfaceC1492;
        this.f4682 = obj;
        if (this.f4718 == -100 && (obj instanceof Dialog)) {
            while (context != null) {
                if (!(context instanceof ActivityC1491)) {
                    if (!(context instanceof ContextWrapper)) {
                        break;
                    } else {
                        context = ((ContextWrapper) context).getBaseContext();
                    }
                } else {
                    activityC1491 = (ActivityC1491) context;
                    break;
                }
            }
            activityC1491 = null;
            if (activityC1491 != null) {
                this.f4718 = ((LayoutInflaterFactory2C1494) activityC1491.getDelegate()).f4718;
            }
        }
        if (this.f4718 == -100 && (orDefault = f4676.getOrDefault(this.f4682.getClass().getName(), null)) != null) {
            this.f4718 = orDefault.intValue();
            f4676.remove(this.f4682.getClass().getName());
        }
        if (window != null) {
            m2838(window);
        }
        C1615.m3158();
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:31:0x008d  */
    /* JADX WARN: Removed duplicated region for block: B:98:0x0179  */
    @Override // android.view.LayoutInflater.Factory2
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final View onCreateView(View view, String str, Context context, AttributeSet attributeSet) {
        boolean z;
        Context context2;
        View c1642;
        if (this.f4730 == null) {
            String string = this.f4683.obtainStyledAttributes(C1477.AppCompatTheme).getString(C1477.AppCompatTheme_viewInflaterClass);
            if (string == null) {
                this.f4730 = new C1517();
            } else {
                try {
                    this.f4730 = (C1517) Class.forName(string).getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
                } catch (Throwable th) {
                    Log.i("AppCompatDelegate", "Failed to instantiate custom view inflater " + string + ". Falling back to default.", th);
                    this.f4730 = new C1517();
                }
            }
        }
        if (!f4677) {
            z = false;
            break;
        }
        if (!(attributeSet instanceof XmlPullParser)) {
            ViewParent parent = (ViewParent) view;
            if (parent != null) {
                View decorView = this.f4684.getDecorView();
                while (parent != null) {
                    if (parent != decorView && (parent instanceof View) && !C1920.m3769((View) parent)) {
                        parent = parent.getParent();
                    }
                }
                z = true;
            }
            z = false;
            break;
        } else if (((XmlPullParser) attributeSet).getDepth() > 1) {
            z = true;
        }
        C1517 c1517 = this.f4730;
        boolean z2 = f4677;
        C1697.m3316();
        View view2 = null;
        if (c1517 == null) {
            throw null;
        }
        context2 = (!z || view == 0) ? context : view.getContext();
        TypedArray typedArrayObtainStyledAttributes = context2.obtainStyledAttributes(attributeSet, C1477.View, 0, 0);
        int resourceId = z2 ? typedArrayObtainStyledAttributes.getResourceId(C1477.View_android_theme, 0) : 0;
        if (resourceId == 0 && (resourceId = typedArrayObtainStyledAttributes.getResourceId(C1477.View_theme, 0)) != 0) {
            Log.i("AppCompatViewInflater", "app:theme is now deprecated. Please move to using android:theme instead.");
        }
        typedArrayObtainStyledAttributes.recycle();
        if (resourceId != 0 && (!(context2 instanceof C1550) || ((C1550) context2).f4924 != resourceId)) {
            context2 = new C1550(context2, resourceId);
        }
        switch (str) {
            case "TextView":
                c1642 = new C1642(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "ImageView":
                c1642 = new AppCompatImageView(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "Button":
                c1642 = new C1611(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "EditText":
                c1642 = new C1617(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "Spinner":
                c1642 = new C1628(context2, attributeSet, C1468.spinnerStyle);
                c1517.m3001(c1642, str);
                break;
            case "ImageButton":
                c1642 = new C1618(context2, attributeSet, C1468.imageButtonStyle);
                c1517.m3001(c1642, str);
                break;
            case "CheckBox":
                c1642 = new C1612(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "RadioButton":
                c1642 = new C1623(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "CheckedTextView":
                c1642 = new C1613(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "AutoCompleteTextView":
                c1642 = new C1609(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "MultiAutoCompleteTextView":
                c1642 = new C1620(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "RatingBar":
                c1642 = new C1624(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "SeekBar":
                c1642 = new C1625(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            case "ToggleButton":
                c1642 = new C1647(context2, attributeSet);
                c1517.m3001(c1642, str);
                break;
            default:
                c1642 = null;
                break;
        }
        if (c1642 == null && context != context2) {
            if (str.equals("view")) {
                str = attributeSet.getAttributeValue(null, "class");
            }
            try {
                c1517.f4798[0] = context2;
                c1517.f4798[1] = attributeSet;
                if (-1 == str.indexOf(46)) {
                    int i = 0;
                    while (true) {
                        if (i < C1517.f4796.length) {
                            View viewM3000 = c1517.m3000(context2, str, C1517.f4796[i]);
                            if (viewM3000 != null) {
                                Object[] objArr = c1517.f4798;
                                objArr[0] = null;
                                objArr[1] = null;
                                view2 = viewM3000;
                            } else {
                                i++;
                            }
                        }
                    }
                } else {
                    View viewM30002 = c1517.m3000(context2, str, null);
                    Object[] objArr2 = c1517.f4798;
                    objArr2[0] = null;
                    objArr2[1] = null;
                    view2 = viewM30002;
                }
            } catch (Exception unused) {
            } finally {
                Object[] objArr3 = c1517.f4798;
                objArr3[0] = null;
                objArr3[1] = null;
            }
            c1642 = view2;
        }
        if (c1642 != null) {
            Context context3 = c1642.getContext();
            if ((context3 instanceof ContextWrapper) && C1920.m3766(c1642)) {
                TypedArray typedArrayObtainStyledAttributes2 = context3.obtainStyledAttributes(attributeSet, C1517.f4795);
                String string2 = typedArrayObtainStyledAttributes2.getString(0);
                if (string2 != null) {
                    c1642.setOnClickListener(new C1517.ViewOnClickListenerC1518(c1642, string2));
                }
                typedArrayObtainStyledAttributes2.recycle();
            }
        }
        return c1642;
    }

    @Override // android.view.LayoutInflater.Factory
    public View onCreateView(String str, Context context, AttributeSet attributeSet) {
        return onCreateView(null, str, context, attributeSet);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int m2832(Context context, int i) {
        if (i == -100) {
            return -1;
        }
        if (i != -1) {
            if (i == 0) {
                if (Build.VERSION.SDK_INT < 23 || ((UiModeManager) context.getApplicationContext().getSystemService(UiModeManager.class)).getNightMode() != 0) {
                    return m2835(context).mo2864();
                }
                return -1;
            }
            if (i != 1 && i != 2) {
                if (i != 3) {
                    throw new IllegalStateException("Unknown value set for night mode. Please use one of the MODE_NIGHT values from AppCompatDelegate.");
                }
                if (this.f4723 == null) {
                    this.f4723 = new C1501(context);
                }
                return this.f4723.mo2864();
            }
        }
        return i;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m2833(C1937 c1937, Rect rect) {
        boolean z;
        boolean z2;
        int iM3798 = c1937 != null ? c1937.m3798() : rect != null ? rect.top : 0;
        ActionBarContextView actionBarContextView = this.f4694;
        if (actionBarContextView == null || !(actionBarContextView.getLayoutParams() instanceof ViewGroup.MarginLayoutParams)) {
            z = false;
        } else {
            ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.f4694.getLayoutParams();
            if (this.f4694.isShown()) {
                if (this.f4728 == null) {
                    this.f4728 = new Rect();
                    this.f4729 = new Rect();
                }
                Rect rect2 = this.f4728;
                Rect rect3 = this.f4729;
                if (c1937 == null) {
                    rect2.set(rect);
                } else {
                    rect2.set(c1937.m3796(), c1937.m3798(), c1937.m3797(), c1937.m3795());
                }
                C1698.m3317(this.f4700, rect2, rect3);
                int i = rect2.top;
                int i2 = rect2.left;
                int i3 = rect2.right;
                C1937 c1937M3763 = C1920.m3763(this.f4700);
                int iM3796 = c1937M3763 == null ? 0 : c1937M3763.m3796();
                int iM3797 = c1937M3763 == null ? 0 : c1937M3763.m3797();
                if (marginLayoutParams.topMargin == i && marginLayoutParams.leftMargin == i2 && marginLayoutParams.rightMargin == i3) {
                    z2 = false;
                } else {
                    marginLayoutParams.topMargin = i;
                    marginLayoutParams.leftMargin = i2;
                    marginLayoutParams.rightMargin = i3;
                    z2 = true;
                }
                if (i <= 0 || this.f4702 != null) {
                    View view = this.f4702;
                    if (view != null) {
                        ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
                        if (marginLayoutParams2.height != marginLayoutParams.topMargin || marginLayoutParams2.leftMargin != iM3796 || marginLayoutParams2.rightMargin != iM3797) {
                            marginLayoutParams2.height = marginLayoutParams.topMargin;
                            marginLayoutParams2.leftMargin = iM3796;
                            marginLayoutParams2.rightMargin = iM3797;
                            this.f4702.setLayoutParams(marginLayoutParams2);
                        }
                    }
                } else {
                    View view2 = new View(this.f4683);
                    this.f4702 = view2;
                    view2.setVisibility(8);
                    FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, marginLayoutParams.topMargin, 51);
                    layoutParams.leftMargin = iM3796;
                    layoutParams.rightMargin = iM3797;
                    this.f4700.addView(this.f4702, -1, layoutParams);
                }
                z = this.f4702 != null;
                if (z && this.f4702.getVisibility() != 0) {
                    View view3 = this.f4702;
                    view3.setBackgroundColor((C1920.m3765(view3) & 8192) != 0 ? C1850.m3645(this.f4683, C1470.abc_decor_view_status_guard_light) : C1850.m3645(this.f4683, C1470.abc_decor_view_status_guard));
                }
                if (!this.f4707 && z) {
                    iM3798 = 0;
                }
                z = z2;
            } else if (marginLayoutParams.topMargin != 0) {
                marginLayoutParams.topMargin = 0;
                z = false;
            } else {
                z = false;
                z = false;
            }
            if (z) {
                this.f4694.setLayoutParams(marginLayoutParams);
            }
        }
        View view4 = this.f4702;
        if (view4 != null) {
            view4.setVisibility(z ? 0 : 8);
        }
        return iM3798;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Configuration m2834(Context context, int i, Configuration configuration) {
        int i2 = i != 1 ? i != 2 ? context.getApplicationContext().getResources().getConfiguration().uiMode & 48 : 32 : 16;
        Configuration configuration2 = new Configuration();
        configuration2.fontScale = 0.0f;
        if (configuration != null) {
            configuration2.setTo(configuration);
        }
        configuration2.uiMode = i2 | (configuration2.uiMode & (-49));
        return configuration2;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final AbstractC1502 m2835(Context context) {
        if (this.f4722 == null) {
            if (C1520.f4807 == null) {
                Context applicationContext = context.getApplicationContext();
                C1520.f4807 = new C1520(applicationContext, (LocationManager) applicationContext.getSystemService("location"));
            }
            this.f4722 = new C1504(C1520.f4807);
        }
        return this.f4722;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public C1507 m2836(Menu menu) {
        C1507[] c1507Arr = this.f4711;
        int length = c1507Arr != null ? c1507Arr.length : 0;
        for (int i = 0; i < length; i++) {
            C1507 c1507 = c1507Arr[i];
            if (c1507 != null && c1507.f4774 == menu) {
                return c1507;
            }
        }
        return null;
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public void mo2822() {
        LayoutInflater layoutInflaterFrom = LayoutInflater.from(this.f4683);
        if (layoutInflaterFrom.getFactory() == null) {
            layoutInflaterFrom.setFactory2(this);
        } else {
            if (layoutInflaterFrom.getFactory2() instanceof LayoutInflaterFactory2C1494) {
                return;
            }
            Log.i("AppCompatDelegate", "The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's");
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m2837(int i, C1507 c1507, Menu menu) {
        if (menu == null) {
            if (c1507 == null && i >= 0) {
                C1507[] c1507Arr = this.f4711;
                if (i < c1507Arr.length) {
                    c1507 = c1507Arr[i];
                }
            }
            if (c1507 != null) {
                menu = c1507.f4774;
            }
        }
        if ((c1507 == null || c1507.f4779) && !this.f4717) {
            this.f4685.f4991.onPanelClosed(i, menu);
        }
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public void mo2823(Bundle bundle) {
        this.f4714 = true;
        m2843(false);
        m2852();
        Object obj = this.f4682;
        if (obj instanceof Activity) {
            String strM2976 = null;
            try {
                Activity activity = (Activity) obj;
                try {
                    strM2976 = C1505.m2976((Context) activity, activity.getComponentName());
                } catch (PackageManager.NameNotFoundException e) {
                    throw new IllegalArgumentException(e);
                }
            } catch (IllegalArgumentException unused) {
            }
            if (strM2976 != null) {
                AbstractC1478 abstractC1478 = this.f4687;
                if (abstractC1478 == null) {
                    this.f4727 = true;
                } else {
                    abstractC1478.mo2810(true);
                }
            }
        }
        AbstractC1493.m2819(this);
        this.f4715 = true;
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public void mo2824(View view) {
        m2851();
        ViewGroup viewGroup = (ViewGroup) this.f4700.findViewById(R.id.content);
        viewGroup.removeAllViews();
        viewGroup.addView(view);
        this.f4685.f4991.onContentChanged();
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public void mo2825(View view, ViewGroup.LayoutParams layoutParams) {
        m2851();
        ((ViewGroup) this.f4700.findViewById(R.id.content)).addView(view, layoutParams);
        this.f4685.f4991.onContentChanged();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m2838(Window window) {
        if (this.f4684 != null) {
            throw new IllegalStateException("AppCompat has already installed itself into the Window");
        }
        Window.Callback callback = window.getCallback();
        if (callback instanceof C1500) {
            throw new IllegalStateException("AppCompat has already installed itself into the Window");
        }
        C1500 c1500 = new C1500(callback);
        this.f4685 = c1500;
        window.setCallback(c1500);
        C1689 c1689M3293 = C1689.m3293(this.f4683, (AttributeSet) null, f4678);
        Drawable drawableM3302 = c1689M3293.m3302(0);
        if (drawableM3302 != null) {
            window.setBackgroundDrawable(drawableM3302);
        }
        c1689M3293.f5496.recycle();
        this.f4684 = window;
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public final void mo2826(CharSequence charSequence) {
        this.f4689 = charSequence;
        InterfaceC1648 interfaceC1648 = this.f4690;
        if (interfaceC1648 != null) {
            interfaceC1648.setWindowTitle(charSequence);
            return;
        }
        AbstractC1478 abstractC1478 = this.f4687;
        if (abstractC1478 != null) {
            abstractC1478.mo2805(charSequence);
            return;
        }
        TextView textView = this.f4701;
        if (textView != null) {
            textView.setText(charSequence);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:87:0x0163  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m2839(C1507 c1507, KeyEvent keyEvent) {
        boolean z;
        int i;
        ViewGroup.LayoutParams layoutParams;
        if (c1507.f4779 || this.f4717) {
            return;
        }
        if (c1507.f4765 == 0) {
            if ((this.f4683.getResources().getConfiguration().screenLayout & 15) == 4) {
                return;
            }
        }
        Window.Callback callbackM2853 = m2853();
        if (callbackM2853 != null && !callbackM2853.onMenuOpened(c1507.f4765, c1507.f4774)) {
            m2840(c1507, true);
            return;
        }
        WindowManager windowManager = (WindowManager) this.f4683.getSystemService("window");
        if (windowManager != null && m2845(c1507, keyEvent)) {
            if (c1507.f4771 != null && !c1507.f4781) {
                View view = c1507.f4773;
                if (view != null && (layoutParams = view.getLayoutParams()) != null && layoutParams.width == -1) {
                    i = -1;
                }
                c1507.f4778 = false;
                WindowManager.LayoutParams layoutParams2 = new WindowManager.LayoutParams(i, -2, c1507.f4768, c1507.f4769, 1002, 8519680, -3);
                layoutParams2.gravity = c1507.f4767;
                layoutParams2.windowAnimations = c1507.f4770;
                windowManager.addView(c1507.f4771, layoutParams2);
                c1507.f4779 = true;
            }
            ViewGroup viewGroup = c1507.f4771;
            ExpandedMenuView expandedMenuView = null;
            if (viewGroup == null) {
                m2854();
                AbstractC1478 abstractC1478 = this.f4687;
                Context contextMo2811 = abstractC1478 != null ? abstractC1478.mo2811() : null;
                if (contextMo2811 == null) {
                    contextMo2811 = this.f4683;
                }
                TypedValue typedValue = new TypedValue();
                Resources.Theme themeNewTheme = contextMo2811.getResources().newTheme();
                themeNewTheme.setTo(contextMo2811.getTheme());
                themeNewTheme.resolveAttribute(C1468.actionBarPopupTheme, typedValue, true);
                int i2 = typedValue.resourceId;
                if (i2 != 0) {
                    themeNewTheme.applyStyle(i2, true);
                }
                themeNewTheme.resolveAttribute(C1468.panelMenuListTheme, typedValue, true);
                int i3 = typedValue.resourceId;
                if (i3 != 0) {
                    themeNewTheme.applyStyle(i3, true);
                } else {
                    themeNewTheme.applyStyle(C1476.Theme_AppCompat_CompactMenu, true);
                }
                C1550 c1550 = new C1550(contextMo2811, 0);
                c1550.getTheme().setTo(themeNewTheme);
                c1507.f4776 = c1550;
                TypedArray typedArrayObtainStyledAttributes = c1550.obtainStyledAttributes(C1477.AppCompatTheme);
                c1507.f4766 = typedArrayObtainStyledAttributes.getResourceId(C1477.AppCompatTheme_panelBackground, 0);
                c1507.f4770 = typedArrayObtainStyledAttributes.getResourceId(C1477.AppCompatTheme_android_windowAnimationStyle, 0);
                typedArrayObtainStyledAttributes.recycle();
                c1507.f4771 = new C1506(c1507.f4776);
                c1507.f4767 = 81;
            } else if (c1507.f4781 && viewGroup.getChildCount() > 0) {
                c1507.f4771.removeAllViews();
            }
            View view2 = c1507.f4773;
            if (view2 == null) {
                if (c1507.f4774 != null) {
                    if (this.f4692 == null) {
                        this.f4692 = new C1508();
                    }
                    C1508 c1508 = this.f4692;
                    if (c1507.f4774 != null) {
                        if (c1507.f4775 == null) {
                            C1569 c1569 = new C1569(c1507.f4776, C1474.abc_list_menu_item_layout);
                            c1507.f4775 = c1569;
                            c1569.f5066 = c1508;
                            C1572 c1572 = c1507.f4774;
                            c1572.m3092(c1569, c1572.f5077);
                        }
                        C1569 c15692 = c1507.f4775;
                        ViewGroup viewGroup2 = c1507.f4771;
                        if (c15692.f5062 == null) {
                            c15692.f5062 = (ExpandedMenuView) c15692.f5060.inflate(C1474.abc_expanded_menu_layout, viewGroup2, false);
                            if (c15692.f5067 == null) {
                                c15692.f5067 = c15692.new C1570();
                            }
                            c15692.f5062.setAdapter((ListAdapter) c15692.f5067);
                            c15692.f5062.setOnItemClickListener(c15692);
                        }
                        expandedMenuView = c15692.f5062;
                    }
                    c1507.f4772 = expandedMenuView;
                    if (expandedMenuView != null) {
                    }
                    if (z) {
                        if (c1507.f4772 != null && (c1507.f4773 != null || c1507.f4775.m3081().getCount() > 0)) {
                            ViewGroup.LayoutParams layoutParams3 = c1507.f4772.getLayoutParams();
                            if (layoutParams3 == null) {
                                layoutParams3 = new ViewGroup.LayoutParams(-2, -2);
                            }
                            c1507.f4771.setBackgroundResource(c1507.f4766);
                            ViewParent parent = c1507.f4772.getParent();
                            if (parent instanceof ViewGroup) {
                                ((ViewGroup) parent).removeView(c1507.f4772);
                            }
                            c1507.f4771.addView(c1507.f4772, layoutParams3);
                            if (!c1507.f4772.hasFocus()) {
                                c1507.f4772.requestFocus();
                            }
                        }
                    }
                    c1507.f4781 = true;
                    return;
                }
                z = false;
                if (z) {
                }
                c1507.f4781 = true;
                return;
            }
            c1507.f4772 = view2;
            z = true;
            if (z) {
            }
            c1507.f4781 = true;
            return;
            i = -2;
            c1507.f4778 = false;
            WindowManager.LayoutParams layoutParams22 = new WindowManager.LayoutParams(i, -2, c1507.f4768, c1507.f4769, 1002, 8519680, -3);
            layoutParams22.gravity = c1507.f4767;
            layoutParams22.windowAnimations = c1507.f4770;
            windowManager.addView(c1507.f4771, layoutParams22);
            c1507.f4779 = true;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m2840(C1507 c1507, boolean z) {
        ViewGroup viewGroup;
        InterfaceC1648 interfaceC1648;
        if (z && c1507.f4765 == 0 && (interfaceC1648 = this.f4690) != null && interfaceC1648.mo131()) {
            m2844(c1507.f4774);
            return;
        }
        WindowManager windowManager = (WindowManager) this.f4683.getSystemService("window");
        if (windowManager != null && c1507.f4779 && (viewGroup = c1507.f4771) != null) {
            windowManager.removeView(viewGroup);
            if (z) {
                m2837(c1507.f4765, c1507, (Menu) null);
            }
        }
        c1507.f4777 = false;
        c1507.f4778 = false;
        c1507.f4779 = false;
        c1507.f4772 = null;
        c1507.f4781 = true;
        if (this.f4712 == c1507) {
            this.f4712 = null;
        }
    }

    @Override // p037.p041.p049.p050.C1572.InterfaceC1573
    /* JADX INFO: renamed from: ֏ */
    public void mo144(C1572 c1572) {
        InterfaceC1648 interfaceC1648 = this.f4690;
        if (interfaceC1648 == null || !interfaceC1648.mo137() || (ViewConfiguration.get(this.f4683).hasPermanentMenuKey() && !this.f4690.mo134())) {
            C1507 c1507M2847 = m2847(0);
            c1507M2847.f4781 = true;
            m2840(c1507M2847, false);
            m2839(c1507M2847, (KeyEvent) null);
            return;
        }
        Window.Callback callbackM2853 = m2853();
        if (this.f4690.mo131()) {
            this.f4690.mo135();
            if (this.f4717) {
                return;
            }
            callbackM2853.onPanelClosed(108, m2847(0).f4774);
            return;
        }
        if (callbackM2853 == null || this.f4717) {
            return;
        }
        if (this.f4724 && (1 & this.f4725) != 0) {
            this.f4684.getDecorView().removeCallbacks(this.f4726);
            this.f4726.run();
        }
        C1507 c1507M28472 = m2847(0);
        C1572 c15722 = c1507M28472.f4774;
        if (c15722 == null || c1507M28472.f4782 || !callbackM2853.onPreparePanel(0, c1507M28472.f4773, c15722)) {
            return;
        }
        callbackM2853.onMenuOpened(108, c1507M28472.f4774);
        this.f4690.mo136();
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ֏ */
    public boolean mo2827(int i) {
        if (i == 8) {
            Log.i("AppCompatDelegate", "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR id when requesting this feature.");
            i = 108;
        } else if (i == 9) {
            Log.i("AppCompatDelegate", "You should now use the AppCompatDelegate.FEATURE_SUPPORT_ACTION_BAR_OVERLAY id when requesting this feature.");
            i = 109;
        }
        if (this.f4709 && i == 108) {
            return false;
        }
        if (this.f4705 && i == 1) {
            this.f4705 = false;
        }
        if (i == 1) {
            m2856();
            this.f4709 = true;
            return true;
        }
        if (i == 2) {
            m2856();
            this.f4703 = true;
            return true;
        }
        if (i == 5) {
            m2856();
            this.f4704 = true;
            return true;
        }
        if (i == 10) {
            m2856();
            this.f4707 = true;
            return true;
        }
        if (i == 108) {
            m2856();
            this.f4705 = true;
            return true;
        }
        if (i != 109) {
            return this.f4684.requestFeature(i);
        }
        m2856();
        this.f4706 = true;
        return true;
    }

    /* JADX WARN: Removed duplicated region for block: B:101:? A[RETURN, SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:69:0x00ca  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public boolean m2841(KeyEvent keyEvent) {
        View decorView;
        boolean z;
        boolean zMo135;
        boolean zM2845;
        Object obj = this.f4682;
        if (((obj instanceof C1910.InterfaceC1911) || (obj instanceof DialogC1515)) && (decorView = this.f4684.getDecorView()) != null && C1920.m3754(decorView, keyEvent)) {
            return true;
        }
        if (keyEvent.getKeyCode() == 82 && this.f4685.f4991.dispatchKeyEvent(keyEvent)) {
            return true;
        }
        int keyCode = keyEvent.getKeyCode();
        if (keyEvent.getAction() == 0) {
            if (keyCode == 4) {
                this.f4713 = (keyEvent.getFlags() & 128) != 0;
            } else if (keyCode == 82) {
                if (keyEvent.getRepeatCount() != 0) {
                    return true;
                }
                C1507 c1507M2847 = m2847(0);
                if (c1507M2847.f4779) {
                    return true;
                }
                m2845(c1507M2847, keyEvent);
                return true;
            }
        } else if (keyCode == 4) {
            boolean z2 = this.f4713;
            this.f4713 = false;
            C1507 c1507M28472 = m2847(0);
            if (c1507M28472 != null && c1507M28472.f4779) {
                if (z2) {
                    return true;
                }
                m2840(c1507M28472, true);
                return true;
            }
            AbstractC1547 abstractC1547 = this.f4693;
            if (abstractC1547 != null) {
                abstractC1547.mo3008();
            } else {
                m2854();
                AbstractC1478 abstractC1478 = this.f4687;
                z = abstractC1478 != null && abstractC1478.mo2807();
                if (!z) {
                    return true;
                }
            }
            if (!z) {
            }
        } else if (keyCode == 82) {
            if (this.f4693 != null) {
                return true;
            }
            C1507 c1507M28473 = m2847(0);
            InterfaceC1648 interfaceC1648 = this.f4690;
            if (interfaceC1648 == null || !interfaceC1648.mo137() || ViewConfiguration.get(this.f4683).hasPermanentMenuKey()) {
                if (c1507M28473.f4779 || c1507M28473.f4778) {
                    zMo135 = c1507M28473.f4779;
                    m2840(c1507M28473, true);
                } else if (c1507M28473.f4777) {
                    if (c1507M28473.f4782) {
                        c1507M28473.f4777 = false;
                        zM2845 = m2845(c1507M28473, keyEvent);
                    } else {
                        zM2845 = true;
                    }
                    if (zM2845) {
                        m2839(c1507M28473, keyEvent);
                        zMo135 = true;
                    }
                } else {
                    zMo135 = false;
                }
            } else if (this.f4690.mo131()) {
                zMo135 = this.f4690.mo135();
            } else if (!this.f4717 && m2845(c1507M28473, keyEvent)) {
                zMo135 = this.f4690.mo136();
            }
            if (!zMo135) {
                return true;
            }
            AudioManager audioManager = (AudioManager) this.f4683.getApplicationContext().getSystemService("audio");
            if (audioManager != null) {
                audioManager.playSoundEffect(0);
                return true;
            }
            Log.w("AppCompatDelegate", "Couldn't get audio manager");
            return true;
        }
        return false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final boolean m2842(C1507 c1507, int i, KeyEvent keyEvent, int i2) {
        C1572 c1572;
        boolean zPerformShortcut = false;
        if (keyEvent.isSystem()) {
            return false;
        }
        if ((c1507.f4777 || m2845(c1507, keyEvent)) && (c1572 = c1507.f4774) != null) {
            zPerformShortcut = c1572.performShortcut(i, keyEvent, i2);
        }
        if (zPerformShortcut && (i2 & 1) == 0 && this.f4690 == null) {
            m2840(c1507, true);
        }
        return zPerformShortcut;
    }

    @Override // p037.p041.p049.p050.C1572.InterfaceC1573
    /* JADX INFO: renamed from: ֏ */
    public boolean mo145(C1572 c1572, MenuItem menuItem) {
        C1507 c1507M2836;
        Window.Callback callbackM2853 = m2853();
        if (callbackM2853 == null || this.f4717 || (c1507M2836 = m2836((Menu) c1572.mo3102())) == null) {
            return false;
        }
        return callbackM2853.onMenuItemSelected(c1507M2836.f4765, menuItem);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:110:0x01f0  */
    /* JADX WARN: Removed duplicated region for block: B:50:0x010a  */
    /* JADX WARN: Removed duplicated region for block: B:91:0x01bf  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m2843(boolean z) {
        boolean z2;
        Map map;
        Object obj;
        Object obj2;
        Object obj3;
        boolean z3 = false;
        if (this.f4717) {
            Log.d("AppCompatDelegate", "applyDayNight. Skipping because host is destroyed");
            return false;
        }
        int i = this.f4718;
        if (i == -100) {
            i = -100;
        }
        int iM2832 = m2832(this.f4683, i);
        Configuration configurationM2834 = m2834(this.f4683, iM2832, (Configuration) null);
        boolean z4 = true;
        if (this.f4721 || !(this.f4682 instanceof Activity)) {
            this.f4721 = true;
            z2 = this.f4720;
        } else {
            PackageManager packageManager = this.f4683.getPackageManager();
            if (packageManager == null) {
                z2 = false;
            } else {
                try {
                    ActivityInfo activityInfo = packageManager.getActivityInfo(new ComponentName(this.f4683, this.f4682.getClass()), Build.VERSION.SDK_INT >= 29 ? 269221888 : Build.VERSION.SDK_INT >= 24 ? 786432 : 0);
                    this.f4720 = (activityInfo == null || (activityInfo.configChanges & 512) == 0) ? false : true;
                } catch (PackageManager.NameNotFoundException e) {
                    Log.d("AppCompatDelegate", "Exception while getting ActivityInfo", e);
                    this.f4720 = false;
                }
                this.f4721 = true;
                z2 = this.f4720;
            }
        }
        int i2 = this.f4683.getResources().getConfiguration().uiMode & 48;
        int i3 = configurationM2834.uiMode & 48;
        Log.d("AppCompatDelegate", String.format("updateForNightMode [allowRecreation:%s, currentNightMode:%d, newNightMode:%d, activityHandlingUiMode:%s, baseContextAttached:%s, created:%s, canReturnDifferentContext:%s, host:%s]", Boolean.valueOf(z), Integer.valueOf(i2), Integer.valueOf(i3), Boolean.valueOf(z2), Boolean.valueOf(this.f4714), Boolean.valueOf(this.f4715), Boolean.valueOf(f4679), this.f4682));
        if (i2 != i3 && z && !z2 && this.f4714 && (f4679 || this.f4715)) {
            Object obj4 = this.f4682;
            if ((obj4 instanceof Activity) && !((Activity) obj4).isChild()) {
                StringBuilder sbM4889 = C2803.m4889("updateForNightMode attempting to recreate Activity: ");
                sbM4889.append(this.f4682);
                Log.d("AppCompatDelegate", sbM4889.toString());
                C1830.m3634((Activity) this.f4682);
                z3 = true;
            }
        } else {
            StringBuilder sbM48892 = C2803.m4889("updateForNightMode not recreating Activity: ");
            sbM48892.append(this.f4682);
            Log.d("AppCompatDelegate", sbM48892.toString());
        }
        if (z3 || i2 == i3) {
            z4 = z3;
        } else {
            StringBuilder sbM48893 = C2803.m4889("updateForNightMode. Updating resources config on host: ");
            sbM48893.append(this.f4682);
            Log.d("AppCompatDelegate", sbM48893.toString());
            Resources resources = this.f4683.getResources();
            Configuration configuration = new Configuration(resources.getConfiguration());
            configuration.uiMode = i3 | (resources.getConfiguration().uiMode & (-49));
            resources.updateConfiguration(configuration, null);
            int i4 = Build.VERSION.SDK_INT;
            if (i4 < 26 && i4 < 28) {
                if (i4 >= 24) {
                    if (!C1505.f4752) {
                        try {
                            Field declaredField = Resources.class.getDeclaredField("mResourcesImpl");
                            C1505.f4751 = declaredField;
                            declaredField.setAccessible(true);
                        } catch (NoSuchFieldException e2) {
                            Log.e("ResourcesFlusher", "Could not retrieve Resources#mResourcesImpl field", e2);
                        }
                        C1505.f4752 = true;
                    }
                    Field field = C1505.f4751;
                    if (field != null) {
                        try {
                            obj2 = field.get(resources);
                        } catch (IllegalAccessException e3) {
                            Log.e("ResourcesFlusher", "Could not retrieve value from Resources#mResourcesImpl", e3);
                            obj2 = null;
                        }
                        if (obj2 != null) {
                            if (!C1505.f4746) {
                                try {
                                    Field declaredField2 = obj2.getClass().getDeclaredField("mDrawableCache");
                                    C1505.f4745 = declaredField2;
                                    declaredField2.setAccessible(true);
                                } catch (NoSuchFieldException e4) {
                                    Log.e("ResourcesFlusher", "Could not retrieve ResourcesImpl#mDrawableCache field", e4);
                                }
                                C1505.f4746 = true;
                            }
                            Field field2 = C1505.f4745;
                            if (field2 != null) {
                                try {
                                    obj3 = field2.get(obj2);
                                } catch (IllegalAccessException e5) {
                                    Log.e("ResourcesFlusher", "Could not retrieve value from ResourcesImpl#mDrawableCache", e5);
                                    obj3 = null;
                                }
                                if (obj3 != null) {
                                    C1505.m2950(obj3);
                                }
                            } else {
                                obj3 = null;
                                if (obj3 != null) {
                                }
                            }
                        }
                    }
                } else if (i4 >= 23) {
                    if (!C1505.f4746) {
                        try {
                            Field declaredField3 = Resources.class.getDeclaredField("mDrawableCache");
                            C1505.f4745 = declaredField3;
                            declaredField3.setAccessible(true);
                        } catch (NoSuchFieldException e6) {
                            Log.e("ResourcesFlusher", "Could not retrieve Resources#mDrawableCache field", e6);
                        }
                        C1505.f4746 = true;
                    }
                    Field field3 = C1505.f4745;
                    if (field3 != null) {
                        try {
                            obj = field3.get(resources);
                        } catch (IllegalAccessException e7) {
                            Log.e("ResourcesFlusher", "Could not retrieve value from Resources#mDrawableCache", e7);
                            obj = null;
                        }
                        if (obj != null) {
                            C1505.m2950(obj);
                        }
                    } else {
                        obj = null;
                        if (obj != null) {
                        }
                    }
                } else {
                    if (!C1505.f4746) {
                        try {
                            Field declaredField4 = Resources.class.getDeclaredField("mDrawableCache");
                            C1505.f4745 = declaredField4;
                            declaredField4.setAccessible(true);
                        } catch (NoSuchFieldException e8) {
                            Log.e("ResourcesFlusher", "Could not retrieve Resources#mDrawableCache field", e8);
                        }
                        C1505.f4746 = true;
                    }
                    Field field4 = C1505.f4745;
                    if (field4 != null) {
                        try {
                            map = (Map) field4.get(resources);
                        } catch (IllegalAccessException e9) {
                            Log.e("ResourcesFlusher", "Could not retrieve value from Resources#mDrawableCache", e9);
                            map = null;
                        }
                        if (map != null) {
                            map.clear();
                        }
                    }
                }
            }
            int i5 = this.f4719;
            if (i5 != 0) {
                this.f4683.setTheme(i5);
                if (Build.VERSION.SDK_INT >= 23) {
                    this.f4683.getTheme().applyStyle(this.f4719, true);
                }
            }
            if (z2) {
                Object obj5 = this.f4682;
                if (obj5 instanceof Activity) {
                    Activity activity = (Activity) obj5;
                    if (activity instanceof InterfaceC2219) {
                        if (((C2221) ((InterfaceC2219) activity).getLifecycle()).f7160.m4274(AbstractC2210.EnumC2212.STARTED)) {
                            activity.onConfigurationChanged(configuration);
                        }
                    } else if (this.f4716) {
                        activity.onConfigurationChanged(configuration);
                    }
                }
            }
        }
        if (!z4) {
            StringBuilder sbM4896 = C2803.m4896("updateForNightMode. Skipping. Night mode: ", iM2832, " for host:");
            sbM4896.append(this.f4682);
            Log.d("AppCompatDelegate", sbM4896.toString());
        }
        if (z4) {
            Object obj6 = this.f4682;
            if ((obj6 instanceof ActivityC1491) && ((ActivityC1491) obj6) == null) {
                throw null;
            }
        }
        if (i == 0) {
            m2835(this.f4683).m2867();
        } else {
            AbstractC1502 abstractC1502 = this.f4722;
            if (abstractC1502 != null) {
                abstractC1502.m2866();
            }
        }
        if (i == 3) {
            Context context = this.f4683;
            if (this.f4723 == null) {
                this.f4723 = new C1501(context);
            }
            this.f4723.m2867();
        } else {
            AbstractC1502 abstractC15022 = this.f4723;
            if (abstractC15022 != null) {
                abstractC15022.m2866();
            }
        }
        return z4;
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ؠ */
    public void mo2828() {
        m2854();
        AbstractC1478 abstractC1478 = this.f4687;
        m2850(0);
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ؠ */
    public void mo2829(int i) {
        m2851();
        ViewGroup viewGroup = (ViewGroup) this.f4700.findViewById(R.id.content);
        viewGroup.removeAllViews();
        LayoutInflater.from(this.f4683).inflate(i, viewGroup);
        this.f4685.f4991.onContentChanged();
    }

    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ؠ */
    public void mo2830(View view, ViewGroup.LayoutParams layoutParams) {
        m2851();
        ViewGroup viewGroup = (ViewGroup) this.f4700.findViewById(R.id.content);
        viewGroup.removeAllViews();
        viewGroup.addView(view, layoutParams);
        this.f4685.f4991.onContentChanged();
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public void m2844(C1572 c1572) {
        if (this.f4710) {
            return;
        }
        this.f4710 = true;
        this.f4690.mo138();
        Window.Callback callbackM2853 = m2853();
        if (callbackM2853 != null && !this.f4717) {
            callbackM2853.onPanelClosed(108, c1572);
        }
        this.f4710 = false;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final boolean m2845(C1507 c1507, KeyEvent keyEvent) {
        InterfaceC1648 interfaceC1648;
        Resources.Theme themeNewTheme;
        InterfaceC1648 interfaceC16482;
        InterfaceC1648 interfaceC16483;
        if (this.f4717) {
            return false;
        }
        if (c1507.f4777) {
            return true;
        }
        C1507 c15072 = this.f4712;
        if (c15072 != null && c15072 != c1507) {
            m2840(c15072, false);
        }
        Window.Callback callbackM2853 = m2853();
        if (callbackM2853 != null) {
            c1507.f4773 = callbackM2853.onCreatePanelView(c1507.f4765);
        }
        int i = c1507.f4765;
        boolean z = i == 0 || i == 108;
        if (z && (interfaceC16483 = this.f4690) != null) {
            interfaceC16483.mo133();
        }
        if (c1507.f4773 == null) {
            if (c1507.f4774 == null || c1507.f4782) {
                if (c1507.f4774 == null) {
                    Context context = this.f4683;
                    int i2 = c1507.f4765;
                    if ((i2 == 0 || i2 == 108) && this.f4690 != null) {
                        TypedValue typedValue = new TypedValue();
                        Resources.Theme theme = context.getTheme();
                        theme.resolveAttribute(C1468.actionBarTheme, typedValue, true);
                        if (typedValue.resourceId != 0) {
                            themeNewTheme = context.getResources().newTheme();
                            themeNewTheme.setTo(theme);
                            themeNewTheme.applyStyle(typedValue.resourceId, true);
                            themeNewTheme.resolveAttribute(C1468.actionBarWidgetTheme, typedValue, true);
                        } else {
                            theme.resolveAttribute(C1468.actionBarWidgetTheme, typedValue, true);
                            themeNewTheme = null;
                        }
                        if (typedValue.resourceId != 0) {
                            if (themeNewTheme == null) {
                                themeNewTheme = context.getResources().newTheme();
                                themeNewTheme.setTo(theme);
                            }
                            themeNewTheme.applyStyle(typedValue.resourceId, true);
                        }
                        if (themeNewTheme != null) {
                            C1550 c1550 = new C1550(context, 0);
                            c1550.getTheme().setTo(themeNewTheme);
                            context = c1550;
                        }
                    }
                    C1572 c1572 = new C1572(context);
                    c1572.f5081 = this;
                    c1507.m2996(c1572);
                    if (c1507.f4774 == null) {
                        return false;
                    }
                }
                if (z && this.f4690 != null) {
                    if (this.f4691 == null) {
                        this.f4691 = new C1497();
                    }
                    this.f4690.mo124(c1507.f4774, this.f4691);
                }
                c1507.f4774.m3109();
                if (!callbackM2853.onCreatePanelMenu(c1507.f4765, c1507.f4774)) {
                    c1507.m2996(null);
                    if (z && (interfaceC1648 = this.f4690) != null) {
                        interfaceC1648.mo124(null, this.f4691);
                    }
                    return false;
                }
                c1507.f4782 = false;
            }
            c1507.f4774.m3109();
            Bundle bundle = c1507.f4783;
            if (bundle != null) {
                c1507.f4774.m3089(bundle);
                c1507.f4783 = null;
            }
            if (!callbackM2853.onPreparePanel(0, c1507.f4773, c1507.f4774)) {
                if (z && (interfaceC16482 = this.f4690) != null) {
                    interfaceC16482.mo124(null, this.f4691);
                }
                c1507.f4774.m3108();
                return false;
            }
            boolean z2 = KeyCharacterMap.load(keyEvent != null ? keyEvent.getDeviceId() : -1).getKeyboardType() != 1;
            c1507.f4780 = z2;
            c1507.f4774.setQwertyMode(z2);
            c1507.f4774.m3108();
        }
        c1507.f4777 = true;
        c1507.f4778 = false;
        this.f4712 = c1507;
        return true;
    }

    /* JADX WARN: Removed duplicated region for block: B:12:0x0042  */
    @Override // p037.p041.p042.AbstractC1493
    /* JADX INFO: renamed from: ހ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void mo2831() {
        AbstractC1493.m2820(this);
        if (this.f4724) {
            this.f4684.getDecorView().removeCallbacks(this.f4726);
        }
        this.f4716 = false;
        this.f4717 = true;
        if (this.f4718 != -100) {
            Object obj = this.f4682;
            if ((obj instanceof Activity) && ((Activity) obj).isChangingConfigurations()) {
                f4676.put(this.f4682.getClass().getName(), Integer.valueOf(this.f4718));
            } else {
                f4676.remove(this.f4682.getClass().getName());
            }
        }
        AbstractC1478 abstractC1478 = this.f4687;
        if (abstractC1478 != null && abstractC1478 == null) {
            throw null;
        }
        AbstractC1502 abstractC1502 = this.f4722;
        if (abstractC1502 != null) {
            abstractC1502.m2866();
        }
        AbstractC1502 abstractC15022 = this.f4723;
        if (abstractC15022 != null) {
            abstractC15022.m2866();
        }
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void m2846(int i) {
        C1507 c1507M2847;
        C1507 c1507M28472 = m2847(i);
        if (c1507M28472.f4774 != null) {
            Bundle bundle = new Bundle();
            c1507M28472.f4774.m3099(bundle);
            if (bundle.size() > 0) {
                c1507M28472.f4783 = bundle;
            }
            c1507M28472.f4774.m3109();
            c1507M28472.f4774.clear();
        }
        c1507M28472.f4782 = true;
        c1507M28472.f4781 = true;
        if ((i != 108 && i != 0) || this.f4690 == null || (c1507M2847 = m2847(0)) == null) {
            return;
        }
        c1507M2847.f4777 = false;
        m2845(c1507M2847, (KeyEvent) null);
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public C1507 m2847(int i) {
        C1507[] c1507Arr = this.f4711;
        if (c1507Arr == null || c1507Arr.length <= i) {
            C1507[] c1507Arr2 = new C1507[i + 1];
            if (c1507Arr != null) {
                System.arraycopy(c1507Arr, 0, c1507Arr2, 0, c1507Arr.length);
            }
            this.f4711 = c1507Arr2;
            c1507Arr = c1507Arr2;
        }
        C1507 c1507 = c1507Arr[i];
        if (c1507 != null) {
            return c1507;
        }
        C1507 c15072 = new C1507(i);
        c1507Arr[i] = c15072;
        return c15072;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public boolean m2848() {
        return m2843(true);
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public void m2849() {
        C1931 c1931 = this.f4697;
        if (c1931 != null) {
            c1931.m3790();
        }
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final void m2850(int i) {
        this.f4725 = (1 << i) | this.f4725;
        if (this.f4724) {
            return;
        }
        C1920.m3745(this.f4684.getDecorView(), this.f4726);
        this.f4724 = true;
    }

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final void m2851() {
        ViewGroup viewGroup;
        if (this.f4699) {
            return;
        }
        TypedArray typedArrayObtainStyledAttributes = this.f4683.obtainStyledAttributes(C1477.AppCompatTheme);
        if (!typedArrayObtainStyledAttributes.hasValue(C1477.AppCompatTheme_windowActionBar)) {
            typedArrayObtainStyledAttributes.recycle();
            throw new IllegalStateException("You need to use a Theme.AppCompat theme (or descendant) with this activity.");
        }
        if (typedArrayObtainStyledAttributes.getBoolean(C1477.AppCompatTheme_windowNoTitle, false)) {
            mo2827(1);
        } else if (typedArrayObtainStyledAttributes.getBoolean(C1477.AppCompatTheme_windowActionBar, false)) {
            mo2827(108);
        }
        if (typedArrayObtainStyledAttributes.getBoolean(C1477.AppCompatTheme_windowActionBarOverlay, false)) {
            mo2827(109);
        }
        if (typedArrayObtainStyledAttributes.getBoolean(C1477.AppCompatTheme_windowActionModeOverlay, false)) {
            mo2827(10);
        }
        this.f4708 = typedArrayObtainStyledAttributes.getBoolean(C1477.AppCompatTheme_android_windowIsFloating, false);
        typedArrayObtainStyledAttributes.recycle();
        m2852();
        this.f4684.getDecorView();
        LayoutInflater layoutInflaterFrom = LayoutInflater.from(this.f4683);
        if (this.f4709) {
            viewGroup = this.f4707 ? (ViewGroup) layoutInflaterFrom.inflate(C1474.abc_screen_simple_overlay_action_mode, (ViewGroup) null) : (ViewGroup) layoutInflaterFrom.inflate(C1474.abc_screen_simple, (ViewGroup) null);
        } else if (this.f4708) {
            viewGroup = (ViewGroup) layoutInflaterFrom.inflate(C1474.abc_dialog_title_material, (ViewGroup) null);
            this.f4706 = false;
            this.f4705 = false;
        } else if (this.f4705) {
            TypedValue typedValue = new TypedValue();
            this.f4683.getTheme().resolveAttribute(C1468.actionBarTheme, typedValue, true);
            viewGroup = (ViewGroup) LayoutInflater.from(typedValue.resourceId != 0 ? new C1550(this.f4683, typedValue.resourceId) : this.f4683).inflate(C1474.abc_screen_toolbar, (ViewGroup) null);
            InterfaceC1648 interfaceC1648 = (InterfaceC1648) viewGroup.findViewById(C1473.decor_content_parent);
            this.f4690 = interfaceC1648;
            interfaceC1648.setWindowCallback(m2853());
            if (this.f4706) {
                this.f4690.mo122(109);
            }
            if (this.f4703) {
                this.f4690.mo122(2);
            }
            if (this.f4704) {
                this.f4690.mo122(5);
            }
        } else {
            viewGroup = null;
        }
        if (viewGroup == null) {
            StringBuilder sbM4889 = C2803.m4889("AppCompat does not support the current theme features: { windowActionBar: ");
            sbM4889.append(this.f4705);
            sbM4889.append(", windowActionBarOverlay: ");
            sbM4889.append(this.f4706);
            sbM4889.append(", android:windowIsFloating: ");
            sbM4889.append(this.f4708);
            sbM4889.append(", windowActionModeOverlay: ");
            sbM4889.append(this.f4707);
            sbM4889.append(", windowNoTitle: ");
            throw new IllegalArgumentException(C2803.m4885(sbM4889, this.f4709, " }"));
        }
        C1920.m3749(viewGroup, new C1509(this));
        if (this.f4690 == null) {
            this.f4701 = (TextView) viewGroup.findViewById(C1473.title);
        }
        C1698.m3319(viewGroup);
        ContentFrameLayout contentFrameLayout = (ContentFrameLayout) viewGroup.findViewById(C1473.action_bar_activity_content);
        ViewGroup viewGroup2 = (ViewGroup) this.f4684.findViewById(R.id.content);
        if (viewGroup2 != null) {
            while (viewGroup2.getChildCount() > 0) {
                View childAt = viewGroup2.getChildAt(0);
                viewGroup2.removeViewAt(0);
                contentFrameLayout.addView(childAt);
            }
            viewGroup2.setId(-1);
            contentFrameLayout.setId(R.id.content);
            if (viewGroup2 instanceof FrameLayout) {
                ((FrameLayout) viewGroup2).setForeground(null);
            }
        }
        this.f4684.setContentView(viewGroup);
        contentFrameLayout.setAttachListener(new C1511(this));
        this.f4700 = viewGroup;
        Object obj = this.f4682;
        CharSequence title = obj instanceof Activity ? ((Activity) obj).getTitle() : this.f4689;
        if (!TextUtils.isEmpty(title)) {
            InterfaceC1648 interfaceC16482 = this.f4690;
            if (interfaceC16482 != null) {
                interfaceC16482.setWindowTitle(title);
            } else {
                AbstractC1478 abstractC1478 = this.f4687;
                if (abstractC1478 != null) {
                    abstractC1478.mo2805(title);
                } else {
                    TextView textView = this.f4701;
                    if (textView != null) {
                        textView.setText(title);
                    }
                }
            }
        }
        ContentFrameLayout contentFrameLayout2 = (ContentFrameLayout) this.f4700.findViewById(R.id.content);
        View decorView = this.f4684.getDecorView();
        contentFrameLayout2.f315.set(decorView.getPaddingLeft(), decorView.getPaddingTop(), decorView.getPaddingRight(), decorView.getPaddingBottom());
        if (C1920.m3770(contentFrameLayout2)) {
            contentFrameLayout2.requestLayout();
        }
        TypedArray typedArrayObtainStyledAttributes2 = this.f4683.obtainStyledAttributes(C1477.AppCompatTheme);
        typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowMinWidthMajor, contentFrameLayout2.getMinWidthMajor());
        typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowMinWidthMinor, contentFrameLayout2.getMinWidthMinor());
        if (typedArrayObtainStyledAttributes2.hasValue(C1477.AppCompatTheme_windowFixedWidthMajor)) {
            typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowFixedWidthMajor, contentFrameLayout2.getFixedWidthMajor());
        }
        if (typedArrayObtainStyledAttributes2.hasValue(C1477.AppCompatTheme_windowFixedWidthMinor)) {
            typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowFixedWidthMinor, contentFrameLayout2.getFixedWidthMinor());
        }
        if (typedArrayObtainStyledAttributes2.hasValue(C1477.AppCompatTheme_windowFixedHeightMajor)) {
            typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowFixedHeightMajor, contentFrameLayout2.getFixedHeightMajor());
        }
        if (typedArrayObtainStyledAttributes2.hasValue(C1477.AppCompatTheme_windowFixedHeightMinor)) {
            typedArrayObtainStyledAttributes2.getValue(C1477.AppCompatTheme_windowFixedHeightMinor, contentFrameLayout2.getFixedHeightMinor());
        }
        typedArrayObtainStyledAttributes2.recycle();
        contentFrameLayout2.requestLayout();
        this.f4699 = true;
        C1507 c1507M2847 = m2847(0);
        if (this.f4717) {
            return;
        }
        if (c1507M2847 == null || c1507M2847.f4774 == null) {
            m2850(108);
        }
    }

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final void m2852() {
        if (this.f4684 == null) {
            Object obj = this.f4682;
            if (obj instanceof Activity) {
                m2838(((Activity) obj).getWindow());
            }
        }
        if (this.f4684 == null) {
            throw new IllegalStateException("We have not been given a Window");
        }
    }

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final Window.Callback m2853() {
        return this.f4684.getCallback();
    }

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final void m2854() {
        m2851();
        if (this.f4705 && this.f4687 == null) {
            Object obj = this.f4682;
            if (obj instanceof Activity) {
                this.f4687 = new C1522((Activity) this.f4682, this.f4706);
            } else if (obj instanceof Dialog) {
                this.f4687 = new C1522((Dialog) this.f4682);
            }
            AbstractC1478 abstractC1478 = this.f4687;
            if (abstractC1478 != null) {
                abstractC1478.mo2810(this.f4727);
            }
        }
    }

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final boolean m2855() {
        ViewGroup viewGroup;
        return this.f4699 && (viewGroup = this.f4700) != null && C1920.m3770(viewGroup);
    }

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final void m2856() {
        if (this.f4699) {
            throw new AndroidRuntimeException("Window feature must be requested before adding content");
        }
    }
}
