package p000.p001.p002.p003.p004;

import android.view.View;
import ar.tvplayer.core.data.repositories.ၾ;
import ar.tvplayer.tv.base.ui.view.CircleButton;
import ar.tvplayer.tv.player.ui.CustomPlayerControlView;
import p000.p001.p002.p003.C0660;
import p000.p001.p002.p003.C0661;
import p000.p001.p002.p003.C0663;
import p025.p026.C1340;
import p025.p026.InterfaceC1327;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
import p402.p405.InterfaceC6575;
import p402.p405.InterfaceC6578;
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.PlayerFragment$updateRecordingStatus$1", f = "PlayerFragment.kt", l = {706}, m = "invokeSuspend")
public final class C0627 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0627(SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f2972 = sharedPreferencesOnSharedPreferenceChangeListenerC0501;
    }

    @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;
        }
        C0627 c0627 = new C0627(this.f2972, interfaceC6575);
        c0627.f2969 = (InterfaceC1327) obj;
        return c0627;
    }

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

    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ށ */
    public final Object mo839(Object obj) throws Throwable {
        InterfaceC1327 interfaceC1327;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i = this.f2971;
        if (i == 0) {
            C4303.m7198(obj);
            InterfaceC1327 interfaceC13272 = this.f2969;
            long j = this.f2972.f2581;
            this.f2970 = interfaceC13272;
            this.f2971 = 1;
            Object objM7018 = C4303.m7018((InterfaceC6578) C1340.f4488, (InterfaceC6618) new ၾ(j, (InterfaceC6575) null), (InterfaceC6575) this);
            if (objM7018 == enumC6586) {
                return enumC6586;
            }
            interfaceC1327 = interfaceC13272;
            obj = objM7018;
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            interfaceC1327 = (InterfaceC1327) this.f2970;
            C4303.m7198(obj);
        }
        boolean z = obj != null;
        if (C4303.m7134(interfaceC1327)) {
            View viewM1744 = this.f2972.m1744(C0661.controlPanel);
            C6635.m9823((Object) viewM1744, "controlPanel");
            CustomPlayerControlView customPlayerControlViewFindViewById = viewM1744.findViewById(C0661.playerControlView);
            int i2 = z ? C0660.ic_record_red : C0660.ic_record_white;
            int i3 = z ? C0663.recordings_stop_recording : C0663.recordings_record;
            CircleButton.֏(customPlayerControlViewFindViewById.ؠ(C0661.btnRecord), i2, false, 2);
            customPlayerControlViewFindViewById.ؠ(C0661.btnRecord).setLabel(i3);
            SharedPreferencesOnSharedPreferenceChangeListenerC0501 sharedPreferencesOnSharedPreferenceChangeListenerC0501 = this.f2972;
            if (sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2597 || sharedPreferencesOnSharedPreferenceChangeListenerC0501.f2598) {
                this.f2972.m1757(z, (String) null, (Boolean) null);
                this.f2972.m1768(z);
                this.f2972.m1788(z);
            }
        }
        return C6549.f19328;
    }
}
