package p000.p001.p002.p012.p013;

import android.database.Cursor;
import androidx.lifecycle.LiveData;
import ar.tvplayer.core.data.db.dao.ޙ;
import ar.tvplayer.core.data.db.entities.֏;
import ar.tvplayer.core.data.db.entities.ޗ;
import ar.tvplayer.core.data.db.entities.ޣ;
import ar.tvplayer.core.data.db.entities.ࢣ;
import ar.tvplayer.core.data.db.ހ;
import ar.tvplayer.core.data.parsers.xmltv.ؠ;
import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.data.repositories.LoadXmltvChannelsWorker;
import ar.tvplayer.core.data.repositories.ˈ;
import ar.tvplayer.core.data.repositories.ޒ;
import ar.tvplayer.core.util.CommonUtilsKt;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.CancellationException;
import kotlin.TypeCastException;
import p000.p001.p021.C1255;
import p025.p026.AbstractC1323;
import p025.p026.C1340;
import p025.p026.EnumC1328;
import p025.p026.InterfaceC1327;
import p025.p026.InterfaceC1332;
import p025.p026.InterfaceC1363;
import p037.p041.p042.LayoutInflaterFactory2C1494;
import p037.p099.AbstractC2245;
import p037.p099.C2229;
import p037.p099.InterfaceC2230;
import p037.p109.C2409;
import p037.p109.p111.C2421;
import p037.p123.C2552;
import p037.p123.C2565;
import p037.p123.C2578;
import p037.p123.EnumC2556;
import p037.p123.p124.C2604;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6542;
import p402.C6549;
import p402.InterfaceC6540;
import p402.p403.C6560;
import p402.p403.C6563;
import p402.p405.C6584;
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;
import p402.p411.p413.C6646;
import p402.p420.C6703;

/* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public final class C0992 extends AbstractC2245 {

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public long f3828;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public ޗ f3830;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public InterfaceC1363 f3831;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final LiveData<C0993> f3827 = new C2229();

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final HashMap<String, String> f3829 = new HashMap<>();

    /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$֏, reason: contains not printable characters */
    public static final class C0993 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final EnumC0994 f3832;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final List<C0995> f3833;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final int f3834;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final int f3835;

        public C0993(EnumC0994 enumC0994, List<C0995> list, int i, int i2) {
            if (enumC0994 == null) {
                C6635.m9824("status");
                throw null;
            }
            if (list == null) {
                C6635.m9824("tvgChannels");
                throw null;
            }
            this.f3832 = enumC0994;
            this.f3833 = list;
            this.f3834 = i;
            this.f3835 = i2;
        }

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public static /* synthetic */ C0993 m2356(C0993 c0993, EnumC0994 enumC0994, List list, int i, int i2, int i3) {
            if ((i3 & 1) != 0) {
                enumC0994 = c0993.f3832;
            }
            if ((i3 & 2) != 0) {
                list = c0993.f3833;
            }
            if ((i3 & 4) != 0) {
                i = c0993.f3834;
            }
            if ((i3 & 8) != 0) {
                i2 = c0993.f3835;
            }
            if (c0993 == null) {
                throw null;
            }
            if (enumC0994 == null) {
                C6635.m9824("status");
                throw null;
            }
            if (list != null) {
                return new C0993(enumC0994, list, i, i2);
            }
            C6635.m9824("tvgChannels");
            throw null;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C0993)) {
                return false;
            }
            C0993 c0993 = (C0993) obj;
            return C6635.m9825(this.f3832, c0993.f3832) && C6635.m9825(this.f3833, c0993.f3833) && this.f3834 == c0993.f3834 && this.f3835 == c0993.f3835;
        }

        public int hashCode() {
            EnumC0994 enumC0994 = this.f3832;
            int iHashCode = (enumC0994 != null ? enumC0994.hashCode() : 0) * 31;
            List<C0995> list = this.f3833;
            return ((((iHashCode + (list != null ? list.hashCode() : 0)) * 31) + this.f3834) * 31) + this.f3835;
        }

        public String toString() {
            StringBuilder sbM4889 = C2803.m4889("AssignEpgData(status=");
            sbM4889.append(this.f3832);
            sbM4889.append(", tvgChannels=");
            sbM4889.append(this.f3833);
            sbM4889.append(", selectedIndex=");
            sbM4889.append(this.f3834);
            sbM4889.append(", suggestedIndex=");
            return C2803.m4882(sbM4889, this.f3835, ")");
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ؠ, reason: contains not printable characters */
    public enum EnumC0994 {
        LOADING,
        SUCCESS,
        FAILURE
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ހ, reason: contains not printable characters */
    public static final class C0995 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final String f3840;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final String f3841;

        /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
        public final ࢣ f3842;

        /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
        public final String f3843;

        public C0995(String str, String str2, ࢣ r4, String str3) {
            if (str == null) {
                C6635.m9824("id");
                throw null;
            }
            if (str2 == null) {
                C6635.m9824("firstDisplayName");
                throw null;
            }
            if (r4 == null) {
                C6635.m9824("tvgSourceType");
                throw null;
            }
            if (str3 == null) {
                C6635.m9824("tvgSourceName");
                throw null;
            }
            this.f3840 = str;
            this.f3841 = str2;
            this.f3842 = r4;
            this.f3843 = str3;
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof C0995)) {
                return false;
            }
            C0995 c0995 = (C0995) obj;
            return C6635.m9825((Object) this.f3840, (Object) c0995.f3840) && C6635.m9825((Object) this.f3841, (Object) c0995.f3841) && C6635.m9825(this.f3842, c0995.f3842) && C6635.m9825((Object) this.f3843, (Object) c0995.f3843);
        }

        public int hashCode() {
            String str = this.f3840;
            int iHashCode = (str != null ? str.hashCode() : 0) * 31;
            String str2 = this.f3841;
            int iHashCode2 = (iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
            ࢣ r2 = this.f3842;
            int iHashCode3 = (iHashCode2 + (r2 != null ? r2.hashCode() : 0)) * 31;
            String str3 = this.f3843;
            return iHashCode3 + (str3 != null ? str3.hashCode() : 0);
        }

        public String toString() {
            StringBuilder sbM4889 = C2803.m4889("TvgChannelData(id=");
            sbM4889.append(this.f3840);
            sbM4889.append(", firstDisplayName=");
            sbM4889.append(this.f3841);
            sbM4889.append(", tvgSourceType=");
            sbM4889.append(this.f3842);
            sbM4889.append(", tvgSourceName=");
            return C2803.m4884(sbM4889, this.f3843, ")");
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ށ, reason: contains not printable characters */
    public static final class C0996<T> implements InterfaceC2230<List<C2578>> {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public final /* synthetic */ InterfaceC6575 f3844;

        /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
        public final /* synthetic */ String f3845;

        public C0996(InterfaceC6575 interfaceC6575, C6646 c6646, String str) {
            this.f3844 = interfaceC6575;
            this.f3845 = str;
        }

        @Override // p037.p099.InterfaceC2230
        /* JADX INFO: renamed from: ֏ */
        public void mo1576(List<C2578> list) {
            C2578.EnumC2579 enumC2579;
            List<C2578> list2 = list;
            C6635.m9823((Object) list2, "it");
            C2578 c2578 = (C2578) C6560.m9792((List) list2);
            if (c2578 == null || (enumC2579 = c2578.f8076) == null || !enumC2579.m4631()) {
                return;
            }
            InterfaceC6575 interfaceC6575 = this.f3844;
            ˈ r0 = ˈ.ؠ;
            Object obj = ˈ.ؠ().get(this.f3845);
            C6542.C6543 c6543 = C6542.f19318;
            interfaceC6575.mo2608(obj);
        }
    }

    /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ, reason: contains not printable characters */
    @InterfaceC6540
    @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1", f = "AssignEpgViewModel.kt", l = {41, 48, 59, 77, 78, 83}, m = "invokeSuspend")
    public static final class C0997 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

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

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

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

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

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

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

        /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
        public final /* synthetic */ long f3857;

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

        /* JADX INFO: renamed from: ޔ, reason: contains not printable characters */
        public final /* synthetic */ String f3859;

        /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ$֏, reason: contains not printable characters */
        @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1$1", f = "AssignEpgViewModel.kt", l = {}, m = "invokeSuspend")
        public static final class C0998 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

            /* JADX INFO: renamed from: މ, reason: contains not printable characters */
            public final /* synthetic */ C6646 f3862;

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

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C0998(C6646 c6646, C6646 c66462, ޗ r4, C6646 c66463, InterfaceC6575 interfaceC6575) {
                super(2, interfaceC6575);
                this.f3862 = c6646;
                this.f3863 = c66462;
                this.f3864 = r4;
                this.f3865 = c66463;
            }

            @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;
                }
                C0998 c0998 = C0997.this.new C0998(this.f3862, this.f3863, this.f3864, this.f3865, interfaceC6575);
                c0998.f3860 = (InterfaceC1327) obj;
                return c0998;
            }

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

            /* JADX WARN: Removed duplicated region for block: B:78:0x0178  */
            @Override // p402.p405.p407.p408.AbstractC6589
            /* JADX INFO: renamed from: ށ */
            /*
                Code decompiled incorrectly, please refer to instructions dump.
            */
            public final Object mo839(Object obj) {
                int i;
                int i2;
                Long l;
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                C4303.m7198(obj);
                C0992 c0992 = C0992.this;
                List list = (List) this.f3862.f19405;
                if (list == null) {
                    list = C6563.f19343;
                }
                List<ؠ> list2 = (List) this.f3863.f19405;
                if (list2 == null) {
                    list2 = C6563.f19343;
                }
                ޗ r4 = this.f3864;
                String str = r4.ހ;
                String str2 = r4.ށ;
                String str3 = C0997.this.f3859;
                if (c0992 == null) {
                    throw null;
                }
                ArrayList<C0995> arrayList = new ArrayList(list2.size() + list.size());
                Iterator it = list.iterator();
                while (true) {
                    if (!it.hasNext()) {
                        break;
                    }
                    ؠ r8 = (ؠ) it.next();
                    String str4 = (String) C6560.m9792(r8.ؠ);
                    String str5 = str4 != null ? str4 : "";
                    if ((str3.length() == 0 ? 1 : 0) != 0 || C6703.m9880((CharSequence) str5, (CharSequence) str3, true)) {
                        arrayList.add(new C0995(r8.֏, str5, ࢣ.ބ, str));
                    }
                }
                for (ؠ r3 : list2) {
                    String str6 = (String) C6560.m9792(r3.ؠ);
                    if (str6 == null) {
                        str6 = "";
                    }
                    if ((str3.length() == 0) || C6703.m9880((CharSequence) str6, (CharSequence) str3, true)) {
                        arrayList.add(new C0995(r3.֏, str6, ࢣ.ޅ, str2));
                    }
                }
                C4303.m7096((List) arrayList, (Comparator) C1003.f3880);
                C0992 c09922 = C0992.this;
                ޗ r32 = this.f3864;
                ֏ r42 = (֏) this.f3865.f19405;
                if (c09922 == null) {
                    throw null;
                }
                int i3 = -1;
                if (arrayList.isEmpty()) {
                    i2 = -1;
                } else {
                    long j = r42.֏;
                    ar.tvplayer.core.data.db.dao.ࢣ r2 = ހ.֏().ސ();
                    if (r2 == null) {
                        throw null;
                    }
                    C2409 c2409M4490 = C2409.m4490("\n        SELECT c.* FROM tvg_channels c\n        INNER JOIN channel_tvg_bindings b ON c.id == b.tvg_channel_id\n        WHERE b.channel_id = ?\n        ", 1);
                    c2409M4490.bindLong(1, j);
                    r2.֏.m4478();
                    Cursor cursorM4504 = C2421.m4504(r2.֏, c2409M4490, false, null);
                    try {
                        int iM2969 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "id");
                        int iM29692 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "xmltv_channel_id");
                        int iM29693 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "icon_url");
                        int iM29694 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "tvg_source_id");
                        ޣ r6 = cursorM4504.moveToFirst() ? new ޣ(cursorM4504.getLong(iM2969), cursorM4504.getString(iM29692), cursorM4504.getString(iM29693), cursorM4504.isNull(iM29694) ? null : Long.valueOf(cursorM4504.getLong(iM29694))) : null;
                        if (r6 != null && (l = r6.ށ) != null) {
                            ࢣ r22 = C6635.m9825(l, r32.ؠ()) ? ࢣ.ބ : ࢣ.ޅ;
                            i2 = 0;
                            for (C0995 c0995 : arrayList) {
                                if (C6635.m9825((Object) c0995.f3840, (Object) r6.ؠ) && c0995.f3842 == r22) {
                                    break;
                                }
                                i2++;
                            }
                            i2 = -1;
                        }
                    } finally {
                        cursorM4504.close();
                        c2409M4490.m4493();
                    }
                }
                if (i2 != -1) {
                    i = i2;
                } else {
                    C0992 c09923 = C0992.this;
                    ֏ r33 = (֏) this.f3865.f19405;
                    if (c09923 == null) {
                        throw null;
                    }
                    String str7 = CommonUtilsKt.ކ(r33.ހ);
                    int i4 = 0;
                    for (Object obj2 : arrayList) {
                        int i5 = i4 + 1;
                        if (i4 < 0) {
                            C4303.m7193();
                            throw null;
                        }
                        int i6 = CommonUtilsKt.ؠ(str7, CommonUtilsKt.ކ(((C0995) obj2).f3841));
                        if (i6 > i3) {
                            i = i4;
                            i3 = i6;
                        }
                        i4 = i5;
                    }
                }
                C0992.this.m2354(EnumC0994.SUCCESS, arrayList, i2, i);
                return C6549.f19328;
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ$ؠ, reason: contains not printable characters */
        @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1$additionalChannelsJob$1", f = "AssignEpgViewModel.kt", l = {75}, m = "invokeSuspend")
        public static final class C0999 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super List<? extends ؠ>>, Object> {

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

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

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C0999(ޗ r2, InterfaceC6575 interfaceC6575) {
                super(2, interfaceC6575);
                this.f3870 = 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;
                }
                C0999 c0999 = C0997.this.new C0999(this.f3870, interfaceC6575);
                c0999.f3866 = (InterfaceC1327) obj;
                return c0999;
            }

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

            @Override // p402.p405.p407.p408.AbstractC6589
            /* JADX INFO: renamed from: ށ */
            public final Object mo839(Object obj) throws Throwable {
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                int i = this.f3868;
                if (i == 0) {
                    C4303.m7198(obj);
                    InterfaceC1327 interfaceC1327 = this.f3866;
                    C0997 c0997 = C0997.this;
                    C0992 c0992 = C0992.this;
                    String str = this.f3870.ؠ;
                    boolean z = c0997.f3858;
                    this.f3867 = interfaceC1327;
                    this.f3868 = 1;
                    obj = c0992.m2352(str, z, this);
                    if (obj == enumC6586) {
                        return enumC6586;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    C4303.m7198(obj);
                }
                return obj;
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ$ހ, reason: contains not printable characters */
        @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1$channel$1", f = "AssignEpgViewModel.kt", l = {}, m = "invokeSuspend")
        public static final class C1000 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super ֏>, Object> {

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

            public C1000(InterfaceC6575 interfaceC6575) {
                super(2, interfaceC6575);
            }

            @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;
                }
                C1000 c1000 = C0997.this.new C1000(interfaceC6575);
                c1000.f3871 = (InterfaceC1327) obj;
                return c1000;
            }

            @Override // p402.p411.p412.InterfaceC6618
            /* JADX INFO: renamed from: ؠ */
            public final Object mo838(InterfaceC1327 interfaceC1327, InterfaceC6575<? super ֏> interfaceC6575) {
                C1000 c1000 = (C1000) mo837(interfaceC1327, interfaceC6575);
                C6549 c6549 = C6549.f19328;
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                C4303.m7198(c6549);
                return ޒ.֏.֏(C0997.this.f3857);
            }

            @Override // p402.p405.p407.p408.AbstractC6589
            /* JADX INFO: renamed from: ށ */
            public final Object mo839(Object obj) {
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                C4303.m7198(obj);
                return ޒ.֏.֏(C0997.this.f3857);
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ$ށ, reason: contains not printable characters */
        @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1$mainChannelsJob$1", f = "AssignEpgViewModel.kt", l = {72}, m = "invokeSuspend")
        public static final class C1001 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super List<? extends ؠ>>, Object> {

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

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

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

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C1001(ޗ r2, InterfaceC6575 interfaceC6575) {
                super(2, interfaceC6575);
                this.f3877 = 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;
                }
                C1001 c1001 = C0997.this.new C1001(this.f3877, interfaceC6575);
                c1001.f3873 = (InterfaceC1327) obj;
                return c1001;
            }

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

            @Override // p402.p405.p407.p408.AbstractC6589
            /* JADX INFO: renamed from: ށ */
            public final Object mo839(Object obj) throws Throwable {
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                int i = this.f3875;
                if (i == 0) {
                    C4303.m7198(obj);
                    InterfaceC1327 interfaceC1327 = this.f3873;
                    C0997 c0997 = C0997.this;
                    C0992 c0992 = C0992.this;
                    String str = this.f3877.֏;
                    boolean z = c0997.f3858;
                    this.f3874 = interfaceC1327;
                    this.f3875 = 1;
                    obj = c0992.m2352(str, z, this);
                    if (obj == enumC6586) {
                        return enumC6586;
                    }
                } else {
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    C4303.m7198(obj);
                }
                return obj;
            }
        }

        /* JADX INFO: renamed from: ނ.֏.֏.ށ.֏.ކ$ނ$ނ, reason: contains not printable characters */
        @InterfaceC6593(c = "ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel$onChannelSelected$1$playlist$1", f = "AssignEpgViewModel.kt", l = {}, m = "invokeSuspend")
        public static final class C1002 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super ޗ>, Object> {

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

            /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
            public final /* synthetic */ C6646 f3879;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            public C1002(C6646 c6646, InterfaceC6575 interfaceC6575) {
                super(2, interfaceC6575);
                this.f3879 = c6646;
            }

            @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;
                }
                C1002 c1002 = new C1002(this.f3879, interfaceC6575);
                c1002.f3878 = (InterfaceC1327) obj;
                return c1002;
            }

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

            @Override // p402.p405.p407.p408.AbstractC6589
            /* JADX INFO: renamed from: ށ */
            public final Object mo839(Object obj) {
                EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
                C4303.m7198(obj);
                long j = ((֏) this.f3879.f19405).ؠ;
                ޙ r0 = ހ.֏().ލ();
                long j2 = ރ.ߠ.މ();
                ޙ r02 = r0;
                if (r02 == null) {
                    throw null;
                }
                C2409 c2409M4490 = C2409.m4490("\n        SELECT p.id, p.main_tvg_source_id, p.additional_tvg_source_id, t1.url main_tvg_source_url,\n        t2.url additional_tvg_source_url, t3.url default_tvg_source_url, p.use_default_as_main_tvg_source,\n        p.use_default_as_additional_tvg_source, t1.name main_tvg_source_name,\n        t2.name additional_tvg_source_name, t3.name default_tvg_source_name\n        FROM playlists p\n        LEFT OUTER JOIN tvg_sources t1 ON p.main_tvg_source_id == t1.id\n        LEFT OUTER JOIN tvg_sources t2 ON p.additional_tvg_source_id == t2.id\n        LEFT OUTER JOIN tvg_sources t3 ON ? == t3.id\n        WHERE p.id == ?\n        ", 2);
                c2409M4490.bindLong(1, j2);
                c2409M4490.bindLong(2, j);
                r02.֏.m4478();
                Cursor cursorM4504 = C2421.m4504(r02.֏, c2409M4490, false, null);
                try {
                    int iM2969 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "id");
                    int iM29692 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "main_tvg_source_id");
                    int iM29693 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "additional_tvg_source_id");
                    int iM29694 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "main_tvg_source_url");
                    int iM29695 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "additional_tvg_source_url");
                    int iM29696 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "default_tvg_source_url");
                    int iM29697 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "use_default_as_main_tvg_source");
                    int iM29698 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "use_default_as_additional_tvg_source");
                    int iM29699 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "main_tvg_source_name");
                    int iM296910 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "additional_tvg_source_name");
                    int iM296911 = LayoutInflaterFactory2C1494.C1505.m2969(cursorM4504, "default_tvg_source_name");
                    if (cursorM4504.moveToFirst()) {
                        ޗ = new ޗ(cursorM4504.getLong(iM2969), cursorM4504.isNull(iM29692) ? null : Long.valueOf(cursorM4504.getLong(iM29692)), cursorM4504.isNull(iM29693) ? null : Long.valueOf(cursorM4504.getLong(iM29693)), cursorM4504.getString(iM29694), cursorM4504.getString(iM29695), cursorM4504.getString(iM29696), cursorM4504.getInt(iM29697) != 0, cursorM4504.getInt(iM29698) != 0, cursorM4504.getString(iM29699), cursorM4504.getString(iM296910), cursorM4504.getString(iM296911));
                    }
                    return ޗ;
                } finally {
                    cursorM4504.close();
                    c2409M4490.m4493();
                }
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C0997(long j, boolean z, String str, InterfaceC6575 interfaceC6575) {
            super(2, interfaceC6575);
            this.f3857 = j;
            this.f3858 = z;
            this.f3859 = str;
        }

        @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;
            }
            C0997 c0997 = C0992.this.new C0997(this.f3857, this.f3858, this.f3859, interfaceC6575);
            c0997.f3846 = (InterfaceC1327) obj;
            return c0997;
        }

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

        /* JADX WARN: Removed duplicated region for block: B:17:0x00e0  */
        /* JADX WARN: Removed duplicated region for block: B:19:0x00ef  */
        /* JADX WARN: Removed duplicated region for block: B:25:0x0117  */
        /* JADX WARN: Removed duplicated region for block: B:27:0x011a  */
        /* JADX WARN: Removed duplicated region for block: B:36:0x014c  */
        /* JADX WARN: Removed duplicated region for block: B:38:0x014f  */
        /* JADX WARN: Removed duplicated region for block: B:48:0x01c9 A[RETURN] */
        /* JADX WARN: Removed duplicated region for block: B:49:0x01ca  */
        /* JADX WARN: Removed duplicated region for block: B:52:0x01db  */
        /* JADX WARN: Removed duplicated region for block: B:54:0x01de  */
        /* JADX WARN: Type inference failed for: r3v3, types: [T, ar.tvplayer.core.data.db.entities.֏] */
        /* JADX WARN: Type inference failed for: r6v13, types: [T, java.util.List] */
        /* JADX WARN: Type inference failed for: r6v6, types: [T, java.util.List] */
        @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;
            C6646 c6646;
            Object objM7018;
            InterfaceC1327 interfaceC13272;
            C6646 c66462;
            Object objM70182;
            InterfaceC1332 interfaceC1332M7048;
            Object objMo2660;
            InterfaceC1327 interfaceC13273;
            InterfaceC1332 interfaceC1332;
            C6646 c66463;
            C6646 c66464;
            ޗ r5;
            C6646 c66465;
            C6646 c66466;
            Object objMo26602;
            C6646 c66467;
            C6646 c66468;
            InterfaceC1332 interfaceC13322;
            InterfaceC1332 interfaceC13323;
            ޗ r13;
            InterfaceC1327 interfaceC13274;
            C6646 c66469;
            EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
            switch (this.f3855) {
                case 0:
                    C4303.m7198(obj);
                    interfaceC1327 = this.f3846;
                    this.f3847 = interfaceC1327;
                    this.f3855 = 1;
                    if (C4303.m7005(200L, this) == enumC6586) {
                        return enumC6586;
                    }
                    C0992.m2351(C0992.this, EnumC0994.LOADING, (List) null, 0, 0, 14);
                    if (this.f3857 != 0) {
                        C0992.m2351(C0992.this, EnumC0994.SUCCESS, (List) null, 0, 0, 14);
                        return C6549.f19328;
                    }
                    c6646 = new C6646();
                    AbstractC1323 abstractC1323 = C1340.f4488;
                    C1000 c1000 = new C1000(null);
                    this.f3847 = interfaceC1327;
                    this.f3848 = c6646;
                    this.f3849 = c6646;
                    this.f3855 = 2;
                    objM7018 = C4303.m7018(abstractC1323, c1000, this);
                    if (objM7018 == enumC6586) {
                        return enumC6586;
                    }
                    interfaceC13272 = interfaceC1327;
                    c66462 = c6646;
                    c66462.f19405 = (֏) objM7018;
                    if (C4303.m7134(interfaceC13272)) {
                        return C6549.f19328;
                    }
                    if (((֏) c6646.f19405) == null) {
                        C0992.m2351(C0992.this, EnumC0994.FAILURE, (List) null, 0, 0, 14);
                        return C6549.f19328;
                    }
                    AbstractC1323 abstractC13232 = C1340.f4488;
                    C1002 c1002 = new C1002(c6646, null);
                    this.f3847 = interfaceC13272;
                    this.f3848 = c6646;
                    this.f3855 = 3;
                    objM70182 = C4303.m7018(abstractC13232, c1002, this);
                    if (objM70182 == enumC6586) {
                        return enumC6586;
                    }
                    ޗ r0 = (ޗ) objM70182;
                    if (C4303.m7134(interfaceC13272)) {
                        return C6549.f19328;
                    }
                    C0992 c0992 = C0992.this;
                    c0992.f3830 = r0;
                    if (r0 == null) {
                        C0992.m2351(c0992, EnumC0994.FAILURE, (List) null, 0, 0, 14);
                        return C6549.f19328;
                    }
                    InterfaceC1327 interfaceC13275 = interfaceC13272;
                    InterfaceC1332 interfaceC1332M70482 = C4303.m7048(interfaceC13275, (InterfaceC6578) null, (EnumC1328) null, new C1001(r0, null), 3, (Object) null);
                    interfaceC1332M7048 = C4303.m7048(interfaceC13275, (InterfaceC6578) null, (EnumC1328) null, new C0999(r0, null), 3, (Object) null);
                    C6646 c664610 = new C6646();
                    this.f3847 = interfaceC13272;
                    this.f3848 = c6646;
                    this.f3849 = r0;
                    this.f3850 = interfaceC1332M70482;
                    this.f3851 = interfaceC1332M7048;
                    this.f3852 = c664610;
                    this.f3853 = c664610;
                    this.f3855 = 4;
                    objMo2660 = interfaceC1332M70482.mo2660(this);
                    if (objMo2660 == enumC6586) {
                        return enumC6586;
                    }
                    interfaceC13273 = interfaceC13272;
                    interfaceC1332 = interfaceC1332M70482;
                    c66463 = c6646;
                    c66464 = c664610;
                    r5 = r0;
                    c66465 = c66464;
                    c66465.f19405 = (List) objMo2660;
                    c66466 = new C6646();
                    this.f3847 = interfaceC13273;
                    this.f3848 = c66463;
                    this.f3849 = r5;
                    this.f3850 = interfaceC1332;
                    this.f3851 = interfaceC1332M7048;
                    this.f3852 = c66464;
                    this.f3853 = c66466;
                    this.f3854 = c66466;
                    this.f3855 = 5;
                    objMo26602 = interfaceC1332M7048.mo2660(this);
                    if (objMo26602 != enumC6586) {
                        return enumC6586;
                    }
                    c66467 = c66463;
                    c66468 = c66464;
                    interfaceC13322 = interfaceC1332M7048;
                    interfaceC13323 = interfaceC1332;
                    r13 = r5;
                    interfaceC13274 = interfaceC13273;
                    c66469 = c66466;
                    c66466.f19405 = (List) objMo26602;
                    if (C4303.m7134(interfaceC13274)) {
                        return C6549.f19328;
                    }
                    AbstractC1323 abstractC13233 = C1340.f4488;
                    C0998 c0998 = new C0998(c66468, c66469, r13, c66467, null);
                    this.f3847 = interfaceC13274;
                    this.f3848 = c66467;
                    this.f3849 = r13;
                    this.f3850 = interfaceC13323;
                    this.f3851 = interfaceC13322;
                    this.f3852 = c66468;
                    this.f3853 = c66469;
                    this.f3855 = 6;
                    if (C4303.m7018(abstractC13233, c0998, this) == enumC6586) {
                        return enumC6586;
                    }
                    return C6549.f19328;
                case 1:
                    interfaceC1327 = (InterfaceC1327) this.f3847;
                    C4303.m7198(obj);
                    C0992.m2351(C0992.this, EnumC0994.LOADING, (List) null, 0, 0, 14);
                    if (this.f3857 != 0) {
                    }
                    break;
                case 2:
                    c66462 = (C6646) this.f3849;
                    c6646 = (C6646) this.f3848;
                    InterfaceC1327 interfaceC13276 = (InterfaceC1327) this.f3847;
                    C4303.m7198(obj);
                    interfaceC13272 = interfaceC13276;
                    objM7018 = obj;
                    c66462.f19405 = (֏) objM7018;
                    if (C4303.m7134(interfaceC13272)) {
                    }
                    break;
                case 3:
                    C6646 c664611 = (C6646) this.f3848;
                    InterfaceC1327 interfaceC13277 = (InterfaceC1327) this.f3847;
                    C4303.m7198(obj);
                    interfaceC13272 = interfaceC13277;
                    c6646 = c664611;
                    objM70182 = obj;
                    ޗ r02 = (ޗ) objM70182;
                    if (C4303.m7134(interfaceC13272)) {
                    }
                    break;
                case 4:
                    c66465 = (C6646) this.f3853;
                    C6646 c664612 = (C6646) this.f3852;
                    InterfaceC1332 interfaceC13324 = (InterfaceC1332) this.f3851;
                    InterfaceC1332 interfaceC13325 = (InterfaceC1332) this.f3850;
                    ޗ r4 = (ޗ) this.f3849;
                    C6646 c664613 = (C6646) this.f3848;
                    InterfaceC1327 interfaceC13278 = (InterfaceC1327) this.f3847;
                    C4303.m7198(obj);
                    interfaceC13273 = interfaceC13278;
                    objMo2660 = obj;
                    c66464 = c664612;
                    c66463 = c664613;
                    r5 = r4;
                    interfaceC1332 = interfaceC13325;
                    interfaceC1332M7048 = interfaceC13324;
                    c66465.f19405 = (List) objMo2660;
                    c66466 = new C6646();
                    this.f3847 = interfaceC13273;
                    this.f3848 = c66463;
                    this.f3849 = r5;
                    this.f3850 = interfaceC1332;
                    this.f3851 = interfaceC1332M7048;
                    this.f3852 = c66464;
                    this.f3853 = c66466;
                    this.f3854 = c66466;
                    this.f3855 = 5;
                    objMo26602 = interfaceC1332M7048.mo2660(this);
                    if (objMo26602 != enumC6586) {
                    }
                    break;
                case 5:
                    c66466 = (C6646) this.f3854;
                    C6646 c664614 = (C6646) this.f3853;
                    C6646 c664615 = (C6646) this.f3852;
                    InterfaceC1332 interfaceC13326 = (InterfaceC1332) this.f3851;
                    InterfaceC1332 interfaceC13327 = (InterfaceC1332) this.f3850;
                    ޗ r52 = (ޗ) this.f3849;
                    C6646 c664616 = (C6646) this.f3848;
                    InterfaceC1327 interfaceC13279 = (InterfaceC1327) this.f3847;
                    C4303.m7198(obj);
                    c66468 = c664615;
                    interfaceC13322 = interfaceC13326;
                    interfaceC13323 = interfaceC13327;
                    r13 = r52;
                    c66467 = c664616;
                    interfaceC13274 = interfaceC13279;
                    objMo26602 = obj;
                    c66469 = c664614;
                    c66466.f19405 = (List) objMo26602;
                    if (C4303.m7134(interfaceC13274)) {
                    }
                    break;
                case 6:
                    C4303.m7198(obj);
                    return C6549.f19328;
                default:
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2350(C0992 c0992, long j, boolean z, boolean z2, String str, int i) {
        boolean z3 = (i & 2) != 0 ? false : z;
        boolean z4 = (i & 4) != 0 ? false : z2;
        if ((i & 8) != 0) {
            str = "";
        }
        c0992.m2353(j, z3, z4, str);
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static /* synthetic */ void m2351(C0992 c0992, EnumC0994 enumC0994, List list, int i, int i2, int i3) {
        if ((i3 & 2) != 0) {
            list = C6563.f19343;
        }
        if ((i3 & 4) != 0) {
            i = -1;
        }
        if ((i3 & 8) != 0) {
            i2 = -1;
        }
        c0992.m2354(enumC0994, (List<C0995>) list, i, i2);
    }

    /* JADX WARN: Removed duplicated region for block: B:27:0x00c4  */
    /* JADX WARN: Removed duplicated region for block: B:28:0x00c7  */
    /* JADX WARN: Type inference failed for: r1v2, types: [T, java.lang.String] */
    /* JADX WARN: Type inference failed for: r1v5, types: [T, java.lang.Object, java.lang.String] */
    /* JADX WARN: Type inference incomplete: some casts might be missing */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final /* synthetic */ Object m2352(String str, boolean z, InterfaceC6575<? super List<ؠ>> interfaceC6575) throws Throwable {
        if (str.length() == 0) {
            return C6563.f19343;
        }
        ˈ r0 = ˈ.ؠ;
        List list = (List) ˈ.ؠ().get(str);
        if (list != null) {
            return list;
        }
        C6646 c6646 = new C6646();
        String str2 = this.f3829.get(str);
        c6646.f19405 = str2;
        if (str2 == 0) {
            ?? string = UUID.randomUUID().toString();
            c6646.f19405 = string;
            this.f3829.put(str, (String) string);
            ˈ r1 = ˈ.ؠ;
            String str3 = (String) c6646.f19405;
            if (str3 == null) {
                C6635.m9824("workName");
                throw null;
            }
            HashMap map = new HashMap();
            map.put("tvg_url", str);
            map.put("is_full_scan", Boolean.valueOf(z));
            C2552 c2552 = new C2552(map);
            C2552.m4609(c2552);
            C6635.m9823((Object) c2552, "Data.Builder()\n         …can)\n            .build()");
            C2565.C2566 c2566 = new C2565.C2566(LoadXmltvChannelsWorker.class);
            c2566.f8093.f8324 = c2552;
            C2565 c2565M4635 = c2566.m4635();
            C6635.m9823((Object) c2565M4635, "OneTimeWorkRequestBuilde…ata)\n            .build()");
            C2604.m4662(C1255.m2551()).m4633(str3, EnumC2556.REPLACE, c2565M4635);
        }
        C6584<?> c6584 = new C6584<>(C4303.m7066((InterfaceC6575) interfaceC6575));
        ˈ r7 = ˈ.ؠ;
        ˈ.֏((String) c6646.f19405).m343((InterfaceC2230) new C0996(c6584, c6646, str));
        Object obj = c6584.result;
        EnumC6586 enumC6586 = EnumC6586.UNDECIDED;
        if (obj != enumC6586) {
            if (obj != EnumC6586.RESUMED) {
                obj = EnumC6586.COROUTINE_SUSPENDED;
            } else if (obj instanceof C6542.C6544) {
                throw ((C6542.C6544) obj).f19320;
            }
        } else if (C6584.f19357.compareAndSet(c6584, enumC6586, EnumC6586.COROUTINE_SUSPENDED)) {
            obj = EnumC6586.COROUTINE_SUSPENDED;
        } else {
            obj = c6584.result;
            if (obj != EnumC6586.RESUMED) {
            }
        }
        EnumC6586 enumC65862 = EnumC6586.COROUTINE_SUSPENDED;
        return obj;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m2353(long j, boolean z, boolean z2, String str) {
        if (str == null) {
            C6635.m9824("query");
            throw null;
        }
        if (this.f3828 != j || z) {
            this.f3828 = j;
            InterfaceC1363 interfaceC1363 = this.f3831;
            if (interfaceC1363 != null) {
                C4303.m7098(interfaceC1363, (CancellationException) null, 1, (Object) null);
            }
            this.f3831 = CommonUtilsKt.ؠ(LayoutInflaterFactory2C1494.C1505.m2925((AbstractC2245) this), new C0997(j, z2, str, null));
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m2354(EnumC0994 enumC0994, List<C0995> list, int i, int i2) {
        LiveData<C0993> liveData = this.f3827;
        if (liveData == null) {
            throw new TypeCastException("null cannot be cast to non-null type androidx.lifecycle.MutableLiveData<ar.tvplayer.tv.tvguide.ui.AssignEpgViewModel.AssignEpgData>");
        }
        ((C2229) liveData).mo341(new C0993(enumC0994, list, i, i2));
    }

    @Override // p037.p099.AbstractC2245
    /* JADX INFO: renamed from: ހ */
    public void mo2103() {
        m2355();
        ˈ r0 = ˈ.ؠ;
        ˈ.ؠ().clear();
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final void m2355() {
        Collection<String> collectionValues = this.f3829.values();
        C6635.m9823((Object) collectionValues, "tvgUrlToWorkNameMap.values");
        for (String str : collectionValues) {
            ˈ r2 = ˈ.ؠ;
            C6635.m9823((Object) str, "it");
            C2604.m4662(C1255.m2551()).mo4632(str);
        }
        this.f3829.clear();
    }
}
