package p000.p001.p002.p008.p009;

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.repositories.ގ;
import ar.tvplayer.core.data.repositories.ࢦ;
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.base.ui.ProgramInfoViewModel$loadProgramForHistoryProgram$1", f = "ProgramInfoFragment.kt", l = {358, 359}, m = "invokeSuspend")
public final class C0849 extends AbstractC6597 implements InterfaceC6618<InterfaceC1327, InterfaceC6575<? super C6549>, Object> {

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

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0849(C0846 c0846, long j, long j2, InterfaceC6575 interfaceC6575) {
        super(2, interfaceC6575);
        this.f3448 = c0846;
        this.f3449 = j;
        this.f3450 = j2;
    }

    @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;
        }
        C0849 c0849 = new C0849(this.f3448, this.f3449, this.f3450, interfaceC6575);
        c0849.f3444 = (InterfaceC1327) obj;
        return c0849;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:19:0x0069  */
    @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;
        Object objM7018;
        Object objM70182;
        ޑ r1;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i = this.f3447;
        if (i == 0) {
            C4303.m7198(obj);
            interfaceC1327 = this.f3444;
            long j = this.f3449;
            this.f3445 = interfaceC1327;
            this.f3447 = 1;
            objM7018 = C4303.m7018((InterfaceC6578) C1340.f4488, (InterfaceC6618) new ࢦ(j, (InterfaceC6575) null), (InterfaceC6575) this);
            if (objM7018 == enumC6586) {
                return enumC6586;
            }
        } else {
            if (i != 1) {
                if (i != 2) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                r1 = (ޑ) this.f3446;
                interfaceC1327 = (InterfaceC1327) this.f3445;
                C4303.m7198(obj);
                objM70182 = obj;
                ނ r3 = (ނ) objM70182;
                if (C4303.m7134(interfaceC1327)) {
                    this.f3448.m2134((r1 != null ? Long.valueOf(r1.ނ) : null) != null ? new ޤ(0L, 0L, r1.ނ, r1.ރ, r1.ބ, r1.ޅ, (Integer) null, (Integer) null) : null, r3, false);
                }
                return C6549.f19328;
            }
            interfaceC1327 = (InterfaceC1327) this.f3445;
            C4303.m7198(obj);
            objM7018 = obj;
        }
        ޑ r4 = (ޑ) objM7018;
        long j2 = this.f3450;
        this.f3445 = interfaceC1327;
        this.f3446 = r4;
        this.f3447 = 2;
        objM70182 = C4303.m7018((InterfaceC6578) C1340.f4488, (InterfaceC6618) new ގ(j2, (InterfaceC6575) null), (InterfaceC6575) this);
        if (objM70182 == enumC6586) {
            return enumC6586;
        }
        r1 = r4;
        ނ r32 = (ނ) objM70182;
        if (C4303.m7134(interfaceC1327)) {
        }
        return C6549.f19328;
    }
}
