package p000.p001.p021.p022;

import android.net.Uri;
import ar.tvplayer.core.data.db.entities.ފ;
import ar.tvplayer.core.domain2.އ;
import ar.tvplayer.core.util.CommonUtilsKt;
import java.io.InputStream;
import p138.p145.p146.p151.C2848;
import p138.p145.p146.p151.p158.InterfaceC3028;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ނ.֏.ؠ.֏.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1230 implements InterfaceC3028<C1229, InputStream> {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC3028<Uri, InputStream> f4331;

    public C1230(InterfaceC3028<Uri, InputStream> interfaceC3028) {
        if (interfaceC3028 != null) {
            this.f4331 = interfaceC3028;
        } else {
            C6635.m9824("uriLoader");
            throw null;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x003c  */
    @Override // p138.p145.p146.p151.p158.InterfaceC3028
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public InterfaceC3028.C3029<InputStream> mo2519(C1229 c1229, int i, int i2, C2848 c2848) {
        Uri uri;
        C1229 c12292 = c1229;
        if (c12292 == null) {
            C6635.m9824("model");
            throw null;
        }
        if (c2848 == null) {
            C6635.m9824("options");
            throw null;
        }
        ފ r6 = c12292.f4330;
        String str = r6.֏(false);
        if (str.length() == 0) {
            uri = null;
        } else if (CommonUtilsKt.ނ(str)) {
            uri = Uri.parse(str);
        } else {
            Uri uri2 = އ.ހ.֏(str);
            if (uri2 == null) {
                String str2 = r6.֏(true);
                uri = CommonUtilsKt.ނ(str2) ? Uri.parse(str2) : uri2;
            }
        }
        if (uri != null) {
            return this.f4331.mo2519(uri, i, i2, c2848);
        }
        return null;
    }

    @Override // p138.p145.p146.p151.p158.InterfaceC3028
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public boolean mo2520(C1229 c1229) {
        if (c1229 != null) {
            return true;
        }
        C6635.m9824("model");
        throw null;
    }
}
