package defpackage;

import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.PopupWindow;
import android.widget.TextView;
import androidx.media3.exoplayer.ExoPlayer;
import androidx.media3.ui.DefaultTimeBar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import ar.tvplayer.tv.R;
import com.google.common.util.concurrent.ListenableFuture;
import j$.util.Objects;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collections;
import java.util.Formatter;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.CopyOnWriteArrayList;

/* JADX INFO: renamed from: ˎˇʙˉ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1702 extends FrameLayout {

    /* JADX INFO: renamed from: ᵠᐧ, reason: contains not printable characters */
    public static final float[] f6717;

    /* JADX INFO: renamed from: ʽᵡᵢᵾ, reason: contains not printable characters */
    public final ImageView f6718;

    /* JADX INFO: renamed from: ʿٴˇ, reason: contains not printable characters */
    public final CopyOnWriteArrayList f6719;

    /* JADX INFO: renamed from: ʿᵯᴵ, reason: contains not printable characters */
    public final float f6720;

    /* JADX INFO: renamed from: ʿᵿʽᵞ, reason: contains not printable characters */
    public final ImageView f6721;

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public final ImageView f6722;

    /* JADX INFO: renamed from: ˀᵛᵟ, reason: contains not printable characters */
    public final String f6723;

    /* JADX INFO: renamed from: ˀᵝᵙᵛ, reason: contains not printable characters */
    public final String f6724;

    /* JADX INFO: renamed from: ˀᵭ, reason: contains not printable characters */
    public final C1484 f6725;

    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    public final TextView f6726;

    /* JADX INFO: renamed from: ˁˌᵩ, reason: contains not printable characters */
    public final C3364 f6727;

    /* JADX INFO: renamed from: ˁᵺˈ, reason: contains not printable characters */
    public final View f6728;

    /* JADX INFO: renamed from: ˆʤᵳ, reason: contains not printable characters */
    public final Drawable f6729;

    /* JADX INFO: renamed from: ˆˀᵯ, reason: contains not printable characters */
    public final String f6730;

    /* JADX INFO: renamed from: ˆˌˁ, reason: contains not printable characters */
    public boolean[] f6731;

    /* JADX INFO: renamed from: ˆᵱʣ, reason: contains not printable characters */
    public boolean f6732;

    /* JADX INFO: renamed from: ˈˊˑˑ, reason: contains not printable characters */
    public long f6733;

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public final Method f6734;

    /* JADX INFO: renamed from: ˈⁱᵡ, reason: contains not printable characters */
    public final ImageView f6735;

    /* JADX INFO: renamed from: ˉˆᵗ, reason: contains not printable characters */
    public final View f6736;

    /* JADX INFO: renamed from: ˉᵵᵜ, reason: contains not printable characters */
    public final C3916 f6737;

    /* JADX INFO: renamed from: ˊʧᵖ, reason: contains not printable characters */
    public final Drawable f6738;

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public final TextView f6739;

    /* JADX INFO: renamed from: ˊᵡᵗʨ, reason: contains not printable characters */
    public final ᵧᵙᵤ f6740;

    /* JADX INFO: renamed from: ˊᵶᵕᵛ, reason: contains not printable characters */
    public InterfaceC4650 f6741;

    /* JADX INFO: renamed from: ˊᵾʽʼ, reason: contains not printable characters */
    public final C1484 f6742;

    /* JADX INFO: renamed from: ˋʿᐧ, reason: contains not printable characters */
    public final View f6743;

    /* JADX INFO: renamed from: ˋᵤᵦ, reason: contains not printable characters */
    public boolean f6744;

    /* JADX INFO: renamed from: ˋᵯᵩ, reason: contains not printable characters */
    public final TextView f6745;

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final C0408 f6746;

    /* JADX INFO: renamed from: ˌᵨʠᵫ, reason: contains not printable characters */
    public final Class f6747;

    /* JADX INFO: renamed from: ˎʞ, reason: contains not printable characters */
    public boolean f6748;

    /* JADX INFO: renamed from: ˏʜᵪ, reason: contains not printable characters */
    public final RunnableC4972 f6749;

    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public final Drawable f6750;

    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters */
    public final ImageView f6751;

    /* JADX INFO: renamed from: ːᵝٴᵶ, reason: contains not printable characters */
    public final InterfaceC0863 f6752;

    /* JADX INFO: renamed from: ˑʢ, reason: contains not printable characters */
    public final ImageView f6753;

    /* JADX INFO: renamed from: ˑˊᵲ, reason: contains not printable characters */
    public final Method f6754;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final Handler f6755;

    /* JADX INFO: renamed from: ᵔﹳ, reason: contains not printable characters */
    public boolean f6756;

    /* JADX INFO: renamed from: ᵕʢ, reason: contains not printable characters */
    public boolean f6757;

    /* JADX INFO: renamed from: ᵕˁːᵚ, reason: contains not printable characters */
    public long[] f6758;

    /* JADX INFO: renamed from: ᵕᵜʽᵰ, reason: contains not printable characters */
    public final float f6759;

    /* JADX INFO: renamed from: ᵗᵭ, reason: contains not printable characters */
    public final StringBuilder f6760;

    /* JADX INFO: renamed from: ᵘᵝ, reason: contains not printable characters */
    public final Drawable f6761;

    /* JADX INFO: renamed from: ᵘᵫᵡ, reason: contains not printable characters */
    public final String f6762;

    /* JADX INFO: renamed from: ᵚᵹᵔᵜ, reason: contains not printable characters */
    public final Drawable f6763;

    /* JADX INFO: renamed from: ᵛˀˊ, reason: contains not printable characters */
    public final ImageView f6764;

    /* JADX INFO: renamed from: ᵛˑﹳ, reason: contains not printable characters */
    public final PopupWindow f6765;

    /* JADX INFO: renamed from: ᵜᵤ, reason: contains not printable characters */
    public final TextView f6766;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final Resources f6767;

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public final View f6768;

    /* JADX INFO: renamed from: ᵟᵴᵥ, reason: contains not printable characters */
    public final String f6769;

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public final RecyclerView f6770;

    /* JADX INFO: renamed from: ᵠᵚˀᵫ, reason: contains not printable characters */
    public final Drawable f6771;

    /* JADX INFO: renamed from: ᵠᵲˁ, reason: contains not printable characters */
    public final Drawable f6772;

    /* JADX INFO: renamed from: ᵡᵶ, reason: contains not printable characters */
    public final ImageView f6773;

    /* JADX INFO: renamed from: ᵡᵶᵬʤ, reason: contains not printable characters */
    public final ImageView f6774;

    /* JADX INFO: renamed from: ᵣʚʿ, reason: contains not printable characters */
    public final Drawable f6775;

    /* JADX INFO: renamed from: ᵥﹶ, reason: contains not printable characters */
    public boolean f6776;

    /* JADX INFO: renamed from: ᵧᵠᵾ, reason: contains not printable characters */
    public final String f6777;

    /* JADX INFO: renamed from: ᵧᵢᵴᵸ, reason: contains not printable characters */
    public final String f6778;

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public final View f6779;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final ViewOnClickListenerC1322 f6780;

    /* JADX INFO: renamed from: ᵪʚᵯʝ, reason: contains not printable characters */
    public int f6781;

    /* JADX INFO: renamed from: ᵪᵳˀ, reason: contains not printable characters */
    public int f6782;

    /* JADX INFO: renamed from: ᵫˈᵹ, reason: contains not printable characters */
    public final Formatter f6783;

    /* JADX INFO: renamed from: ᵬᵦˋ, reason: contains not printable characters */
    public final C5201 f6784;

    /* JADX INFO: renamed from: ᵭᵬ, reason: contains not printable characters */
    public int f6785;

    /* JADX INFO: renamed from: ᵮᵟᵡ, reason: contains not printable characters */
    public final Drawable f6786;

    /* JADX INFO: renamed from: ᵯˇ, reason: contains not printable characters */
    public final String f6787;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final Class f6788;

    /* JADX INFO: renamed from: ᵰʜ, reason: contains not printable characters */
    public boolean f6789;

    /* JADX INFO: renamed from: ᵱʢᵢ, reason: contains not printable characters */
    public boolean f6790;

    /* JADX INFO: renamed from: ᵱᵭ, reason: contains not printable characters */
    public final Drawable f6791;

    /* JADX INFO: renamed from: ᵴˀᵰʒ, reason: contains not printable characters */
    public final boolean[] f6792;

    /* JADX INFO: renamed from: ᵵᵬᵽ, reason: contains not printable characters */
    public final int f6793;

    /* JADX INFO: renamed from: ᵵᵸᵕᵸ, reason: contains not printable characters */
    public final C4593 f6794;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public final Method f6795;

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public final Method f6796;

    /* JADX INFO: renamed from: ᵹʾᵢᵯ, reason: contains not printable characters */
    public final Drawable f6797;

    /* JADX INFO: renamed from: ᵽˀᵥ, reason: contains not printable characters */
    public final String f6798;

    /* JADX INFO: renamed from: ᵾᵻﹳᵮ, reason: contains not printable characters */
    public final long[] f6799;

    static {
        AbstractC0456.m1895("media3.ui");
        f6717 = new float[]{0.25f, 0.5f, 0.75f, 1.0f, 1.25f, 1.5f, 2.0f};
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Removed duplicated region for block: B:102:0x04a9  */
    /* JADX WARN: Removed duplicated region for block: B:105:0x0668  */
    /* JADX WARN: Removed duplicated region for block: B:106:0x066a  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x0245  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x025d  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0260  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x027b  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x028c  */
    /* JADX WARN: Removed duplicated region for block: B:47:0x029c  */
    /* JADX WARN: Removed duplicated region for block: B:50:0x02ac  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x02c3  */
    /* JADX WARN: Removed duplicated region for block: B:55:0x02cb  */
    /* JADX WARN: Removed duplicated region for block: B:60:0x0310  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x0335  */
    /* JADX WARN: Removed duplicated region for block: B:66:0x0347  */
    /* JADX WARN: Removed duplicated region for block: B:69:0x0364  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x037c  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x03a9  */
    /* JADX WARN: Removed duplicated region for block: B:76:0x03fa  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x040b  */
    /* JADX WARN: Removed duplicated region for block: B:83:0x041e  */
    /* JADX WARN: Removed duplicated region for block: B:86:0x0437  */
    /* JADX WARN: Removed duplicated region for block: B:87:0x0448  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x045b  */
    /* JADX WARN: Removed duplicated region for block: B:96:0x046d  */
    /* JADX WARN: Removed duplicated region for block: B:99:0x047f  */
    /* JADX WARN: Unreachable blocks removed: 1, instructions: 2 */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public C1702(Context context, AttributeSet attributeSet) throws NoSuchMethodException {
        Class<?> cls;
        int i;
        int resourceId;
        int resourceId2;
        int resourceId3;
        int resourceId4;
        int resourceId5;
        int resourceId6;
        int resourceId7;
        int resourceId8;
        int resourceId9;
        int i2;
        int i3;
        int i4;
        boolean z;
        boolean z2;
        boolean z3;
        boolean z4;
        boolean z5;
        boolean z6;
        boolean z7;
        int i5;
        int i6;
        boolean z8;
        Method method;
        Method method2;
        Class<?> cls2;
        Method method3;
        Method method4;
        ImageView imageView;
        ImageView imageView2;
        int i7;
        ImageView imageView3;
        View viewFindViewById;
        View viewFindViewById2;
        View viewFindViewById3;
        InterfaceC0863 interfaceC0863;
        boolean z9;
        int i8;
        Handler.Callback callback;
        InterfaceC0863 interfaceC08632;
        ImageView imageView4;
        ImageView imageView5;
        ImageView imageView6;
        int i9;
        ImageView imageView7;
        boolean z10;
        int i10;
        int i11;
        int i12;
        int i13;
        int i14;
        boolean z11;
        boolean z12;
        boolean z13;
        boolean z14;
        int i15;
        int i16;
        int i17;
        int i18;
        ImageView imageView8;
        boolean z15;
        int i19;
        int i20;
        boolean z16;
        int i21;
        int i22;
        Typeface typefaceM1673;
        ImageView imageView9;
        View view;
        ImageView imageView10;
        View view2;
        ImageView imageView11;
        ImageView imageView12;
        ImageView imageView13;
        super(context, null, 0);
        Class<?> cls3 = Boolean.TYPE;
        this.f6776 = true;
        this.f6781 = 5000;
        this.f6785 = 0;
        this.f6782 = 200;
        int resourceId10 = R.drawable._4jv_res_0x7f0800fa;
        int resourceId11 = R.drawable._439_res_0x7f0800f9;
        int resourceId12 = R.drawable._17u_res_0x7f0800f6;
        if (attributeSet != null) {
            TypedArray typedArrayObtainStyledAttributes = context.getTheme().obtainStyledAttributes(attributeSet, AbstractC4694.f17859, 0, 0);
            try {
                int resourceId13 = typedArrayObtainStyledAttributes.getResourceId(6, R.layout._2nh_res_0x7f0e003d);
                resourceId10 = typedArrayObtainStyledAttributes.getResourceId(12, R.drawable._4jv_res_0x7f0800fa);
                resourceId11 = typedArrayObtainStyledAttributes.getResourceId(11, R.drawable._439_res_0x7f0800f9);
                resourceId12 = typedArrayObtainStyledAttributes.getResourceId(10, R.drawable._17u_res_0x7f0800f6);
                int resourceId14 = typedArrayObtainStyledAttributes.getResourceId(7, R.drawable._2c5_res_0x7f080103);
                int resourceId15 = typedArrayObtainStyledAttributes.getResourceId(15, R.drawable._1js_res_0x7f0800fb);
                int resourceId16 = typedArrayObtainStyledAttributes.getResourceId(20, R.drawable._3ms_res_0x7f080104);
                int resourceId17 = typedArrayObtainStyledAttributes.getResourceId(9, R.drawable._3t9_res_0x7f0800f5);
                cls = cls3;
                resourceId = typedArrayObtainStyledAttributes.getResourceId(8, R.drawable._4h9_res_0x7f0800f4);
                resourceId2 = typedArrayObtainStyledAttributes.getResourceId(17, R.drawable.hq);
                resourceId3 = typedArrayObtainStyledAttributes.getResourceId(18, R.drawable._30e_res_0x7f0800fe);
                resourceId4 = typedArrayObtainStyledAttributes.getResourceId(16, R.drawable.cf);
                resourceId5 = typedArrayObtainStyledAttributes.getResourceId(35, R.drawable._4d9_res_0x7f080102);
                resourceId6 = typedArrayObtainStyledAttributes.getResourceId(34, R.drawable.sm);
                resourceId7 = typedArrayObtainStyledAttributes.getResourceId(37, R.drawable._1be_res_0x7f080107);
                resourceId8 = typedArrayObtainStyledAttributes.getResourceId(36, R.drawable._4cr_res_0x7f080106);
                resourceId9 = typedArrayObtainStyledAttributes.getResourceId(42, R.drawable._4qg_res_0x7f080108);
                this.f6781 = typedArrayObtainStyledAttributes.getInt(32, this.f6781);
                this.f6785 = typedArrayObtainStyledAttributes.getInt(19, this.f6785);
                z4 = typedArrayObtainStyledAttributes.getBoolean(29, true);
                z5 = typedArrayObtainStyledAttributes.getBoolean(26, true);
                z6 = typedArrayObtainStyledAttributes.getBoolean(28, true);
                z7 = typedArrayObtainStyledAttributes.getBoolean(27, true);
                z2 = typedArrayObtainStyledAttributes.getBoolean(30, false);
                i3 = resourceId17;
                boolean z17 = typedArrayObtainStyledAttributes.getBoolean(31, false);
                boolean z18 = typedArrayObtainStyledAttributes.getBoolean(33, false);
                this.f6756 = typedArrayObtainStyledAttributes.getBoolean(39, false);
                setTimeBarMinUpdateInterval(typedArrayObtainStyledAttributes.getInt(38, this.f6782));
                boolean z19 = typedArrayObtainStyledAttributes.getBoolean(2, true);
                typedArrayObtainStyledAttributes.recycle();
                z = z19;
                i = 2;
                i4 = resourceId13;
                i5 = resourceId15;
                i6 = resourceId14;
                z8 = z17;
                i2 = resourceId16;
                z3 = z18;
            } catch (Throwable th) {
                typedArrayObtainStyledAttributes.recycle();
                throw th;
            }
        } else {
            cls = cls3;
            i = 2;
            resourceId = R.drawable._4h9_res_0x7f0800f4;
            resourceId2 = R.drawable.hq;
            resourceId3 = R.drawable._30e_res_0x7f0800fe;
            resourceId4 = R.drawable.cf;
            resourceId5 = R.drawable._4d9_res_0x7f080102;
            resourceId6 = R.drawable.sm;
            resourceId7 = R.drawable._1be_res_0x7f080107;
            resourceId8 = R.drawable._4cr_res_0x7f080106;
            resourceId9 = R.drawable._4qg_res_0x7f080108;
            i2 = R.drawable._3ms_res_0x7f080104;
            i3 = R.drawable._3t9_res_0x7f0800f5;
            i4 = R.layout._2nh_res_0x7f0e003d;
            z = true;
            z2 = false;
            z3 = false;
            z4 = true;
            z5 = true;
            z6 = true;
            z7 = true;
            i5 = R.drawable._1js_res_0x7f0800fb;
            i6 = R.drawable._2c5_res_0x7f080103;
            z8 = false;
        }
        LayoutInflater.from(context).inflate(i4, this);
        setDescendantFocusability(262144);
        this.f6780 = new ViewOnClickListenerC1322(this);
        this.f6719 = new CopyOnWriteArrayList();
        this.f6794 = new C4593();
        this.f6784 = new C5201();
        StringBuilder sb = new StringBuilder();
        this.f6760 = sb;
        this.f6783 = new Formatter(sb, Locale.getDefault());
        this.f6758 = new long[0];
        this.f6731 = new boolean[0];
        this.f6799 = new long[0];
        this.f6792 = new boolean[0];
        this.f6749 = new RunnableC4972(8, this);
        try {
            method = ExoPlayer.class.getMethod("setScrubbingModeEnabled", cls);
        } catch (ClassNotFoundException | NoSuchMethodException unused) {
            method = null;
        }
        try {
            method2 = ExoPlayer.class.getMethod("isScrubbingModeEnabled", null);
        } catch (ClassNotFoundException | NoSuchMethodException unused2) {
            method2 = null;
        }
        this.f6788 = ExoPlayer.class;
        this.f6795 = method;
        this.f6734 = method2;
        try {
            cls2 = Class.forName("androidx.media3.transformer.CompositionPlayer");
        } catch (ClassNotFoundException | NoSuchMethodException unused3) {
            cls2 = null;
        }
        try {
            method3 = cls2.getMethod("setScrubbingModeEnabled", cls);
        } catch (ClassNotFoundException | NoSuchMethodException unused4) {
            method3 = null;
            method4 = null;
            this.f6747 = cls2;
            this.f6796 = method3;
            this.f6754 = method4;
            this.f6745 = (TextView) findViewById(R.id._3p0_res_0x7f0b016c);
            this.f6766 = (TextView) findViewById(R.id.c7);
            imageView = (ImageView) findViewById(R.id._475_res_0x7f0b018d);
            this.f6721 = imageView;
            if (imageView != null) {
            }
            imageView2 = (ImageView) findViewById(R.id._3fm_res_0x7f0b0172);
            this.f6773 = imageView2;
            ᵤᵸˈˊ r2 = new ᵤᵸˈˊ(7, this);
            if (imageView2 != null) {
            }
            imageView3 = (ImageView) findViewById(R.id._1bq_res_0x7f0b0178);
            this.f6774 = imageView3;
            ᵤᵸˈˊ r22 = new ᵤᵸˈˊ(7, this);
            if (imageView3 != null) {
            }
            viewFindViewById = findViewById(R.id.g7);
            this.f6743 = viewFindViewById;
            if (viewFindViewById != null) {
            }
            viewFindViewById2 = findViewById(R.id._1fj_res_0x7f0b0180);
            this.f6736 = viewFindViewById2;
            if (viewFindViewById2 != null) {
            }
            viewFindViewById3 = findViewById(R.id._6l_res_0x7f0b0162);
            this.f6728 = viewFindViewById3;
            if (viewFindViewById3 != null) {
            }
            interfaceC0863 = (InterfaceC0863) findViewById(R.id._1v6_res_0x7f0b0183);
            View viewFindViewById4 = findViewById(R.id._2em_res_0x7f0b0184);
            if (interfaceC0863 == null) {
            }
            callback = null;
            interfaceC08632 = this.f6752;
            if (interfaceC08632 != null) {
            }
            this.f6755 = AbstractC0956.m3260(callback);
            Resources resources = context.getResources();
            this.f6767 = resources;
            imageView4 = (ImageView) findViewById(R.id.ok);
            this.f6735 = imageView4;
            if (imageView4 != null) {
            }
            imageView5 = (ImageView) findViewById(R.id._10a_res_0x7f0b0182);
            this.f6753 = imageView5;
            if (imageView5 != null) {
            }
            imageView6 = (ImageView) findViewById(R.id._51_res_0x7f0b0179);
            this.f6718 = imageView6;
            if (imageView6 != null) {
            }
            ThreadLocal threadLocal = AbstractC0354.f2145;
            if (context.isRestricted()) {
            }
            imageView9 = (ImageView) findViewById(R.id._2an_res_0x7f0b0186);
            TextView textView = (TextView) findViewById(R.id._8d_res_0x7f0b0187);
            if (imageView9 != null) {
            }
            view = this.f6768;
            if (view != null) {
            }
            imageView10 = (ImageView) findViewById(R.id._3k3_res_0x7f0b0170);
            TextView textView2 = (TextView) findViewById(R.id._33t_res_0x7f0b0171);
            if (imageView10 != null) {
            }
            view2 = this.f6779;
            if (view2 != null) {
            }
            imageView11 = (ImageView) findViewById(R.id.vj);
            this.f6722 = imageView11;
            if (imageView11 != null) {
            }
            imageView12 = (ImageView) findViewById(R.id._3je_res_0x7f0b018a);
            this.f6751 = imageView12;
            if (imageView12 != null) {
            }
            this.f6720 = resources.getInteger(R.integer._2ue_res_0x7f0c000c) / 100.0f;
            this.f6759 = resources.getInteger(R.integer._399_res_0x7f0c000b) / 100.0f;
            imageView13 = (ImageView) findViewById(R.id._3kl_res_0x7f0b0193);
            this.f6764 = imageView13;
            if (imageView13 != null) {
            }
            C0408 c0408 = new C0408(this);
            this.f6746 = c0408;
            c0408.f2316 = z9;
            String string = resources.getString(R.string._3q3_res_0x7f1300a1);
            Drawable drawable = resources.getDrawable(R.drawable._37r_res_0x7f080105, context.getTheme());
            String[] strArr = {string, resources.getString(R.string.c4)};
            Drawable drawable2 = resources.getDrawable(R.drawable._32o_res_0x7f0800f1, context.getTheme());
            Drawable[] drawableArr = new Drawable[i19];
            drawableArr[0] = drawable;
            drawableArr[1] = drawable2;
            C3916 c3916 = new C3916(this, strArr, drawableArr);
            this.f6737 = c3916;
            this.f6793 = resources.getDimensionPixelSize(R.dimen._3c7_res_0x7f0700b3);
            RecyclerView recyclerView = (RecyclerView) LayoutInflater.from(context).inflate(R.layout._2na_res_0x7f0e003f, (ViewGroup) null);
            this.f6770 = recyclerView;
            recyclerView.setAdapter(c3916);
            getContext();
            recyclerView.setLayoutManager(new LinearLayoutManager(1));
            PopupWindow popupWindow = new PopupWindow((View) recyclerView, -2, -2, true);
            this.f6765 = popupWindow;
            popupWindow.setOnDismissListener(this.f6780);
            this.f6757 = true;
            this.f6740 = new ᵧᵙᵤ(getResources());
            this.f6772 = resources.getDrawable(i20, context.getTheme());
            this.f6771 = resources.getDrawable(i14, context.getTheme());
            this.f6723 = resources.getString(R.string._41v_res_0x7f130096);
            this.f6724 = resources.getString(R.string._1gn_res_0x7f130095);
            this.f6725 = new C1484(this, 1);
            this.f6742 = new C1484(this, 0);
            this.f6727 = new C3364(this, resources.getStringArray(R.array._3mi_res_0x7f030000), f6717);
            this.f6761 = resources.getDrawable(i21, context.getTheme());
            this.f6729 = resources.getDrawable(i16, context.getTheme());
            this.f6775 = resources.getDrawable(i15, context.getTheme());
            this.f6738 = resources.getDrawable(i18, context.getTheme());
            this.f6797 = resources.getDrawable(resourceId2, context.getTheme());
            this.f6786 = resources.getDrawable(i10, context.getTheme());
            this.f6750 = resources.getDrawable(i11, context.getTheme());
            this.f6763 = resources.getDrawable(i12, context.getTheme());
            this.f6791 = resources.getDrawable(i13, context.getTheme());
            this.f6777 = resources.getString(R.string._2ci_res_0x7f13009a);
            this.f6762 = resources.getString(R.string.ii);
            this.f6787 = resources.getString(R.string._3ca_res_0x7f1300a4);
            this.f6778 = resources.getString(R.string._2b_res_0x7f1300a5);
            this.f6730 = resources.getString(R.string._17l_res_0x7f1300a3);
            this.f6769 = resources.getString(R.string._2ni_res_0x7f1300ab);
            this.f6798 = resources.getString(R.string._2c0_res_0x7f1300aa);
            c0408.m1749((ViewGroup) findViewById(R.id.p7), true);
            c0408.m1749(this.f6779, z12);
            c0408.m1749(this.f6768, z11);
            c0408.m1749(imageView8, z13);
            c0408.m1749(imageView7, z14);
            c0408.m1749(imageView12, z15);
            c0408.m1749(this.f6721, z10);
            c0408.m1749(imageView13, z16);
            c0408.m1749(imageView11, this.f6785 != 0);
            addOnLayoutChangeListener(new ViewOnLayoutChangeListenerC0889(1, this));
        }
        try {
            method4 = cls2.getMethod("isScrubbingModeEnabled", null);
        } catch (ClassNotFoundException | NoSuchMethodException unused5) {
            method4 = null;
        }
        this.f6747 = cls2;
        this.f6796 = method3;
        this.f6754 = method4;
        this.f6745 = (TextView) findViewById(R.id._3p0_res_0x7f0b016c);
        this.f6766 = (TextView) findViewById(R.id.c7);
        imageView = (ImageView) findViewById(R.id._475_res_0x7f0b018d);
        this.f6721 = imageView;
        if (imageView != null) {
            imageView.setOnClickListener(this.f6780);
        }
        imageView2 = (ImageView) findViewById(R.id._3fm_res_0x7f0b0172);
        this.f6773 = imageView2;
        ᵤᵸˈˊ r23 = new ᵤᵸˈˊ(7, this);
        if (imageView2 != null) {
            i7 = 8;
        } else {
            i7 = 8;
            imageView2.setVisibility(8);
            imageView2.setOnClickListener(r23);
        }
        imageView3 = (ImageView) findViewById(R.id._1bq_res_0x7f0b0178);
        this.f6774 = imageView3;
        ᵤᵸˈˊ r222 = new ᵤᵸˈˊ(7, this);
        if (imageView3 != null) {
            imageView3.setVisibility(i7);
            imageView3.setOnClickListener(r222);
        }
        viewFindViewById = findViewById(R.id.g7);
        this.f6743 = viewFindViewById;
        if (viewFindViewById != null) {
            viewFindViewById.setOnClickListener(this.f6780);
        }
        viewFindViewById2 = findViewById(R.id._1fj_res_0x7f0b0180);
        this.f6736 = viewFindViewById2;
        if (viewFindViewById2 != null) {
            viewFindViewById2.setOnClickListener(this.f6780);
        }
        viewFindViewById3 = findViewById(R.id._6l_res_0x7f0b0162);
        this.f6728 = viewFindViewById3;
        if (viewFindViewById3 != null) {
            viewFindViewById3.setOnClickListener(this.f6780);
        }
        interfaceC0863 = (InterfaceC0863) findViewById(R.id._1v6_res_0x7f0b0183);
        View viewFindViewById42 = findViewById(R.id._2em_res_0x7f0b0184);
        if (interfaceC0863 == null) {
            this.f6752 = interfaceC0863;
            z9 = z;
            i8 = i2;
        } else {
            if (viewFindViewById42 == null) {
                z9 = z;
                i8 = i2;
                callback = null;
                this.f6752 = null;
                interfaceC08632 = this.f6752;
                if (interfaceC08632 != null) {
                    ViewOnClickListenerC1322 viewOnClickListenerC1322 = this.f6780;
                    viewOnClickListenerC1322.getClass();
                    ((DefaultTimeBar) interfaceC08632).f680.add(viewOnClickListenerC1322);
                }
                this.f6755 = AbstractC0956.m3260(callback);
                Resources resources2 = context.getResources();
                this.f6767 = resources2;
                imageView4 = (ImageView) findViewById(R.id.ok);
                this.f6735 = imageView4;
                if (imageView4 != null) {
                    imageView4.setOnClickListener(this.f6780);
                }
                imageView5 = (ImageView) findViewById(R.id._10a_res_0x7f0b0182);
                this.f6753 = imageView5;
                if (imageView5 != null) {
                    imageView5.setImageDrawable(resources2.getDrawable(i5, context.getTheme()));
                    imageView5.setOnClickListener(this.f6780);
                }
                imageView6 = (ImageView) findViewById(R.id._51_res_0x7f0b0179);
                this.f6718 = imageView6;
                if (imageView6 != null) {
                    imageView6.setImageDrawable(resources2.getDrawable(resourceId12, context.getTheme()));
                    imageView6.setOnClickListener(this.f6780);
                }
                ThreadLocal threadLocal2 = AbstractC0354.f2145;
                if (context.isRestricted()) {
                    imageView7 = imageView6;
                    z10 = z8;
                    i9 = i6;
                    i16 = resourceId11;
                    i17 = i8;
                    i10 = resourceId3;
                    i11 = resourceId4;
                    i12 = resourceId5;
                    i13 = resourceId6;
                    i14 = resourceId8;
                    i22 = resourceId9;
                    z11 = z4;
                    z12 = z5;
                    z13 = z6;
                    z14 = z7;
                    i15 = i3;
                    typefaceM1673 = null;
                    z15 = z2;
                    i19 = i;
                    i18 = resourceId;
                    imageView8 = imageView5;
                    z16 = z3;
                    i20 = resourceId7;
                    i21 = resourceId10;
                } else {
                    i9 = i6;
                    imageView7 = imageView6;
                    z10 = z8;
                    i10 = resourceId3;
                    i11 = resourceId4;
                    i12 = resourceId5;
                    i13 = resourceId6;
                    i14 = resourceId8;
                    z11 = z4;
                    z12 = z5;
                    z13 = z6;
                    z14 = z7;
                    i15 = i3;
                    i16 = resourceId11;
                    i17 = i8;
                    i18 = resourceId;
                    imageView8 = imageView5;
                    z15 = z2;
                    i19 = i;
                    i20 = resourceId7;
                    z16 = z3;
                    i21 = resourceId10;
                    i22 = resourceId9;
                    typefaceM1673 = AbstractC0354.m1673(context, R.font._3f1_res_0x7f090000, new TypedValue(), 0, null, false);
                }
                imageView9 = (ImageView) findViewById(R.id._2an_res_0x7f0b0186);
                TextView textView3 = (TextView) findViewById(R.id._8d_res_0x7f0b0187);
                if (imageView9 != null) {
                    imageView9.setImageDrawable(resources2.getDrawable(i17, context.getTheme()));
                    this.f6768 = imageView9;
                    this.f6726 = null;
                } else if (textView3 != null) {
                    textView3.setTypeface(typefaceM1673);
                    this.f6726 = textView3;
                    this.f6768 = textView3;
                } else {
                    this.f6726 = null;
                    this.f6768 = null;
                }
                view = this.f6768;
                if (view != null) {
                    view.setOnClickListener(this.f6780);
                }
                imageView10 = (ImageView) findViewById(R.id._3k3_res_0x7f0b0170);
                TextView textView22 = (TextView) findViewById(R.id._33t_res_0x7f0b0171);
                if (imageView10 != null) {
                    imageView10.setImageDrawable(resources2.getDrawable(i9, context.getTheme()));
                    this.f6779 = imageView10;
                    this.f6739 = null;
                } else if (textView22 != null) {
                    textView22.setTypeface(typefaceM1673);
                    this.f6739 = textView22;
                    this.f6779 = textView22;
                } else {
                    this.f6739 = null;
                    this.f6779 = null;
                }
                view2 = this.f6779;
                if (view2 != null) {
                    view2.setOnClickListener(this.f6780);
                }
                imageView11 = (ImageView) findViewById(R.id.vj);
                this.f6722 = imageView11;
                if (imageView11 != null) {
                    imageView11.setOnClickListener(this.f6780);
                }
                imageView12 = (ImageView) findViewById(R.id._3je_res_0x7f0b018a);
                this.f6751 = imageView12;
                if (imageView12 != null) {
                    imageView12.setOnClickListener(this.f6780);
                }
                this.f6720 = resources2.getInteger(R.integer._2ue_res_0x7f0c000c) / 100.0f;
                this.f6759 = resources2.getInteger(R.integer._399_res_0x7f0c000b) / 100.0f;
                imageView13 = (ImageView) findViewById(R.id._3kl_res_0x7f0b0193);
                this.f6764 = imageView13;
                if (imageView13 != null) {
                    imageView13.setImageDrawable(resources2.getDrawable(i22, context.getTheme()));
                    m4674(imageView13, false);
                }
                C0408 c04082 = new C0408(this);
                this.f6746 = c04082;
                c04082.f2316 = z9;
                String string2 = resources2.getString(R.string._3q3_res_0x7f1300a1);
                Drawable drawable3 = resources2.getDrawable(R.drawable._37r_res_0x7f080105, context.getTheme());
                String[] strArr2 = {string2, resources2.getString(R.string.c4)};
                Drawable drawable22 = resources2.getDrawable(R.drawable._32o_res_0x7f0800f1, context.getTheme());
                Drawable[] drawableArr2 = new Drawable[i19];
                drawableArr2[0] = drawable3;
                drawableArr2[1] = drawable22;
                C3916 c39162 = new C3916(this, strArr2, drawableArr2);
                this.f6737 = c39162;
                this.f6793 = resources2.getDimensionPixelSize(R.dimen._3c7_res_0x7f0700b3);
                RecyclerView recyclerView2 = (RecyclerView) LayoutInflater.from(context).inflate(R.layout._2na_res_0x7f0e003f, (ViewGroup) null);
                this.f6770 = recyclerView2;
                recyclerView2.setAdapter(c39162);
                getContext();
                recyclerView2.setLayoutManager(new LinearLayoutManager(1));
                PopupWindow popupWindow2 = new PopupWindow((View) recyclerView2, -2, -2, true);
                this.f6765 = popupWindow2;
                popupWindow2.setOnDismissListener(this.f6780);
                this.f6757 = true;
                this.f6740 = new ᵧᵙᵤ(getResources());
                this.f6772 = resources2.getDrawable(i20, context.getTheme());
                this.f6771 = resources2.getDrawable(i14, context.getTheme());
                this.f6723 = resources2.getString(R.string._41v_res_0x7f130096);
                this.f6724 = resources2.getString(R.string._1gn_res_0x7f130095);
                this.f6725 = new C1484(this, 1);
                this.f6742 = new C1484(this, 0);
                this.f6727 = new C3364(this, resources2.getStringArray(R.array._3mi_res_0x7f030000), f6717);
                this.f6761 = resources2.getDrawable(i21, context.getTheme());
                this.f6729 = resources2.getDrawable(i16, context.getTheme());
                this.f6775 = resources2.getDrawable(i15, context.getTheme());
                this.f6738 = resources2.getDrawable(i18, context.getTheme());
                this.f6797 = resources2.getDrawable(resourceId2, context.getTheme());
                this.f6786 = resources2.getDrawable(i10, context.getTheme());
                this.f6750 = resources2.getDrawable(i11, context.getTheme());
                this.f6763 = resources2.getDrawable(i12, context.getTheme());
                this.f6791 = resources2.getDrawable(i13, context.getTheme());
                this.f6777 = resources2.getString(R.string._2ci_res_0x7f13009a);
                this.f6762 = resources2.getString(R.string.ii);
                this.f6787 = resources2.getString(R.string._3ca_res_0x7f1300a4);
                this.f6778 = resources2.getString(R.string._2b_res_0x7f1300a5);
                this.f6730 = resources2.getString(R.string._17l_res_0x7f1300a3);
                this.f6769 = resources2.getString(R.string._2ni_res_0x7f1300ab);
                this.f6798 = resources2.getString(R.string._2c0_res_0x7f1300aa);
                c04082.m1749((ViewGroup) findViewById(R.id.p7), true);
                c04082.m1749(this.f6779, z12);
                c04082.m1749(this.f6768, z11);
                c04082.m1749(imageView8, z13);
                c04082.m1749(imageView7, z14);
                c04082.m1749(imageView12, z15);
                c04082.m1749(this.f6721, z10);
                c04082.m1749(imageView13, z16);
                c04082.m1749(imageView11, this.f6785 != 0);
                addOnLayoutChangeListener(new ViewOnLayoutChangeListenerC0889(1, this));
            }
            z9 = z;
            i8 = i2;
            DefaultTimeBar defaultTimeBar = new DefaultTimeBar(context, null, 0, attributeSet, R.style._4br_res_0x7f14014c);
            defaultTimeBar.setId(R.id._1v6_res_0x7f0b0183);
            defaultTimeBar.setLayoutParams(viewFindViewById42.getLayoutParams());
            ViewGroup viewGroup = (ViewGroup) viewFindViewById42.getParent();
            int iIndexOfChild = viewGroup.indexOfChild(viewFindViewById42);
            viewGroup.removeView(viewFindViewById42);
            viewGroup.addView(defaultTimeBar, iIndexOfChild);
            this.f6752 = defaultTimeBar;
        }
        callback = null;
        interfaceC08632 = this.f6752;
        if (interfaceC08632 != null) {
        }
        this.f6755 = AbstractC0956.m3260(callback);
        Resources resources22 = context.getResources();
        this.f6767 = resources22;
        imageView4 = (ImageView) findViewById(R.id.ok);
        this.f6735 = imageView4;
        if (imageView4 != null) {
        }
        imageView5 = (ImageView) findViewById(R.id._10a_res_0x7f0b0182);
        this.f6753 = imageView5;
        if (imageView5 != null) {
        }
        imageView6 = (ImageView) findViewById(R.id._51_res_0x7f0b0179);
        this.f6718 = imageView6;
        if (imageView6 != null) {
        }
        ThreadLocal threadLocal22 = AbstractC0354.f2145;
        if (context.isRestricted()) {
        }
        imageView9 = (ImageView) findViewById(R.id._2an_res_0x7f0b0186);
        TextView textView32 = (TextView) findViewById(R.id._8d_res_0x7f0b0187);
        if (imageView9 != null) {
        }
        view = this.f6768;
        if (view != null) {
        }
        imageView10 = (ImageView) findViewById(R.id._3k3_res_0x7f0b0170);
        TextView textView222 = (TextView) findViewById(R.id._33t_res_0x7f0b0171);
        if (imageView10 != null) {
        }
        view2 = this.f6779;
        if (view2 != null) {
        }
        imageView11 = (ImageView) findViewById(R.id.vj);
        this.f6722 = imageView11;
        if (imageView11 != null) {
        }
        imageView12 = (ImageView) findViewById(R.id._3je_res_0x7f0b018a);
        this.f6751 = imageView12;
        if (imageView12 != null) {
        }
        this.f6720 = resources22.getInteger(R.integer._2ue_res_0x7f0c000c) / 100.0f;
        this.f6759 = resources22.getInteger(R.integer._399_res_0x7f0c000b) / 100.0f;
        imageView13 = (ImageView) findViewById(R.id._3kl_res_0x7f0b0193);
        this.f6764 = imageView13;
        if (imageView13 != null) {
        }
        C0408 c040822 = new C0408(this);
        this.f6746 = c040822;
        c040822.f2316 = z9;
        String string22 = resources22.getString(R.string._3q3_res_0x7f1300a1);
        Drawable drawable32 = resources22.getDrawable(R.drawable._37r_res_0x7f080105, context.getTheme());
        String[] strArr22 = {string22, resources22.getString(R.string.c4)};
        Drawable drawable222 = resources22.getDrawable(R.drawable._32o_res_0x7f0800f1, context.getTheme());
        Drawable[] drawableArr22 = new Drawable[i19];
        drawableArr22[0] = drawable32;
        drawableArr22[1] = drawable222;
        C3916 c391622 = new C3916(this, strArr22, drawableArr22);
        this.f6737 = c391622;
        this.f6793 = resources22.getDimensionPixelSize(R.dimen._3c7_res_0x7f0700b3);
        RecyclerView recyclerView22 = (RecyclerView) LayoutInflater.from(context).inflate(R.layout._2na_res_0x7f0e003f, (ViewGroup) null);
        this.f6770 = recyclerView22;
        recyclerView22.setAdapter(c391622);
        getContext();
        recyclerView22.setLayoutManager(new LinearLayoutManager(1));
        PopupWindow popupWindow22 = new PopupWindow((View) recyclerView22, -2, -2, true);
        this.f6765 = popupWindow22;
        popupWindow22.setOnDismissListener(this.f6780);
        this.f6757 = true;
        this.f6740 = new ᵧᵙᵤ(getResources());
        this.f6772 = resources22.getDrawable(i20, context.getTheme());
        this.f6771 = resources22.getDrawable(i14, context.getTheme());
        this.f6723 = resources22.getString(R.string._41v_res_0x7f130096);
        this.f6724 = resources22.getString(R.string._1gn_res_0x7f130095);
        this.f6725 = new C1484(this, 1);
        this.f6742 = new C1484(this, 0);
        this.f6727 = new C3364(this, resources22.getStringArray(R.array._3mi_res_0x7f030000), f6717);
        this.f6761 = resources22.getDrawable(i21, context.getTheme());
        this.f6729 = resources22.getDrawable(i16, context.getTheme());
        this.f6775 = resources22.getDrawable(i15, context.getTheme());
        this.f6738 = resources22.getDrawable(i18, context.getTheme());
        this.f6797 = resources22.getDrawable(resourceId2, context.getTheme());
        this.f6786 = resources22.getDrawable(i10, context.getTheme());
        this.f6750 = resources22.getDrawable(i11, context.getTheme());
        this.f6763 = resources22.getDrawable(i12, context.getTheme());
        this.f6791 = resources22.getDrawable(i13, context.getTheme());
        this.f6777 = resources22.getString(R.string._2ci_res_0x7f13009a);
        this.f6762 = resources22.getString(R.string.ii);
        this.f6787 = resources22.getString(R.string._3ca_res_0x7f1300a4);
        this.f6778 = resources22.getString(R.string._2b_res_0x7f1300a5);
        this.f6730 = resources22.getString(R.string._17l_res_0x7f1300a3);
        this.f6769 = resources22.getString(R.string._2ni_res_0x7f1300ab);
        this.f6798 = resources22.getString(R.string._2c0_res_0x7f1300aa);
        c040822.m1749((ViewGroup) findViewById(R.id.p7), true);
        c040822.m1749(this.f6779, z12);
        c040822.m1749(this.f6768, z11);
        c040822.m1749(imageView8, z13);
        c040822.m1749(imageView7, z14);
        c040822.m1749(imageView12, z15);
        c040822.m1749(this.f6721, z10);
        c040822.m1749(imageView13, z16);
        c040822.m1749(imageView11, this.f6785 != 0);
        addOnLayoutChangeListener(new ViewOnLayoutChangeListenerC0889(1, this));
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setPlaybackSpeed(float f) {
        InterfaceC4650 interfaceC4650 = this.f6741;
        if (interfaceC4650 == null || !((C3262) interfaceC4650).m7478(13)) {
            return;
        }
        C3262 c3262 = (C3262) this.f6741;
        c3262.m7468();
        C4688 c4688 = new C4688(f, c3262.f12467.f16079.f17811);
        c3262.m7468();
        if (c3262.f12467.f16079.equals(c4688)) {
            return;
        }
        C4220 c4220M9172 = c3262.f12467.m9172(c4688);
        c3262.f12417++;
        c3262.f12466.f7032.m7172(4, c4688).m3635();
        c3262.m7444(c4220M9172, 0, false, 5, -9223372036854775807L, -1, false);
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static boolean m4668(InterfaceC4650 interfaceC4650, C5201 c5201) {
        AbstractC4975 abstractC4975M7457;
        int iMo5885;
        C3262 c3262 = (C3262) interfaceC4650;
        if (!c3262.m7478(17) || (iMo5885 = (abstractC4975M7457 = c3262.m7457()).mo5885()) <= 1 || iMo5885 > 100) {
            return false;
        }
        for (int i = 0; i < iMo5885; i++) {
            if (abstractC4975M7457.mo1664(i, c5201, 0L).f19596 == -9223372036854775807L) {
                return false;
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static void m4669(C1702 c1702, InterfaceC4650 interfaceC4650, long j) {
        if (c1702.f6790) {
            C3262 c3262 = (C3262) interfaceC4650;
            if (c3262.m7478(17) && c3262.m7478(10)) {
                AbstractC4975 abstractC4975M7457 = c3262.m7457();
                int iMo5885 = abstractC4975M7457.mo5885();
                int i = 0;
                while (true) {
                    long jM3264 = AbstractC0956.m3264(abstractC4975M7457.mo1664(i, c1702.f6784, 0L).f19596);
                    if (j < jM3264) {
                        break;
                    }
                    if (i == iMo5885 - 1) {
                        j = jM3264;
                        break;
                    } else {
                        j -= jM3264;
                        i++;
                    }
                }
                c3262.m7467(i, j, false);
            }
        } else {
            C3262 c32622 = (C3262) interfaceC4650;
            if (c32622.m7478(5)) {
                c32622.m7485(j);
            }
        }
        c1702.m4670();
    }

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

    public InterfaceC4650 getPlayer() {
        return this.f6741;
    }

    public int getRepeatToggleModes() {
        return this.f6785;
    }

    public boolean getShowShuffleButton() {
        return this.f6746.m1748(this.f6751);
    }

    public boolean getShowSubtitleButton() {
        return this.f6746.m1748(this.f6721);
    }

    public int getShowTimeoutMs() {
        return this.f6781;
    }

    public boolean getShowVrButton() {
        return this.f6746.m1748(this.f6764);
    }

    @Override // android.view.View
    public final boolean hasOverlappingRendering() {
        return false;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onAttachedToWindow() {
        super.onAttachedToWindow();
        C0408 c0408 = this.f6746;
        c0408.f2311.addOnLayoutChangeListener(c0408.f2305);
        this.f6744 = true;
        if (m4685()) {
            c0408.m1752();
        }
        m4679();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        C0408 c0408 = this.f6746;
        c0408.f2311.removeOnLayoutChangeListener(c0408.f2305);
        this.f6744 = false;
        removeCallbacks(this.f6749);
        c0408.m1755();
    }

    @Override // android.widget.FrameLayout, android.view.ViewGroup, android.view.View
    public final void onLayout(boolean z, int i, int i2, int i3, int i4) {
        super.onLayout(z, i, i2, i3, i4);
        View view = this.f6746.f2289;
        if (view != null) {
            view.layout(0, 0, i3 - i, i4 - i2);
        }
    }

    public void setAnimationEnabled(boolean z) {
        this.f6746.f2316 = z;
    }

    public void setMediaRouteButtonViewProvider(InterfaceC0443 interfaceC0443) {
        View viewFindViewById = findViewById(R.id._4n1_res_0x7f0b0176);
        if (viewFindViewById == null) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("The media route button placeholder is missing.");
            return;
        }
        if (interfaceC0443 == null) {
            viewFindViewById.setVisibility(8);
            return;
        }
        ViewGroup viewGroup = (ViewGroup) viewFindViewById.getParent();
        if (viewGroup == null) {
            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("The media route button placeholder has no parent view.");
            return;
        }
        ListenableFuture listenableFutureM1841 = interfaceC0443.m1841();
        C2994 c2994 = new C2994(2, this, viewFindViewById, viewGroup, false);
        Handler handler = this.f6755;
        Objects.requireNonNull(handler);
        listenableFutureM1841.mo834(new ʾˀᵯˁ(listenableFutureM1841, 0, c2994), new ExecutorC4459(1, handler));
    }

    @Deprecated
    public void setOnFullScreenModeChangedListener(InterfaceC3082 interfaceC3082) {
        boolean z = interfaceC3082 != null;
        ImageView imageView = this.f6773;
        if (imageView != null) {
            if (z) {
                imageView.setVisibility(0);
            } else {
                imageView.setVisibility(8);
            }
        }
        boolean z2 = interfaceC3082 != null;
        ImageView imageView2 = this.f6774;
        if (imageView2 == null) {
            return;
        }
        if (z2) {
            imageView2.setVisibility(0);
        } else {
            imageView2.setVisibility(8);
        }
    }

    public void setPlayer(InterfaceC4650 interfaceC4650) {
        ᵻᵪ.ˌᴵ(Looper.myLooper() == Looper.getMainLooper());
        ᵻᵪ.ᵱᵽʡᵚ(interfaceC4650 == null || ((C3262) interfaceC4650).f12424 == Looper.getMainLooper());
        InterfaceC4650 interfaceC46502 = this.f6741;
        if (interfaceC46502 == interfaceC4650) {
            return;
        }
        ViewOnClickListenerC1322 viewOnClickListenerC1322 = this.f6780;
        if (interfaceC46502 != null) {
            ((C3262) interfaceC46502).m7441(viewOnClickListenerC1322);
        }
        this.f6741 = interfaceC4650;
        if (interfaceC4650 != null) {
            ((C3262) interfaceC4650).m7484(viewOnClickListenerC1322);
        }
        m4679();
    }

    public void setProgressUpdateListener(InterfaceC0982 interfaceC0982) {
    }

    public void setRepeatToggleModes(int i) {
        this.f6785 = i;
        InterfaceC4650 interfaceC4650 = this.f6741;
        if (interfaceC4650 != null && ((C3262) interfaceC4650).m7478(15)) {
            C3262 c3262 = (C3262) this.f6741;
            c3262.m7468();
            int i2 = c3262.f12455;
            if (i == 0 && i2 != 0) {
                ((C3262) this.f6741).m7440(0);
            } else if (i == 1 && i2 == 2) {
                ((C3262) this.f6741).m7440(1);
            } else if (i == 2 && i2 == 1) {
                ((C3262) this.f6741).m7440(2);
            }
        }
        this.f6746.m1749(this.f6722, i != 0);
        m4676();
    }

    public void setShowFastForwardButton(boolean z) {
        this.f6746.m1749(this.f6779, z);
        m4680();
    }

    @Deprecated
    public void setShowMultiWindowTimeBar(boolean z) {
        this.f6789 = z;
        m4678();
    }

    public void setShowNextButton(boolean z) {
        this.f6746.m1749(this.f6718, z);
        m4680();
    }

    public void setShowPlayButtonIfPlaybackIsSuppressed(boolean z) {
        this.f6776 = z;
        m4684();
    }

    public void setShowPreviousButton(boolean z) {
        this.f6746.m1749(this.f6753, z);
        m4680();
    }

    public void setShowRewindButton(boolean z) {
        this.f6746.m1749(this.f6768, z);
        m4680();
    }

    public void setShowShuffleButton(boolean z) {
        this.f6746.m1749(this.f6751, z);
        m4675();
    }

    public void setShowSubtitleButton(boolean z) {
        this.f6746.m1749(this.f6721, z);
    }

    public void setShowTimeoutMs(int i) {
        this.f6781 = i;
        if (m4685()) {
            this.f6746.m1752();
        }
    }

    public void setShowVrButton(boolean z) {
        this.f6746.m1749(this.f6764, z);
    }

    public void setTimeBarMinUpdateInterval(int i) {
        this.f6782 = AbstractC0956.m3261(i, 16, 1000);
    }

    public void setTimeBarScrubbingEnabled(boolean z) {
        this.f6756 = z;
    }

    public void setVrButtonListener(View.OnClickListener onClickListener) {
        ImageView imageView = this.f6764;
        if (imageView != null) {
            imageView.setOnClickListener(onClickListener);
            m4674(imageView, onClickListener != null);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:12:0x0031  */
    /* JADX INFO: renamed from: ˉᵲ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m4670() {
        long jM7486;
        long jM7491;
        if (m4683() && this.f6744) {
            InterfaceC4650 interfaceC4650 = this.f6741;
            if (interfaceC4650 != null) {
                C3262 c3262 = (C3262) interfaceC4650;
                if (c3262.m7478(16)) {
                    long j = this.f6733;
                    c3262.m7468();
                    jM7486 = c3262.m7486(c3262.f12467) + j;
                    jM7491 = c3262.m7491() + this.f6733;
                } else {
                    jM7486 = 0;
                    jM7491 = 0;
                }
            }
            TextView textView = this.f6766;
            if (textView != null && !this.f6748) {
                textView.setText(AbstractC0956.m3217(this.f6760, this.f6783, jM7486));
            }
            InterfaceC0863 interfaceC0863 = this.f6752;
            if (interfaceC0863 != null) {
                ((DefaultTimeBar) interfaceC0863).m416(jM7486, 0L);
                if (m4687(interfaceC4650)) {
                    jM7491 = jM7486;
                }
                interfaceC0863.setBufferedPosition(jM7491);
            }
            RunnableC4972 runnableC4972 = this.f6749;
            removeCallbacks(runnableC4972);
            int iM7460 = interfaceC4650 == null ? 1 : ((C3262) interfaceC4650).m7460();
            if (interfaceC4650 != null) {
                C3262 c32622 = (C3262) interfaceC4650;
                if (c32622.m7445()) {
                    long jMin = Math.min(interfaceC0863 != null ? interfaceC0863.getPreferredUpdateDelay() : 1000L, 1000 - (jM7486 % 1000));
                    c32622.m7468();
                    float f = c32622.f12467.f16079.f17813;
                    postDelayed(runnableC4972, AbstractC0956.m3267(f > 0.0f ? (long) (jMin / f) : 1000L, this.f6782, 1000L));
                    return;
                }
            }
            if (iM7460 == 4 || iM7460 == 1) {
                return;
            }
            postDelayed(runnableC4972, 1000L);
        }
    }

    /* JADX INFO: renamed from: ˊᵙᵾᵲ, reason: contains not printable characters */
    public final void m4671() {
        C3364 c3364;
        InterfaceC4650 interfaceC4650 = this.f6741;
        if (interfaceC4650 == null) {
            return;
        }
        C3262 c3262 = (C3262) interfaceC4650;
        c3262.m7468();
        float f = c3262.f12467.f16079.f17813;
        float f2 = Float.MAX_VALUE;
        int i = 0;
        int i2 = 0;
        while (true) {
            c3364 = this.f6727;
            float[] fArr = c3364.f12888;
            if (i >= fArr.length) {
                break;
            }
            float fAbs = Math.abs(f - fArr[i]);
            if (fAbs < f2) {
                i2 = i;
                f2 = fAbs;
            }
            i++;
        }
        c3364.f12891 = i2;
        String str = c3364.f12890[i2];
        C3916 c3916 = this.f6737;
        ((String[]) c3916.f14951)[0] = str;
        m4674(this.f6743, c3916.m8638(1) || c3916.m8638(0));
    }

    /* JADX INFO: renamed from: ˊᵨᵧ, reason: contains not printable characters */
    public final void m4672() {
        RecyclerView recyclerView = this.f6770;
        recyclerView.measure(0, 0);
        int width = getWidth();
        int i = this.f6793;
        int iMin = Math.min(recyclerView.getMeasuredWidth(), width - (i * 2));
        PopupWindow popupWindow = this.f6765;
        popupWindow.setWidth(iMin);
        popupWindow.setHeight(Math.min(getHeight() - (i * 2), recyclerView.getMeasuredHeight()));
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final boolean m4673(InterfaceC4650 interfaceC4650) {
        Class cls;
        return (interfaceC4650 == null || (cls = this.f6747) == null || !cls.isAssignableFrom(interfaceC4650.getClass())) ? false : true;
    }

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final void m4674(View view, boolean z) {
        if (view == null) {
            return;
        }
        view.setEnabled(z);
        view.setAlpha(z ? this.f6720 : this.f6759);
    }

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final void m4675() {
        ImageView imageView;
        if (m4683() && this.f6744 && (imageView = this.f6751) != null) {
            InterfaceC4650 interfaceC4650 = this.f6741;
            if (!this.f6746.m1748(imageView)) {
                m4674(imageView, false);
                return;
            }
            String str = this.f6798;
            Drawable drawable = this.f6791;
            if (interfaceC4650 != null) {
                C3262 c3262 = (C3262) interfaceC4650;
                if (c3262.m7478(14)) {
                    m4674(imageView, true);
                    c3262.m7468();
                    if (c3262.f12425) {
                        drawable = this.f6763;
                    }
                    imageView.setImageDrawable(drawable);
                    c3262.m7468();
                    if (c3262.f12425) {
                        str = this.f6769;
                    }
                    imageView.setContentDescription(str);
                    return;
                }
            }
            m4674(imageView, false);
            imageView.setImageDrawable(drawable);
            imageView.setContentDescription(str);
        }
    }

    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public final void m4676() {
        ImageView imageView;
        if (m4683() && this.f6744 && (imageView = this.f6722) != null) {
            if (this.f6785 == 0) {
                m4674(imageView, false);
                return;
            }
            InterfaceC4650 interfaceC4650 = this.f6741;
            String str = this.f6787;
            Drawable drawable = this.f6797;
            if (interfaceC4650 != null) {
                C3262 c3262 = (C3262) interfaceC4650;
                if (c3262.m7478(15)) {
                    m4674(imageView, true);
                    c3262.m7468();
                    int i = c3262.f12455;
                    if (i == 0) {
                        imageView.setImageDrawable(drawable);
                        imageView.setContentDescription(str);
                        return;
                    } else if (i == 1) {
                        imageView.setImageDrawable(this.f6786);
                        imageView.setContentDescription(this.f6778);
                        return;
                    } else {
                        if (i != 2) {
                            return;
                        }
                        imageView.setImageDrawable(this.f6750);
                        imageView.setContentDescription(this.f6730);
                        return;
                    }
                }
            }
            m4674(imageView, false);
            imageView.setImageDrawable(drawable);
            imageView.setContentDescription(str);
        }
    }

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final void m4677() {
        C1484 c1484 = this.f6725;
        c1484.getClass();
        List list = Collections.EMPTY_LIST;
        c1484.f6019 = list;
        C1484 c14842 = this.f6742;
        c14842.getClass();
        c14842.f6019 = list;
        InterfaceC4650 interfaceC4650 = this.f6741;
        ImageView imageView = this.f6721;
        if (interfaceC4650 != null && ((C3262) interfaceC4650).m7478(30) && ((C3262) this.f6741).m7478(29)) {
            C3090 c3090M7472 = ((C3262) this.f6741).m7472();
            C2598 c2598M4690 = m4690(c3090M7472, 1);
            c14842.f6019 = c2598M4690;
            C1702 c1702 = c14842.f6018;
            InterfaceC4650 interfaceC46502 = c1702.f6741;
            C3916 c3916 = c1702.f6737;
            interfaceC46502.getClass();
            C2039 c2039M7469 = ((C3262) interfaceC46502).m7469();
            if (!c2598M4690.isEmpty()) {
                if (c14842.m4256(c2039M7469)) {
                    int i = 0;
                    while (true) {
                        if (i >= c2598M4690.f10050) {
                            break;
                        }
                        C1903 c1903 = (C1903) c2598M4690.get(i);
                        if (c1903.f7538.f14954[c1903.f7536]) {
                            ((String[]) c3916.f14951)[1] = c1903.f7537;
                            break;
                        }
                        i++;
                    }
                } else {
                    ((String[]) c3916.f14951)[1] = c1702.getResources().getString(R.string._24g_res_0x7f1300c0);
                }
            } else {
                ((String[]) c3916.f14951)[1] = c1702.getResources().getString(R.string._4nr_res_0x7f1300c1);
            }
            if (this.f6746.m1748(imageView)) {
                c1484.m4253(m4690(c3090M7472, 3));
            } else {
                c1484.m4253(C2598.f10048);
            }
        }
        m4674(imageView, c1484.mo4258() > 0);
        C3916 c39162 = this.f6737;
        m4674(this.f6743, c39162.m8638(1) || c39162.m8638(0));
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r10v1, types: [ᵳᵞᵡᵠ] */
    /* JADX WARN: Type inference failed for: r24v0 */
    /* JADX WARN: Type inference failed for: r24v1 */
    /* JADX WARN: Type inference failed for: r24v2 */
    /* JADX WARN: Type inference failed for: r24v3 */
    /* JADX WARN: Type inference failed for: r24v4 */
    /* JADX WARN: Type inference failed for: r24v5 */
    /* JADX WARN: Type inference failed for: r24v6 */
    /* JADX WARN: Type inference failed for: r24v7 */
    /* JADX WARN: Type inference failed for: r24v8 */
    /* JADX WARN: Type inference failed for: r2v11, types: [ᵸˎᵜˁ] */
    /* JADX WARN: Type inference failed for: r2v13 */
    /* JADX WARN: Type inference failed for: r2v14 */
    /* JADX WARN: Type inference failed for: r2v16 */
    /* JADX WARN: Type inference failed for: r2v19 */
    /* JADX WARN: Type inference failed for: r2v20 */
    /* JADX WARN: Type inference failed for: r2v23 */
    /* JADX WARN: Type inference failed for: r2v31 */
    /* JADX WARN: Type inference failed for: r2v32 */
    /* JADX WARN: Type inference failed for: r2v33 */
    /* JADX WARN: Type inference failed for: r2v34 */
    /* JADX WARN: Type inference failed for: r2v9, types: [ᵸˎᵜˁ] */
    /* JADX WARN: Type inference failed for: r4v12, types: [int] */
    /* JADX WARN: Type inference failed for: r4v16 */
    /* JADX WARN: Type inference failed for: r4v17 */
    /* JADX WARN: Type inference failed for: r5v16, types: [ˈᵷᵚ] */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final void m4678() {
        boolean z;
        long j;
        long jM3214;
        int i;
        long jM3264;
        int i2;
        ?? r24;
        boolean z2;
        boolean[] zArr;
        boolean z3;
        InterfaceC4650 interfaceC4650 = this.f6741;
        if (interfaceC4650 == null) {
            return;
        }
        boolean z4 = this.f6789;
        C5201 c5201 = this.f6784;
        boolean z5 = false;
        boolean z6 = true;
        this.f6790 = z4 && m4668(interfaceC4650, c5201);
        long j2 = 0;
        this.f6733 = 0L;
        C3262 c3262 = (C3262) interfaceC4650;
        AbstractC4975 abstractC4975M7457 = c3262.m7478(17) ? c3262.m7457() : AbstractC4975.f18879;
        if (abstractC4975M7457.m10285()) {
            z = true;
            if (c3262.m7478(16)) {
                AbstractC4975 abstractC4975M74572 = c3262.m7457();
                if (abstractC4975M74572.m10285()) {
                    jM3264 = -9223372036854775807L;
                    j = 0;
                } else {
                    j = 0;
                    jM3264 = AbstractC0956.m3264(abstractC4975M74572.mo1664(c3262.m7483(), c3262.f12471, 0L).f19596);
                }
                if (jM3264 != -9223372036854775807L) {
                    jM3214 = AbstractC0956.m3214(jM3264);
                }
                i = 0;
            } else {
                j = 0;
            }
            jM3214 = j;
            i = 0;
        } else {
            int iM7483 = c3262.m7483();
            boolean z7 = this.f6790;
            int i3 = z7 ? 0 : iM7483;
            int iMo5885 = z7 ? abstractC4975M7457.mo5885() - 1 : iM7483;
            i = 0;
            long j3 = 0;
            ?? r2 = abstractC4975M7457;
            while (true) {
                if (i3 > iMo5885) {
                    break;
                }
                long j4 = -9223372036854775807L;
                if (i3 == iM7483) {
                    this.f6733 = AbstractC0956.m3264(j3);
                }
                r2.m10284(i3, c5201);
                if (c5201.f19596 == -9223372036854775807L) {
                    ᵻᵪ.ˌᴵ(this.f6790 ^ z6);
                    break;
                }
                int i4 = c5201.f19593;
                ?? r22 = r2;
                boolean z8 = z5;
                while (i4 <= c5201.f19591) {
                    ?? r10 = this.f6794;
                    r22.mo1666(i4, r10, z8);
                    long j5 = j4;
                    C1124 c1124 = r10.f17479;
                    c1124.getClass();
                    int i5 = c1124.f4810;
                    ?? r23 = r22;
                    for (?? r4 = z8; r4 < i5; r4++) {
                        r10.m9683(r4);
                        long j6 = j2;
                        long j7 = r10.f17477;
                        if (j7 >= j6) {
                            long[] jArr = this.f6758;
                            i2 = iM7483;
                            if (i == jArr.length) {
                                int length = jArr.length == 0 ? 1 : jArr.length * 2;
                                this.f6758 = Arrays.copyOf(jArr, length);
                                this.f6731 = Arrays.copyOf(this.f6731, length);
                            }
                            this.f6758[i] = AbstractC0956.m3264(j7 + j3);
                            boolean[] zArr2 = this.f6731;
                            C3443 c3443M3614 = r10.f17479.m3614(r4);
                            int i6 = c3443M3614.f13279;
                            if (i6 == -1) {
                                zArr = zArr2;
                                r24 = r23;
                                z2 = true;
                                z3 = true;
                            } else {
                                int i7 = 0;
                                ?? r25 = r23;
                                while (i7 < i6) {
                                    zArr = zArr2;
                                    int i8 = c3443M3614.f13278[i7];
                                    ?? r242 = r25;
                                    z2 = true;
                                    if (i8 == 0 || i8 == 1) {
                                        z3 = true;
                                        r24 = r242;
                                        break;
                                    } else {
                                        i7++;
                                        zArr2 = zArr;
                                        r25 = r242;
                                    }
                                }
                                zArr = zArr2;
                                r24 = r25;
                                z2 = true;
                                z3 = false;
                            }
                            zArr[i] = !z3;
                            i++;
                        } else {
                            i2 = iM7483;
                            r24 = r23;
                            z2 = z6;
                        }
                        z6 = z2;
                        j2 = j6;
                        iM7483 = i2;
                        r23 = r24;
                    }
                    i4++;
                    j4 = j5;
                    r22 = r23;
                    z8 = false;
                }
                j3 += c5201.f19596;
                i3++;
                z6 = z6;
                r2 = r22;
                z5 = false;
            }
            z = z6;
            jM3214 = j3;
        }
        long jM32642 = AbstractC0956.m3264(jM3214);
        TextView textView = this.f6745;
        if (textView != null) {
            textView.setText(AbstractC0956.m3217(this.f6760, this.f6783, jM32642));
        }
        InterfaceC0863 interfaceC0863 = this.f6752;
        if (interfaceC0863 != null) {
            interfaceC0863.setDuration(jM32642);
            long[] jArr2 = this.f6799;
            int length2 = jArr2.length;
            int i9 = i + length2;
            long[] jArr3 = this.f6758;
            if (i9 > jArr3.length) {
                this.f6758 = Arrays.copyOf(jArr3, i9);
                this.f6731 = Arrays.copyOf(this.f6731, i9);
            }
            System.arraycopy(jArr2, 0, this.f6758, i, length2);
            System.arraycopy(this.f6792, 0, this.f6731, i, length2);
            DefaultTimeBar defaultTimeBar = (DefaultTimeBar) interfaceC0863;
            ᵻᵪ.ᵱᵽʡᵚ((i9 == 0 || !(this.f6758 == null || this.f6731 == null)) ? z : false);
            defaultTimeBar.m419();
        }
        m4670();
    }

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final void m4679() {
        m4684();
        m4680();
        m4676();
        m4675();
        m4677();
        m4671();
        m4678();
    }

    /* JADX INFO: renamed from: ᵟᵹᵙ, reason: contains not printable characters */
    public final void m4680() {
        boolean zM7478;
        boolean zM74782;
        boolean zM74783;
        boolean zM74784;
        boolean zM74785;
        long j;
        long j2;
        if (m4683() && this.f6744) {
            InterfaceC4650 interfaceC4650 = this.f6741;
            if (interfaceC4650 != null) {
                zM74782 = (this.f6789 && m4668(interfaceC4650, this.f6784)) ? ((C3262) interfaceC4650).m7478(10) : ((C3262) interfaceC4650).m7478(5);
                C3262 c3262 = (C3262) interfaceC4650;
                zM74783 = c3262.m7478(7);
                zM74784 = c3262.m7478(11);
                zM74785 = c3262.m7478(12);
                zM7478 = c3262.m7478(9);
            } else {
                zM7478 = false;
                zM74782 = false;
                zM74783 = false;
                zM74784 = false;
                zM74785 = false;
            }
            Resources resources = this.f6767;
            View view = this.f6768;
            if (zM74784) {
                InterfaceC4650 interfaceC46502 = this.f6741;
                if (interfaceC46502 != null) {
                    C3262 c32622 = (C3262) interfaceC46502;
                    c32622.m7468();
                    j2 = c32622.f12419;
                } else {
                    j2 = 5000;
                }
                int i = (int) (j2 / 1000);
                TextView textView = this.f6726;
                if (textView != null) {
                    textView.setText(String.valueOf(i));
                }
                if (view != null) {
                    view.setContentDescription(resources.getQuantityString(R.plurals._41t_res_0x7f110002, i, Integer.valueOf(i)));
                }
            }
            View view2 = this.f6779;
            if (zM74785) {
                InterfaceC4650 interfaceC46503 = this.f6741;
                if (interfaceC46503 != null) {
                    C3262 c32623 = (C3262) interfaceC46503;
                    c32623.m7468();
                    j = c32623.f12479;
                } else {
                    j = 15000;
                }
                int i2 = (int) (j / 1000);
                TextView textView2 = this.f6739;
                if (textView2 != null) {
                    textView2.setText(String.valueOf(i2));
                }
                if (view2 != null) {
                    view2.setContentDescription(resources.getQuantityString(R.plurals._228_res_0x7f110001, i2, Integer.valueOf(i2)));
                }
            }
            m4674(this.f6753, zM74783);
            m4674(view, zM74784);
            m4674(view2, zM74785);
            m4674(this.f6718, zM7478);
            InterfaceC0863 interfaceC0863 = this.f6752;
            if (interfaceC0863 != null) {
                interfaceC0863.setEnabled(zM74782);
            }
        }
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final void m4681(AbstractC2416 abstractC2416, View view) {
        this.f6770.setAdapter(abstractC2416);
        m4672();
        this.f6757 = false;
        PopupWindow popupWindow = this.f6765;
        popupWindow.dismiss();
        this.f6757 = true;
        int width = getWidth() - popupWindow.getWidth();
        int i = this.f6793;
        popupWindow.showAsDropDown(view, width - i, (-popupWindow.getHeight()) - i);
    }

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final void m4682(boolean z) {
        if (this.f6732 == z) {
            return;
        }
        this.f6732 = z;
        String str = this.f6762;
        Drawable drawable = this.f6738;
        String str2 = this.f6777;
        Drawable drawable2 = this.f6775;
        ImageView imageView = this.f6773;
        if (imageView != null) {
            if (z) {
                imageView.setImageDrawable(drawable2);
                imageView.setContentDescription(str2);
            } else {
                imageView.setImageDrawable(drawable);
                imageView.setContentDescription(str);
            }
        }
        ImageView imageView2 = this.f6774;
        if (imageView2 == null) {
            return;
        }
        if (z) {
            imageView2.setImageDrawable(drawable2);
            imageView2.setContentDescription(str2);
        } else {
            imageView2.setImageDrawable(drawable);
            imageView2.setContentDescription(str);
        }
    }

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final boolean m4683() {
        return getVisibility() == 0;
    }

    /* JADX WARN: Removed duplicated region for block: B:28:0x0068  */
    /* JADX INFO: renamed from: ᵱʡˏ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m4684() {
        ImageView imageView;
        if (m4683() && this.f6744 && (imageView = this.f6735) != null) {
            boolean zM3245 = AbstractC0956.m3245(this.f6741, this.f6776);
            Drawable drawable = zM3245 ? this.f6761 : this.f6729;
            int i = zM3245 ? R.string._2vn_res_0x7f1300a0 : R.string._25q_res_0x7f13009f;
            imageView.setImageDrawable(drawable);
            imageView.setContentDescription(this.f6767.getString(i));
            InterfaceC4650 interfaceC4650 = this.f6741;
            boolean z = false;
            if (interfaceC4650 != null) {
                C3262 c3262 = (C3262) interfaceC4650;
                int iM7460 = c3262.m7460();
                if (c3262.m7478(16)) {
                    AbstractC4975 abstractC4975M7457 = c3262.m7457();
                    boolean z2 = (abstractC4975M7457.m10285() ? null : abstractC4975M7457.mo1664(c3262.m7483(), c3262.f12471, 0L).f19589) != null;
                    boolean zM7478 = c3262.m7478(1);
                    boolean z3 = iM7460 == 1 && c3262.m7478(2);
                    boolean z4 = iM7460 == 4 && c3262.m7478(4);
                    if (z2 && (zM7478 || z3 || z4)) {
                        z = true;
                    }
                }
            }
            m4674(imageView, z);
        }
    }

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final boolean m4685() {
        C0408 c0408 = this.f6746;
        return c0408.f2313 == 0 && c0408.f2311.m4683();
    }

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final void m4686() {
        C0408 c0408 = this.f6746;
        int i = c0408.f2313;
        if (i == 3 || i == 2) {
            return;
        }
        c0408.m1755();
        if (!c0408.f2316) {
            c0408.m1754(2);
        } else if (c0408.f2313 == 1) {
            c0408.f2295.start();
        } else {
            c0408.f2306.start();
        }
    }

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final boolean m4687(InterfaceC4650 interfaceC4650) {
        try {
            if (m4689(interfaceC4650)) {
                Method method = this.f6734;
                method.getClass();
                Object objInvoke = method.invoke(interfaceC4650, null);
                objInvoke.getClass();
                if (((Boolean) objInvoke).booleanValue()) {
                    return true;
                }
            }
            if (m4673(interfaceC4650)) {
                Method method2 = this.f6754;
                method2.getClass();
                Object objInvoke2 = method2.invoke(interfaceC4650, null);
                objInvoke2.getClass();
                if (((Boolean) objInvoke2).booleanValue()) {
                    return true;
                }
            }
            return false;
        } catch (IllegalAccessException e) {
            e = e;
            C4935.m10238(e);
            return false;
        } catch (InvocationTargetException e2) {
            e = e2;
            C4935.m10238(e);
            return false;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:32:0x0097  */
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean m4688(KeyEvent keyEvent) {
        int keyCode = keyEvent.getKeyCode();
        InterfaceC4650 interfaceC4650 = this.f6741;
        if (interfaceC4650 == null || !(keyCode == 90 || keyCode == 89 || keyCode == 85 || keyCode == 79 || keyCode == 126 || keyCode == 127 || keyCode == 87 || keyCode == 88)) {
            return false;
        }
        if (keyEvent.getAction() == 0) {
            if (keyCode == 90) {
                C3262 c3262 = (C3262) interfaceC4650;
                if (c3262.m7460() != 4 && c3262.m7478(12)) {
                    c3262.m7468();
                    long jM7480 = c3262.m7480() + c3262.f12479;
                    long jM7451 = c3262.m7451();
                    if (jM7451 != -9223372036854775807L) {
                        jM7480 = Math.min(jM7480, jM7451);
                    }
                    c3262.m7485(Math.max(jM7480, 0L));
                }
            } else if (keyCode == 89) {
                C3262 c32622 = (C3262) interfaceC4650;
                if (c32622.m7478(11)) {
                    c32622.m7468();
                    long jM74802 = c32622.m7480() + (-c32622.f12419);
                    long jM74512 = c32622.m7451();
                    if (jM74512 != -9223372036854775807L) {
                        jM74802 = Math.min(jM74802, jM74512);
                    }
                    c32622.m7485(Math.max(jM74802, 0L));
                } else if (keyEvent.getRepeatCount() == 0) {
                    if (keyCode == 79 || keyCode == 85) {
                        if (AbstractC0956.m3245(interfaceC4650, this.f6776)) {
                            AbstractC0956.m3244(interfaceC4650);
                        } else {
                            C3262 c32623 = (C3262) interfaceC4650;
                            if (c32623.m7478(1)) {
                                c32623.m7442(false);
                            }
                        }
                    } else if (keyCode == 87) {
                        C3262 c32624 = (C3262) interfaceC4650;
                        if (c32624.m7478(9)) {
                            c32624.m7437();
                        }
                    } else if (keyCode == 88) {
                        C3262 c32625 = (C3262) interfaceC4650;
                        if (c32625.m7478(7)) {
                            c32625.m7446();
                        }
                    } else if (keyCode == 126) {
                        AbstractC0956.m3244(interfaceC4650);
                    } else if (keyCode == 127) {
                        String str = AbstractC0956.f4222;
                        C3262 c32626 = (C3262) interfaceC4650;
                        if (c32626.m7478(1)) {
                            c32626.m7442(false);
                        }
                    }
                }
            }
        }
        return true;
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final boolean m4689(InterfaceC4650 interfaceC4650) {
        Class cls;
        return (interfaceC4650 == null || (cls = this.f6788) == null || !cls.isAssignableFrom(interfaceC4650.getClass())) ? false : true;
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final C2598 m4690(C3090 c3090, int i) {
        ˑᵕʾ.ːˏᵟᵯ(4, "initialCapacity");
        Object[] objArrCopyOf = new Object[4];
        AbstractC4509 abstractC4509 = c3090.f11784;
        int i2 = 0;
        for (int i3 = 0; i3 < abstractC4509.size(); i3++) {
            C3917 c3917 = (C3917) abstractC4509.get(i3);
            if (c3917.f14952.f7460 == i) {
                for (int i4 = 0; i4 < c3917.f14955; i4++) {
                    if (c3917.f14956[i4] == 4) {
                        C5286 c5286 = c3917.f14952.f7463[i4];
                        if ((c5286.f19985 & 2) == 0) {
                            C1903 c1903 = new C1903(c3090, i3, i4, this.f6740.ᵞᵛᵘ(c5286));
                            int i5 = i2 + 1;
                            int iM8058 = AbstractC3544.m8058(objArrCopyOf.length, i5);
                            if (iM8058 > objArrCopyOf.length) {
                                objArrCopyOf = Arrays.copyOf(objArrCopyOf, iM8058);
                            }
                            objArrCopyOf[i2] = c1903;
                            i2 = i5;
                        }
                    }
                }
            }
        }
        return AbstractC4509.m9563(i2, objArrCopyOf);
    }
}
