package p000.p001.p002.p006.p007;

import android.widget.TextView;
import androidx.fragment.app.FragmentContainerView;
import ar.tvplayer.core.data.db.entities.ޚ;
import ar.tvplayer.core.data.repositories.ޒ;
import ar.tvplayer.core.data.repositories.ၿ;
import p000.p001.p002.p006.C0732;
import p000.p001.p021.p022.C1219;
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.recordings.ui.RecordingsFragment$updatePlaylistAndGroupName$1", f = "RecordingsFragment.kt", l = {365, 371}, m = "invokeSuspend")
public final class C0725 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0725(SharedPreferencesOnSharedPreferenceChangeListenerC0664 sharedPreferencesOnSharedPreferenceChangeListenerC0664, ޚ r2, int i, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f3203 = sharedPreferencesOnSharedPreferenceChangeListenerC0664;
        this.f3204 = r2;
        this.f3205 = 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;
        }
        C0725 c0725 = new C0725(this.f3203, this.f3204, this.f3205, interfaceC6575);
        c0725.f3199 = (InterfaceC1327) obj;
        return c0725;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:29:0x007e  */
    @Override // p402.p405.p407.p408.AbstractC6589
    /* JADX INFO: renamed from: ށ */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object mo839(Object obj) throws Throwable {
        InterfaceC1327 interfaceC1327;
        String str;
        InterfaceC1327 interfaceC13272;
        SharedPreferencesOnSharedPreferenceChangeListenerC0664 sharedPreferencesOnSharedPreferenceChangeListenerC0664;
        int i;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i2 = this.f3202;
        if (i2 == 0) {
            C4303.m7198(obj);
            InterfaceC1327 interfaceC13273 = this.f3199;
            long j = this.f3204.ހ;
            this.f3200 = interfaceC13273;
            this.f3202 = 1;
            Object objM7018 = C4303.m7018((InterfaceC6578) C1340.f4488, (InterfaceC6618) new ၿ(j, (InterfaceC6575) null), (InterfaceC6575) this);
            if (objM7018 == enumC6586) {
                return enumC6586;
            }
            interfaceC1327 = interfaceC13273;
            obj = objM7018;
        } else {
            if (i2 != 1) {
                if (i2 != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                interfaceC13272 = (InterfaceC1327) this.f3200;
                C4303.m7198(obj);
                str = (String) obj;
                interfaceC1327 = interfaceC13272;
                if (C4303.m7134(interfaceC1327)) {
                    TextView textView = (TextView) this.f3203.m1996(C0732.tvPlaylistAndGroupName);
                    C6635.m9823((Object) textView, "tvPlaylistAndGroupName");
                    textView.setVisibility(str.length() > 0 ? 0 : 8);
                    FragmentContainerView fragmentContainerView = (FragmentContainerView) this.f3203.m1996(C0732.containerProgramInfo);
                    C6635.m9823((Object) fragmentContainerView, "containerProgramInfo");
                    TextView textView2 = (TextView) this.f3203.m1996(C0732.tvPlaylistAndGroupName);
                    C6635.m9823((Object) textView2, "tvPlaylistAndGroupName");
                    if (textView2.getVisibility() == 0) {
                        sharedPreferencesOnSharedPreferenceChangeListenerC0664 = this.f3203;
                        i = 40;
                    } else {
                        sharedPreferencesOnSharedPreferenceChangeListenerC0664 = this.f3203;
                        i = 16;
                    }
                    fragmentContainerView.setPadding(fragmentContainerView.getPaddingLeft(), fragmentContainerView.getPaddingTop(), fragmentContainerView.getPaddingRight(), C1219.m2502(sharedPreferencesOnSharedPreferenceChangeListenerC0664, i));
                    TextView textView3 = (TextView) this.f3203.m1996(C0732.tvPlaylistAndGroupName);
                    C6635.m9823((Object) textView3, "tvPlaylistAndGroupName");
                    if (textView3.getVisibility() == 0) {
                        TextView textView4 = (TextView) this.f3203.m1996(C0732.tvPlaylistAndGroupName);
                        C6635.m9823((Object) textView4, "tvPlaylistAndGroupName");
                        textView4.setText(str);
                    }
                }
                return C6549.f19328;
            }
            interfaceC1327 = (InterfaceC1327) this.f3200;
            C4303.m7198(obj);
        }
        String str2 = (String) obj;
        if (!C4303.m7134(interfaceC1327)) {
            return C6549.f19328;
        }
        Long l = this.f3204.ރ;
        if (l == null || str2 == null) {
            str = "";
            if (C4303.m7134(interfaceC1327)) {
            }
            return C6549.f19328;
        }
        ޒ r4 = ޒ.֏;
        long jLongValue = l.longValue();
        int i3 = this.f3205;
        this.f3200 = interfaceC1327;
        this.f3201 = str2;
        this.f3202 = 2;
        obj = r4.֏(jLongValue, str2, i3, this);
        if (obj == enumC6586) {
            return enumC6586;
        }
        interfaceC13272 = interfaceC1327;
        str = (String) obj;
        interfaceC1327 = interfaceC13272;
        if (C4303.m7134(interfaceC1327)) {
        }
        return C6549.f19328;
    }
}
