package p000.p001.p002.p003.p004;

import android.view.View;
import ar.tvplayer.core.data.prefs.ރ;
import p000.p001.p021.p022.C1219;
import p025.p026.InterfaceC1327;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
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.InterfaceC6618;
import p402.p411.p413.C6635;

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

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

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

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

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public final /* synthetic */ C0373 f2991;

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0635(C0373 c0373, boolean z, boolean z2, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f2991 = c0373;
        this.f2992 = z;
        this.f2993 = z2;
    }

    @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;
        }
        C0635 c0635 = new C0635(this.f2991, this.f2992, this.f2993, interfaceC6575);
        c0635.f2988 = (InterfaceC1327) obj;
        return c0635;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:31:0x008b  */
    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ށ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo839(Object obj) {
        SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i = this.f2990;
        boolean z = true;
        if (i == 0) {
            C4303.m7198(obj);
            InterfaceC1327 interfaceC1327 = this.f2988;
            if (this.f2992) {
                C0373.m1497(this.f2991);
                C0373.m1501(this.f2991);
                View viewM1528 = this.f2991.m1528();
                if (viewM1528 != null) {
                    viewM1528.setElevation(C1219.m2501(viewM1528, 8));
                    viewM1528.setBackgroundColor(-16777216);
                }
                this.f2989 = interfaceC1327;
                this.f2990 = 1;
                if (C4303.m7005(100L, this) == enumC6586) {
                    return enumC6586;
                }
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C4303.m7198(obj);
        }
        C0373.m1496(this.f2991, !this.f2992 && ރ.ߠ.ٱ(), true, false, 4);
        C0373 c0373 = this.f2991;
        if (this.f2993) {
            ރ r0 = ރ.ߠ;
            if (r0 == null) {
                throw null;
            }
            if (!LayoutInflaterFactory2C1494.C1505.m2986(((Boolean) ރ.ࢣ.m9835(r0, ރ.ށ[39])).booleanValue())) {
            }
        } else {
            z = false;
        }
        C0373.m1502(c0373, z, false, 2);
        if (!this.f2992 && (sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529 = this.f2991.m1529()) != null) {
            sharedPreferencesOnSharedPreferenceChangeListenerC0501M1529.m1818();
        }
        return C6549.f19328;
    }
}
