package p000.p001.p002.p003.p004;

import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.domain2.ބ;
import ar.tvplayer.core.util.CommonUtilsKt;
import p025.p026.InterfaceC1327;
import p138.p176.p177.p190.C3431;
import p138.p176.p177.p190.C3454;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
import p402.InterfaceC6540;
import p402.p405.InterfaceC6575;
import p402.p405.p406.EnumC6586;
import p402.p405.p407.p408.AbstractC6597;
import p402.p405.p407.p408.InterfaceC6593;
import p402.p411.p412.InterfaceC6603;
import p402.p411.p412.InterfaceC6618;
import p402.p411.p413.AbstractC6636;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ނ.֏.֏.֏.֏.ޗ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
@InterfaceC6593(c = "ar.tvplayer.tv.player.ui.PlayerFragment$createPlayer$frameRateListener$1$1", f = "PlayerFragment.kt", l = {483}, m = "invokeSuspend")
public final class C0585 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public final /* synthetic */ C0587 f2880;

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public final /* synthetic */ int f2881;

    /* JADX INFO: renamed from: ނ.֏.֏.֏.֏.ޗ$֏, reason: contains not printable characters */
    public static final class C0586 extends AbstractC6636 implements InterfaceC6603<Boolean> {
        public C0586() {
            super(0);
        }

        @Override // p402.p411.p412.InterfaceC6603
        /* JADX INFO: renamed from: ނ */
        public Boolean mo1543() {
            return Boolean.valueOf(SharedPreferencesOnSharedPreferenceChangeListenerC0501.m1722(C0585.this.f2880.f2883));
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0585(C0587 c0587, int i, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f2880 = c0587;
        this.f2881 = i;
    }

    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ֏ */
    public final InterfaceC6575<C6549> mo837(Object obj, InterfaceC6575<?> interfaceC6575) {
        if (interfaceC6575 == null) {
            C6635.m9824("completion");
            throw null;
        }
        C0585 c0585 = new C0585(this.f2880, this.f2881, interfaceC6575);
        c0585.f2876 = (InterfaceC1327) obj;
        return c0585;
    }

    @Override // p402.p411.p412.InterfaceC6618
    /* JADX INFO: renamed from: ؠ */
    public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super C6549> interfaceC6575) {
        return ((C0585) mo837(interfaceC1327, interfaceC6575)).mo839(C6549.f19328);
    }

    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ށ */
    public final Object mo839(Object obj) {
        C3431 c3431;
        C3454 c3454;
        C3431 c34312;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i = this.f2879;
        if (i == 0) {
            C4303.m7198(obj);
            InterfaceC1327 interfaceC1327 = this.f2876;
            float fFloatValue = -1.0f;
            if (this.f2880.f2883.m1811() && (c3454 = this.f2880.f2883.f2579) != null && (c34312 = c3454.f10201) != null) {
                fFloatValue = new Float(c34312.f10097).floatValue();
            }
            boolean z = false;
            float f = 0;
            if (fFloatValue <= f && C4303.m7138(new Integer[]{new Integer(24), new Integer(25), new Integer(30), new Integer(50), new Integer(60)}, new Integer(this.f2881))) {
                fFloatValue = this.f2881;
            }
            if (fFloatValue > f) {
                this.f2880.f2883.f2612 = new Float(fFloatValue);
                this.f2880.f2883.m1818();
                SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 = this.f2880.f2883;
                ބ r5 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2587;
                if (r5 != null) {
                    C3454 c34542 = sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2579;
                    int iIntValue = (c34542 == null || (c3431 = c34542.f10201) == null) ? 0 : new Integer(c3431.f10096).intValue();
                    r5.ˑ = System.currentTimeMillis();
                    if (ރ.ߠ.ͺ() && ((Boolean) CommonUtilsKt.ރ.getValue()).booleanValue() && fFloatValue == 50.0f && (iIntValue == 1080 || iIntValue == 576)) {
                        z = true;
                    }
                    r5.ˮ = z;
                }
            }
            SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC05012 = this.f2880.f2883;
            if (sharedPreferencesOnSharedPreferenceChangeListenerC05012.f2597 || sharedPreferencesOnSharedPreferenceChangeListenerC05012.f2598) {
                C0586 c0586 = new C0586();
                this.f2877 = interfaceC1327;
                this.f2878 = fFloatValue;
                this.f2879 = 1;
                if (CommonUtilsKt.֏(0L, c0586, this, 1) == enumC6586) {
                    return enumC6586;
                }
            }
            return C6549.f19328;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        C4303.m7198(obj);
        SharedPreferencesOnSharedPreferenceChangeListenerC0501.m1702(this.f2880.f2883, (Boolean) null, 1);
        return C6549.f19328;
    }
}
