public android.graphics.Typeface createFromFontInfo(android.content.Context p4, android.os.CancellationSignal p5, androidx.core.provider.FontsContractCompat$FontInfo[] p6, int p7)
    {
        if (p6.length >= 1) {
            try {
                Throwable v5_1 = p4.getContentResolver().openFileDescriptor(this.findBestInfo(p6, p7).getUri(), r, p5);
            } catch (java.io.IOException) {
                return 0;
            }
            if (v5_1 != null) {
                try {
                    Throwable v6_2 = new StringBuilder();
                    v6_2.append(/proc/self/fd/);
                    v6_2.append(v5_1.getFd());
                    Throwable v6_4 = android.system.Os.readlink(v6_2.toString());
                } catch (android.system.ErrnoException) {
                    java.io.FileDescriptor v7_6 = 0;
                    if (v7_6 != null) {
                        if (v7_6.canRead()) {
                            Throwable v4_1 = android.graphics.Typeface.createFromFile(v7_6);
                            v5_1.close();
                            return v4_1;
                        } else {
                        }
                    }
                    Throwable v6_7 = new java.io.FileInputStream(v5_1.getFileDescriptor());
                    try {
                        Throwable v4_2 = super.createFromInputStream(p4, v6_7);
                    } catch (Throwable v4_3) {
                        try {
                            v6_7.close();
                        } catch (Throwable v6_9) {
                            v4_3.addSuppressed(v6_9);
                        }
                        throw v4_3;
                    }
                    v6_7.close();
                    v5_1.close();
                    return v4_2;
                } catch (Throwable v4_4) {
                    try {
                        v5_1.close();
                    } catch (Throwable v5_2) {
                        v4_4.addSuppressed(v5_2);
                    }
                    throw v4_4;
                }
                if (!android.system.OsConstants.S_ISREG(android.system.Os.stat(v6_4).st_mode)) {
                } else {
                    v7_6 = new java.io.File(v6_4);
                }
            } else {
                if (v5_1 != null) {
                    v5_1.close();
                }
                return 0;
            }
        } else {
            return 0;
        }
    }