package defpackage;

import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.os.Looper;
import android.view.KeyEvent;
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.ui.DefaultTimeBar;
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.concurrent.CopyOnWriteArrayList;

/* renamed from: ᵻᵸ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C5225 extends FrameLayout {

    /* renamed from: ˉʽʾ, reason: contains not printable characters */
    public static final float[] f19509;

    /* renamed from: ʽᵙᵕ, reason: contains not printable characters */
    public int f19510;

    /* renamed from: ʽᵢˊ, reason: contains not printable characters */
    public final Drawable f19511;

    /* renamed from: ʾˋˊᵽ, reason: contains not printable characters */
    public final String f19512;

    /* renamed from: ʾᵻᵭٴ, reason: contains not printable characters */
    public final TextView f19513;

    /* renamed from: ʿᵘˆ, reason: contains not printable characters */
    public final Drawable f19514;

    /* renamed from: ˀˁᵨ, reason: contains not printable characters */
    public final ImageView f19515;

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public final Method f19516;

    /* renamed from: ˀᵗᵩ, reason: contains not printable characters */
    public final ImageView f19517;

    /* renamed from: ˁˑᵰ, reason: contains not printable characters */
    public final C1512 f19518;

    /* renamed from: ˁᵳˉ, reason: contains not printable characters */
    public boolean f19519;

    /* renamed from: ˆʕ, reason: contains not printable characters */
    public final Drawable f19520;

    /* renamed from: ˆᵪᵵ, reason: contains not printable characters */
    public final Drawable f19521;

    /* renamed from: ˆᵴᵜˏ, reason: contains not printable characters */
    public final Formatter f19522;

    /* renamed from: ˆᵼᵷˊ, reason: contains not printable characters */
    public final View f19523;

    /* renamed from: ˈᵫˊˉ, reason: contains not printable characters */
    public final boolean[] f19524;

    /* renamed from: ˉᵴﹶ, reason: contains not printable characters */
    public final float f19525;

    /* renamed from: ˊʽˎ, reason: contains not printable characters */
    public final ImageView f19526;

    /* renamed from: ˊʾˊ, reason: contains not printable characters */
    public final View f19527;

    /* renamed from: ˊᵸˊ, reason: contains not printable characters */
    public final ImageView f19528;

    /* renamed from: ˌᵪ, reason: contains not printable characters */
    public final TextView f19529;

    /* renamed from: ˌᵹᵨˑ, reason: contains not printable characters */
    public final View f19530;

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public final Method f19531;

    /* renamed from: ˎᵬˀ, reason: contains not printable characters */
    public final ImageView f19532;

    /* renamed from: ˎᵶᵹ, reason: contains not printable characters */
    public final String f19533;

    /* renamed from: ˑᵝﹳᵜ, reason: contains not printable characters */
    public final ImageView f19534;

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final Method f19535;

    /* renamed from: ᐧﾞ, reason: contains not printable characters */
    public final C4678 f19536;

    /* renamed from: ᵎʾ, reason: contains not printable characters */
    public final Drawable f19537;

    /* renamed from: ᵔᵨ, reason: contains not printable characters */
    public InterfaceC0304 f19538;

    /* renamed from: ᵖᵖˊ, reason: contains not printable characters */
    public boolean f19539;

    /* renamed from: ᵙᵢᵨᵳ, reason: contains not printable characters */
    public final PopupWindow f19540;

    /* renamed from: ᵛˈᵤ, reason: contains not printable characters */
    public final View f19541;

    /* renamed from: ᵛˎ, reason: contains not printable characters */
    public boolean f19542;

    /* renamed from: ᵠᵪˀᵻ, reason: contains not printable characters */
    public final Drawable f19543;

    /* renamed from: ᵠᵳ, reason: contains not printable characters */
    public boolean f19544;

    /* renamed from: ᵠᵿː, reason: contains not printable characters */
    public final TextView f19545;

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public final Class f19546;

    /* renamed from: ᵡᵘˎʽ, reason: contains not printable characters */
    public final int f19547;

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

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final Method f19549;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final Resources f19550;

    /* renamed from: ᵣᵟᵔ, reason: contains not printable characters */
    public final C3254 f19551;

    /* renamed from: ᵤʟᵟ, reason: contains not printable characters */
    public boolean f19552;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final Class f19553;

    /* renamed from: ᵤᵼˑʠ, reason: contains not printable characters */
    public final StringBuilder f19554;

    /* renamed from: ᵥʩᵩˑ, reason: contains not printable characters */
    public final RunnableC1600 f19555;

    /* renamed from: ᵦᵳˎ, reason: contains not printable characters */
    public final String f19556;

    /* renamed from: ᵦᵽᵢ, reason: contains not printable characters */
    public boolean f19557;

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public final RecyclerView f19558;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final C2473 f19559;

    /* renamed from: ᵨٴ, reason: contains not printable characters */
    public final Drawable f19560;

    /* renamed from: ᵪᵛʿ, reason: contains not printable characters */
    public final String f19561;

    /* renamed from: ᵫᵮʾ, reason: contains not printable characters */
    public final ImageView f19562;

    /* renamed from: ᵭˇʾ, reason: contains not printable characters */
    public final long[] f19563;

    /* renamed from: ᵮᴵˊ, reason: contains not printable characters */
    public final Drawable f19564;

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public final CopyOnWriteArrayList f19565;

    /* renamed from: ᵯᵽ, reason: contains not printable characters */
    public final String f19566;

    /* renamed from: ᵰʖʢ, reason: contains not printable characters */
    public final String f19567;

    /* renamed from: ᵰᵷᵹˆ, reason: contains not printable characters */
    public final String f19568;

    /* renamed from: ᵱˑᵲ, reason: contains not printable characters */
    public boolean f19569;

    /* renamed from: ᵲʟᵹ, reason: contains not printable characters */
    public final String f19570;

    /* renamed from: ᵲᵟ, reason: contains not printable characters */
    public final Drawable f19571;

    /* renamed from: ᵲᵰⁱ, reason: contains not printable characters */
    public boolean[] f19572;

    /* renamed from: ᵲᵳ, reason: contains not printable characters */
    public long[] f19573;

    /* renamed from: ᵳʼ, reason: contains not printable characters */
    public int f19574;

    /* renamed from: ᵳᵮ, reason: contains not printable characters */
    public long f19575;

    /* renamed from: ᵳᵮᵸ, reason: contains not printable characters */
    public final Drawable f19576;

    /* renamed from: ᵳᵹᵺˋ, reason: contains not printable characters */
    public final TextView f19577;

    /* renamed from: ᵴᵯᵴⁱ, reason: contains not printable characters */
    public final float f19578;

    /* renamed from: ᵶʔᵢˊ, reason: contains not printable characters */
    public final C1512 f19579;

    /* renamed from: ᵷʚᵶᵿ, reason: contains not printable characters */
    public int f19580;

    /* renamed from: ᵷᵦﹳ, reason: contains not printable characters */
    public final Drawable f19581;

    /* renamed from: ᵷᵱ, reason: contains not printable characters */
    public final View f19582;

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public final C1597 f19583;

    /* renamed from: ᵺᵜᵰ, reason: contains not printable characters */
    public final String f19584;

    /* renamed from: ᵺᵠ, reason: contains not printable characters */
    public final InterfaceC4300 f19585;

    /* renamed from: ᵺᵫ, reason: contains not printable characters */
    public boolean f19586;

    /* renamed from: ᵽʛ, reason: contains not printable characters */
    public final ImageView f19587;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final ViewOnClickListenerC1277 f19588;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final Handler f19589;

    /* renamed from: ﹶـ, reason: contains not printable characters */
    public final C4479 f19590;

    /* renamed from: ﾞⁱ, reason: contains not printable characters */
    public final ˊᵘʛ f19591;

    static {
        AbstractC2483.m6325("media3.ui");
        f19509 = 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: Can't wrap try/catch for region: R(60:0|2|(4:4|120|5|6)(1:10)|11|12|13|112|14|15|(3:116|16|17)|21|114|22|23|(3:118|24|25)|(2:122|26)|31|(1:33)|34|(1:36)(1:37)|38|(1:41)|42|(1:44)|45|(1:47)|48|(1:50)|51|(1:53)(1:(1:56)(29:57|58|(1:60)|61|(1:63)|64|(1:66)|67|(1:69)|70|(1:72)(1:73)|74|(1:76)(2:77|(1:79)(1:80))|81|(1:83)|84|(1:86)(2:87|(1:89)(1:90))|91|(1:93)|94|(1:96)|97|(1:99)|100|(1:102)|103|(1:105)(1:106)|107|108))|54|58|(0)|61|(0)|64|(0)|67|(0)|70|(0)(0)|74|(0)(0)|81|(0)|84|(0)(0)|91|(0)|94|(0)|97|(0)|100|(0)|103|(0)(0)|107|108|(1:(0))) */
    /* JADX WARN: Code restructure failed: missing block: B:29:0x0219, code lost:
    
        r2 = null;
     */
    /* 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.
        To view partially-correct add '--show-bad-code' argument
    */
    public C5225(android.content.Context r47, android.util.AttributeSet r48) throws java.lang.NoSuchMethodException, android.content.res.Resources.NotFoundException, java.lang.SecurityException, java.lang.ClassNotFoundException {
        /*
            Method dump skipped, instructions count: 1656
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5225.<init>(android.content.Context, android.util.AttributeSet):void");
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setPlaybackSpeed(float f) {
        InterfaceC0304 interfaceC0304 = this.f19538;
        if (interfaceC0304 == null || !((C3916) interfaceC0304).m8657(13)) {
            return;
        }
        C3916 c3916 = (C3916) this.f19538;
        c3916.m8604();
        C0068 c0068 = new C0068(f, c3916.f14769.f17255.f1307);
        c3916.m8604();
        if (c3916.f14769.f17255.equals(c0068)) {
            return;
        }
        C4659 c4659M9839 = c3916.f14769.m9839(c0068);
        c3916.f14743++;
        c3916.f14732.f4140.m10538(4, c0068).m7748();
        c3916.m8617(c4659M9839, 0, false, 5, -9223372036854775807L, -1, false);
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static boolean m10839(InterfaceC0304 interfaceC0304, C3254 c3254) {
        AbstractC0488 abstractC0488M8641;
        int iMo2124;
        C3916 c3916 = (C3916) interfaceC0304;
        if (!c3916.m8657(17) || (iMo2124 = (abstractC0488M8641 = c3916.m8641()).mo2124()) <= 1 || iMo2124 > 100) {
            return false;
        }
        for (int i = 0; i < iMo2124; i++) {
            if (abstractC0488M8641.mo2123(i, c3254, 0L).f12256 == -9223372036854775807L) {
                return false;
            }
        }
        return true;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static void m10840(C5225 c5225, InterfaceC0304 interfaceC0304, long j) {
        if (c5225.f19542) {
            C3916 c3916 = (C3916) interfaceC0304;
            if (c3916.m8657(17) && c3916.m8657(10)) {
                AbstractC0488 abstractC0488M8641 = c3916.m8641();
                int iMo2124 = abstractC0488M8641.mo2124();
                int i = 0;
                while (true) {
                    long jM8161 = AbstractC3558.m8161(abstractC0488M8641.mo2123(i, c5225.f19551, 0L).f12256);
                    if (j < jM8161) {
                        break;
                    }
                    if (i == iMo2124 - 1) {
                        j = jM8161;
                        break;
                    } else {
                        j -= jM8161;
                        i++;
                    }
                }
                c3916.m8659(i, j, false);
            }
        } else {
            C3916 c39162 = (C3916) interfaceC0304;
            if (c39162.m8657(5)) {
                c39162.m8633(j);
            }
        }
        c5225.m10849();
    }

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

    public InterfaceC0304 getPlayer() {
        return this.f19538;
    }

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

    public boolean getShowShuffleButton() {
        return this.f19559.m6316(this.f19526);
    }

    public boolean getShowSubtitleButton() {
        return this.f19559.m6316(this.f19562);
    }

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

    public boolean getShowVrButton() {
        return this.f19559.m6316(this.f19532);
    }

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

    @Override // android.view.ViewGroup, android.view.View
    public final void onAttachedToWindow() {
        super.onAttachedToWindow();
        C2473 c2473 = this.f19559;
        c2473.f9662.addOnLayoutChangeListener(c2473.f9674);
        this.f19569 = true;
        if (m10857()) {
            c2473.m6312();
        }
        m10855();
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        C2473 c2473 = this.f19559;
        c2473.f9662.removeOnLayoutChangeListener(c2473.f9674);
        this.f19569 = false;
        removeCallbacks(this.f19555);
        c2473.m6313();
    }

    @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.f19559.f9668;
        if (view != null) {
            view.layout(0, 0, i3 - i, i4 - i2);
        }
    }

    public void setAnimationEnabled(boolean z) {
        this.f19559.f9653 = z;
    }

    public void setMediaRouteButtonViewProvider(InterfaceC4214 interfaceC4214) {
        View viewFindViewById = findViewById(R.id._11_res_0x7f0b0176);
        if (viewFindViewById == null) {
            ᵹˉᵞ.ᵳٴᵶ("The media route button placeholder is missing.");
            return;
        }
        if (interfaceC4214 == null) {
            viewFindViewById.setVisibility(8);
            return;
        }
        ViewGroup viewGroup = (ViewGroup) viewFindViewById.getParent();
        if (viewGroup == null) {
            ᵹˉᵞ.ᵳٴᵶ("The media route button placeholder has no parent view.");
            return;
        }
        ListenableFuture listenableFutureM9168 = interfaceC4214.m9168();
        C1601 c1601 = new C1601(2, this, viewFindViewById, viewGroup, false);
        Handler handler = this.f19589;
        Objects.requireNonNull(handler);
        listenableFutureM9168.mo833(new ᵔᵨᵗ(listenableFutureM9168, 0, c1601), new ExecutorC4219(1, handler));
    }

    @Deprecated
    public void setOnFullScreenModeChangedListener(InterfaceC4668 interfaceC4668) {
        boolean z = interfaceC4668 != null;
        ImageView imageView = this.f19587;
        if (imageView != null) {
            if (z) {
                imageView.setVisibility(0);
            } else {
                imageView.setVisibility(8);
            }
        }
        boolean z2 = interfaceC4668 != null;
        ImageView imageView2 = this.f19515;
        if (imageView2 == null) {
            return;
        }
        if (z2) {
            imageView2.setVisibility(0);
        } else {
            imageView2.setVisibility(8);
        }
    }

    public void setPlayer(InterfaceC0304 interfaceC0304) {
        ᵛᵾˏ.ᵿʗᵝʽ(Looper.myLooper() == Looper.getMainLooper());
        ᵛᵾˏ.ᵯٴᵦ(interfaceC0304 == null || ((C3916) interfaceC0304).f14747 == Looper.getMainLooper());
        InterfaceC0304 interfaceC03042 = this.f19538;
        if (interfaceC03042 == interfaceC0304) {
            return;
        }
        ViewOnClickListenerC1277 viewOnClickListenerC1277 = this.f19588;
        if (interfaceC03042 != null) {
            ((C3916) interfaceC03042).m8648(viewOnClickListenerC1277);
        }
        this.f19538 = interfaceC0304;
        if (interfaceC0304 != null) {
            ((C3916) interfaceC0304).m8638(viewOnClickListenerC1277);
        }
        m10855();
    }

    public void setProgressUpdateListener(InterfaceC2908 interfaceC2908) {
    }

    public void setRepeatToggleModes(int i) {
        this.f19574 = i;
        InterfaceC0304 interfaceC0304 = this.f19538;
        if (interfaceC0304 != null && ((C3916) interfaceC0304).m8657(15)) {
            C3916 c3916 = (C3916) this.f19538;
            c3916.m8604();
            int i2 = c3916.f14761;
            if (i == 0 && i2 != 0) {
                ((C3916) this.f19538).m8634(0);
            } else if (i == 1 && i2 == 2) {
                ((C3916) this.f19538).m8634(1);
            } else if (i == 2 && i2 == 1) {
                ((C3916) this.f19538).m8634(2);
            }
        }
        this.f19559.m6318(this.f19548, i != 0);
        m10853();
    }

    public void setShowFastForwardButton(boolean z) {
        this.f19559.m6318(this.f19523, z);
        m10843();
    }

    @Deprecated
    public void setShowMultiWindowTimeBar(boolean z) {
        this.f19519 = z;
        m10851();
    }

    public void setShowNextButton(boolean z) {
        this.f19559.m6318(this.f19528, z);
        m10843();
    }

    public void setShowPlayButtonIfPlaybackIsSuppressed(boolean z) {
        this.f19586 = z;
        m10850();
    }

    public void setShowPreviousButton(boolean z) {
        this.f19559.m6318(this.f19534, z);
        m10843();
    }

    public void setShowRewindButton(boolean z) {
        this.f19559.m6318(this.f19541, z);
        m10843();
    }

    public void setShowShuffleButton(boolean z) {
        this.f19559.m6318(this.f19526, z);
        m10852();
    }

    public void setShowSubtitleButton(boolean z) {
        this.f19559.m6318(this.f19562, z);
    }

    public void setShowTimeoutMs(int i) {
        this.f19510 = i;
        if (m10857()) {
            this.f19559.m6312();
        }
    }

    public void setShowVrButton(boolean z) {
        this.f19559.m6318(this.f19532, z);
    }

    public void setTimeBarMinUpdateInterval(int i) {
        this.f19580 = AbstractC3558.m8150(i, 16, 1000);
    }

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

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

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final void m10842(AbstractC1307 abstractC1307, View view) {
        this.f19558.setAdapter(abstractC1307);
        m10847();
        this.f19539 = false;
        PopupWindow popupWindow = this.f19540;
        popupWindow.dismiss();
        this.f19539 = true;
        int width = getWidth() - popupWindow.getWidth();
        int i = this.f19547;
        popupWindow.showAsDropDown(view, width - i, (-popupWindow.getHeight()) - i);
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public final void m10843() {
        boolean zM8657;
        boolean zM86572;
        boolean zM86573;
        boolean zM86574;
        boolean zM86575;
        long j;
        long j2;
        if (m10844() && this.f19569) {
            InterfaceC0304 interfaceC0304 = this.f19538;
            if (interfaceC0304 != null) {
                zM86572 = (this.f19519 && m10839(interfaceC0304, this.f19551)) ? ((C3916) interfaceC0304).m8657(10) : ((C3916) interfaceC0304).m8657(5);
                C3916 c3916 = (C3916) interfaceC0304;
                zM86573 = c3916.m8657(7);
                zM86574 = c3916.m8657(11);
                zM86575 = c3916.m8657(12);
                zM8657 = c3916.m8657(9);
            } else {
                zM8657 = false;
                zM86572 = false;
                zM86573 = false;
                zM86574 = false;
                zM86575 = false;
            }
            Resources resources = this.f19550;
            View view = this.f19541;
            if (zM86574) {
                InterfaceC0304 interfaceC03042 = this.f19538;
                if (interfaceC03042 != null) {
                    C3916 c39162 = (C3916) interfaceC03042;
                    c39162.m8604();
                    j2 = c39162.f14763;
                } else {
                    j2 = 5000;
                }
                int i = (int) (j2 / 1000);
                TextView textView = this.f19577;
                if (textView != null) {
                    textView.setText(String.valueOf(i));
                }
                if (view != null) {
                    view.setContentDescription(resources.getQuantityString(R.plurals._11_res_0x7f110002, i, Integer.valueOf(i)));
                }
            }
            View view2 = this.f19523;
            if (zM86575) {
                InterfaceC0304 interfaceC03043 = this.f19538;
                if (interfaceC03043 != null) {
                    C3916 c39163 = (C3916) interfaceC03043;
                    c39163.m8604();
                    j = c39163.f14717;
                } else {
                    j = 15000;
                }
                int i2 = (int) (j / 1000);
                TextView textView2 = this.f19529;
                if (textView2 != null) {
                    textView2.setText(String.valueOf(i2));
                }
                if (view2 != null) {
                    view2.setContentDescription(resources.getQuantityString(R.plurals._11_res_0x7f110001, i2, Integer.valueOf(i2)));
                }
            }
            m10854(this.f19534, zM86573);
            m10854(view, zM86574);
            m10854(view2, zM86575);
            m10854(this.f19528, zM8657);
            InterfaceC4300 interfaceC4300 = this.f19585;
            if (interfaceC4300 != null) {
                interfaceC4300.setEnabled(zM86572);
            }
        }
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final boolean m10844() {
        return getVisibility() == 0;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final void m10845() {
        C2473 c2473 = this.f19559;
        int i = c2473.f9659;
        if (i == 3 || i == 2) {
            return;
        }
        c2473.m6313();
        if (!c2473.f9653) {
            c2473.m6314(2);
        } else if (c2473.f9659 == 1) {
            c2473.f9665.start();
        } else {
            c2473.f9667.start();
        }
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final C4471 m10846(C0408 c0408, int i) {
        ˏᵭᵔᵬ.ᵻᵢﹳᵰ(4, "initialCapacity");
        Object[] objArrCopyOf = new Object[4];
        AbstractC2692 abstractC2692 = c0408.f2301;
        int i2 = 0;
        for (int i3 = 0; i3 < abstractC2692.size(); i3++) {
            C2783 c2783 = (C2783) abstractC2692.get(i3);
            if (c2783.f10729.f15076 == i) {
                for (int i4 = 0; i4 < c2783.f10728; i4++) {
                    if (c2783.f10730[i4] == 4) {
                        C3446 c3446 = c2783.f10729.f15079[i4];
                        if ((c3446.f12901 & 2) == 0) {
                            C0645 c0645 = new C0645(c0408, i3, i4, this.f19591.ˑᵝﹳᵜ(c3446));
                            int i5 = i2 + 1;
                            int iM7813 = AbstractC3435.m7813(objArrCopyOf.length, i5);
                            if (iM7813 > objArrCopyOf.length) {
                                objArrCopyOf = Arrays.copyOf(objArrCopyOf, iM7813);
                            }
                            objArrCopyOf[i2] = c0645;
                            i2 = i5;
                        }
                    }
                }
            }
        }
        return AbstractC2692.m6695(i2, objArrCopyOf);
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public final void m10847() {
        RecyclerView recyclerView = this.f19558;
        recyclerView.measure(0, 0);
        int width = getWidth();
        int i = this.f19547;
        int iMin = Math.min(recyclerView.getMeasuredWidth(), width - (i * 2));
        PopupWindow popupWindow = this.f19540;
        popupWindow.setWidth(iMin);
        popupWindow.setHeight(Math.min(getHeight() - (i * 2), recyclerView.getMeasuredHeight()));
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public final boolean m10848(InterfaceC0304 interfaceC0304) {
        Class cls;
        return (interfaceC0304 == null || (cls = this.f19553) == null || !cls.isAssignableFrom(interfaceC0304.getClass())) ? false : true;
    }

    /* JADX WARN: Removed duplicated region for block: B:12:0x0031  */
    /* renamed from: ᵞʡ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m10849() {
        /*
            r10 = this;
            boolean r0 = r10.m10844()
            if (r0 == 0) goto Lad
            boolean r0 = r10.f19569
            if (r0 != 0) goto Lc
            goto Lad
        Lc:
            ʾᵣᵱ r0 = r10.f19538
            r1 = 0
            if (r0 == 0) goto L31
            r3 = r0
            ᵪᵻᵜᵜ r3 = (defpackage.C3916) r3
            r4 = 16
            boolean r4 = r3.m8657(r4)
            if (r4 == 0) goto L31
            long r4 = r10.f19575
            r3.m8604()
            ᵴᵢᵼ r6 = r3.f14769
            long r6 = r3.m8618(r6)
            long r6 = r6 + r4
            long r4 = r10.f19575
            long r8 = r3.m8621()
            long r8 = r8 + r4
            goto L33
        L31:
            r6 = r1
            r8 = r6
        L33:
            android.widget.TextView r3 = r10.f19513
            if (r3 == 0) goto L46
            boolean r4 = r10.f19552
            if (r4 != 0) goto L46
            java.lang.StringBuilder r4 = r10.f19554
            java.util.Formatter r5 = r10.f19522
            java.lang.String r4 = defpackage.AbstractC3558.m8124(r4, r5, r6)
            r3.setText(r4)
        L46:
            ᵯᵪˀ r3 = r10.f19585
            if (r3 == 0) goto L5a
            r4 = r3
            androidx.media3.ui.DefaultTimeBar r4 = (androidx.media3.ui.DefaultTimeBar) r4
            r4.m413(r6, r1)
            boolean r1 = r10.m10859(r0)
            if (r1 == 0) goto L57
            r8 = r6
        L57:
            r3.setBufferedPosition(r8)
        L5a:
            ˌᴵ r1 = r10.f19555
            r10.removeCallbacks(r1)
            r2 = 1
            if (r0 != 0) goto L64
            r4 = r2
            goto L6b
        L64:
            r4 = r0
            ᵪᵻᵜᵜ r4 = (defpackage.C3916) r4
            int r4 = r4.m8640()
        L6b:
            r8 = 1000(0x3e8, double:4.94E-321)
            if (r0 == 0) goto La5
            ᵪᵻᵜᵜ r0 = (defpackage.C3916) r0
            boolean r5 = r0.m8606()
            if (r5 == 0) goto La5
            if (r3 == 0) goto L7e
            long r2 = r3.getPreferredUpdateDelay()
            goto L7f
        L7e:
            r2 = r8
        L7f:
            long r6 = r6 % r8
            long r4 = r8 - r6
            long r2 = java.lang.Math.min(r2, r4)
            r0.m8604()
            ᵴᵢᵼ r0 = r0.f14769
            ʽʡʛᵩ r0 = r0.f17255
            float r0 = r0.f1306
            r4 = 0
            int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))
            if (r4 <= 0) goto L97
            float r2 = (float) r2
            float r2 = r2 / r0
            long r8 = (long) r2
        L97:
            r2 = r8
            int r0 = r10.f19580
            long r4 = (long) r0
            r6 = 1000(0x3e8, double:4.94E-321)
            long r2 = defpackage.AbstractC3558.m8153(r2, r4, r6)
            r10.postDelayed(r1, r2)
            return
        La5:
            r0 = 4
            if (r4 == r0) goto Lad
            if (r4 == r2) goto Lad
            r10.postDelayed(r1, r8)
        Lad:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5225.m10849():void");
    }

    /* JADX WARN: Removed duplicated region for block: B:28:0x0068  */
    /* renamed from: ᵡʠ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void m10850() {
        /*
            r10 = this;
            boolean r0 = r10.m10844()
            if (r0 == 0) goto L91
            boolean r0 = r10.f19569
            if (r0 != 0) goto Lc
            goto L91
        Lc:
            android.widget.ImageView r0 = r10.f19517
            if (r0 == 0) goto L91
            ʾᵣᵱ r1 = r10.f19538
            boolean r2 = r10.f19586
            boolean r1 = defpackage.AbstractC3558.m8101(r1, r2)
            if (r1 == 0) goto L1d
            android.graphics.drawable.Drawable r2 = r10.f19571
            goto L1f
        L1d:
            android.graphics.drawable.Drawable r2 = r10.f19560
        L1f:
            if (r1 == 0) goto L25
            r1 = 2131951776(0x7f1300a0, float:1.9539976E38)
            goto L28
        L25:
            r1 = 2131951775(0x7f13009f, float:1.9539974E38)
        L28:
            r0.setImageDrawable(r2)
            android.content.res.Resources r2 = r10.f19550
            java.lang.String r1 = r2.getString(r1)
            r0.setContentDescription(r1)
            ʾᵣᵱ r1 = r10.f19538
            r2 = 0
            if (r1 != 0) goto L3a
            goto L8e
        L3a:
            ᵪᵻᵜᵜ r1 = (defpackage.C3916) r1
            int r3 = r1.m8640()
            r4 = 16
            boolean r4 = r1.m8657(r4)
            r5 = 1
            if (r4 == 0) goto L68
            ʿᵿᵛᵠ r4 = r1.m8641()
            boolean r6 = r4.m2115()
            if (r6 == 0) goto L55
            r4 = 0
            goto L63
        L55:
            int r6 = r1.m8649()
            ᵢʾˁ r7 = r1.f14760
            r8 = 0
            ᵢʾˁ r4 = r4.mo2123(r6, r7, r8)
            ʾᵿˉ r4 = r4.f12265
        L63:
            if (r4 == 0) goto L66
            goto L68
        L66:
            r4 = r2
            goto L69
        L68:
            r4 = r5
        L69:
            boolean r6 = r1.m8657(r5)
            if (r3 != r5) goto L78
            r7 = 2
            boolean r7 = r1.m8657(r7)
            if (r7 == 0) goto L78
            r7 = r5
            goto L79
        L78:
            r7 = r2
        L79:
            r8 = 4
            if (r3 != r8) goto L84
            boolean r1 = r1.m8657(r8)
            if (r1 == 0) goto L84
            r1 = r5
            goto L85
        L84:
            r1 = r2
        L85:
            if (r4 == 0) goto L8e
            if (r6 != 0) goto L8d
            if (r7 != 0) goto L8d
            if (r1 == 0) goto L8e
        L8d:
            r2 = r5
        L8e:
            r10.m10854(r0, r2)
        L91:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5225.m10850():void");
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final void m10851() {
        boolean z;
        long j;
        long jM8133;
        int i;
        long jM8161;
        int i2;
        AbstractC0488 abstractC0488;
        boolean z2;
        boolean[] zArr;
        boolean z3;
        InterfaceC0304 interfaceC0304 = this.f19538;
        if (interfaceC0304 == null) {
            return;
        }
        boolean z4 = this.f19519;
        C3254 c3254 = this.f19551;
        boolean z5 = false;
        boolean z6 = true;
        this.f19542 = z4 && m10839(interfaceC0304, c3254);
        long j2 = 0;
        this.f19575 = 0L;
        C3916 c3916 = (C3916) interfaceC0304;
        AbstractC0488 abstractC0488M8641 = c3916.m8657(17) ? c3916.m8641() : AbstractC0488.f2597;
        if (abstractC0488M8641.m2115()) {
            z = true;
            if (c3916.m8657(16)) {
                AbstractC0488 abstractC0488M86412 = c3916.m8641();
                if (abstractC0488M86412.m2115()) {
                    jM8161 = -9223372036854775807L;
                    j = 0;
                } else {
                    j = 0;
                    jM8161 = AbstractC3558.m8161(abstractC0488M86412.mo2123(c3916.m8649(), c3916.f14760, 0L).f12256);
                }
                if (jM8161 != -9223372036854775807L) {
                    jM8133 = AbstractC3558.m8133(jM8161);
                }
                i = 0;
            } else {
                j = 0;
            }
            jM8133 = j;
            i = 0;
        } else {
            int iM8649 = c3916.m8649();
            boolean z7 = this.f19542;
            int i3 = z7 ? 0 : iM8649;
            int iMo2124 = z7 ? abstractC0488M8641.mo2124() - 1 : iM8649;
            i = 0;
            long j3 = 0;
            AbstractC0488 abstractC04882 = abstractC0488M8641;
            while (true) {
                if (i3 > iMo2124) {
                    break;
                }
                long j4 = -9223372036854775807L;
                if (i3 == iM8649) {
                    this.f19575 = AbstractC3558.m8161(j3);
                }
                abstractC04882.m2122(i3, c3254);
                if (c3254.f12256 == -9223372036854775807L) {
                    ᵛᵾˏ.ᵿʗᵝʽ(this.f19542 ^ z6);
                    break;
                }
                int i4 = c3254.f12263;
                AbstractC0488 abstractC04883 = abstractC04882;
                boolean z8 = z5;
                while (i4 <= c3254.f12262) {
                    C4479 c4479 = this.f19590;
                    abstractC04883.mo2118(i4, c4479, z8);
                    long j5 = j4;
                    C5177 c5177 = c4479.f16706;
                    c5177.getClass();
                    int i5 = c5177.f19278;
                    AbstractC0488 abstractC04884 = abstractC04883;
                    for (int i6 = z8; i6 < i5; i6++) {
                        c4479.m9531(i6);
                        long j6 = j2;
                        long j7 = c4479.f16705;
                        if (j7 >= j6) {
                            long[] jArr = this.f19573;
                            i2 = iM8649;
                            if (i == jArr.length) {
                                int length = jArr.length == 0 ? 1 : jArr.length * 2;
                                this.f19573 = Arrays.copyOf(jArr, length);
                                this.f19572 = Arrays.copyOf(this.f19572, length);
                            }
                            this.f19573[i] = AbstractC3558.m8161(j7 + j3);
                            boolean[] zArr2 = this.f19572;
                            C0556 c0556M10680 = c4479.f16706.m10680(i6);
                            int i7 = c0556M10680.f2905;
                            if (i7 == -1) {
                                zArr = zArr2;
                                abstractC0488 = abstractC04884;
                                z2 = true;
                                z3 = true;
                            } else {
                                int i8 = 0;
                                AbstractC0488 abstractC04885 = abstractC04884;
                                while (i8 < i7) {
                                    zArr = zArr2;
                                    int i9 = c0556M10680.f2901[i8];
                                    abstractC0488 = abstractC04885;
                                    z2 = true;
                                    if (i9 == 0 || i9 == 1) {
                                        z3 = true;
                                        break;
                                    } else {
                                        i8++;
                                        zArr2 = zArr;
                                        abstractC04885 = abstractC0488;
                                    }
                                }
                                zArr = zArr2;
                                abstractC0488 = abstractC04885;
                                z2 = true;
                                z3 = false;
                            }
                            zArr[i] = !z3;
                            i++;
                        } else {
                            i2 = iM8649;
                            abstractC0488 = abstractC04884;
                            z2 = z6;
                        }
                        z6 = z2;
                        j2 = j6;
                        iM8649 = i2;
                        abstractC04884 = abstractC0488;
                    }
                    i4++;
                    j4 = j5;
                    abstractC04883 = abstractC04884;
                    z8 = false;
                }
                j3 += c3254.f12256;
                i3++;
                z6 = z6;
                abstractC04882 = abstractC04883;
                z5 = false;
            }
            z = z6;
            jM8133 = j3;
        }
        long jM81612 = AbstractC3558.m8161(jM8133);
        TextView textView = this.f19545;
        if (textView != null) {
            textView.setText(AbstractC3558.m8124(this.f19554, this.f19522, jM81612));
        }
        InterfaceC4300 interfaceC4300 = this.f19585;
        if (interfaceC4300 != null) {
            interfaceC4300.setDuration(jM81612);
            long[] jArr2 = this.f19563;
            int length2 = jArr2.length;
            int i10 = i + length2;
            long[] jArr3 = this.f19573;
            if (i10 > jArr3.length) {
                this.f19573 = Arrays.copyOf(jArr3, i10);
                this.f19572 = Arrays.copyOf(this.f19572, i10);
            }
            System.arraycopy(jArr2, 0, this.f19573, i, length2);
            System.arraycopy(this.f19524, 0, this.f19572, i, length2);
            DefaultTimeBar defaultTimeBar = (DefaultTimeBar) interfaceC4300;
            ᵛᵾˏ.ᵯٴᵦ((i10 == 0 || !(this.f19573 == null || this.f19572 == null)) ? z : false);
            defaultTimeBar.m417();
        }
        m10849();
    }

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final void m10852() {
        ImageView imageView;
        if (m10844() && this.f19569 && (imageView = this.f19526) != null) {
            InterfaceC0304 interfaceC0304 = this.f19538;
            if (!this.f19559.m6316(imageView)) {
                m10854(imageView, false);
                return;
            }
            String str = this.f19556;
            Drawable drawable = this.f19581;
            if (interfaceC0304 != null) {
                C3916 c3916 = (C3916) interfaceC0304;
                if (c3916.m8657(14)) {
                    m10854(imageView, true);
                    c3916.m8604();
                    if (c3916.f14780) {
                        drawable = this.f19537;
                    }
                    imageView.setImageDrawable(drawable);
                    c3916.m8604();
                    if (c3916.f14780) {
                        str = this.f19561;
                    }
                    imageView.setContentDescription(str);
                    return;
                }
            }
            m10854(imageView, false);
            imageView.setImageDrawable(drawable);
            imageView.setContentDescription(str);
        }
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public final void m10853() {
        ImageView imageView;
        if (m10844() && this.f19569 && (imageView = this.f19548) != null) {
            if (this.f19574 == 0) {
                m10854(imageView, false);
                return;
            }
            InterfaceC0304 interfaceC0304 = this.f19538;
            String str = this.f19567;
            Drawable drawable = this.f19511;
            if (interfaceC0304 != null) {
                C3916 c3916 = (C3916) interfaceC0304;
                if (c3916.m8657(15)) {
                    m10854(imageView, true);
                    c3916.m8604();
                    int i = c3916.f14761;
                    if (i == 0) {
                        imageView.setImageDrawable(drawable);
                        imageView.setContentDescription(str);
                        return;
                    } else if (i == 1) {
                        imageView.setImageDrawable(this.f19543);
                        imageView.setContentDescription(this.f19512);
                        return;
                    } else {
                        if (i != 2) {
                            return;
                        }
                        imageView.setImageDrawable(this.f19514);
                        imageView.setContentDescription(this.f19584);
                        return;
                    }
                }
            }
            m10854(imageView, false);
            imageView.setImageDrawable(drawable);
            imageView.setContentDescription(str);
        }
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public final void m10854(View view, boolean z) {
        if (view == null) {
            return;
        }
        view.setEnabled(z);
        view.setAlpha(z ? this.f19525 : this.f19578);
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public final void m10855() {
        m10850();
        m10843();
        m10853();
        m10852();
        m10862();
        m10858();
        m10851();
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public final void m10856(boolean z) {
        if (this.f19557 == z) {
            return;
        }
        this.f19557 = z;
        String str = this.f19568;
        Drawable drawable = this.f19521;
        String str2 = this.f19570;
        Drawable drawable2 = this.f19564;
        ImageView imageView = this.f19587;
        if (imageView != null) {
            if (z) {
                imageView.setImageDrawable(drawable2);
                imageView.setContentDescription(str2);
            } else {
                imageView.setImageDrawable(drawable);
                imageView.setContentDescription(str);
            }
        }
        ImageView imageView2 = this.f19515;
        if (imageView2 == null) {
            return;
        }
        if (z) {
            imageView2.setImageDrawable(drawable2);
            imageView2.setContentDescription(str2);
        } else {
            imageView2.setImageDrawable(drawable);
            imageView2.setContentDescription(str);
        }
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final boolean m10857() {
        C2473 c2473 = this.f19559;
        return c2473.f9659 == 0 && c2473.f9662.m10844();
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public final void m10858() {
        C4678 c4678;
        InterfaceC0304 interfaceC0304 = this.f19538;
        if (interfaceC0304 == null) {
            return;
        }
        C3916 c3916 = (C3916) interfaceC0304;
        c3916.m8604();
        float f = c3916.f14769.f17255.f1306;
        float f2 = Float.MAX_VALUE;
        int i = 0;
        int i2 = 0;
        while (true) {
            c4678 = this.f19536;
            float[] fArr = c4678.f17307;
            if (i >= fArr.length) {
                break;
            }
            float fAbs = Math.abs(f - fArr[i]);
            if (fAbs < f2) {
                i2 = i;
                f2 = fAbs;
            }
            i++;
        }
        c4678.f17309 = i2;
        String str = c4678.f17310[i2];
        C1597 c1597 = this.f19583;
        ((String[]) c1597.f6337)[0] = str;
        m10854(this.f19527, c1597.m4572(1) || c1597.m4572(0));
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final boolean m10859(InterfaceC0304 interfaceC0304) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        try {
            if (m10848(interfaceC0304)) {
                Method method = this.f19516;
                method.getClass();
                Object objInvoke = method.invoke(interfaceC0304, null);
                objInvoke.getClass();
                if (((Boolean) objInvoke).booleanValue()) {
                    return true;
                }
            }
            if (m10860(interfaceC0304)) {
                Method method2 = this.f19531;
                method2.getClass();
                Object objInvoke2 = method2.invoke(interfaceC0304, null);
                objInvoke2.getClass();
                if (((Boolean) objInvoke2).booleanValue()) {
                    return true;
                }
            }
            return false;
        } catch (IllegalAccessException e) {
            e = e;
            C1260.m3814(e);
            return false;
        } catch (InvocationTargetException e2) {
            e = e2;
            C1260.m3814(e);
            return false;
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final boolean m10860(InterfaceC0304 interfaceC0304) {
        Class cls;
        return (interfaceC0304 == null || (cls = this.f19546) == null || !cls.isAssignableFrom(interfaceC0304.getClass())) ? false : true;
    }

    /* JADX WARN: Removed duplicated region for block: B:32:0x0097  */
    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean m10861(android.view.KeyEvent r19) {
        /*
            Method dump skipped, instructions count: 240
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C5225.m10861(android.view.KeyEvent):boolean");
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final void m10862() {
        C1512 c1512 = this.f19579;
        c1512.getClass();
        List list = Collections.EMPTY_LIST;
        c1512.f6077 = list;
        C1512 c15122 = this.f19518;
        c15122.getClass();
        c15122.f6077 = list;
        InterfaceC0304 interfaceC0304 = this.f19538;
        ImageView imageView = this.f19562;
        if (interfaceC0304 != null && ((C3916) interfaceC0304).m8657(30) && ((C3916) this.f19538).m8657(29)) {
            C0408 c0408M8614 = ((C3916) this.f19538).m8614();
            C4471 c4471M10846 = m10846(c0408M8614, 1);
            c15122.f6077 = c4471M10846;
            C5225 c5225 = c15122.f6075;
            InterfaceC0304 interfaceC03042 = c5225.f19538;
            C1597 c1597 = c5225.f19583;
            interfaceC03042.getClass();
            C1897 c1897M8636 = ((C3916) interfaceC03042).m8636();
            if (!c4471M10846.isEmpty()) {
                if (c15122.m4439(c1897M8636)) {
                    int i = 0;
                    while (true) {
                        if (i >= c4471M10846.f16685) {
                            break;
                        }
                        C0645 c0645 = (C0645) c4471M10846.get(i);
                        if (c0645.f3170.f10726[c0645.f3171]) {
                            ((String[]) c1597.f6337)[1] = c0645.f3169;
                            break;
                        }
                        i++;
                    }
                } else {
                    ((String[]) c1597.f6337)[1] = c5225.getResources().getString(R.string._11_res_0x7f1300c0);
                }
            } else {
                ((String[]) c1597.f6337)[1] = c5225.getResources().getString(R.string._11_res_0x7f1300c1);
            }
            if (this.f19559.m6316(imageView)) {
                c1512.m4437(m10846(c0408M8614, 3));
            } else {
                c1512.m4437(C4471.f16684);
            }
        }
        m10854(imageView, c1512.mo2536() > 0);
        C1597 c15972 = this.f19583;
        m10854(this.f19527, c15972.m4572(1) || c15972.m4572(0));
    }
}
