package p000.p001.p002.p003.p004.p005;

import android.widget.TextView;
import ar.tvplayer.core.data.db.entities.ނ;
import ar.tvplayer.core.data.repositories.ޒ;
import p000.p001.p002.p003.C0661;
import p000.p001.p002.p008.p009.C0884;
import p025.p026.InterfaceC1327;
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.channels.PlayerProgramsFragment$updatePlaylistAndGroupName$1", f = "PlayerProgramsFragment.kt", l = {155}, m = "invokeSuspend")
public final class C0493 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0493(SharedPreferencesOnSharedPreferenceChangeListenerC0411 sharedPreferencesOnSharedPreferenceChangeListenerC0411, ނ r2, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f2548 = sharedPreferencesOnSharedPreferenceChangeListenerC0411;
        this.f2549 = r2;
    }

    @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;
        }
        C0493 c0493 = new C0493(this.f2548, this.f2549, interfaceC6575);
        c0493.f2544 = (InterfaceC1327) obj;
        return c0493;
    }

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

    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ށ */
    public final Object mo839(Object obj) {
        InterfaceC1327 interfaceC1327;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i = this.f2547;
        if (i == 0) {
            C4303.m7198(obj);
            InterfaceC1327 interfaceC13272 = this.f2544;
            Integer numM339 = this.f2548.m1594().f2555.m339();
            if (numM339 == null) {
                return C6549.f19328;
            }
            C6635.m9823((Object) numM339, "viewModel.playlistCountL…?: return@launchImmediate");
            int iIntValue = numM339.intValue();
            ޒ r4 = ޒ.֏;
            ނ r1 = this.f2549;
            long j = r1.ބ;
            String str = r1.ކ;
            this.f2545 = interfaceC13272;
            this.f2546 = iIntValue;
            this.f2547 = 1;
            Object obj2 = r4.֏(j, str, iIntValue, this);
            if (obj2 == enumC6586) {
                return enumC6586;
            }
            interfaceC1327 = interfaceC13272;
            obj = obj2;
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            interfaceC1327 = (InterfaceC1327) this.f2545;
            C4303.m7198(obj);
        }
        String str2 = (String) obj;
        if (C4303.m7134(interfaceC1327)) {
            TextView textView = (TextView) this.f2548.m1586(C0661.tvPlaylistAndGroupName);
            C6635.m9823((Object) textView, "tvPlaylistAndGroupName");
            textView.setText(str2);
            TextView textView2 = (TextView) this.f2548.m1586(C0661.tvPlaylistAndGroupName);
            C6635.m9823((Object) textView2, "tvPlaylistAndGroupName");
            textView2.setTextSize(C0884.f3553.f3546);
        }
        return C6549.f19328;
    }
}
