public static void __hx_ctor_alphatab_importer_ScoreImporter(global::alphatab.importer.ScoreImporter __temp_me54)
 {
     unchecked
     {
         {
         }
     }
 }
        public static global::alphatab.model.Score loadScoreFromBytes(global::haxe.io.Bytes data)
        {
            unchecked
            {
                global::haxe.root.Array <object> importers = global::alphatab.importer.ScoreImporter.availableImporters();
                global::alphatab.model.Score     score     = default(global::alphatab.model.Score);
                {
                    int _g = 0;
                    while ((_g < importers.length))
                    {
                        global::alphatab.importer.ScoreImporter importer = ((global::alphatab.importer.ScoreImporter)(importers[_g]));
                        ++_g;
                        try
                        {
                            global::haxe.io.BytesInput input = new global::haxe.io.BytesInput(((global::haxe.io.Bytes)(data)), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))), ((global::haxe.lang.Null <int>)(default(global::haxe.lang.Null <int>))));
                            importer.init(input);
                            score = importer.readScore();
                            break;
                        }
                        catch (global::System.Exception __temp_catchallException508)
                        {
                            object __temp_catchall509 = __temp_catchallException508;
                            if ((__temp_catchall509 is global::haxe.lang.HaxeException))
                            {
                                __temp_catchall509 = ((global::haxe.lang.HaxeException)(__temp_catchallException508)).obj;
                            }

                            {
                                object e = __temp_catchall509;
                                if (global::haxe.lang.Runtime.eq(e, global::alphatab.importer.ScoreImporter.UnsupportedFormat))
                                {
                                    continue;
                                }
                                else
                                {
                                    throw global::haxe.lang.HaxeException.wrap(e);
                                }
                            }
                        }
                    }
                }

                if ((score != default(global::alphatab.model.Score)))
                {
                    return(score);
                }
                else
                {
                    throw global::haxe.lang.HaxeException.wrap("No reader for the requested file found");
                }
            }
        }