(function (_, kotlin_kotlin) {
  'use strict';
  //region block: imports
  var imul = Math.imul;
  var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.y2;
  var protoOf = kotlin_kotlin.$_$.tf;
  var objectMeta = kotlin_kotlin.$_$.sf;
  var setMetadataFor = kotlin_kotlin.$_$.uf;
  var objectCreate = kotlin_kotlin.$_$.rf;
  var Unit_getInstance = kotlin_kotlin.$_$.g6;
  var ensureNotNull = kotlin_kotlin.$_$.xm;
  var VOID = kotlin_kotlin.$_$.g;
  var toString = kotlin_kotlin.$_$.yf;
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l2;
  var classMeta = kotlin_kotlin.$_$.ee;
  var THROW_IAE = kotlin_kotlin.$_$.dm;
  var Enum = kotlin_kotlin.$_$.pl;
  var charSequenceGet = kotlin_kotlin.$_$.be;
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.t3;
  var toShort = kotlin_kotlin.$_$.xf;
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f2;
  var round = kotlin_kotlin.$_$.fg;
  var numberToInt = kotlin_kotlin.$_$.pf;
  var compareTo = kotlin_kotlin.$_$.fe;
  var toBits = kotlin_kotlin.$_$.pn;
  var equals = kotlin_kotlin.$_$.ie;
  var hashCode = kotlin_kotlin.$_$.se;
  var contentEquals = kotlin_kotlin.$_$.g8;
  var contentHashCode = kotlin_kotlin.$_$.m8;
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.gn;
  var numberToLong = kotlin_kotlin.$_$.qf;
  var toLong = kotlin_kotlin.$_$.wf;
  var Long = kotlin_kotlin.$_$.vl;
  var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.s4;
  var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.t4;
  var until = kotlin_kotlin.$_$.yg;
  var collectionSizeOrDefault = kotlin_kotlin.$_$.z7;
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
  var copyToArray = kotlin_kotlin.$_$.z8;
  var getStringHashCode = kotlin_kotlin.$_$.re;
  var THROW_CCE = kotlin_kotlin.$_$.cm;
  var isCharSequence = kotlin_kotlin.$_$.ze;
  var trim = kotlin_kotlin.$_$.zk;
  var split = kotlin_kotlin.$_$.oj;
  var getOrNull = kotlin_kotlin.$_$.u9;
  var toIntOrNull = kotlin_kotlin.$_$.jk;
  var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.i4;
  var fillArrayVal = kotlin_kotlin.$_$.ke;
  var toInt = kotlin_kotlin.$_$.kk;
  var toUInt = kotlin_kotlin.$_$.sk;
  var splitToSequence = kotlin_kotlin.$_$.mj;
  var mapNotNull = kotlin_kotlin.$_$.ph;
  var toList = kotlin_kotlin.$_$.xh;
  var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.k4;
  var uintCompare = kotlin_kotlin.$_$.vn;
  var Companion_getInstance = kotlin_kotlin.$_$.d6;
  var UInt = kotlin_kotlin.$_$.jm;
  var isNaN_0 = kotlin_kotlin.$_$.cn;
  var toDouble = kotlin_kotlin.$_$.hk;
  var interfaceMeta = kotlin_kotlin.$_$.ue;
  var numberToChar = kotlin_kotlin.$_$.nf;
  var charArrayOf = kotlin_kotlin.$_$.zd;
  var concatToString = kotlin_kotlin.$_$.ci;
  var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.d2;
  var decodeToString = kotlin_kotlin.$_$.gi;
  var toByte = kotlin_kotlin.$_$.vf;
  var get_PI = kotlin_kotlin.$_$.zf;
  var isFloatArray = kotlin_kotlin.$_$.bf;
  var isByteArray = kotlin_kotlin.$_$.xe;
  var Error_init_$Create$ = kotlin_kotlin.$_$.t1;
  var Iterable = kotlin_kotlin.$_$.u6;
  var contentHashCode_0 = kotlin_kotlin.$_$.l8;
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.q2;
  var NotImplementedError = kotlin_kotlin.$_$.xl;
  var MutableIterator = kotlin_kotlin.$_$.d7;
  var last = kotlin_kotlin.$_$.ma;
  var FloatCompanionObject_getInstance = kotlin_kotlin.$_$.q5;
  var floatFromBits = kotlin_kotlin.$_$.le;
  var copyOfRange = kotlin_kotlin.$_$.p8;
  var joinToString = kotlin_kotlin.$_$.ba;
  var toList_0 = kotlin_kotlin.$_$.hc;
  var chunked = kotlin_kotlin.$_$.y7;
  var contentEquals_0 = kotlin_kotlin.$_$.j8;
  var contentHashCode_1 = kotlin_kotlin.$_$.n8;
  var Iterator = kotlin_kotlin.$_$.v6;
  var firstOrNull = kotlin_kotlin.$_$.m9;
  var asList = kotlin_kotlin.$_$.p7;
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.q;
  var toRawBits = kotlin_kotlin.$_$.rn;
  var listOf = kotlin_kotlin.$_$.qa;
  var addAll = kotlin_kotlin.$_$.m7;
  var toIntArray = kotlin_kotlin.$_$.dc;
  var toList_1 = kotlin_kotlin.$_$.fc;
  var getBooleanHashCode = kotlin_kotlin.$_$.me;
  var toBits_0 = kotlin_kotlin.$_$.qn;
  var toString_0 = kotlin_kotlin.$_$.tn;
  var DoubleCompanionObject_getInstance = kotlin_kotlin.$_$.p5;
  var doubleFromBits = kotlin_kotlin.$_$.he;
  var getNumberHashCode = kotlin_kotlin.$_$.oe;
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.d3;
  var isArray = kotlin_kotlin.$_$.ve;
  var contentDeepEquals = kotlin_kotlin.$_$.c8;
  var contentDeepHashCode = kotlin_kotlin.$_$.d8;
  var contentDeepToString = kotlin_kotlin.$_$.e8;
  var Regex_init_$Create$ = kotlin_kotlin.$_$.k1;
  var lazy = kotlin_kotlin.$_$.fn;
  var charSequenceLength = kotlin_kotlin.$_$.ce;
  var KProperty0 = kotlin_kotlin.$_$.ch;
  var getPropertyCallableRef = kotlin_kotlin.$_$.qe;
  var KProperty1 = kotlin_kotlin.$_$.dh;
  var getKClassFromExpression = kotlin_kotlin.$_$.d;
  var toIntArray_0 = kotlin_kotlin.$_$.ec;
  var arrayCopy = kotlin_kotlin.$_$.n7;
  var plus = kotlin_kotlin.$_$.hn;
  var toString_1 = kotlin_kotlin.$_$.qk;
  var setOf = kotlin_kotlin.$_$.rb;
  var contains = kotlin_kotlin.$_$.ei;
  //endregion
  //region block: pre-declaration
  setMetadataFor(Companion, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder, '_FinalizerHolder', objectMeta);
  setMetadataFor(Native, 'Native', classMeta);
  setMetadataFor(Managed, 'Managed', classMeta, Native);
  function get_width() {
    return this.get_imageInfo_60i77k_k$().get_width_j0q4yl_k$();
  }
  function get_height() {
    return this.get_imageInfo_60i77k_k$().get_height_e7t92o_k$();
  }
  function get_colorInfo() {
    return this.get_imageInfo_60i77k_k$().get_colorInfo_tre0vs_k$();
  }
  function get_colorType() {
    return this.get_imageInfo_60i77k_k$().get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$();
  }
  function get_alphaType() {
    return this.get_imageInfo_60i77k_k$().get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$();
  }
  function get_colorSpace() {
    return this.get_imageInfo_60i77k_k$().get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$();
  }
  function get_bytesPerPixel() {
    return this.get_imageInfo_60i77k_k$().get_bytesPerPixel_yisyiz_k$();
  }
  function get_shiftPerPixel() {
    return this.get_imageInfo_60i77k_k$().get_shiftPerPixel_3lby8u_k$();
  }
  function get_isEmpty() {
    return this.get_imageInfo_60i77k_k$().get_isEmpty_zauvru_k$();
  }
  function get_isOpaque() {
    return this.get_imageInfo_60i77k_k$().get_colorInfo_tre0vs_k$().get_isOpaque_xnqi0k_k$();
  }
  setMetadataFor(IHasImageInfo, 'IHasImageInfo', interfaceMeta);
  setMetadataFor(Bitmap, 'Bitmap', classMeta, Managed, [Managed, IHasImageInfo], Bitmap_init_$Create$);
  setMetadataFor(BlendMode, 'BlendMode', classMeta, Enum);
  setMetadataFor(Companion_0, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_0, '_FinalizerHolder', objectMeta);
  setMetadataFor(BreakIterator, 'BreakIterator', classMeta, Managed);
  setMetadataFor(Companion_1, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_1, '_FinalizerHolder', objectMeta);
  setMetadataFor(Canvas, 'Canvas', classMeta, Managed);
  setMetadataFor(ClipMode, 'ClipMode', classMeta, Enum);
  setMetadataFor(Companion_2, 'Companion', objectMeta);
  setMetadataFor(Color4f, 'Color4f', classMeta);
  setMetadataFor(ColorAlphaType, 'ColorAlphaType', classMeta, Enum);
  setMetadataFor(ColorChannel, 'ColorChannel', classMeta, Enum);
  setMetadataFor(Companion_3, 'Companion', objectMeta);
  setMetadataFor(RefCnt, 'RefCnt', classMeta, Managed);
  setMetadataFor(ColorFilter, 'ColorFilter', classMeta, RefCnt);
  setMetadataFor(Companion_4, 'Companion', objectMeta);
  setMetadataFor(ColorInfo, 'ColorInfo', classMeta);
  setMetadataFor(ColorMatrix, 'ColorMatrix', classMeta);
  setMetadataFor(Companion_5, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_2, '_FinalizerHolder', objectMeta);
  setMetadataFor(ColorSpace, 'ColorSpace', classMeta, Managed);
  setMetadataFor(Companion_6, 'Companion', objectMeta);
  setMetadataFor(ColorType, 'ColorType', classMeta, Enum);
  setMetadataFor(SamplingMode, 'SamplingMode', interfaceMeta);
  setMetadataFor(CubicResampler, 'CubicResampler', classMeta, VOID, [SamplingMode]);
  setMetadataFor(Companion_7, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_3, '_FinalizerHolder', objectMeta);
  setMetadataFor(Data, 'Data', classMeta, Managed);
  setMetadataFor(Companion_8, 'Companion', objectMeta);
  setMetadataFor(DirectContext, 'DirectContext', classMeta, RefCnt);
  setMetadataFor(Companion_9, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_4, '_FinalizerHolder', objectMeta);
  setMetadataFor(Drawable, 'Drawable', classMeta, Managed);
  setMetadataFor(EncodedImageFormat, 'EncodedImageFormat', classMeta, Enum);
  setMetadataFor(FilterBlurMode, 'FilterBlurMode', classMeta, Enum);
  setMetadataFor(FilterMipmap, 'FilterMipmap', classMeta, VOID, [SamplingMode]);
  setMetadataFor(FilterMode, 'FilterMode', classMeta, Enum);
  setMetadataFor(FilterTileMode, 'FilterTileMode', classMeta, Enum);
  setMetadataFor(Companion_10, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_5, '_FinalizerHolder', objectMeta);
  setMetadataFor(Font, 'Font', classMeta, Managed, VOID, Font_init_$Create$_1);
  setMetadataFor(FontEdging, 'FontEdging', classMeta, Enum);
  setMetadataFor(FontFamilyName, 'FontFamilyName', classMeta);
  setMetadataFor(Companion_11, 'Companion', objectMeta);
  setMetadataFor(FontFeature, 'FontFeature', classMeta);
  setMetadataFor(FontHinting, 'FontHinting', classMeta, Enum);
  setMetadataFor(Companion_12, 'Companion', objectMeta);
  setMetadataFor(FontMetrics, 'FontMetrics', classMeta);
  setMetadataFor(Companion_13, 'Companion', objectMeta);
  setMetadataFor(FontMgr, 'FontMgr', classMeta, RefCnt);
  setMetadataFor(FontSlant, 'FontSlant', classMeta, Enum);
  setMetadataFor(Companion_14, 'Companion', objectMeta);
  setMetadataFor(FontStyle, 'FontStyle', classMeta);
  setMetadataFor(Companion_15, 'Companion', objectMeta);
  setMetadataFor(FontStyleSet, 'FontStyleSet', classMeta, RefCnt);
  setMetadataFor(Companion_16, 'Companion', objectMeta);
  setMetadataFor(FontVariation, 'FontVariation', classMeta);
  setMetadataFor(FontVariationAxis, 'FontVariationAxis', classMeta);
  setMetadataFor(Companion_17, 'Companion', objectMeta);
  setMetadataFor(FontWeight, 'FontWeight', interfaceMeta);
  setMetadataFor(Companion_18, 'Companion', objectMeta);
  setMetadataFor(FontWidth, 'FontWidth', interfaceMeta);
  setMetadataFor(Companion_19, 'Companion', objectMeta);
  setMetadataFor(FourByteTag, 'FourByteTag', interfaceMeta);
  setMetadataFor(GLBackendState, 'GLBackendState', classMeta, Enum);
  setMetadataFor(Companion_20, 'Companion', objectMeta);
  setMetadataFor(GradientStyle, 'GradientStyle', classMeta);
  setMetadataFor(Companion_21, 'Companion', objectMeta);
  setMetadataFor(IPoint, 'IPoint', classMeta);
  setMetadataFor(Companion_22, 'Companion', objectMeta);
  setMetadataFor(IRange, 'IRange', classMeta);
  setMetadataFor(Companion_23, 'Companion', objectMeta);
  setMetadataFor(IRect, 'IRect', classMeta);
  setMetadataFor(Companion_24, 'Companion', objectMeta);
  setMetadataFor(ISize, 'ISize', classMeta);
  setMetadataFor(Companion_25, 'Companion', objectMeta);
  setMetadataFor(Image, 'Image', classMeta, RefCnt, [RefCnt, IHasImageInfo]);
  setMetadataFor(Companion_26, 'Companion', objectMeta);
  setMetadataFor(ImageFilter, 'ImageFilter', classMeta, RefCnt);
  setMetadataFor(Companion_27, 'Companion', objectMeta);
  setMetadataFor(ImageInfo, 'ImageInfo', classMeta);
  setMetadataFor(InversionMode, 'InversionMode', classMeta, Enum);
  setMetadataFor(Companion_28, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_6, '_FinalizerHolder', objectMeta);
  setMetadataFor(ManagedString, 'ManagedString', classMeta, Managed);
  setMetadataFor(Companion_29, 'Companion', objectMeta);
  setMetadataFor(MaskFilter, 'MaskFilter', classMeta, RefCnt);
  setMetadataFor(Companion_30, 'Companion', objectMeta);
  setMetadataFor(Matrix22, 'Matrix22', classMeta);
  setMetadataFor(Companion_31, 'Companion', objectMeta);
  setMetadataFor(Matrix33, 'Matrix33', classMeta);
  setMetadataFor(Companion_32, 'Companion', objectMeta);
  setMetadataFor(Matrix44, 'Matrix44', classMeta);
  setMetadataFor(MipmapMode, 'MipmapMode', classMeta, Enum);
  setMetadataFor(Companion_33, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_7, '_FinalizerHolder', objectMeta);
  setMetadataFor(Paint, 'Paint', classMeta, Managed, VOID, Paint_init_$Create$_0);
  setMetadataFor(PaintMode, 'PaintMode', classMeta, Enum);
  setMetadataFor(PaintStrokeCap, 'PaintStrokeCap', classMeta, Enum);
  setMetadataFor(PaintStrokeJoin, 'PaintStrokeJoin', classMeta, Enum);
  setMetadataFor(Companion_34, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_8, '_FinalizerHolder', objectMeta);
  setMetadataFor(Path, 'Path', classMeta, Managed, [Managed, Iterable], Path_init_$Create$);
  setMetadataFor(PathDirection, 'PathDirection', classMeta, Enum);
  setMetadataFor(Companion_35, 'Companion', objectMeta);
  setMetadataFor(Style, 'Style', classMeta, Enum);
  setMetadataFor(PathEffect, 'PathEffect', classMeta, RefCnt);
  setMetadataFor(PathEllipseArc, 'PathEllipseArc', classMeta, Enum);
  setMetadataFor(PathFillMode, 'PathFillMode', classMeta, Enum);
  setMetadataFor(PathOp, 'PathOp', classMeta, Enum);
  setMetadataFor(PathSegment, 'PathSegment', classMeta, VOID, VOID, PathSegment);
  setMetadataFor(Companion_36, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_9, '_FinalizerHolder', objectMeta);
  setMetadataFor(PathSegmentIterator, 'PathSegmentIterator', classMeta, Managed, [Managed, MutableIterator]);
  setMetadataFor(PathVerb, 'PathVerb', classMeta, Enum);
  setMetadataFor(Companion_37, 'Companion', objectMeta);
  setMetadataFor(Picture, 'Picture', classMeta, RefCnt);
  setMetadataFor(Companion_38, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_10, '_FinalizerHolder', objectMeta);
  setMetadataFor(PictureRecorder, 'PictureRecorder', classMeta, Managed, VOID, PictureRecorder_init_$Create$);
  setMetadataFor(PixelGeometry, 'PixelGeometry', classMeta, Enum);
  setMetadataFor(Companion_39, 'Companion', objectMeta);
  setMetadataFor(PixelRef, 'PixelRef', classMeta, RefCnt);
  setMetadataFor(_FinalizerHolder_11, '_FinalizerHolder', objectMeta);
  setMetadataFor(Companion_40, 'Companion', objectMeta);
  setMetadataFor(Pixmap, 'Pixmap', classMeta, Managed, VOID, Pixmap_init_$Create$);
  setMetadataFor(Companion_41, 'Companion', objectMeta);
  setMetadataFor(Point, 'Point', classMeta);
  setMetadataFor(Point3, 'Point3', classMeta);
  setMetadataFor(Companion_42, 'Companion', objectMeta);
  setMetadataFor(Rect, 'Rect', classMeta);
  setMetadataFor(RRect, 'RRect', classMeta, Rect);
  setMetadataFor(Companion_43, 'Companion', objectMeta);
  setMetadataFor(RSXform, 'RSXform', classMeta);
  setMetadataFor(Companion_44, 'Companion', objectMeta);
  setMetadataFor(Companion_45, 'Companion', objectMeta);
  setMetadataFor(Companion_46, 'Companion', objectMeta);
  setMetadataFor(Op, 'Op', classMeta, Enum);
  setMetadataFor(_FinalizerHolder_12, '_FinalizerHolder', objectMeta);
  setMetadataFor(Region, 'Region', classMeta, Managed, VOID, Region);
  setMetadataFor(Companion_47, 'Companion', objectMeta);
  setMetadataFor(RuntimeEffect, 'RuntimeEffect', classMeta, RefCnt);
  setMetadataFor(Companion_48, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_13, '_FinalizerHolder', objectMeta);
  setMetadataFor(RuntimeShaderBuilder, 'RuntimeShaderBuilder', classMeta, Managed);
  setMetadataFor(Companion_49, 'Companion', objectMeta);
  setMetadataFor(Companion_50, 'Companion', objectMeta);
  setMetadataFor(Shader, 'Shader', classMeta, RefCnt);
  setMetadataFor(ShadowUtils, 'ShadowUtils', objectMeta);
  setMetadataFor(ArrayDecoder, 'ArrayDecoder', classMeta);
  setMetadataFor(SurfaceProps, 'SurfaceProps', classMeta, VOID, VOID, SurfaceProps);
  setMetadataFor(Run, 'Run', classMeta);
  setMetadataFor(FinalizerHolder, 'FinalizerHolder', objectMeta);
  setMetadataFor(Companion_51, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_14, '_FinalizerHolder', objectMeta);
  setMetadataFor(TextBlobIter, 'TextBlobIter', classMeta, Managed, [Iterator, Managed]);
  setMetadataFor(TextBlob, 'TextBlob', classMeta, Managed, [Managed, Iterable]);
  setMetadataFor(Companion_52, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_15, '_FinalizerHolder', objectMeta);
  setMetadataFor(TextLine, 'TextLine', classMeta, Managed);
  setMetadataFor(Companion_53, 'Companion', objectMeta);
  setMetadataFor(Typeface, 'Typeface', classMeta, RefCnt);
  setMetadataFor(Companion_54, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_16, '_FinalizerHolder', objectMeta);
  setMetadataFor(U16String, 'U16String', classMeta, Managed);
  setMetadataFor(VertexMode, 'VertexMode', classMeta, Enum);
  setMetadataFor(CharDirection, 'CharDirection', objectMeta);
  setMetadataFor(ArrayInteropDecoder, 'ArrayInteropDecoder', interfaceMeta);
  setMetadataFor(Affinity, 'Affinity', classMeta, Enum);
  setMetadataFor(Alignment, 'Alignment', classMeta, Enum);
  setMetadataFor(BaselineMode, 'BaselineMode', classMeta, Enum);
  setMetadataFor(DecorationLineStyle, 'DecorationLineStyle', classMeta, Enum);
  setMetadataFor(Companion_55, 'Companion', objectMeta);
  setMetadataFor(DecorationStyle, 'DecorationStyle', classMeta);
  setMetadataFor(Direction, 'Direction', classMeta, Enum);
  setMetadataFor(Companion_56, 'Companion', objectMeta);
  setMetadataFor(FontCollection, 'FontCollection', classMeta, RefCnt, VOID, FontCollection_init_$Create$);
  setMetadataFor(FontRastrSettings, 'FontRastrSettings', classMeta);
  setMetadataFor(HeightMode, 'HeightMode', classMeta, Enum);
  setMetadataFor(Companion_57, 'Companion', objectMeta, VOID, [ArrayInteropDecoder]);
  setMetadataFor(LineMetrics, 'LineMetrics', classMeta);
  setMetadataFor(Companion_58, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_17, '_FinalizerHolder', objectMeta);
  setMetadataFor(Paragraph, 'Paragraph', classMeta, Managed);
  setMetadataFor(Companion_59, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_18, '_FinalizerHolder', objectMeta);
  setMetadataFor(ParagraphBuilder, 'ParagraphBuilder', classMeta, Managed);
  setMetadataFor(Companion_60, 'Companion', objectMeta);
  setMetadataFor(ParagraphCache, 'ParagraphCache', classMeta, Native);
  setMetadataFor(Companion_61, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_19, '_FinalizerHolder', objectMeta);
  setMetadataFor(ParagraphStyle, 'ParagraphStyle', classMeta, Managed, VOID, ParagraphStyle);
  setMetadataFor(PlaceholderAlignment, 'PlaceholderAlignment', classMeta, Enum);
  setMetadataFor(PlaceholderStyle, 'PlaceholderStyle', classMeta);
  setMetadataFor(PositionWithAffinity, 'PositionWithAffinity', classMeta);
  setMetadataFor(RectHeightMode, 'RectHeightMode', classMeta, Enum);
  setMetadataFor(RectWidthMode, 'RectWidthMode', classMeta, Enum);
  setMetadataFor(Companion_62, 'Companion', objectMeta);
  setMetadataFor(Shadow, 'Shadow', classMeta);
  setMetadataFor(Companion_63, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_20, '_FinalizerHolder', objectMeta);
  setMetadataFor(StrutStyle, 'StrutStyle', classMeta, Managed, VOID, StrutStyle_init_$Create$);
  setMetadataFor(Companion_64, 'Companion', objectMeta, VOID, [ArrayInteropDecoder]);
  setMetadataFor(TextBox, 'TextBox', classMeta);
  setMetadataFor(TextIndent, 'TextIndent', classMeta, VOID, VOID, TextIndent);
  setMetadataFor(Companion_65, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_21, '_FinalizerHolder', objectMeta);
  setMetadataFor(TextStyle, 'TextStyle', classMeta, Managed, VOID, TextStyle_init_$Create$);
  setMetadataFor(TextStyleAttribute, 'TextStyleAttribute', classMeta, Enum);
  setMetadataFor(Companion_66, 'Companion', objectMeta);
  setMetadataFor(TypefaceFontProvider, 'TypefaceFontProvider', classMeta, FontMgr, VOID, TypefaceFontProvider);
  setMetadataFor(BidiRun, 'BidiRun', classMeta);
  setMetadataFor(Companion_67, 'Companion', objectMeta);
  setMetadataFor(ManagedRunIterator, 'ManagedRunIterator', classMeta, Managed, [Managed, MutableIterator]);
  setMetadataFor(FontMgrRunIterator, 'FontMgrRunIterator', classMeta, ManagedRunIterator);
  setMetadataFor(FontRun, 'FontRun', classMeta);
  setMetadataFor(Companion_68, 'Companion', objectMeta);
  setMetadataFor(HbIcuScriptRunIterator, 'HbIcuScriptRunIterator', classMeta, ManagedRunIterator);
  setMetadataFor(Companion_69, 'Companion', objectMeta);
  setMetadataFor(IcuBidiRunIterator, 'IcuBidiRunIterator', classMeta, ManagedRunIterator);
  setMetadataFor(LanguageRun, 'LanguageRun', classMeta);
  setMetadataFor(Companion_70, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_22, '_FinalizerHolder', objectMeta);
  setMetadataFor(RunHandler, 'RunHandler', interfaceMeta);
  setMetadataFor(RunInfo, 'RunInfo', classMeta);
  setMetadataFor(ScriptRun, 'ScriptRun', classMeta);
  setMetadataFor(Companion_71, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_23, '_FinalizerHolder', objectMeta);
  setMetadataFor(Shaper, 'Shaper', classMeta, Managed);
  setMetadataFor(Companion_72, 'Companion', objectMeta);
  setMetadataFor(ShapingOptions, 'ShapingOptions', classMeta);
  setMetadataFor(TrivialLanguageRunIterator, 'TrivialLanguageRunIterator', classMeta, VOID, [MutableIterator]);
  setMetadataFor(SkikoKeyboardEvent, 'SkikoKeyboardEvent', classMeta);
  setMetadataFor(Companion_73, 'Companion', objectMeta);
  setMetadataFor(SkikoInputModifiers, 'SkikoInputModifiers', classMeta);
  setMetadataFor(SkikoKeyboardEventKind, 'SkikoKeyboardEventKind', classMeta, Enum);
  setMetadataFor(OS, 'OS', classMeta, Enum);
  setMetadataFor(Arch, 'Arch', classMeta, Enum);
  setMetadataFor(ClipboardManager, 'ClipboardManager', classMeta, VOID, VOID, ClipboardManager);
  setMetadataFor(URIManager, 'URIManager', classMeta, VOID, VOID, URIManager);
  setMetadataFor(SystemTheme, 'SystemTheme', classMeta, Enum);
  setMetadataFor(Pattern, 'Pattern', classMeta);
  setMetadataFor(Matcher, 'Matcher', classMeta);
  setMetadataFor(Companion_74, 'Companion', objectMeta);
  setMetadataFor(Library, 'Library', classMeta, VOID, VOID, Library);
  setMetadataFor(FinalizationThunk, 'FinalizationThunk', classMeta);
  setMetadataFor(InteropScope, 'InteropScope', classMeta, VOID, VOID, InteropScope);
  setMetadataFor(Companion_75, 'Companion', objectMeta);
  setMetadataFor(NativePointerArray, 'NativePointerArray', classMeta);
  setMetadataFor(CallbackData, 'CallbackData', classMeta);
  setMetadataFor(Companion_76, 'Companion', objectMeta);
  setMetadataFor(_FinalizerHolder_24, '_FinalizerHolder', objectMeta);
  setMetadataFor(Stats, 'Stats', objectMeta);
  setMetadataFor(Companion_77, 'Companion', objectMeta);
  setMetadataFor(SkikoKey, 'SkikoKey', classMeta, Enum);
  setMetadataFor(_FinalizerHolder_25, '_FinalizerHolder', objectMeta);
  setMetadataFor(RunHandlerImpl, 'RunHandlerImpl', classMeta, Managed);
  setMetadataFor(_FinalizerHolder_26, '_FinalizerHolder', objectMeta);
  setMetadataFor(Companion_78, 'Companion', objectMeta);
  setMetadataFor(RunIteratorBase, 'RunIteratorBase', classMeta, Managed);
  setMetadataFor(BiDiRunIterator, 'BiDiRunIterator', classMeta, RunIteratorBase);
  setMetadataFor(IteratorBasedBidiRunIterator, 'IteratorBasedBidiRunIterator', classMeta, BiDiRunIterator);
  setMetadataFor(FontRunIterator, 'FontRunIterator', classMeta, RunIteratorBase);
  setMetadataFor(IteratorBasedFontRunIterator, 'IteratorBasedFontRunIterator', classMeta, FontRunIterator);
  setMetadataFor(ScriptRunIterator, 'ScriptRunIterator', classMeta, RunIteratorBase);
  setMetadataFor(IteratorBasedScriptRunIterator, 'IteratorBasedScriptRunIterator', classMeta, ScriptRunIterator);
  setMetadataFor(LanguageRunIterator, 'LanguageRunIterator', classMeta, RunIteratorBase);
  setMetadataFor(IteratorBasedLanguageRunIterator, 'IteratorBasedLanguageRunIterator', classMeta, LanguageRunIterator);
  //endregion
  function Companion() {
    Companion_instance = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion).makeFromImage_pzsw1d_k$ = function (image) {
    var bitmap = Bitmap_init_$Create$();
    bitmap.allocPixels_elr7wo_k$(image.get_imageInfo_60i77k_k$());
    var tmp;
    if (image.readPixels_s2nedo_k$(bitmap)) {
      tmp = bitmap;
    } else {
      bitmap.close_yn9xrc_k$();
      throw RuntimeException_init_$Create$('Failed to readPixels from ' + image);
    }
    return tmp;
  };
  protoOf(Companion).makeFromImage_5n1dl9_k$ = function (image, context) {
    var bitmap = Bitmap_init_$Create$();
    bitmap.allocPixels_elr7wo_k$(image.get_imageInfo_60i77k_k$());
    var tmp;
    if (image.readPixels_voss88_k$(context, bitmap)) {
      tmp = bitmap;
    } else {
      bitmap.close_yn9xrc_k$();
      throw RuntimeException_init_$Create$('Failed to readPixels from ' + image);
    }
    return tmp;
  };
  var Companion_instance;
  function Companion_getInstance_0() {
    if (Companion_instance == null)
      new Companion();
    return Companion_instance;
  }
  function Bitmap_init_$Init$($this) {
    Bitmap.call($this, org_jetbrains_skia_Bitmap__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function Bitmap_init_$Create$() {
    return Bitmap_init_$Init$(objectCreate(protoOf(Bitmap)));
  }
  function _FinalizerHolder() {
    _FinalizerHolder_instance = this;
    this.PTR_1 = org_jetbrains_skia_Bitmap__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance;
  function _FinalizerHolder_getInstance() {
    if (_FinalizerHolder_instance == null)
      new _FinalizerHolder();
    return _FinalizerHolder_instance;
  }
  function _nGetImageInfo$ref() {
    var l = function (p0, p1, p2) {
      org_jetbrains_skia_Bitmap__1nGetImageInfo(p0, p1, p2);
      return Unit_getInstance();
    };
    l.callableName = '_nGetImageInfo';
    return l;
  }
  function Bitmap(ptr) {
    Companion_getInstance_0();
    Managed.call(this, ptr, _FinalizerHolder_getInstance().PTR_1);
    this._imageInfo_1 = null;
  }
  protoOf(Bitmap).set__imageInfo_okaray_k$ = function (_set____db54di) {
    this._imageInfo_1 = _set____db54di;
  };
  protoOf(Bitmap).get__imageInfo_bpddpv_k$ = function () {
    return this._imageInfo_1;
  };
  protoOf(Bitmap).makeClone_kiegb3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Bitmap(org_jetbrains_skia_Bitmap__1nMakeClone(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).swap_8j5pfw_k$ = function (other) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Bitmap__1nSwap(this.get__ptr_wohp4o_k$(), getPtr(other));
      this._imageInfo_1 = null;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
  };
  protoOf(Bitmap).get_imageInfo_60i77k_k$ = function () {
    var tmp;
    try {
      if (this._imageInfo_1 == null) {
        var tmp_0 = this;
        var tmp_1 = Companion_getInstance_28();
        var tmp_2 = this.get__ptr_wohp4o_k$();
        tmp_0._imageInfo_1 = tmp_1.createUsing_vjf7w1_k$(tmp_2, _nGetImageInfo$ref());
      }
      tmp = ensureNotNull(this._imageInfo_1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_rowBytesAsPixels_1cm8m1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nGetRowBytesAsPixels(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_isNull_ew31lm_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nIsNull(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).drawsNothing_o6o466_k$ = function () {
    return this.get_isEmpty_zauvru_k$() ? true : this.get_isNull_ew31lm_k$();
  };
  protoOf(Bitmap).get_rowBytes_viqv7q_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nGetRowBytes(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).setAlphaType_hcnbo8_k$ = function (alphaType) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      this._imageInfo_1 = null;
      tmp = org_jetbrains_skia_Bitmap__1nSetAlphaType(this.get__ptr_wohp4o_k$(), alphaType.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).computeByteSize_txd6dc_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nComputeByteSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_isImmutable_b8i701_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nIsImmutable(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).setImmutable_j5sn28_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Bitmap__1nSetImmutable(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Bitmap).reset_1sjh3j_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    this._imageInfo_1 = null;
    org_jetbrains_skia_Bitmap__1nReset(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Bitmap).computeIsOpaque_fs8hxa_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nComputeIsOpaque(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_bounds_bj99ku_k$ = function () {
    return Companion_getInstance_24().makeXYWH_reycg0_k$(0, 0, this.get_width_j0q4yl_k$(), this.get_height_e7t92o_k$());
  };
  protoOf(Bitmap).get_subset_jnzktn_k$ = function () {
    var origin = this.get_pixelRefOrigin_qkct38_k$();
    return Companion_getInstance_24().makeXYWH_reycg0_k$(origin.get_x_1mhr67_k$(), origin.get_y_1mhr68_k$(), this.get_width_j0q4yl_k$(), this.get_height_e7t92o_k$());
  };
  protoOf(Bitmap).setImageInfo_bd3p2b_k$ = function (imageInfo) {
    this._imageInfo_1 = null;
    return this.setImageInfo_7n2nj9_k$(imageInfo, 0);
  };
  protoOf(Bitmap).setImageInfo_7n2nj9_k$ = function (imageInfo, rowBytes) {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nSetImageInfo(this.get__ptr_wohp4o_k$(), imageInfo.get_width_j0q4yl_k$(), imageInfo.get_height_e7t92o_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), rowBytes);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Bitmap).allocPixelsFlags_y9yedy_k$ = function (imageInfo, zeroPixels) {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nAllocPixelsFlags(this.get__ptr_wohp4o_k$(), imageInfo.get_width_j0q4yl_k$(), imageInfo.get_height_e7t92o_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), zeroPixels ? 1 : 0);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Bitmap).allocPixels_aj8ahs_k$ = function (info, rowBytes) {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nAllocPixelsRowBytes(this.get__ptr_wohp4o_k$(), info.get_width_j0q4yl_k$(), info.get_height_e7t92o_k$(), info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), rowBytes);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Bitmap).allocPixels_elr7wo_k$ = function (imageInfo) {
    return this.allocPixels_aj8ahs_k$(imageInfo, imageInfo.get_minRowBytes_yg2hc6_k$());
  };
  protoOf(Bitmap).allocN32Pixels_tcbl40_k$ = function (width, height, opaque) {
    return this.allocPixels_elr7wo_k$(Companion_getInstance_28().makeN32_3as8gh_k$(width, height, opaque ? ColorAlphaType_OPAQUE_getInstance() : ColorAlphaType_PREMUL_getInstance()));
  };
  protoOf(Bitmap).allocN32Pixels$default_jdhd5q_k$ = function (width, height, opaque, $super) {
    opaque = opaque === VOID ? false : opaque;
    return $super === VOID ? this.allocN32Pixels_tcbl40_k$(width, height, opaque) : $super.allocN32Pixels_tcbl40_k$.call(this, width, height, opaque);
  };
  protoOf(Bitmap).installPixels_9qz20x_k$ = function (pixels) {
    return this.installPixels_ms9aj5_k$(this.get_imageInfo_60i77k_k$(), pixels, this.get_rowBytes_viqv7q_k$());
  };
  protoOf(Bitmap).installPixels_ms9aj5_k$ = function (info, pixels, rowBytes) {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Bitmap.installPixels.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = info.get_width_j0q4yl_k$();
          var tmp_2 = info.get_height_e7t92o_k$();
          var tmp_3 = info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$();
          var tmp_4 = info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$();
          var tmp_5 = getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
          var tmp_6 = $this$interopScope.toInterop_h7cpet_k$(pixels);
          var tmp1_elvis_lhs = pixels == null ? null : pixels.length;
          tmp$ret$1 = org_jetbrains_skia_Bitmap__1nInstallPixels(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, rowBytes, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Bitmap).allocPixels_5qols2_k$ = function () {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nAllocPixels(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_pixelRef_y63zm2_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var res = org_jetbrains_skia_Bitmap__1nGetPixelRef(this.get__ptr_wohp4o_k$());
      tmp = res === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new PixelRef(res);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_pixelRefOrigin_qkct38_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var resX = org_jetbrains_skia_Bitmap__1nGetPixelRefOriginX(this.get__ptr_wohp4o_k$());
      var resY = org_jetbrains_skia_Bitmap__1nGetPixelRefOriginY(this.get__ptr_wohp4o_k$());
      tmp = new IPoint(resX, resY);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).setPixelRef_g95y7b_k$ = function (pixelRef, dx, dy) {
    var tmp;
    try {
      this._imageInfo_1 = null;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Bitmap__1nSetPixelRef(this.get__ptr_wohp4o_k$(), getPtr(pixelRef), dx, dy);
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(pixelRef);
    }
    return tmp;
  };
  protoOf(Bitmap).get_isReadyToDraw_mka2fl_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nIsReadyToDraw(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).get_generationId_x1e17g_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nGetGenerationId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).notifyPixelsChanged_97ppqa_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Bitmap__1nNotifyPixelsChanged(this.get__ptr_wohp4o_k$());
      tmp = this;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).erase_n4yeia_k$ = function (color) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Bitmap__1nEraseColor(this.get__ptr_wohp4o_k$(), color);
      tmp = this;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).erase_g6n8ws_k$ = function (color, area) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Bitmap__1nErase(this.get__ptr_wohp4o_k$(), color, area.get_left_woprgw_k$(), area.get_top_18ivbo_k$(), area.get_right_ixz7xv_k$(), area.get_bottom_bj8ras_k$());
      tmp = this;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).getColor_m56hoz_k$ = function (x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nGetColor(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).getAlphaf_8jn64i_k$ = function (x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nGetAlphaf(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).extractSubset_gmj6g2_k$ = function (dst, subset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Bitmap__1nExtractSubset(this.get__ptr_wohp4o_k$(), getPtr(dst), subset.get_left_woprgw_k$(), subset.get_top_18ivbo_k$(), subset.get_right_ixz7xv_k$(), subset.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  protoOf(Bitmap).readPixels_chdhwh_k$ = function (dstInfo, dstRowBytes, srcX, srcY) {
    var size = this.getReadPixelsArraySize_xvqwuv_k$(dstInfo, dstRowBytes, srcY);
    var bitmapPixels = new Int8Array(size);
    var successfulRead = this.readPixels_bipkn3_k$(bitmapPixels, dstInfo, dstRowBytes, srcX, srcY);
    // Inline function 'kotlin.takeIf' call
    // Inline function 'kotlin.contracts.contract' call
    var tmp;
    // Inline function 'org.jetbrains.skia.Bitmap.readPixels.<anonymous>' call
    if (successfulRead) {
      tmp = bitmapPixels;
    } else {
      tmp = null;
    }
    return tmp;
  };
  protoOf(Bitmap).readPixels$default_m2yep0_k$ = function (dstInfo, dstRowBytes, srcX, srcY, $super) {
    dstInfo = dstInfo === VOID ? this.get_imageInfo_60i77k_k$() : dstInfo;
    dstRowBytes = dstRowBytes === VOID ? this.get_rowBytes_viqv7q_k$() : dstRowBytes;
    srcX = srcX === VOID ? 0 : srcX;
    srcY = srcY === VOID ? 0 : srcY;
    return $super === VOID ? this.readPixels_chdhwh_k$(dstInfo, dstRowBytes, srcX, srcY) : $super.readPixels_chdhwh_k$.call(this, dstInfo, dstRowBytes, srcX, srcY);
  };
  protoOf(Bitmap).readPixels_bipkn3_k$ = function (byteArray, dstInfo, dstRowBytes, srcX, srcY) {
    // Inline function 'kotlin.check' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(byteArray.length === this.getReadPixelsArraySize_xvqwuv_k$(dstInfo, dstRowBytes, srcY))) {
      // Inline function 'org.jetbrains.skia.Bitmap.readPixels.<anonymous>' call
      var message = 'byteArray is not properly allocated. Use readPixelsArraySize';
      throw IllegalStateException_init_$Create$(toString(message));
    }
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var byteArrayHandle = $this$interopScope.toInteropForResult_toi1ab_k$(byteArray);
        var successfulRead = org_jetbrains_skia_Bitmap__1nReadPixels(this.get__ptr_wohp4o_k$(), dstInfo.get_width_j0q4yl_k$(), dstInfo.get_height_e7t92o_k$(), dstInfo.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), dstInfo.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(dstInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), dstRowBytes, srcX, srcY, byteArrayHandle);
        if (successfulRead) {
          $this$interopScope.fromInterop_40e3wn_k$(byteArrayHandle, byteArray);
        }
        return successfulRead;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dstInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
  };
  protoOf(Bitmap).readPixels$default_vpg9oc_k$ = function (byteArray, dstInfo, dstRowBytes, srcX, srcY, $super) {
    dstInfo = dstInfo === VOID ? this.get_imageInfo_60i77k_k$() : dstInfo;
    dstRowBytes = dstRowBytes === VOID ? this.get_rowBytes_viqv7q_k$() : dstRowBytes;
    srcX = srcX === VOID ? 0 : srcX;
    srcY = srcY === VOID ? 0 : srcY;
    return $super === VOID ? this.readPixels_bipkn3_k$(byteArray, dstInfo, dstRowBytes, srcX, srcY) : $super.readPixels_bipkn3_k$.call(this, byteArray, dstInfo, dstRowBytes, srcX, srcY);
  };
  protoOf(Bitmap).getReadPixelsArraySize_xvqwuv_k$ = function (dstInfo, dstRowBytes, srcY) {
    // Inline function 'kotlin.math.min' call
    var a = dstInfo.get_height_e7t92o_k$();
    var b = this.get_height_e7t92o_k$() - srcY | 0;
    var tmp$ret$0 = Math.min(a, b);
    return imul(tmp$ret$0, dstRowBytes);
  };
  protoOf(Bitmap).getReadPixelsArraySize$default_h6hkov_k$ = function (dstInfo, dstRowBytes, srcY, $super) {
    dstInfo = dstInfo === VOID ? this.get_imageInfo_60i77k_k$() : dstInfo;
    dstRowBytes = dstRowBytes === VOID ? this.get_rowBytes_viqv7q_k$() : dstRowBytes;
    srcY = srcY === VOID ? 0 : srcY;
    return $super === VOID ? this.getReadPixelsArraySize_xvqwuv_k$(dstInfo, dstRowBytes, srcY) : $super.getReadPixelsArraySize_xvqwuv_k$.call(this, dstInfo, dstRowBytes, srcY);
  };
  protoOf(Bitmap).extractAlpha_o3db6a_k$ = function (dst) {
    return !(this.extractAlpha_jj6zjq_k$(dst, null) == null);
  };
  protoOf(Bitmap).extractAlpha_jj6zjq_k$ = function (dst, paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.withNullableResult' call
        var result = new Int32Array(2);
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          var tmp_0;
          // Inline function 'org.jetbrains.skia.Bitmap.extractAlpha.<anonymous>' call
          if (org_jetbrains_skia_Bitmap__1nExtractAlpha(this.get__ptr_wohp4o_k$(), getPtr(dst), getPtr(paint), handle)) {
            $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
            tmp_0 = result;
          } else {
            tmp_0 = null;
          }
          tmp$ret$1 = tmp_0;
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var tmp_1;
      if (tmp$ret$1 == null) {
        tmp_1 = null;
      } else {
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'org.jetbrains.skia.Bitmap.extractAlpha.<anonymous>' call
        tmp_1 = new IPoint(tmp$ret$1[0], tmp$ret$1[1]);
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(Bitmap).peekPixels_1l1uy0_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var res = org_jetbrains_skia_Bitmap__1nPeekPixels(this.get__ptr_wohp4o_k$());
      var tmp_0;
      if (res === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
        tmp_0 = null;
      } else {
        tmp_0 = new Pixmap(res, true);
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).makeShader_q54znw_k$ = function (localMatrix) {
    return this.makeShader_7nwpzf_k$(FilterTileMode_CLAMP_getInstance(), FilterTileMode_CLAMP_getInstance(), Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), localMatrix);
  };
  protoOf(Bitmap).makeShader_lzo5mc_k$ = function (tmx, tmy, localMatrix) {
    return this.makeShader_7nwpzf_k$(tmx, tmy, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), localMatrix);
  };
  protoOf(Bitmap).makeShader_7nwpzf_k$ = function (tmx, tmy, sampling, localMatrix) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Bitmap.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = tmx.get_ordinal_ip24qg_k$();
          var tmp_2 = tmy.get_ordinal_ip24qg_k$();
          var tmp_3 = sampling._packedInt1_kbgj89_k$();
          var tmp_4 = sampling._packedInt2_kbgj8a_k$();
          tmp$ret$1 = org_jetbrains_skia_Bitmap__1nMakeShader(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, $this$interopScope.toInterop_uum1m9_k$(localMatrix == null ? null : localMatrix.get_mat_18j0uh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Bitmap).makeShader$default_iqsr28_k$ = function (tmx, tmy, sampling, localMatrix, $super) {
    tmx = tmx === VOID ? FilterTileMode_CLAMP_getInstance() : tmx;
    tmy = tmy === VOID ? FilterTileMode_CLAMP_getInstance() : tmy;
    sampling = sampling === VOID ? Companion_getInstance_50().get_DEFAULT_wccqmg_k$() : sampling;
    localMatrix = localMatrix === VOID ? null : localMatrix;
    return $super === VOID ? this.makeShader_7nwpzf_k$(tmx, tmy, sampling, localMatrix) : $super.makeShader_7nwpzf_k$.call(this, tmx, tmy, sampling, localMatrix);
  };
  var BlendMode_CLEAR_instance;
  var BlendMode_SRC_instance;
  var BlendMode_DST_instance;
  var BlendMode_SRC_OVER_instance;
  var BlendMode_DST_OVER_instance;
  var BlendMode_SRC_IN_instance;
  var BlendMode_DST_IN_instance;
  var BlendMode_SRC_OUT_instance;
  var BlendMode_DST_OUT_instance;
  var BlendMode_SRC_ATOP_instance;
  var BlendMode_DST_ATOP_instance;
  var BlendMode_XOR_instance;
  var BlendMode_PLUS_instance;
  var BlendMode_MODULATE_instance;
  var BlendMode_SCREEN_instance;
  var BlendMode_OVERLAY_instance;
  var BlendMode_DARKEN_instance;
  var BlendMode_LIGHTEN_instance;
  var BlendMode_COLOR_DODGE_instance;
  var BlendMode_COLOR_BURN_instance;
  var BlendMode_HARD_LIGHT_instance;
  var BlendMode_SOFT_LIGHT_instance;
  var BlendMode_DIFFERENCE_instance;
  var BlendMode_EXCLUSION_instance;
  var BlendMode_MULTIPLY_instance;
  var BlendMode_HUE_instance;
  var BlendMode_SATURATION_instance;
  var BlendMode_COLOR_instance;
  var BlendMode_LUMINOSITY_instance;
  function values() {
    return [BlendMode_CLEAR_getInstance(), BlendMode_SRC_getInstance(), BlendMode_DST_getInstance(), BlendMode_SRC_OVER_getInstance(), BlendMode_DST_OVER_getInstance(), BlendMode_SRC_IN_getInstance(), BlendMode_DST_IN_getInstance(), BlendMode_SRC_OUT_getInstance(), BlendMode_DST_OUT_getInstance(), BlendMode_SRC_ATOP_getInstance(), BlendMode_DST_ATOP_getInstance(), BlendMode_XOR_getInstance(), BlendMode_PLUS_getInstance(), BlendMode_MODULATE_getInstance(), BlendMode_SCREEN_getInstance(), BlendMode_OVERLAY_getInstance(), BlendMode_DARKEN_getInstance(), BlendMode_LIGHTEN_getInstance(), BlendMode_COLOR_DODGE_getInstance(), BlendMode_COLOR_BURN_getInstance(), BlendMode_HARD_LIGHT_getInstance(), BlendMode_SOFT_LIGHT_getInstance(), BlendMode_DIFFERENCE_getInstance(), BlendMode_EXCLUSION_getInstance(), BlendMode_MULTIPLY_getInstance(), BlendMode_HUE_getInstance(), BlendMode_SATURATION_getInstance(), BlendMode_COLOR_getInstance(), BlendMode_LUMINOSITY_getInstance()];
  }
  function valueOf(value) {
    switch (value) {
      case 'CLEAR':
        return BlendMode_CLEAR_getInstance();
      case 'SRC':
        return BlendMode_SRC_getInstance();
      case 'DST':
        return BlendMode_DST_getInstance();
      case 'SRC_OVER':
        return BlendMode_SRC_OVER_getInstance();
      case 'DST_OVER':
        return BlendMode_DST_OVER_getInstance();
      case 'SRC_IN':
        return BlendMode_SRC_IN_getInstance();
      case 'DST_IN':
        return BlendMode_DST_IN_getInstance();
      case 'SRC_OUT':
        return BlendMode_SRC_OUT_getInstance();
      case 'DST_OUT':
        return BlendMode_DST_OUT_getInstance();
      case 'SRC_ATOP':
        return BlendMode_SRC_ATOP_getInstance();
      case 'DST_ATOP':
        return BlendMode_DST_ATOP_getInstance();
      case 'XOR':
        return BlendMode_XOR_getInstance();
      case 'PLUS':
        return BlendMode_PLUS_getInstance();
      case 'MODULATE':
        return BlendMode_MODULATE_getInstance();
      case 'SCREEN':
        return BlendMode_SCREEN_getInstance();
      case 'OVERLAY':
        return BlendMode_OVERLAY_getInstance();
      case 'DARKEN':
        return BlendMode_DARKEN_getInstance();
      case 'LIGHTEN':
        return BlendMode_LIGHTEN_getInstance();
      case 'COLOR_DODGE':
        return BlendMode_COLOR_DODGE_getInstance();
      case 'COLOR_BURN':
        return BlendMode_COLOR_BURN_getInstance();
      case 'HARD_LIGHT':
        return BlendMode_HARD_LIGHT_getInstance();
      case 'SOFT_LIGHT':
        return BlendMode_SOFT_LIGHT_getInstance();
      case 'DIFFERENCE':
        return BlendMode_DIFFERENCE_getInstance();
      case 'EXCLUSION':
        return BlendMode_EXCLUSION_getInstance();
      case 'MULTIPLY':
        return BlendMode_MULTIPLY_getInstance();
      case 'HUE':
        return BlendMode_HUE_getInstance();
      case 'SATURATION':
        return BlendMode_SATURATION_getInstance();
      case 'COLOR':
        return BlendMode_COLOR_getInstance();
      case 'LUMINOSITY':
        return BlendMode_LUMINOSITY_getInstance();
      default:
        BlendMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var BlendMode_entriesInitialized;
  function BlendMode_initEntries() {
    if (BlendMode_entriesInitialized)
      return Unit_getInstance();
    BlendMode_entriesInitialized = true;
    BlendMode_CLEAR_instance = new BlendMode('CLEAR', 0);
    BlendMode_SRC_instance = new BlendMode('SRC', 1);
    BlendMode_DST_instance = new BlendMode('DST', 2);
    BlendMode_SRC_OVER_instance = new BlendMode('SRC_OVER', 3);
    BlendMode_DST_OVER_instance = new BlendMode('DST_OVER', 4);
    BlendMode_SRC_IN_instance = new BlendMode('SRC_IN', 5);
    BlendMode_DST_IN_instance = new BlendMode('DST_IN', 6);
    BlendMode_SRC_OUT_instance = new BlendMode('SRC_OUT', 7);
    BlendMode_DST_OUT_instance = new BlendMode('DST_OUT', 8);
    BlendMode_SRC_ATOP_instance = new BlendMode('SRC_ATOP', 9);
    BlendMode_DST_ATOP_instance = new BlendMode('DST_ATOP', 10);
    BlendMode_XOR_instance = new BlendMode('XOR', 11);
    BlendMode_PLUS_instance = new BlendMode('PLUS', 12);
    BlendMode_MODULATE_instance = new BlendMode('MODULATE', 13);
    BlendMode_SCREEN_instance = new BlendMode('SCREEN', 14);
    BlendMode_OVERLAY_instance = new BlendMode('OVERLAY', 15);
    BlendMode_DARKEN_instance = new BlendMode('DARKEN', 16);
    BlendMode_LIGHTEN_instance = new BlendMode('LIGHTEN', 17);
    BlendMode_COLOR_DODGE_instance = new BlendMode('COLOR_DODGE', 18);
    BlendMode_COLOR_BURN_instance = new BlendMode('COLOR_BURN', 19);
    BlendMode_HARD_LIGHT_instance = new BlendMode('HARD_LIGHT', 20);
    BlendMode_SOFT_LIGHT_instance = new BlendMode('SOFT_LIGHT', 21);
    BlendMode_DIFFERENCE_instance = new BlendMode('DIFFERENCE', 22);
    BlendMode_EXCLUSION_instance = new BlendMode('EXCLUSION', 23);
    BlendMode_MULTIPLY_instance = new BlendMode('MULTIPLY', 24);
    BlendMode_HUE_instance = new BlendMode('HUE', 25);
    BlendMode_SATURATION_instance = new BlendMode('SATURATION', 26);
    BlendMode_COLOR_instance = new BlendMode('COLOR', 27);
    BlendMode_LUMINOSITY_instance = new BlendMode('LUMINOSITY', 28);
  }
  function BlendMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function BlendMode_CLEAR_getInstance() {
    BlendMode_initEntries();
    return BlendMode_CLEAR_instance;
  }
  function BlendMode_SRC_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SRC_instance;
  }
  function BlendMode_DST_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DST_instance;
  }
  function BlendMode_SRC_OVER_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SRC_OVER_instance;
  }
  function BlendMode_DST_OVER_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DST_OVER_instance;
  }
  function BlendMode_SRC_IN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SRC_IN_instance;
  }
  function BlendMode_DST_IN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DST_IN_instance;
  }
  function BlendMode_SRC_OUT_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SRC_OUT_instance;
  }
  function BlendMode_DST_OUT_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DST_OUT_instance;
  }
  function BlendMode_SRC_ATOP_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SRC_ATOP_instance;
  }
  function BlendMode_DST_ATOP_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DST_ATOP_instance;
  }
  function BlendMode_XOR_getInstance() {
    BlendMode_initEntries();
    return BlendMode_XOR_instance;
  }
  function BlendMode_PLUS_getInstance() {
    BlendMode_initEntries();
    return BlendMode_PLUS_instance;
  }
  function BlendMode_MODULATE_getInstance() {
    BlendMode_initEntries();
    return BlendMode_MODULATE_instance;
  }
  function BlendMode_SCREEN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SCREEN_instance;
  }
  function BlendMode_OVERLAY_getInstance() {
    BlendMode_initEntries();
    return BlendMode_OVERLAY_instance;
  }
  function BlendMode_DARKEN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DARKEN_instance;
  }
  function BlendMode_LIGHTEN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_LIGHTEN_instance;
  }
  function BlendMode_COLOR_DODGE_getInstance() {
    BlendMode_initEntries();
    return BlendMode_COLOR_DODGE_instance;
  }
  function BlendMode_COLOR_BURN_getInstance() {
    BlendMode_initEntries();
    return BlendMode_COLOR_BURN_instance;
  }
  function BlendMode_HARD_LIGHT_getInstance() {
    BlendMode_initEntries();
    return BlendMode_HARD_LIGHT_instance;
  }
  function BlendMode_SOFT_LIGHT_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SOFT_LIGHT_instance;
  }
  function BlendMode_DIFFERENCE_getInstance() {
    BlendMode_initEntries();
    return BlendMode_DIFFERENCE_instance;
  }
  function BlendMode_EXCLUSION_getInstance() {
    BlendMode_initEntries();
    return BlendMode_EXCLUSION_instance;
  }
  function BlendMode_MULTIPLY_getInstance() {
    BlendMode_initEntries();
    return BlendMode_MULTIPLY_instance;
  }
  function BlendMode_HUE_getInstance() {
    BlendMode_initEntries();
    return BlendMode_HUE_instance;
  }
  function BlendMode_SATURATION_getInstance() {
    BlendMode_initEntries();
    return BlendMode_SATURATION_instance;
  }
  function BlendMode_COLOR_getInstance() {
    BlendMode_initEntries();
    return BlendMode_COLOR_instance;
  }
  function BlendMode_LUMINOSITY_getInstance() {
    BlendMode_initEntries();
    return BlendMode_LUMINOSITY_instance;
  }
  function BreakIterator$Companion$makeCharacterInstance$lambda($locale) {
    return function ($this$withErrorGuard, it) {
      return org_jetbrains_skia_BreakIterator__1nMake(0, $this$withErrorGuard.toInterop_ok8jph_k$($locale), it);
    };
  }
  function BreakIterator$Companion$makeWordInstance$lambda($locale) {
    return function ($this$withErrorGuard, it) {
      return org_jetbrains_skia_BreakIterator__1nMake(1, $this$withErrorGuard.toInterop_ok8jph_k$($locale), it);
    };
  }
  function BreakIterator$Companion$makeLineInstance$lambda($locale) {
    return function ($this$withErrorGuard, it) {
      return org_jetbrains_skia_BreakIterator__1nMake(2, $this$withErrorGuard.toInterop_ok8jph_k$($locale), it);
    };
  }
  function BreakIterator$Companion$makeSentenceInstance$lambda($locale) {
    return function ($this$withErrorGuard, it) {
      return org_jetbrains_skia_BreakIterator__1nMake(3, $this$withErrorGuard.toInterop_ok8jph_k$($locale), it);
    };
  }
  function Companion_0() {
    Companion_instance_0 = this;
    this.DONE_1 = -1;
    this.WORD_NONE_1 = 0;
    this.WORD_NONE_LIMIT_1 = 100;
    this.WORD_NUMBER_1 = 100;
    this.WORD_NUMBER_LIMIT_1 = 200;
    this.WORD_LETTER_1 = 200;
    this.WORD_LETTER_LIMIT_1 = 300;
    this.WORD_KANA_1 = 300;
    this.WORD_KANA_LIMIT_1 = 400;
    this.WORD_IDEO_1 = 400;
    this.WORD_IDEO_LIMIT_1 = 500;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_0).get_DONE_wnzr2j_k$ = function () {
    return this.DONE_1;
  };
  protoOf(Companion_0).get_WORD_NONE_182ue4_k$ = function () {
    return this.WORD_NONE_1;
  };
  protoOf(Companion_0).get_WORD_NONE_LIMIT_gvlqo0_k$ = function () {
    return this.WORD_NONE_LIMIT_1;
  };
  protoOf(Companion_0).get_WORD_NUMBER_uy9qyd_k$ = function () {
    return this.WORD_NUMBER_1;
  };
  protoOf(Companion_0).get_WORD_NUMBER_LIMIT_1efblb_k$ = function () {
    return this.WORD_NUMBER_LIMIT_1;
  };
  protoOf(Companion_0).get_WORD_LETTER_trimxe_k$ = function () {
    return this.WORD_LETTER_1;
  };
  protoOf(Companion_0).get_WORD_LETTER_LIMIT_jyaceq_k$ = function () {
    return this.WORD_LETTER_LIMIT_1;
  };
  protoOf(Companion_0).get_WORD_KANA_1851qj_k$ = function () {
    return this.WORD_KANA_1;
  };
  protoOf(Companion_0).get_WORD_KANA_LIMIT_v90jbl_k$ = function () {
    return this.WORD_KANA_LIMIT_1;
  };
  protoOf(Companion_0).get_WORD_IDEO_1869ov_k$ = function () {
    return this.WORD_IDEO_1;
  };
  protoOf(Companion_0).get_WORD_IDEO_LIMIT_yt9twz_k$ = function () {
    return this.WORD_IDEO_LIMIT_1;
  };
  protoOf(Companion_0).makeCharacterInstance_eow6v_k$ = function (locale) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new BreakIterator(withErrorGuard('Failed to create character iterator', BreakIterator$Companion$makeCharacterInstance$lambda(locale)));
  };
  protoOf(Companion_0).makeCharacterInstance$default_7rwuey_k$ = function (locale, $super) {
    locale = locale === VOID ? null : locale;
    return $super === VOID ? this.makeCharacterInstance_eow6v_k$(locale) : $super.makeCharacterInstance_eow6v_k$.call(this, locale);
  };
  protoOf(Companion_0).makeWordInstance_1hgiiu_k$ = function (locale) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new BreakIterator(withErrorGuard('Failed to create word iterator', BreakIterator$Companion$makeWordInstance$lambda(locale)));
  };
  protoOf(Companion_0).makeWordInstance$default_s8tmev_k$ = function (locale, $super) {
    locale = locale === VOID ? null : locale;
    return $super === VOID ? this.makeWordInstance_1hgiiu_k$(locale) : $super.makeWordInstance_1hgiiu_k$.call(this, locale);
  };
  protoOf(Companion_0).makeLineInstance_52ky1c_k$ = function (locale) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new BreakIterator(withErrorGuard('Failed to create line iterator', BreakIterator$Companion$makeLineInstance$lambda(locale)));
  };
  protoOf(Companion_0).makeLineInstance$default_73prof_k$ = function (locale, $super) {
    locale = locale === VOID ? null : locale;
    return $super === VOID ? this.makeLineInstance_52ky1c_k$(locale) : $super.makeLineInstance_52ky1c_k$.call(this, locale);
  };
  protoOf(Companion_0).makeSentenceInstance_6yc78f_k$ = function (locale) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new BreakIterator(withErrorGuard('Failed to create sentence iterator', BreakIterator$Companion$makeSentenceInstance$lambda(locale)));
  };
  protoOf(Companion_0).makeSentenceInstance$default_kbmahc_k$ = function (locale, $super) {
    locale = locale === VOID ? null : locale;
    return $super === VOID ? this.makeSentenceInstance_6yc78f_k$(locale) : $super.makeSentenceInstance_6yc78f_k$.call(this, locale);
  };
  var Companion_instance_0;
  function Companion_getInstance_1() {
    if (Companion_instance_0 == null)
      new Companion_0();
    return Companion_instance_0;
  }
  function _FinalizerHolder_0() {
    _FinalizerHolder_instance_0 = this;
    this.PTR_1 = org_jetbrains_skia_BreakIterator__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_0).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_0;
  function _FinalizerHolder_getInstance_0() {
    if (_FinalizerHolder_instance_0 == null)
      new _FinalizerHolder_0();
    return _FinalizerHolder_instance_0;
  }
  function BreakIterator$clone$lambda(this$0) {
    return function ($this$withErrorGuard, it) {
      return org_jetbrains_skia_BreakIterator__1nClone(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function BreakIterator$setText$lambda(this$0, $text) {
    return function ($this$withErrorGuard, it) {
      var tmp = this$0.get__ptr_wohp4o_k$();
      var tmp_0;
      if ($text == null) {
        tmp_0 = null;
      } else {
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'org.jetbrains.skia.BreakIterator.setText.<anonymous>.<anonymous>' call
        var tmp_1 = 0;
        var tmp_2 = $text.length;
        var tmp_3 = new Int16Array(tmp_2);
        while (tmp_1 < tmp_2) {
          var tmp_4 = tmp_1;
          // Inline function 'kotlin.code' call
          var this_0 = charSequenceGet($text, tmp_4);
          var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
          tmp_3[tmp_4] = toShort(tmp$ret$0);
          tmp_1 = tmp_1 + 1 | 0;
        }
        tmp_0 = tmp_3;
      }
      var tmp_5 = $this$withErrorGuard.toInterop_jg6tf3_k$(tmp_0);
      var tmp1_safe_receiver = $text;
      var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.length;
      return org_jetbrains_skia_BreakIterator__1nSetText(tmp, tmp_5, tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, it);
    };
  }
  function BreakIterator(ptr) {
    Companion_getInstance_1();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_0().PTR_1);
    this._text_1 = null;
  }
  protoOf(BreakIterator).set__text_ah76yy_k$ = function (_set____db54di) {
    this._text_1 = _set____db54di;
  };
  protoOf(BreakIterator).get__text_inq4f7_k$ = function () {
    return this._text_1;
  };
  protoOf(BreakIterator).close_yn9xrc_k$ = function () {
    protoOf(Managed).close_yn9xrc_k$.call(this);
    var tmp0_safe_receiver = this._text_1;
    if (tmp0_safe_receiver == null)
      null;
    else {
      tmp0_safe_receiver.close_yn9xrc_k$();
    }
  };
  protoOf(BreakIterator).clone_1keycd_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new BreakIterator(withErrorGuard('Failed to clone', BreakIterator$clone$lambda(this)));
  };
  protoOf(BreakIterator).current_imy8hl_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nCurrent(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).next_20eer_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nNext(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).next_letk3f_k$ = function (index) {
    var n = index;
    var result = 0;
    if (n > 0) {
      while (n > 0 ? !(result === -1) : false) {
        result = this.next_20eer_k$();
        n = n - 1 | 0;
      }
    } else if (n < 0) {
      while (n < 0 ? !(result === -1) : false) {
        result = this.previous_l2dfd5_k$();
        n = n + 1 | 0;
      }
    } else {
      result = this.current_imy8hl_k$();
    }
    return result;
  };
  protoOf(BreakIterator).previous_l2dfd5_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nPrevious(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).first_1m0hio_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nFirst(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).last_1z1cm_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nLast(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).preceding_v1dyyd_k$ = function (offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nPreceding(this.get__ptr_wohp4o_k$(), offset);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).following_j6g4t5_k$ = function (offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nFollowing(this.get__ptr_wohp4o_k$(), offset);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).isBoundary_y2pb4s_k$ = function (offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nIsBoundary(this.get__ptr_wohp4o_k$(), offset);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).get_ruleStatus_wxndk9_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_BreakIterator__1nGetRuleStatus(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).get_ruleStatuses_tj7hxh_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var arrayLen = org_jetbrains_skia_BreakIterator__1nGetRuleStatusesLen(this.get__ptr_wohp4o_k$());
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int32Array(arrayLen);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          // Inline function 'org.jetbrains.skia.BreakIterator.<get-ruleStatuses>.<anonymous>' call
          org_jetbrains_skia_BreakIterator__1nGetRuleStatuses(this.get__ptr_wohp4o_k$(), handle, arrayLen);
          $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(BreakIterator).setText_1jlejc_k$ = function (text) {
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp0_safe_receiver = this._text_1;
      if (tmp0_safe_receiver == null)
        null;
      else {
        tmp0_safe_receiver.close_yn9xrc_k$();
      }
      var tmp = this;
      tmp._text_1 = new U16String(withErrorGuard('Failed to setText', BreakIterator$setText$lambda(this, text)));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(this._text_1);
    }
  };
  function withErrorGuard(message, block) {
    var errorCode = new Int32Array(1);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.withErrorGuard.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInterop_i7skn2_k$(errorCode);
        var res = block($this$interopScope, handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, errorCode);
        if (errorCode[0] > 0) {
          throw RuntimeException_init_$Create$(message + '; operation failed with status ' + errorCode);
        }
        if (res === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
          throw IllegalArgumentException_init_$Create$(message);
        }
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return res;
  }
  function Companion_1() {
    Companion_instance_1 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_1;
  function Companion_getInstance_2() {
    if (Companion_instance_1 == null)
      new Companion_1();
    return Companion_instance_1;
  }
  function Canvas_init_$Init$(bitmap, surfaceProps, $this) {
    surfaceProps = surfaceProps === VOID ? new SurfaceProps() : surfaceProps;
    Canvas.call($this, org_jetbrains_skia_Canvas__1nMakeFromBitmap(bitmap.get__ptr_wohp4o_k$(), surfaceProps._getFlags_xsuxps_k$(), surfaceProps.get_pixelGeometry_ohm51t_k$().get_ordinal_ip24qg_k$()), true, bitmap);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    reachabilityBarrier(bitmap);
    return $this;
  }
  function Canvas_init_$Create$(bitmap, surfaceProps) {
    return Canvas_init_$Init$(bitmap, surfaceProps, objectCreate(protoOf(Canvas)));
  }
  function _FinalizerHolder_1() {
    _FinalizerHolder_instance_1 = this;
    this.PTR_1 = org_jetbrains_skia_Canvas__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_1).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_1;
  function _FinalizerHolder_getInstance_1() {
    if (_FinalizerHolder_instance_1 == null)
      new _FinalizerHolder_1();
    return _FinalizerHolder_instance_1;
  }
  function Canvas$_get_localToDevice_$lambda_ciw2zi(this$0) {
    return function ($this$fromInteropPointer, interopPointer) {
      org_jetbrains_skia_Canvas__1nGetLocalToDevice(this$0.get__ptr_wohp4o_k$(), interopPointer);
      return Unit_getInstance();
    };
  }
  function Canvas(ptr, managed, _owner) {
    Companion_getInstance_2();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_1().PTR_1, managed);
    this._owner_1 = _owner;
  }
  protoOf(Canvas).get__owner_a45oe5_k$ = function () {
    return this._owner_1;
  };
  protoOf(Canvas).drawPoint_hb1rjx_k$ = function (x, y, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawPoint(this.get__ptr_wohp4o_k$(), x, y, getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawPoints_knogax_k$ = function (coords, paint) {
    return this.drawPoints_bqd294_k$(ensureNotNull(Companion_getInstance_42().flattenArray_n7c6vn_k$(coords)), paint);
  };
  protoOf(Canvas).drawPoints_bqd294_k$ = function (coords, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawPoints(this.get__ptr_wohp4o_k$(), 0, coords.length, $this$interopScope.toInterop_uum1m9_k$(coords), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawLines_jo5ja5_k$ = function (coords, paint) {
    return this.drawLines_jcpik_k$(ensureNotNull(Companion_getInstance_42().flattenArray_n7c6vn_k$(coords)), paint);
  };
  protoOf(Canvas).drawLines_jcpik_k$ = function (coords, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawPoints(this.get__ptr_wohp4o_k$(), 1, coords.length, $this$interopScope.toInterop_uum1m9_k$(coords), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawPolygon_w651jc_k$ = function (coords, paint) {
    return this.drawPolygon_v5jsgp_k$(ensureNotNull(Companion_getInstance_42().flattenArray_n7c6vn_k$(coords)), paint);
  };
  protoOf(Canvas).drawPolygon_v5jsgp_k$ = function (coords, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawPoints(this.get__ptr_wohp4o_k$(), 2, coords.length, $this$interopScope.toInterop_uum1m9_k$(coords), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawLine_m1kfbl_k$ = function (x0, y0, x1, y1, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawLine(this.get__ptr_wohp4o_k$(), x0, y0, x1, y1, getPtr(paint));
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawArc_9h3ru6_k$ = function (left, top, right, bottom, startAngle, sweepAngle, includeCenter, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawArc(this.get__ptr_wohp4o_k$(), left, top, right, bottom, startAngle, sweepAngle, includeCenter, getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawRect_8t145u_k$ = function (r, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawRect(this.get__ptr_wohp4o_k$(), r.get_left_woprgw_k$(), r.get_top_18ivbo_k$(), r.get_right_ixz7xv_k$(), r.get_bottom_bj8ras_k$(), getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawOval_8h54ws_k$ = function (r, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawOval(this.get__ptr_wohp4o_k$(), r.get_left_woprgw_k$(), r.get_top_18ivbo_k$(), r.get_right_ixz7xv_k$(), r.get_bottom_bj8ras_k$(), getPtr(paint));
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawCircle_129n4r_k$ = function (x, y, radius, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawOval(this.get__ptr_wohp4o_k$(), x - radius, y - radius, x + radius, y + radius, getPtr(paint));
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawRRect_6cei8q_k$ = function (r, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawRRect(this.get__ptr_wohp4o_k$(), r.get_left_woprgw_k$(), r.get_top_18ivbo_k$(), r.get_right_ixz7xv_k$(), r.get_bottom_bj8ras_k$(), $this$interopScope.toInterop_uum1m9_k$(r.get_radii_ixu1u4_k$()), r.get_radii_ixu1u4_k$().length, getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawDRRect_oer2a5_k$ = function (outer, inner, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawDRRect(this.get__ptr_wohp4o_k$(), outer.get_left_woprgw_k$(), outer.get_top_18ivbo_k$(), outer.get_right_ixz7xv_k$(), outer.get_bottom_bj8ras_k$(), $this$interopScope.toInterop_uum1m9_k$(outer.get_radii_ixu1u4_k$()), outer.get_radii_ixu1u4_k$().length, inner.get_left_woprgw_k$(), inner.get_top_18ivbo_k$(), inner.get_right_ixz7xv_k$(), inner.get_bottom_bj8ras_k$(), $this$interopScope.toInterop_uum1m9_k$(inner.get_radii_ixu1u4_k$()), inner.get_radii_ixu1u4_k$().length, getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawRectShadow_8tfpvp_k$ = function (r, dx, dy, blur, color) {
    return this.drawRectShadow_59b9wj_k$(r, dx, dy, blur, 0.0, color);
  };
  protoOf(Canvas).drawRectShadow_59b9wj_k$ = function (r, dx, dy, blur, spread, color) {
    var insides = r.inflate_rvluy7_k$(-1.0);
    if (!insides.get_isEmpty_zauvru_k$()) {
      this.save_23ibh_k$();
      if (insides instanceof RRect) {
        this.clipRRect_gsebjx_k$(insides, ClipMode_DIFFERENCE_getInstance());
      } else {
        this.clipRect_xw3sir_k$(insides, ClipMode_DIFFERENCE_getInstance());
      }
      this.drawRectShadowNoclip_qnhpfy_k$(r, dx, dy, blur, spread, color);
      this.restore_i5fnny_k$();
    } else {
      this.drawRectShadowNoclip_qnhpfy_k$(r, dx, dy, blur, spread, color);
    }
    return this;
  };
  protoOf(Canvas).drawRectShadowNoclip_qnhpfy_k$ = function (r, dx, dy, blur, spread, color) {
    var outline = r.inflate_rvluy7_k$(spread);
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = Companion_getInstance_27().makeDropShadowOnly$default_9p8jr8_k$(dx, dy, blur / 2.0, blur / 2.0, color);
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.Canvas.drawRectShadowNoclip.<anonymous>' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      var this_1 = Paint_init_$Create$_0();
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.Canvas.drawRectShadowNoclip.<anonymous>.<anonymous>' call
        this_1.set_imageFilter_3887og_k$(this_0);
        var tmp_1;
        if (outline instanceof RRect) {
          tmp_1 = this.drawRRect_6cei8q_k$(outline, this_1);
        } else {
          tmp_1 = this.drawRect_8t145u_k$(outline, this_1);
        }
        tmp_0 = tmp_1;
      }finally {
        this_1.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      this_0.close_yn9xrc_k$();
    }
    return this;
  };
  protoOf(Canvas).drawPath_jdiwxq_k$ = function (path, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawPath(this.get__ptr_wohp4o_k$(), getPtr(path), getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(path);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawImage_snfjmj_k$ = function (image, left, top) {
    return this.drawImageRect_6jbgn9_k$(image, Companion_getInstance_45().makeWH_nov667_k$(image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), Companion_getInstance_45().makeXYWH_irfy4g_k$(left, top, image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), null, true);
  };
  protoOf(Canvas).drawImage_k1gvwf_k$ = function (image, left, top, paint) {
    return this.drawImageRect_6jbgn9_k$(image, Companion_getInstance_45().makeWH_nov667_k$(image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), Companion_getInstance_45().makeXYWH_irfy4g_k$(left, top, image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), paint, true);
  };
  protoOf(Canvas).drawImageRect_o76hpo_k$ = function (image, dst) {
    return this.drawImageRect_6jbgn9_k$(image, Companion_getInstance_45().makeWH_nov667_k$(image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), dst, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), null, true);
  };
  protoOf(Canvas).drawImageRect_hv5sj4_k$ = function (image, dst, paint) {
    return this.drawImageRect_6jbgn9_k$(image, Companion_getInstance_45().makeWH_nov667_k$(image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$()), dst, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), paint, true);
  };
  protoOf(Canvas).drawImageRect_8bb4mv_k$ = function (image, src, dst) {
    return this.drawImageRect_6jbgn9_k$(image, src, dst, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), null, true);
  };
  protoOf(Canvas).drawImageRect_xyjs0r_k$ = function (image, src, dst, paint) {
    return this.drawImageRect_6jbgn9_k$(image, src, dst, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), paint, true);
  };
  protoOf(Canvas).drawImageRect_ungz8q_k$ = function (image, src, dst, paint, strict) {
    return this.drawImageRect_6jbgn9_k$(image, src, dst, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), paint, strict);
  };
  protoOf(Canvas).drawImageRect_6jbgn9_k$ = function (image, src, dst, samplingMode, paint, strict) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawImageRect(this.get__ptr_wohp4o_k$(), getPtr(image), src.get_left_woprgw_k$(), src.get_top_18ivbo_k$(), src.get_right_ixz7xv_k$(), src.get_bottom_bj8ras_k$(), dst.get_left_woprgw_k$(), dst.get_top_18ivbo_k$(), dst.get_right_ixz7xv_k$(), dst.get_bottom_bj8ras_k$(), samplingMode._packedInt1_kbgj89_k$(), samplingMode._packedInt2_kbgj8a_k$(), getPtr(paint), strict);
    }finally {
      reachabilityBarrier(image);
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawImageNine_8gvvj2_k$ = function (image, center, dst, filterMode, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawImageNine(this.get__ptr_wohp4o_k$(), getPtr(image), center.get_left_woprgw_k$(), center.get_top_18ivbo_k$(), center.get_right_ixz7xv_k$(), center.get_bottom_bj8ras_k$(), dst.get_left_woprgw_k$(), dst.get_top_18ivbo_k$(), dst.get_right_ixz7xv_k$(), dst.get_bottom_bj8ras_k$(), filterMode.get_ordinal_ip24qg_k$(), getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(image);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawRegion_v3j7ju_k$ = function (r, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawRegion(this.get__ptr_wohp4o_k$(), getPtr(r), getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawString_dzlp03_k$ = function (s, x, y, font, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawString(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(s), x, y, getPtr(font), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(font);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawTextBlob_uqz4fy_k$ = function (blob, x, y, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawTextBlob(this.get__ptr_wohp4o_k$(), getPtr(blob), x, y, getPtr(paint));
    }finally {
      reachabilityBarrier(blob);
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawTextLine_bgx3og_k$ = function (line, x, y, paint) {
    var tmp0_safe_receiver = line.get_textBlob_mmbepf_k$();
    if (tmp0_safe_receiver == null)
      null;
    else {
      // Inline function 'org.jetbrains.skia.impl.use' call
      var tmp;
      try {
        // Inline function 'org.jetbrains.skia.Canvas.drawTextLine.<anonymous>' call
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'org.jetbrains.skia.Canvas.drawTextLine.<anonymous>.<anonymous>' call
        tmp = this.drawTextBlob_uqz4fy_k$(tmp0_safe_receiver, x, y, paint);
      }finally {
        tmp0_safe_receiver.close_yn9xrc_k$();
      }
    }
    return this;
  };
  protoOf(Canvas).drawPicture_c2sqzv_k$ = function (picture, matrix, paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = getPtr(picture);
          org_jetbrains_skia_Canvas__1nDrawPicture(tmp, tmp_0, $this$interopScope.toInterop_uum1m9_k$(matrix == null ? null : matrix.get_mat_18j0uh_k$()), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(picture);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawPicture$default_6adani_k$ = function (picture, matrix, paint, $super) {
    matrix = matrix === VOID ? null : matrix;
    paint = paint === VOID ? null : paint;
    return $super === VOID ? this.drawPicture_c2sqzv_k$(picture, matrix, paint) : $super.drawPicture_c2sqzv_k$.call(this, picture, matrix, paint);
  };
  protoOf(Canvas).drawTriangles_st42ww_k$ = function (positions, colors, texCoords, indices, blendMode, paint) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!((positions.length % 3 | 0) === 0)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangles.<anonymous>' call
      var message = 'Expected positions.length % 3 == 0, got: ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangles.<anonymous>' call
      var message_0 = 'Expected colors.length == positions.length, got: ' + ensureNotNull(colors).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(texCoords == null ? true : texCoords.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangles.<anonymous>' call
      var message_1 = 'Expected texCoords.length == positions.length, got: ' + ensureNotNull(texCoords).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message_1));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = positions.length;
          var tmp_1 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(positions));
          var tmp_2 = $this$interopScope.toInterop_i7skn2_k$(colors);
          var tmp_3 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(texCoords));
          var tmp1_elvis_lhs = indices == null ? null : indices.length;
          org_jetbrains_skia_Canvas__1nDrawVertices(tmp, 0, tmp_0, tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, $this$interopScope.toInterop_jg6tf3_k$(indices), blendMode.get_ordinal_ip24qg_k$(), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawTriangles$default_86asga_k$ = function (positions, colors, texCoords, indices, blendMode, paint, $super) {
    colors = colors === VOID ? null : colors;
    texCoords = texCoords === VOID ? null : texCoords;
    indices = indices === VOID ? null : indices;
    return $super === VOID ? this.drawTriangles_st42ww_k$(positions, colors, texCoords, indices, blendMode, paint) : $super.drawTriangles_st42ww_k$.call(this, positions, colors, texCoords, indices, blendMode, paint);
  };
  protoOf(Canvas).drawTriangleStrip_kvcgkl_k$ = function (positions, colors, texCoords, indices, blendMode, paint) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangleStrip.<anonymous>' call
      var message = 'Expected colors.length == positions.length, got: ' + ensureNotNull(colors).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(texCoords == null ? true : texCoords.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangleStrip.<anonymous>' call
      var message_0 = 'Expected texCoords.length == positions.length, got: ' + ensureNotNull(texCoords).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = positions.length;
          var tmp_1 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(positions));
          var tmp_2 = $this$interopScope.toInterop_i7skn2_k$(colors);
          var tmp_3 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(texCoords));
          var tmp1_elvis_lhs = indices == null ? null : indices.length;
          org_jetbrains_skia_Canvas__1nDrawVertices(tmp, 1, tmp_0, tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, $this$interopScope.toInterop_jg6tf3_k$(indices), blendMode.get_ordinal_ip24qg_k$(), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawTriangleStrip$default_8yvtox_k$ = function (positions, colors, texCoords, indices, blendMode, paint, $super) {
    colors = colors === VOID ? null : colors;
    texCoords = texCoords === VOID ? null : texCoords;
    indices = indices === VOID ? null : indices;
    return $super === VOID ? this.drawTriangleStrip_kvcgkl_k$(positions, colors, texCoords, indices, blendMode, paint) : $super.drawTriangleStrip_kvcgkl_k$.call(this, positions, colors, texCoords, indices, blendMode, paint);
  };
  protoOf(Canvas).drawTriangleFan_1f1tc0_k$ = function (positions, colors, texCoords, indices, blendMode, paint) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangleFan.<anonymous>' call
      var message = 'Expected colors.length == positions.length, got: ' + ensureNotNull(colors).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(texCoords == null ? true : texCoords.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawTriangleFan.<anonymous>' call
      var message_0 = 'Expected texCoords.length == positions.length, got: ' + ensureNotNull(texCoords).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = positions.length;
          var tmp_1 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(positions));
          var tmp_2 = $this$interopScope.toInterop_i7skn2_k$(colors);
          var tmp_3 = $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(texCoords));
          var tmp1_elvis_lhs = indices == null ? null : indices.length;
          org_jetbrains_skia_Canvas__1nDrawVertices(tmp, 2, tmp_0, tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, $this$interopScope.toInterop_jg6tf3_k$(indices), blendMode.get_ordinal_ip24qg_k$(), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawTriangleFan$default_smbjli_k$ = function (positions, colors, texCoords, indices, blendMode, paint, $super) {
    colors = colors === VOID ? null : colors;
    texCoords = texCoords === VOID ? null : texCoords;
    indices = indices === VOID ? null : indices;
    return $super === VOID ? this.drawTriangleFan_1f1tc0_k$(positions, colors, texCoords, indices, blendMode, paint) : $super.drawTriangleFan_1f1tc0_k$.call(this, positions, colors, texCoords, indices, blendMode, paint);
  };
  protoOf(Canvas).drawVertices_kbewma_k$ = function (vertexMode, positions, colors, texCoords, indices, blendMode, paint) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!((positions.length % 2 | 0) === 0)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawVertices.<anonymous>' call
      var message = 'Expected even number of positions: ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    var points = positions.length / 2 | 0;
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors == null ? true : colors.length === points)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawVertices.<anonymous>' call
      var message_0 = 'Expected colors.length == positions.length / 2, got: ' + ensureNotNull(colors).length + ' != ' + points;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(texCoords == null ? true : texCoords.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawVertices.<anonymous>' call
      var message_1 = 'Expected texCoords.length == positions.length, got: ' + ensureNotNull(texCoords).length + ' != ' + positions.length;
      throw IllegalArgumentException_init_$Create$(toString(message_1));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = vertexMode.get_ordinal_ip24qg_k$();
          var tmp_1 = $this$interopScope.toInterop_uum1m9_k$(positions);
          var tmp_2 = $this$interopScope.toInterop_i7skn2_k$(colors);
          var tmp_3 = $this$interopScope.toInterop_uum1m9_k$(texCoords);
          var tmp1_elvis_lhs = indices == null ? null : indices.length;
          org_jetbrains_skia_Canvas__1nDrawVertices(tmp, tmp_0, points, tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, $this$interopScope.toInterop_jg6tf3_k$(indices), blendMode.get_ordinal_ip24qg_k$(), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return this;
  };
  protoOf(Canvas).drawVertices$default_dgfhui_k$ = function (vertexMode, positions, colors, texCoords, indices, blendMode, paint, $super) {
    colors = colors === VOID ? null : colors;
    texCoords = texCoords === VOID ? null : texCoords;
    indices = indices === VOID ? null : indices;
    return $super === VOID ? this.drawVertices_kbewma_k$(vertexMode, positions, colors, texCoords, indices, blendMode, paint) : $super.drawVertices_kbewma_k$.call(this, vertexMode, positions, colors, texCoords, indices, blendMode, paint);
  };
  protoOf(Canvas).drawPatch_fqm0ir_k$ = function (cubics, colors, texCoords, blendMode, paint) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(cubics.length === 12)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawPatch.<anonymous>' call
      var message = 'Expected cubics.length == 12, got: ' + cubics.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors.length === 4)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawPatch.<anonymous>' call
      var message_0 = 'Expected colors.length == 4, got: ' + colors.length;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(texCoords == null ? true : texCoords.length === 4)) {
      // Inline function 'org.jetbrains.skia.Canvas.drawPatch.<anonymous>' call
      var message_1 = 'Expected texCoords.length == 4, got: ' + ensureNotNull(texCoords).length;
      throw IllegalArgumentException_init_$Create$(toString(message_1));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Canvas__1nDrawPatch(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(cubics)), $this$interopScope.toInterop_i7skn2_k$(colors), $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_42().flattenArray_n7c6vn_k$(texCoords)), blendMode.get_ordinal_ip24qg_k$(), getPtr(paint));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawPatch$default_7t62tj_k$ = function (cubics, colors, texCoords, blendMode, paint, $super) {
    texCoords = texCoords === VOID ? null : texCoords;
    return $super === VOID ? this.drawPatch_fqm0ir_k$(cubics, colors, texCoords, blendMode, paint) : $super.drawPatch_fqm0ir_k$.call(this, cubics, colors, texCoords, blendMode, paint);
  };
  protoOf(Canvas).drawDrawable_kf1bfn_k$ = function (drawable) {
    return this.drawDrawable_qsidwc_k$(drawable, null);
  };
  protoOf(Canvas).drawDrawable_n6n3kz_k$ = function (drawable, x, y) {
    return this.drawDrawable_qsidwc_k$(drawable, Companion_getInstance_32().makeTranslate_9v7aio_k$(x, y));
  };
  protoOf(Canvas).drawDrawable_qsidwc_k$ = function (drawable, matrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = this.get__ptr_wohp4o_k$();
          var tmp_0 = getPtr(drawable);
          org_jetbrains_skia_Canvas__1nDrawDrawable(tmp, tmp_0, $this$interopScope.toInterop_uum1m9_k$(matrix == null ? null : matrix.get_mat_18j0uh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(drawable);
    }
    return this;
  };
  protoOf(Canvas).clear_yx1ndh_k$ = function (color) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nClear(this.get__ptr_wohp4o_k$(), color);
    }finally {
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).drawPaint_qi18b5_k$ = function (paint) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nDrawPaint(this.get__ptr_wohp4o_k$(), getPtr(paint));
    }finally {
      reachabilityBarrier(paint);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).setMatrix_1bkdp9_k$ = function (matrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_Canvas__1nSetMatrix(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).resetMatrix_fwo0sw_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Canvas__1nResetMatrix(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Canvas).get_localToDevice_9bi2hf_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_33();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Canvas$_get_localToDevice_$lambda_ciw2zi(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Canvas).get_localToDeviceAsMatrix33_wcivmu_k$ = function () {
    return this.get_localToDevice_9bi2hf_k$().asMatrix33_i0r31v_k$();
  };
  protoOf(Canvas).clipRect_7110ke_k$ = function (r, mode, antiAlias) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Canvas__1nClipRect(this.get__ptr_wohp4o_k$(), r.get_left_woprgw_k$(), r.get_top_18ivbo_k$(), r.get_right_ixz7xv_k$(), r.get_bottom_bj8ras_k$(), mode.get_ordinal_ip24qg_k$(), antiAlias);
    return this;
  };
  protoOf(Canvas).clipRect_xw3sir_k$ = function (r, mode) {
    return this.clipRect_7110ke_k$(r, mode, false);
  };
  protoOf(Canvas).clipRect_yw21l6_k$ = function (r, antiAlias) {
    return this.clipRect_7110ke_k$(r, ClipMode_INTERSECT_getInstance(), antiAlias);
  };
  protoOf(Canvas).clipRect_cm7pjj_k$ = function (r) {
    return this.clipRect_7110ke_k$(r, ClipMode_INTERSECT_getInstance(), false);
  };
  protoOf(Canvas).clipRRect_mzt24i_k$ = function (r, mode, antiAlias) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_Canvas__1nClipRRect(this.get__ptr_wohp4o_k$(), r.get_left_woprgw_k$(), r.get_top_18ivbo_k$(), r.get_right_ixz7xv_k$(), r.get_bottom_bj8ras_k$(), $this$interopScope.toInterop_uum1m9_k$(r.get_radii_ixu1u4_k$()), r.get_radii_ixu1u4_k$().length, mode.get_ordinal_ip24qg_k$(), antiAlias);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).clipRRect_gsebjx_k$ = function (r, mode) {
    return this.clipRRect_mzt24i_k$(r, mode, false);
  };
  protoOf(Canvas).clipRRect_40mtee_k$ = function (r, antiAlias) {
    return this.clipRRect_mzt24i_k$(r, ClipMode_INTERSECT_getInstance(), antiAlias);
  };
  protoOf(Canvas).clipRRect_nysylr_k$ = function (r) {
    return this.clipRRect_mzt24i_k$(r, ClipMode_INTERSECT_getInstance(), false);
  };
  protoOf(Canvas).clipPath_agzsy6_k$ = function (p, mode, antiAlias) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nClipPath(this.get__ptr_wohp4o_k$(), getPtr(p), mode.get_ordinal_ip24qg_k$(), antiAlias);
    }finally {
      reachabilityBarrier(p);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).clipPath_dsbah5_k$ = function (p, mode) {
    return this.clipPath_agzsy6_k$(p, mode, false);
  };
  protoOf(Canvas).clipPath_ofjwqe_k$ = function (p, antiAlias) {
    return this.clipPath_agzsy6_k$(p, ClipMode_INTERSECT_getInstance(), antiAlias);
  };
  protoOf(Canvas).clipPath_y4b4hn_k$ = function (p) {
    return this.clipPath_agzsy6_k$(p, ClipMode_INTERSECT_getInstance(), false);
  };
  protoOf(Canvas).clipRegion_ixpj9z_k$ = function (r, mode) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_Canvas__1nClipRegion(this.get__ptr_wohp4o_k$(), getPtr(r), mode.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(r);
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(Canvas).clipRegion_cifa3f_k$ = function (r) {
    return this.clipRegion_ixpj9z_k$(r, ClipMode_INTERSECT_getInstance());
  };
  protoOf(Canvas).translate_k2k08i_k$ = function (dx, dy) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nTranslate(this.get__ptr_wohp4o_k$(), dx, dy);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).scale_ln7xze_k$ = function (sx, sy) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nScale(this.get__ptr_wohp4o_k$(), sx, sy);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).rotate_n08qpp_k$ = function (deg) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nRotate(this.get__ptr_wohp4o_k$(), deg, 0.0, 0.0);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).rotate_bev7nh_k$ = function (deg, x, y) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nRotate(this.get__ptr_wohp4o_k$(), deg, x, y);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).skew_fkteh6_k$ = function (sx, sy) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nSkew(this.get__ptr_wohp4o_k$(), sx, sy);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).concat_1ahtf6_k$ = function (matrix) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nConcat(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).concat_1fc4xa_k$ = function (matrix) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_Canvas__1nConcat44(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Canvas).readPixels_yiqj5g_k$ = function (bitmap, srcX, srcY) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Canvas__1nReadPixels(this.get__ptr_wohp4o_k$(), getPtr(bitmap), srcX, srcY);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(bitmap);
    }
    return tmp;
  };
  protoOf(Canvas).writePixels_ddrjz1_k$ = function (bitmap, x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Canvas__1nWritePixels(this.get__ptr_wohp4o_k$(), getPtr(bitmap), x, y);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(bitmap);
    }
    return tmp;
  };
  protoOf(Canvas).save_23ibh_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Canvas__1nSave(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Canvas).saveLayer_d6e1vc_k$ = function (left, top, right, bottom, paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Canvas__1nSaveLayerRect(this.get__ptr_wohp4o_k$(), left, top, right, bottom, getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(Canvas).saveLayer_hn0vb8_k$ = function (bounds, paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = bounds == null ? org_jetbrains_skia_Canvas__1nSaveLayer(this.get__ptr_wohp4o_k$(), getPtr(paint)) : org_jetbrains_skia_Canvas__1nSaveLayerRect(this.get__ptr_wohp4o_k$(), bounds.get_left_woprgw_k$(), bounds.get_top_18ivbo_k$(), bounds.get_right_ixz7xv_k$(), bounds.get_bottom_bj8ras_k$(), getPtr(paint));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(Canvas).get_saveCount_b4oand_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Canvas__1nGetSaveCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Canvas).restore_i5fnny_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Canvas__1nRestore(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Canvas).restoreToCount_ilxoky_k$ = function (saveCount) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Canvas__1nRestoreToCount(this.get__ptr_wohp4o_k$(), saveCount);
    return this;
  };
  var ClipMode_DIFFERENCE_instance;
  var ClipMode_INTERSECT_instance;
  function values_0() {
    return [ClipMode_DIFFERENCE_getInstance(), ClipMode_INTERSECT_getInstance()];
  }
  function valueOf_0(value) {
    switch (value) {
      case 'DIFFERENCE':
        return ClipMode_DIFFERENCE_getInstance();
      case 'INTERSECT':
        return ClipMode_INTERSECT_getInstance();
      default:
        ClipMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var ClipMode_entriesInitialized;
  function ClipMode_initEntries() {
    if (ClipMode_entriesInitialized)
      return Unit_getInstance();
    ClipMode_entriesInitialized = true;
    ClipMode_DIFFERENCE_instance = new ClipMode('DIFFERENCE', 0);
    ClipMode_INTERSECT_instance = new ClipMode('INTERSECT', 1);
  }
  function ClipMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function ClipMode_DIFFERENCE_getInstance() {
    ClipMode_initEntries();
    return ClipMode_DIFFERENCE_instance;
  }
  function ClipMode_INTERSECT_getInstance() {
    ClipMode_initEntries();
    return ClipMode_INTERSECT_instance;
  }
  function Color4f_init_$Init$(rgba, $this) {
    Color4f.call($this, rgba[0], rgba[1], rgba[2], rgba[3]);
    return $this;
  }
  function Color4f_init_$Create$(rgba) {
    return Color4f_init_$Init$(rgba, objectCreate(protoOf(Color4f)));
  }
  function Color4f_init_$Init$_0(c, $this) {
    Color4f.call($this, (c >> 16 & 255) / 255.0, (c >> 8 & 255) / 255.0, (c & 255) / 255.0, (c >> 24 & 255) / 255.0);
    return $this;
  }
  function Color4f_init_$Create$_0(c) {
    return Color4f_init_$Init$_0(c, objectCreate(protoOf(Color4f)));
  }
  function Companion_2() {
    Companion_instance_2 = this;
  }
  protoOf(Companion_2).flattenArray_qrwamz_k$ = function (colors) {
    var arr = new Float32Array(imul(colors.length, 4));
    var inductionVariable = 0;
    var last = colors.length - 1 | 0;
    if (inductionVariable <= last)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        arr[imul(i, 4)] = colors[i].r_1;
        arr[imul(i, 4) + 1 | 0] = colors[i].g_1;
        arr[imul(i, 4) + 2 | 0] = colors[i].b_1;
        arr[imul(i, 4) + 3 | 0] = colors[i].a_1;
      }
       while (inductionVariable <= last);
    return arr;
  };
  var Companion_instance_2;
  function Companion_getInstance_3() {
    if (Companion_instance_2 == null)
      new Companion_2();
    return Companion_instance_2;
  }
  function Color4f(r, g, b, a) {
    Companion_getInstance_3();
    a = a === VOID ? 1.0 : a;
    this.r_1 = r;
    this.g_1 = g;
    this.b_1 = b;
    this.a_1 = a;
  }
  protoOf(Color4f).get_r_1mhr61_k$ = function () {
    return this.r_1;
  };
  protoOf(Color4f).get_g_1mhr5q_k$ = function () {
    return this.g_1;
  };
  protoOf(Color4f).get_b_1mhr5l_k$ = function () {
    return this.b_1;
  };
  protoOf(Color4f).get_a_1mhr5k_k$ = function () {
    return this.a_1;
  };
  protoOf(Color4f).toColor_jiwzmg_k$ = function () {
    // Inline function 'kotlin.math.round' call
    var x = this.a_1 * 255.0;
    var tmp$ret$0 = round(x);
    var tmp = numberToInt(tmp$ret$0) << 24;
    // Inline function 'kotlin.math.round' call
    var x_0 = this.r_1 * 255.0;
    var tmp$ret$1 = round(x_0);
    var tmp_0 = tmp | numberToInt(tmp$ret$1) << 16;
    // Inline function 'kotlin.math.round' call
    var x_1 = this.g_1 * 255.0;
    var tmp$ret$2 = round(x_1);
    var tmp_1 = tmp_0 | numberToInt(tmp$ret$2) << 8;
    // Inline function 'kotlin.math.round' call
    var x_2 = this.b_1 * 255.0;
    var tmp$ret$3 = round(x_2);
    return tmp_1 | numberToInt(tmp$ret$3);
  };
  protoOf(Color4f).flatten_cvohks_k$ = function () {
    // Inline function 'kotlin.floatArrayOf' call
    return new Float32Array([this.r_1, this.g_1, this.b_1, this.a_1]);
  };
  protoOf(Color4f).makeLerp_quxkn_k$ = function (other, weight) {
    return new Color4f(this.r_1 + (other.r_1 - this.r_1) * weight, this.g_1 + (other.g_1 - this.g_1) * weight, this.b_1 + (other.b_1 - this.b_1) * weight, this.a_1 + (other.a_1 - this.a_1) * weight);
  };
  protoOf(Color4f).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Color4f))
      return false;
    if (!(compareTo(this.r_1, other.r_1) === 0))
      return false;
    if (!(compareTo(this.g_1, other.g_1) === 0))
      return false;
    if (!(compareTo(this.b_1, other.b_1) === 0))
      return false;
    return compareTo(this.a_1, other.a_1) === 0;
  };
  protoOf(Color4f).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.r_1) | 0;
    result = imul(result, PRIME) + toBits(this.g_1) | 0;
    result = imul(result, PRIME) + toBits(this.b_1) | 0;
    result = imul(result, PRIME) + toBits(this.a_1) | 0;
    return result;
  };
  protoOf(Color4f).toString = function () {
    return 'Color4f(_r=' + this.r_1 + ', _g=' + this.g_1 + ', _b=' + this.b_1 + ', _a=' + this.a_1 + ')';
  };
  protoOf(Color4f).withR_3kp7w_k$ = function (_r) {
    return this.r_1 === _r ? this : new Color4f(_r, this.g_1, this.b_1, this.a_1);
  };
  protoOf(Color4f).withG_i9b4o9_k$ = function (_g) {
    return this.g_1 === _g ? this : new Color4f(this.r_1, _g, this.b_1, this.a_1);
  };
  protoOf(Color4f).withB_qlplj8_k$ = function (_b) {
    return this.b_1 === _b ? this : new Color4f(this.r_1, this.g_1, _b, this.a_1);
  };
  protoOf(Color4f).withA_s9shpf_k$ = function (_a) {
    return this.a_1 === _a ? this : new Color4f(this.r_1, this.g_1, this.b_1, _a);
  };
  var ColorAlphaType_UNKNOWN_instance;
  var ColorAlphaType_OPAQUE_instance;
  var ColorAlphaType_PREMUL_instance;
  var ColorAlphaType_UNPREMUL_instance;
  function values_1() {
    return [ColorAlphaType_UNKNOWN_getInstance(), ColorAlphaType_OPAQUE_getInstance(), ColorAlphaType_PREMUL_getInstance(), ColorAlphaType_UNPREMUL_getInstance()];
  }
  function valueOf_1(value) {
    switch (value) {
      case 'UNKNOWN':
        return ColorAlphaType_UNKNOWN_getInstance();
      case 'OPAQUE':
        return ColorAlphaType_OPAQUE_getInstance();
      case 'PREMUL':
        return ColorAlphaType_PREMUL_getInstance();
      case 'UNPREMUL':
        return ColorAlphaType_UNPREMUL_getInstance();
      default:
        ColorAlphaType_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var ColorAlphaType_entriesInitialized;
  function ColorAlphaType_initEntries() {
    if (ColorAlphaType_entriesInitialized)
      return Unit_getInstance();
    ColorAlphaType_entriesInitialized = true;
    ColorAlphaType_UNKNOWN_instance = new ColorAlphaType('UNKNOWN', 0);
    ColorAlphaType_OPAQUE_instance = new ColorAlphaType('OPAQUE', 1);
    ColorAlphaType_PREMUL_instance = new ColorAlphaType('PREMUL', 2);
    ColorAlphaType_UNPREMUL_instance = new ColorAlphaType('UNPREMUL', 3);
  }
  function ColorAlphaType(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function ColorAlphaType_UNKNOWN_getInstance() {
    ColorAlphaType_initEntries();
    return ColorAlphaType_UNKNOWN_instance;
  }
  function ColorAlphaType_OPAQUE_getInstance() {
    ColorAlphaType_initEntries();
    return ColorAlphaType_OPAQUE_instance;
  }
  function ColorAlphaType_PREMUL_getInstance() {
    ColorAlphaType_initEntries();
    return ColorAlphaType_PREMUL_instance;
  }
  function ColorAlphaType_UNPREMUL_getInstance() {
    ColorAlphaType_initEntries();
    return ColorAlphaType_UNPREMUL_instance;
  }
  var ColorChannel_R_instance;
  var ColorChannel_G_instance;
  var ColorChannel_B_instance;
  var ColorChannel_A_instance;
  function values_2() {
    return [ColorChannel_R_getInstance(), ColorChannel_G_getInstance(), ColorChannel_B_getInstance(), ColorChannel_A_getInstance()];
  }
  function valueOf_2(value) {
    switch (value) {
      case 'R':
        return ColorChannel_R_getInstance();
      case 'G':
        return ColorChannel_G_getInstance();
      case 'B':
        return ColorChannel_B_getInstance();
      case 'A':
        return ColorChannel_A_getInstance();
      default:
        ColorChannel_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var ColorChannel_entriesInitialized;
  function ColorChannel_initEntries() {
    if (ColorChannel_entriesInitialized)
      return Unit_getInstance();
    ColorChannel_entriesInitialized = true;
    ColorChannel_R_instance = new ColorChannel('R', 0);
    ColorChannel_G_instance = new ColorChannel('G', 1);
    ColorChannel_B_instance = new ColorChannel('B', 2);
    ColorChannel_A_instance = new ColorChannel('A', 3);
  }
  function ColorChannel(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function ColorChannel_R_getInstance() {
    ColorChannel_initEntries();
    return ColorChannel_R_instance;
  }
  function ColorChannel_G_getInstance() {
    ColorChannel_initEntries();
    return ColorChannel_G_instance;
  }
  function ColorChannel_B_getInstance() {
    ColorChannel_initEntries();
    return ColorChannel_B_instance;
  }
  function ColorChannel_A_getInstance() {
    ColorChannel_initEntries();
    return ColorChannel_A_instance;
  }
  function Companion_3() {
    Companion_instance_3 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
    this.sRGBToLinearGamma_1 = ColorFilter_init_$Create$_0(org_jetbrains_skia_ColorFilter__1nGetSRGBToLinearGamma(), false);
    this.luma_1 = ColorFilter_init_$Create$_0(org_jetbrains_skia_ColorFilter__1nGetLuma(), false);
  }
  protoOf(Companion_3).makeComposed_k72nog_k$ = function (outer, inner) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeComposed(getPtr(outer), getPtr(inner)));
    }finally {
      reachabilityBarrier(outer);
      reachabilityBarrier(inner);
    }
    return tmp;
  };
  protoOf(Companion_3).makeBlend_hxd0mv_k$ = function (color, mode) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeBlend(color, mode.get_ordinal_ip24qg_k$()));
  };
  protoOf(Companion_3).makeMatrix_xfgxbq_k$ = function (matrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeMatrix.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_ColorFilter__1nMakeMatrix($this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return ColorFilter_init_$Create$(tmp$ret$1);
  };
  protoOf(Companion_3).makeHSLAMatrix_cx1wc6_k$ = function (matrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeHSLAMatrix.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_ColorFilter__1nMakeHSLAMatrix($this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return ColorFilter_init_$Create$(tmp$ret$1);
  };
  protoOf(Companion_3).makeLerp_hrccz_k$ = function (dst, src, t) {
    var tmp;
    try {
      tmp = ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeLerp(t, getPtr(dst), getPtr(src)));
    }finally {
      reachabilityBarrier(dst);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Companion_3).makeLighting_65ijqe_k$ = function (colorMul, colorAdd) {
    return ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeLighting(colorMul, colorAdd));
  };
  protoOf(Companion_3).makeHighContrast_mndawv_k$ = function (grayscale, mode, contrast) {
    return ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeHighContrast(grayscale, mode.get_ordinal_ip24qg_k$(), contrast));
  };
  protoOf(Companion_3).makeTable_1muyzk_k$ = function (table) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(table.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTable.<anonymous>' call
      var message = 'Expected 256 elements, got ' + table.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeTable.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_ColorFilter__1nMakeTable($this$interopScope.toInterop_h7cpet_k$(table));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return ColorFilter_init_$Create$(tmp$ret$2);
  };
  protoOf(Companion_3).makeTableARGB_ytpat0_k$ = function (a, r, g, b) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(a == null ? true : a.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTableARGB.<anonymous>' call
      var message = 'Expected 256 elements in a[], got ' + ensureNotNull(a).length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(r == null ? true : r.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTableARGB.<anonymous>' call
      var message_0 = 'Expected 256 elements in r[], got ' + ensureNotNull(r).length;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(g == null ? true : g.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTableARGB.<anonymous>' call
      var message_1 = 'Expected 256 elements in g[], got ' + ensureNotNull(g).length;
      throw IllegalArgumentException_init_$Create$(toString(message_1));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(b == null ? true : b.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTableARGB.<anonymous>' call
      var message_2 = 'Expected 256 elements in b[], got ' + ensureNotNull(b).length;
      throw IllegalArgumentException_init_$Create$(toString(message_2));
    }
    // Inline function 'org.jetbrains.skia.impl.interopScope' call
    try {
      var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
      var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
      return ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeTableARGB($this$interopScope.toInterop_h7cpet_k$(a), $this$interopScope.toInterop_h7cpet_k$(r), $this$interopScope.toInterop_h7cpet_k$(g), $this$interopScope.toInterop_h7cpet_k$(b)));
    }finally {
      var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
      if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
      }
    }
  };
  protoOf(Companion_3).makeOverdraw_ami52z_k$ = function (colors) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(colors.length === 6)) {
      // Inline function 'org.jetbrains.skia.Companion.makeOverdraw.<anonymous>' call
      var message = 'Expected 6 elements, got ' + colors.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    return ColorFilter_init_$Create$(org_jetbrains_skia_ColorFilter__1nMakeOverdraw(colors[0], colors[1], colors[2], colors[3], colors[4], colors[5]));
  };
  protoOf(Companion_3).get_sRGBToLinearGamma_ibxios_k$ = function () {
    return this.sRGBToLinearGamma_1;
  };
  protoOf(Companion_3).get_luma_woq3hi_k$ = function () {
    return this.luma_1;
  };
  var Companion_instance_3;
  function Companion_getInstance_4() {
    if (Companion_instance_3 == null)
      new Companion_3();
    return Companion_instance_3;
  }
  function ColorFilter_init_$Init$(ptr, $this) {
    RefCnt_init_$Init$(ptr, $this);
    ColorFilter.call($this);
    return $this;
  }
  function ColorFilter_init_$Create$(ptr) {
    return ColorFilter_init_$Init$(ptr, objectCreate(protoOf(ColorFilter)));
  }
  function ColorFilter_init_$Init$_0(ptr, allowClose, $this) {
    RefCnt_init_$Init$_0(ptr, allowClose, $this);
    ColorFilter.call($this);
    return $this;
  }
  function ColorFilter_init_$Create$_0(ptr, allowClose) {
    return ColorFilter_init_$Init$_0(ptr, allowClose, objectCreate(protoOf(ColorFilter)));
  }
  function ColorFilter() {
    Companion_getInstance_4();
  }
  function Companion_4() {
    Companion_instance_4 = this;
    this.DEFAULT_1 = new ColorInfo(ColorType_UNKNOWN_getInstance(), ColorAlphaType_UNKNOWN_getInstance(), null);
  }
  protoOf(Companion_4).get_DEFAULT_wccqmg_k$ = function () {
    return this.DEFAULT_1;
  };
  var Companion_instance_4;
  function Companion_getInstance_5() {
    if (Companion_instance_4 == null)
      new Companion_4();
    return Companion_instance_4;
  }
  function ColorInfo(colorType, alphaType, colorSpace) {
    Companion_getInstance_5();
    this.colorType_1 = colorType;
    this.alphaType_1 = alphaType;
    this.colorSpace_1 = colorSpace;
  }
  protoOf(ColorInfo).get_colorType_tr6rn0_k$ = function () {
    return this.colorType_1;
  };
  protoOf(ColorInfo).get_alphaType_1awv75_k$ = function () {
    return this.alphaType_1;
  };
  protoOf(ColorInfo).get_colorSpace_yx2b0_k$ = function () {
    return this.colorSpace_1;
  };
  protoOf(ColorInfo).get_isOpaque_xnqi0k_k$ = function () {
    return this.alphaType_1.equals(ColorAlphaType_OPAQUE_getInstance()) ? true : this.colorType_1.get_isAlwaysOpaque_c4qcf7_k$();
  };
  protoOf(ColorInfo).get_bytesPerPixel_yisyiz_k$ = function () {
    return this.colorType_1.get_bytesPerPixel_yisyiz_k$();
  };
  protoOf(ColorInfo).get_shiftPerPixel_3lby8u_k$ = function () {
    return this.colorType_1.get_shiftPerPixel_3lby8u_k$();
  };
  protoOf(ColorInfo).get_isGammaCloseToSRGB_62yjev_k$ = function () {
    return !(this.colorSpace_1 == null) ? this.colorSpace_1.get_isGammaCloseToSRGB_62yjev_k$() : false;
  };
  protoOf(ColorInfo).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ColorInfo))
      return false;
    if (!this.colorType_1.equals(other.colorType_1))
      return false;
    if (!this.alphaType_1.equals(other.alphaType_1))
      return false;
    return equals(this.colorSpace_1, other.colorSpace_1);
  };
  protoOf(ColorInfo).hashCode = function () {
    var prime = 59;
    var result = 1;
    result = imul(result, prime) + this.colorType_1.hashCode() | 0;
    result = imul(result, prime) + this.alphaType_1.hashCode() | 0;
    var tmp = imul(result, prime);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver = this.colorSpace_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    return result;
  };
  protoOf(ColorInfo).toString = function () {
    return 'ColorInfo(_colorType=' + this.colorType_1 + ', _alphaType=' + this.alphaType_1 + ', _colorSpace=' + this.colorSpace_1 + ')';
  };
  protoOf(ColorInfo).withColorType_9ad897_k$ = function (_colorType) {
    return this.colorType_1.equals(_colorType) ? this : new ColorInfo(_colorType, this.alphaType_1, this.colorSpace_1);
  };
  protoOf(ColorInfo).withAlphaType_z42bb8_k$ = function (_alphaType) {
    return this.alphaType_1.equals(_alphaType) ? this : new ColorInfo(this.colorType_1, _alphaType, this.colorSpace_1);
  };
  protoOf(ColorInfo).withColorSpace_yuen1e_k$ = function (_colorSpace) {
    return this.colorSpace_1 === _colorSpace ? this : new ColorInfo(this.colorType_1, this.alphaType_1, _colorSpace);
  };
  function ColorMatrix(mat) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(mat.length === 20)) {
      // Inline function 'org.jetbrains.skia.ColorMatrix.<anonymous>' call
      var message = 'Expected 20 elements, got ' + mat;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    this.mat_1 = mat;
  }
  protoOf(ColorMatrix).get_mat_18j0uh_k$ = function () {
    return this.mat_1;
  };
  protoOf(ColorMatrix).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ColorMatrix))
      return false;
    return contentEquals(this.mat_1, other.mat_1);
  };
  protoOf(ColorMatrix).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + contentHashCode(this.mat_1) | 0;
    return result;
  };
  protoOf(ColorMatrix).toString = function () {
    return 'ColorMatrix(_mat=' + this.mat_1 + ')';
  };
  function Companion_5() {
    Companion_instance_5 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
    this.sRGB_1 = ColorSpace_init_$Create$_0(org_jetbrains_skia_ColorSpace__1nMakeSRGB(), false);
    this.sRGBLinear_1 = ColorSpace_init_$Create$_0(org_jetbrains_skia_ColorSpace__1nMakeSRGBLinear(), false);
    this.displayP3__1 = ColorSpace_init_$Create$_0(org_jetbrains_skia_ColorSpace__1nMakeDisplayP3(), false);
  }
  protoOf(Companion_5).get_sRGB_wottib_k$ = function () {
    return this.sRGB_1;
  };
  protoOf(Companion_5).get_sRGBLinear_5cyq1k_k$ = function () {
    return this.sRGBLinear_1;
  };
  protoOf(Companion_5).get_displayP3_clxlks_k$ = function () {
    return this.displayP3__1;
  };
  var Companion_instance_5;
  function Companion_getInstance_6() {
    if (Companion_instance_5 == null)
      new Companion_5();
    return Companion_instance_5;
  }
  function ColorSpace_init_$Init$(ptr, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_2().PTR_1, true);
    ColorSpace.call($this);
    return $this;
  }
  function ColorSpace_init_$Create$(ptr) {
    return ColorSpace_init_$Init$(ptr, objectCreate(protoOf(ColorSpace)));
  }
  function ColorSpace_init_$Init$_0(ptr, managed, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_2().PTR_1, managed);
    ColorSpace.call($this);
    return $this;
  }
  function ColorSpace_init_$Create$_0(ptr, managed) {
    return ColorSpace_init_$Init$_0(ptr, managed, objectCreate(protoOf(ColorSpace)));
  }
  function _FinalizerHolder_2() {
    _FinalizerHolder_instance_2 = this;
    this.PTR_1 = org_jetbrains_skia_ColorSpace__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_2).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_2;
  function _FinalizerHolder_getInstance_2() {
    if (_FinalizerHolder_instance_2 == null)
      new _FinalizerHolder_2();
    return _FinalizerHolder_instance_2;
  }
  protoOf(ColorSpace).convert_fohj0i_k$ = function (toColor, color) {
    var to = toColor;
    var tmp0_elvis_lhs = to;
    to = tmp0_elvis_lhs == null ? Companion_getInstance_6().sRGB_1 : tmp0_elvis_lhs;
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(4);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.ColorSpace.convert.<anonymous>' call
          org_jetbrains_skia_ColorSpace__nConvert(this.get__ptr_wohp4o_k$(), getPtr(to), color.get_r_1mhr61_k$(), color.get_g_1mhr5q_k$(), color.get_b_1mhr5l_k$(), color.get_a_1mhr5k_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = Color4f_init_$Create$(result);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(to);
    }
    return tmp;
  };
  protoOf(ColorSpace).get_isGammaCloseToSRGB_62yjev_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_ColorSpace__1nIsGammaCloseToSRGB(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ColorSpace).get_isGammaLinear_3z7ugp_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_ColorSpace__1nIsGammaLinear(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ColorSpace).get_isSRGB_ew5hnx_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_ColorSpace__1nIsSRGB(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function ColorSpace() {
    Companion_getInstance_6();
  }
  var ColorType_UNKNOWN_instance;
  var ColorType_ALPHA_8_instance;
  var ColorType_RGB_565_instance;
  var ColorType_ARGB_4444_instance;
  var ColorType_RGBA_8888_instance;
  var ColorType_RGB_888X_instance;
  var ColorType_BGRA_8888_instance;
  var ColorType_RGBA_1010102_instance;
  var ColorType_BGRA_1010102_instance;
  var ColorType_RGB_101010X_instance;
  var ColorType_BGR_101010X_instance;
  var ColorType_GRAY_8_instance;
  var ColorType_RGBA_F16NORM_instance;
  var ColorType_RGBA_F16_instance;
  var ColorType_RGBA_F32_instance;
  var ColorType_R8G8_UNORM_instance;
  var ColorType_A16_FLOAT_instance;
  var ColorType_R16G16_FLOAT_instance;
  var ColorType_A16_UNORM_instance;
  var ColorType_R16G16_UNORM_instance;
  var ColorType_R16G16B16A16_UNORM_instance;
  function Companion_6() {
    Companion_instance_6 = this;
    this.N32__1 = ColorType_BGRA_8888_getInstance();
  }
  protoOf(Companion_6).set_N32_g7wi18_k$ = function (_set____db54di) {
    this.N32__1 = _set____db54di;
  };
  protoOf(Companion_6).get_N32_18jozg_k$ = function () {
    return this.N32__1;
  };
  var Companion_instance_6;
  function Companion_getInstance_7() {
    ColorType_initEntries();
    if (Companion_instance_6 == null)
      new Companion_6();
    return Companion_instance_6;
  }
  function values_3() {
    return [ColorType_UNKNOWN_getInstance(), ColorType_ALPHA_8_getInstance(), ColorType_RGB_565_getInstance(), ColorType_ARGB_4444_getInstance(), ColorType_RGBA_8888_getInstance(), ColorType_RGB_888X_getInstance(), ColorType_BGRA_8888_getInstance(), ColorType_RGBA_1010102_getInstance(), ColorType_BGRA_1010102_getInstance(), ColorType_RGB_101010X_getInstance(), ColorType_BGR_101010X_getInstance(), ColorType_GRAY_8_getInstance(), ColorType_RGBA_F16NORM_getInstance(), ColorType_RGBA_F16_getInstance(), ColorType_RGBA_F32_getInstance(), ColorType_R8G8_UNORM_getInstance(), ColorType_A16_FLOAT_getInstance(), ColorType_R16G16_FLOAT_getInstance(), ColorType_A16_UNORM_getInstance(), ColorType_R16G16_UNORM_getInstance(), ColorType_R16G16B16A16_UNORM_getInstance()];
  }
  function valueOf_3(value) {
    switch (value) {
      case 'UNKNOWN':
        return ColorType_UNKNOWN_getInstance();
      case 'ALPHA_8':
        return ColorType_ALPHA_8_getInstance();
      case 'RGB_565':
        return ColorType_RGB_565_getInstance();
      case 'ARGB_4444':
        return ColorType_ARGB_4444_getInstance();
      case 'RGBA_8888':
        return ColorType_RGBA_8888_getInstance();
      case 'RGB_888X':
        return ColorType_RGB_888X_getInstance();
      case 'BGRA_8888':
        return ColorType_BGRA_8888_getInstance();
      case 'RGBA_1010102':
        return ColorType_RGBA_1010102_getInstance();
      case 'BGRA_1010102':
        return ColorType_BGRA_1010102_getInstance();
      case 'RGB_101010X':
        return ColorType_RGB_101010X_getInstance();
      case 'BGR_101010X':
        return ColorType_BGR_101010X_getInstance();
      case 'GRAY_8':
        return ColorType_GRAY_8_getInstance();
      case 'RGBA_F16NORM':
        return ColorType_RGBA_F16NORM_getInstance();
      case 'RGBA_F16':
        return ColorType_RGBA_F16_getInstance();
      case 'RGBA_F32':
        return ColorType_RGBA_F32_getInstance();
      case 'R8G8_UNORM':
        return ColorType_R8G8_UNORM_getInstance();
      case 'A16_FLOAT':
        return ColorType_A16_FLOAT_getInstance();
      case 'R16G16_FLOAT':
        return ColorType_R16G16_FLOAT_getInstance();
      case 'A16_UNORM':
        return ColorType_A16_UNORM_getInstance();
      case 'R16G16_UNORM':
        return ColorType_R16G16_UNORM_getInstance();
      case 'R16G16B16A16_UNORM':
        return ColorType_R16G16B16A16_UNORM_getInstance();
      default:
        ColorType_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var ColorType_entriesInitialized;
  function ColorType_initEntries() {
    if (ColorType_entriesInitialized)
      return Unit_getInstance();
    ColorType_entriesInitialized = true;
    ColorType_UNKNOWN_instance = new ColorType('UNKNOWN', 0);
    ColorType_ALPHA_8_instance = new ColorType('ALPHA_8', 1);
    ColorType_RGB_565_instance = new ColorType('RGB_565', 2);
    ColorType_ARGB_4444_instance = new ColorType('ARGB_4444', 3);
    ColorType_RGBA_8888_instance = new ColorType('RGBA_8888', 4);
    ColorType_RGB_888X_instance = new ColorType('RGB_888X', 5);
    ColorType_BGRA_8888_instance = new ColorType('BGRA_8888', 6);
    ColorType_RGBA_1010102_instance = new ColorType('RGBA_1010102', 7);
    ColorType_BGRA_1010102_instance = new ColorType('BGRA_1010102', 8);
    ColorType_RGB_101010X_instance = new ColorType('RGB_101010X', 9);
    ColorType_BGR_101010X_instance = new ColorType('BGR_101010X', 10);
    ColorType_GRAY_8_instance = new ColorType('GRAY_8', 11);
    ColorType_RGBA_F16NORM_instance = new ColorType('RGBA_F16NORM', 12);
    ColorType_RGBA_F16_instance = new ColorType('RGBA_F16', 13);
    ColorType_RGBA_F32_instance = new ColorType('RGBA_F32', 14);
    ColorType_R8G8_UNORM_instance = new ColorType('R8G8_UNORM', 15);
    ColorType_A16_FLOAT_instance = new ColorType('A16_FLOAT', 16);
    ColorType_R16G16_FLOAT_instance = new ColorType('R16G16_FLOAT', 17);
    ColorType_A16_UNORM_instance = new ColorType('A16_UNORM', 18);
    ColorType_R16G16_UNORM_instance = new ColorType('R16G16_UNORM', 19);
    ColorType_R16G16B16A16_UNORM_instance = new ColorType('R16G16B16A16_UNORM', 20);
    Companion_getInstance_7();
  }
  function ColorType(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  protoOf(ColorType).get_bytesPerPixel_yisyiz_k$ = function () {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 0:
        tmp = 0;
        break;
      case 1:
        tmp = 1;
        break;
      case 2:
        tmp = 2;
        break;
      case 3:
        tmp = 2;
        break;
      case 4:
        tmp = 4;
        break;
      case 6:
        tmp = 4;
        break;
      case 5:
        tmp = 4;
        break;
      case 7:
        tmp = 4;
        break;
      case 9:
        tmp = 4;
        break;
      case 8:
        tmp = 4;
        break;
      case 10:
        tmp = 4;
        break;
      case 11:
        tmp = 1;
        break;
      case 12:
        tmp = 8;
        break;
      case 13:
        tmp = 8;
        break;
      case 14:
        tmp = 16;
        break;
      case 15:
        tmp = 2;
        break;
      case 18:
        tmp = 2;
        break;
      case 19:
        tmp = 4;
        break;
      case 16:
        tmp = 2;
        break;
      case 17:
        tmp = 4;
        break;
      case 20:
        tmp = 8;
        break;
      default:
        noWhenBranchMatchedException();
        break;
    }
    return tmp;
  };
  protoOf(ColorType).get_shiftPerPixel_3lby8u_k$ = function () {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 0:
        tmp = 0;
        break;
      case 1:
        tmp = 0;
        break;
      case 2:
        tmp = 1;
        break;
      case 3:
        tmp = 1;
        break;
      case 4:
        tmp = 2;
        break;
      case 5:
        tmp = 2;
        break;
      case 6:
        tmp = 2;
        break;
      case 7:
        tmp = 2;
        break;
      case 9:
        tmp = 2;
        break;
      case 8:
        tmp = 2;
        break;
      case 10:
        tmp = 2;
        break;
      case 11:
        tmp = 0;
        break;
      case 12:
        tmp = 3;
        break;
      case 13:
        tmp = 3;
        break;
      case 14:
        tmp = 4;
        break;
      case 15:
        tmp = 1;
        break;
      case 18:
        tmp = 1;
        break;
      case 19:
        tmp = 2;
        break;
      case 16:
        tmp = 1;
        break;
      case 17:
        tmp = 2;
        break;
      case 20:
        tmp = 3;
        break;
      default:
        noWhenBranchMatchedException();
        break;
    }
    return tmp;
  };
  protoOf(ColorType).validateAlphaType_ki0fp0_k$ = function (alphaType) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 0:
        tmp = ColorAlphaType_UNKNOWN_getInstance();
        break;
      case 1:
      case 18:
      case 16:
        tmp = ColorAlphaType_UNPREMUL_getInstance().equals(alphaType) ? ColorAlphaType_PREMUL_getInstance() : ColorAlphaType_UNKNOWN_getInstance().equals(alphaType) ? null : alphaType;
        break;
      case 3:
      case 4:
      case 6:
      case 7:
      case 8:
      case 12:
      case 13:
      case 14:
      case 20:
        tmp = ColorAlphaType_UNKNOWN_getInstance().equals(alphaType) ? null : alphaType;
        break;
      case 11:
      case 15:
      case 19:
      case 17:
      case 2:
      case 5:
      case 9:
      case 10:
        tmp = ColorAlphaType_OPAQUE_getInstance();
        break;
      default:
        noWhenBranchMatchedException();
        break;
    }
    return tmp;
  };
  protoOf(ColorType).computeOffset_i6ij98_k$ = function (x, y, rowBytes) {
    var tmp;
    if (this.equals(ColorType_UNKNOWN_getInstance())) {
      tmp = new Long(0, 0);
    } else {
      // Inline function 'kotlin.Long.plus' call
      var this_0 = numberToLong(y).times_nfzjiw_k$(rowBytes);
      var other = x << this.get_shiftPerPixel_3lby8u_k$();
      tmp = this_0.plus_r93sks_k$(toLong(other));
    }
    return tmp;
  };
  protoOf(ColorType).getR_kri3fg_k$ = function (color) {
    var tmp;
    if (this.get_ordinal_ip24qg_k$() === 11) {
      tmp = (color & 255) / 255.0;
    } else {
      throw IllegalArgumentException_init_$Create$('getR(byte) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getR_15nq9w_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 2:
        tmp = (color >> 11 & 31) / 31.0;
        break;
      case 3:
        tmp = (color >> 8 & 15) / 15.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getR(short) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getR_z1w658_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 4:
        tmp = (color >> 24 & 255) / 255.0;
        break;
      case 5:
        tmp = (color >> 24 & 255) / 255.0;
        break;
      case 6:
        tmp = (color >> 8 & 255) / 255.0;
        break;
      case 7:
        tmp = (color >> 22 & 1023) / 1023.0;
        break;
      case 9:
        tmp = (color >> 22 & 1023) / 1023.0;
        break;
      case 8:
        tmp = (color >> 2 & 1023) / 1023.0;
        break;
      case 10:
        tmp = (color >> 2 & 1023) / 1023.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getR(int) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getG_gtsd53_k$ = function (color) {
    var tmp;
    if (this.get_ordinal_ip24qg_k$() === 11) {
      tmp = (color & 255) / 255.0;
    } else {
      throw IllegalArgumentException_init_$Create$('getG(byte) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getG_jijk61_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 2:
        tmp = (color >> 5 & 63) / 63.0;
        break;
      case 3:
        tmp = (color >> 4 & 15) / 15.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getG(short) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getG_vcp9jb_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 4:
        tmp = (color >> 16 & 255) / 255.0;
        break;
      case 5:
        tmp = (color >> 16 & 255) / 255.0;
        break;
      case 6:
        tmp = (color >> 16 & 255) / 255.0;
        break;
      case 7:
        tmp = (color >> 12 & 1023) / 1023.0;
        break;
      case 9:
        tmp = (color >> 12 & 1023) / 1023.0;
        break;
      case 8:
        tmp = (color >> 12 & 1023) / 1023.0;
        break;
      case 10:
        tmp = (color >> 12 & 1023) / 1023.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getG(int) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getB_yerld8_k$ = function (color) {
    var tmp;
    if (this.get_ordinal_ip24qg_k$() === 11) {
      tmp = (color & 255) / 255.0;
    } else {
      throw IllegalArgumentException_init_$Create$('getB(byte) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getB_ruy110_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 2:
        tmp = (color & 31) / 31.0;
        break;
      case 3:
        tmp = (color & 15) / 15.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getB(short) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getB_to5rfw_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 4:
        tmp = (color >> 8 & 255) / 255.0;
        break;
      case 5:
        tmp = (color >> 8 & 255) / 255.0;
        break;
      case 6:
        tmp = (color >> 24 & 255) / 255.0;
        break;
      case 7:
        tmp = (color >> 2 & 1023) / 1023.0;
        break;
      case 9:
        tmp = (color >> 2 & 1023) / 1023.0;
        break;
      case 8:
        tmp = (color >> 22 & 1023) / 1023.0;
        break;
      case 10:
        tmp = (color >> 22 & 1023) / 1023.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getB(int) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getA_4owldf_k$ = function (color) {
    var tmp;
    if (this.get_ordinal_ip24qg_k$() === 1) {
      tmp = (color & 255) / 255.0;
    } else {
      throw IllegalArgumentException_init_$Create$('getA(byte) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getA_tj0x77_k$ = function (color) {
    var tmp;
    if (this.get_ordinal_ip24qg_k$() === 3) {
      tmp = (color >> 12 & 15) / 15.0;
    } else {
      throw IllegalArgumentException_init_$Create$('getA(short) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).getA_tc1v0t_k$ = function (color) {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 4:
        tmp = (color & 255) / 255.0;
        break;
      case 6:
        tmp = (color & 255) / 255.0;
        break;
      case 7:
        tmp = (color & 3) / 3.0;
        break;
      case 8:
        tmp = (color & 3) / 3.0;
        break;
      default:
        throw IllegalArgumentException_init_$Create$('getA(int) is not supported on ColorType.' + this);
    }
    return tmp;
  };
  protoOf(ColorType).get_isAlwaysOpaque_c4qcf7_k$ = function () {
    return org_jetbrains_skia_ColorType__1nIsAlwaysOpaque(this.get_ordinal_ip24qg_k$());
  };
  function ColorType_UNKNOWN_getInstance() {
    ColorType_initEntries();
    return ColorType_UNKNOWN_instance;
  }
  function ColorType_ALPHA_8_getInstance() {
    ColorType_initEntries();
    return ColorType_ALPHA_8_instance;
  }
  function ColorType_RGB_565_getInstance() {
    ColorType_initEntries();
    return ColorType_RGB_565_instance;
  }
  function ColorType_ARGB_4444_getInstance() {
    ColorType_initEntries();
    return ColorType_ARGB_4444_instance;
  }
  function ColorType_RGBA_8888_getInstance() {
    ColorType_initEntries();
    return ColorType_RGBA_8888_instance;
  }
  function ColorType_RGB_888X_getInstance() {
    ColorType_initEntries();
    return ColorType_RGB_888X_instance;
  }
  function ColorType_BGRA_8888_getInstance() {
    ColorType_initEntries();
    return ColorType_BGRA_8888_instance;
  }
  function ColorType_RGBA_1010102_getInstance() {
    ColorType_initEntries();
    return ColorType_RGBA_1010102_instance;
  }
  function ColorType_BGRA_1010102_getInstance() {
    ColorType_initEntries();
    return ColorType_BGRA_1010102_instance;
  }
  function ColorType_RGB_101010X_getInstance() {
    ColorType_initEntries();
    return ColorType_RGB_101010X_instance;
  }
  function ColorType_BGR_101010X_getInstance() {
    ColorType_initEntries();
    return ColorType_BGR_101010X_instance;
  }
  function ColorType_GRAY_8_getInstance() {
    ColorType_initEntries();
    return ColorType_GRAY_8_instance;
  }
  function ColorType_RGBA_F16NORM_getInstance() {
    ColorType_initEntries();
    return ColorType_RGBA_F16NORM_instance;
  }
  function ColorType_RGBA_F16_getInstance() {
    ColorType_initEntries();
    return ColorType_RGBA_F16_instance;
  }
  function ColorType_RGBA_F32_getInstance() {
    ColorType_initEntries();
    return ColorType_RGBA_F32_instance;
  }
  function ColorType_R8G8_UNORM_getInstance() {
    ColorType_initEntries();
    return ColorType_R8G8_UNORM_instance;
  }
  function ColorType_A16_FLOAT_getInstance() {
    ColorType_initEntries();
    return ColorType_A16_FLOAT_instance;
  }
  function ColorType_R16G16_FLOAT_getInstance() {
    ColorType_initEntries();
    return ColorType_R16G16_FLOAT_instance;
  }
  function ColorType_A16_UNORM_getInstance() {
    ColorType_initEntries();
    return ColorType_A16_UNORM_instance;
  }
  function ColorType_R16G16_UNORM_getInstance() {
    ColorType_initEntries();
    return ColorType_R16G16_UNORM_instance;
  }
  function ColorType_R16G16B16A16_UNORM_getInstance() {
    ColorType_initEntries();
    return ColorType_R16G16B16A16_UNORM_instance;
  }
  function CubicResampler(b, c) {
    this.b_1 = b;
    this.c_1 = c;
  }
  protoOf(CubicResampler).get_b_1mhr5l_k$ = function () {
    return this.b_1;
  };
  protoOf(CubicResampler).get_c_1mhr5m_k$ = function () {
    return this.c_1;
  };
  protoOf(CubicResampler)._pack_1ia1a0_k$ = function () {
    var tmp = new Long(0, -2147483648);
    // Inline function 'kotlin.ULong.toLong' call
    // Inline function 'kotlin.ULong.or' call
    // Inline function 'kotlin.ULong.shl' call
    // Inline function 'kotlin.toULong' call
    var this_0 = toBits(this.b_1);
    var this_1 = _ULong___init__impl__c78o9k(toLong(this_0));
    var this_2 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_1).shl_bg8if3_k$(32));
    // Inline function 'kotlin.toULong' call
    var this_3 = toBits(this.c_1);
    var other = _ULong___init__impl__c78o9k(toLong(this_3));
    var this_4 = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(this_2).or_v7fvkl_k$(_ULong___get_data__impl__fggpzb(other)));
    var tmp$ret$4 = _ULong___get_data__impl__fggpzb(this_4);
    return tmp.or_v7fvkl_k$(tmp$ret$4);
  };
  protoOf(CubicResampler)._packedInt1_kbgj89_k$ = function () {
    return toBits(this.b_1) | -2147483648;
  };
  protoOf(CubicResampler)._packedInt2_kbgj8a_k$ = function () {
    return toBits(this.c_1);
  };
  protoOf(CubicResampler).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof CubicResampler))
      return false;
    if (!(compareTo(this.b_1, other.b_1) === 0))
      return false;
    return compareTo(this.c_1, other.c_1) === 0;
  };
  protoOf(CubicResampler).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.b_1) | 0;
    result = imul(result, PRIME) + toBits(this.c_1) | 0;
    return result;
  };
  protoOf(CubicResampler).toString = function () {
    return 'CubicResampler(_B=' + this.b_1 + ', _C=' + this.c_1 + ')';
  };
  function _set_underlyingMemoryOwner__rt5bo0($this, _set____db54di) {
    $this.underlyingMemoryOwner_1 = _set____db54di;
  }
  function _get_underlyingMemoryOwner__lniz8c($this) {
    return $this.underlyingMemoryOwner_1;
  }
  function Companion_7() {
    Companion_instance_7 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_7).makeFromBytes_p6mier_k$ = function (bytes, offset, length) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeFromBytes.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_Data__1nMakeFromBytes($this$interopScope.toInterop_h7cpet_k$(bytes), offset, length);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new Data(tmp$ret$1);
  };
  protoOf(Companion_7).makeFromBytes$default_1ffal6_k$ = function (bytes, offset, length, $super) {
    offset = offset === VOID ? 0 : offset;
    length = length === VOID ? bytes.length : length;
    return $super === VOID ? this.makeFromBytes_p6mier_k$(bytes, offset, length) : $super.makeFromBytes_p6mier_k$.call(this, bytes, offset, length);
  };
  protoOf(Companion_7).makeWithoutCopy_pf98no_k$ = function (memoryAddr, length, underlyingMemoryOwner) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    // Inline function 'kotlin.also' call
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeWithoutCopy.<anonymous>' call
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_Data__1nMakeWithoutCopy(memoryAddr, length);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var this_0 = new Data(tmp$ret$1);
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'org.jetbrains.skia.Companion.makeWithoutCopy.<anonymous>' call
    this_0.underlyingMemoryOwner_1 = underlyingMemoryOwner;
    return this_0;
  };
  protoOf(Companion_7).makeEmpty_kjipdr_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Data(org_jetbrains_skia_Data__1nMakeEmpty());
  };
  protoOf(Companion_7).makeUninitialized_88nlnv_k$ = function (length) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Data(org_jetbrains_skia_Data__1nMakeUninitialized(length));
  };
  var Companion_instance_7;
  function Companion_getInstance_8() {
    if (Companion_instance_7 == null)
      new Companion_7();
    return Companion_instance_7;
  }
  function _FinalizerHolder_3() {
    _FinalizerHolder_instance_3 = this;
    this.PTR_1 = org_jetbrains_skia_Data__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_3).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_3;
  function _FinalizerHolder_getInstance_3() {
    if (_FinalizerHolder_instance_3 == null)
      new _FinalizerHolder_3();
    return _FinalizerHolder_instance_3;
  }
  function Data(ptr) {
    Companion_getInstance_8();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_3().PTR_1);
    this.underlyingMemoryOwner_1 = null;
  }
  protoOf(Data).get_size_woubt6_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Data__1nSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Data).get_bytes_ipgzsy_k$ = function () {
    return this.getBytes_bisuet_k$(0, this.get_size_woubt6_k$());
  };
  protoOf(Data).getBytes_bisuet_k$ = function (offset, length) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'kotlin.check' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(org_jetbrains_skia_Data__1nSize(this.get__ptr_wohp4o_k$()) >= (offset + length | 0))) {
        // Inline function 'org.jetbrains.skia.Data.getBytes.<anonymous>' call
        var message = 'Data=' + this.get__ptr_wohp4o_k$() + ": Can't getBytes with offset=" + offset + ' and length=' + length;
        throw IllegalStateException_init_$Create$(toString(message));
      }
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int8Array(length);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_toi1ab_k$(result);
          // Inline function 'org.jetbrains.skia.Data.getBytes.<anonymous>' call
          org_jetbrains_skia_Data__1nBytes(this.get__ptr_wohp4o_k$(), offset, length, handle);
          $this$interopScope.fromInterop_40e3wn_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Data).equals = function (other) {
    var tmp0_elvis_lhs = other instanceof Data ? other : null;
    var tmp;
    if (tmp0_elvis_lhs == null) {
      return false;
    } else {
      tmp = tmp0_elvis_lhs;
    }
    var otherData = tmp;
    return this.nativeEquals_mxr6i0_k$(otherData);
  };
  protoOf(Data).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Data__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Data).makeSubset_v4hf3k_k$ = function (offset, length) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Data(org_jetbrains_skia_Data__1nMakeSubset(this.get__ptr_wohp4o_k$(), offset, length));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Data).makeCopy_ntk77_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Data(org_jetbrains_skia_Data__1nMakeSubset(this.get__ptr_wohp4o_k$(), 0, this.get_size_woubt6_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Data).writableData_rh05g6_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Data__1nWritableData(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function Companion_8() {
    Companion_instance_8 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_8).makeGL_hvwr71_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new DirectContext(org_jetbrains_skia_DirectContext__1nMakeGL());
  };
  protoOf(Companion_8).makeMetal_yro54p_k$ = function (devicePtr, queuePtr) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new DirectContext(org_jetbrains_skia_DirectContext__1nMakeMetal(devicePtr, queuePtr));
  };
  protoOf(Companion_8).makeDirect3D_wlh1w0_k$ = function (adapterPtr, devicePtr, queuePtr) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new DirectContext(org_jetbrains_skia_DirectContext__1nMakeDirect3D(adapterPtr, devicePtr, queuePtr));
  };
  var Companion_instance_8;
  function Companion_getInstance_9() {
    if (Companion_instance_8 == null)
      new Companion_8();
    return Companion_instance_8;
  }
  function DirectContext(ptr) {
    Companion_getInstance_9();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(DirectContext).flush_1m2gp0_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_DirectContext__1nFlush(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(DirectContext).resetAll_5sls8e_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_DirectContext__1nReset(this.get__ptr_wohp4o_k$(), -1);
    return this;
  };
  protoOf(DirectContext).resetGLAll_s40v3n_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_DirectContext__1nReset(this.get__ptr_wohp4o_k$(), 65535);
    return this;
  };
  protoOf(DirectContext).resetGL_em21g5_k$ = function (states) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var flags = 0;
    var inductionVariable = 0;
    var last = states.length;
    while (inductionVariable < last) {
      var state = states[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      flags = flags | state.get__bit_wohehj_k$();
    }
    org_jetbrains_skia_DirectContext__1nReset(this.get__ptr_wohp4o_k$(), flags);
    return this;
  };
  protoOf(DirectContext).submit_oowb43_k$ = function (syncCpu) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_DirectContext__1nSubmit(this.get__ptr_wohp4o_k$(), syncCpu);
  };
  protoOf(DirectContext).abandon_isa44b_k$ = function () {
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_DirectContext__1nAbandon(this.get__ptr_wohp4o_k$(), 0);
    }finally {
      reachabilityBarrier(this);
    }
  };
  function Companion_9() {
    Companion_instance_9 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_9;
  function Companion_getInstance_10() {
    if (Companion_instance_9 == null)
      new Companion_9();
    return Companion_instance_9;
  }
  function _set__bounds__twrzu9($this, _set____db54di) {
    $this._bounds_1 = _set____db54di;
  }
  function _get__bounds__4ajph9($this) {
    return $this._bounds_1;
  }
  function _get_boundsLock__n6kmx7($this) {
    return $this.boundsLock_1;
  }
  function _onDraw($this, canvasPtr) {
    $this.onDraw_nrst1d_k$(new Canvas(canvasPtr, false, $this));
  }
  function _FinalizerHolder_4() {
    _FinalizerHolder_instance_4 = this;
    this.PTR_1 = org_jetbrains_skia_Drawable__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_4).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_4;
  function _FinalizerHolder_getInstance_4() {
    if (_FinalizerHolder_instance_4 == null)
      new _FinalizerHolder_4();
    return _FinalizerHolder_instance_4;
  }
  function Drawable$_get_bounds_$lambda_m5b169(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Drawable__1nGetBounds(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Drawable() {
    Companion_getInstance_10();
    Managed.call(this, org_jetbrains_skia_Drawable__1nMake(), _FinalizerHolder_getInstance_4().PTR_1);
    this._bounds_1 = null;
    this.boundsLock_1 = Unit_getInstance();
    doInit(this, this.get__ptr_wohp4o_k$());
  }
  protoOf(Drawable).draw_vxas0i_k$ = function (canvas) {
    return this.draw_cn4o5t_k$(canvas, null);
  };
  protoOf(Drawable).draw_bzq5gu_k$ = function (canvas, x, y) {
    return this.draw_cn4o5t_k$(canvas, Companion_getInstance_32().makeTranslate_9v7aio_k$(x, y));
  };
  protoOf(Drawable).draw_cn4o5t_k$ = function (canvas, matrix) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = getPtr(canvas);
          org_jetbrains_skia_Drawable__1nDraw(tmp_0, tmp_1, $this$interopScope.toInterop_uum1m9_k$(matrix == null ? null : matrix.get_mat_18j0uh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(canvas);
    }
    return tmp;
  };
  protoOf(Drawable).makePictureSnapshot_rflcrw_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Picture(org_jetbrains_skia_Drawable__1nMakePictureSnapshot(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Drawable).get_generationId_x1e17g_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Drawable__1nGetGenerationId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Drawable).get_bounds_bj99ku_k$ = function () {
    // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
    if (this._bounds_1 == null) {
      var tmp = this;
      var tmp_0 = Companion_getInstance_45();
      tmp._bounds_1 = tmp_0.fromInteropPointer_2qty6v_k$(Drawable$_get_bounds_$lambda_m5b169(this));
    }
    return ensureNotNull(this._bounds_1);
  };
  protoOf(Drawable).notifyDrawingChanged_e2je01_k$ = function () {
    // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Drawable__1nNotifyDrawingChanged(this.get__ptr_wohp4o_k$());
    this._bounds_1 = null;
    return this;
  };
  var EncodedImageFormat_BMP_instance;
  var EncodedImageFormat_GIF_instance;
  var EncodedImageFormat_ICO_instance;
  var EncodedImageFormat_JPEG_instance;
  var EncodedImageFormat_PNG_instance;
  var EncodedImageFormat_WBMP_instance;
  var EncodedImageFormat_WEBP_instance;
  var EncodedImageFormat_PKM_instance;
  var EncodedImageFormat_KTX_instance;
  var EncodedImageFormat_ASTC_instance;
  var EncodedImageFormat_DNG_instance;
  var EncodedImageFormat_HEIF_instance;
  function values_4() {
    return [EncodedImageFormat_BMP_getInstance(), EncodedImageFormat_GIF_getInstance(), EncodedImageFormat_ICO_getInstance(), EncodedImageFormat_JPEG_getInstance(), EncodedImageFormat_PNG_getInstance(), EncodedImageFormat_WBMP_getInstance(), EncodedImageFormat_WEBP_getInstance(), EncodedImageFormat_PKM_getInstance(), EncodedImageFormat_KTX_getInstance(), EncodedImageFormat_ASTC_getInstance(), EncodedImageFormat_DNG_getInstance(), EncodedImageFormat_HEIF_getInstance()];
  }
  function valueOf_4(value) {
    switch (value) {
      case 'BMP':
        return EncodedImageFormat_BMP_getInstance();
      case 'GIF':
        return EncodedImageFormat_GIF_getInstance();
      case 'ICO':
        return EncodedImageFormat_ICO_getInstance();
      case 'JPEG':
        return EncodedImageFormat_JPEG_getInstance();
      case 'PNG':
        return EncodedImageFormat_PNG_getInstance();
      case 'WBMP':
        return EncodedImageFormat_WBMP_getInstance();
      case 'WEBP':
        return EncodedImageFormat_WEBP_getInstance();
      case 'PKM':
        return EncodedImageFormat_PKM_getInstance();
      case 'KTX':
        return EncodedImageFormat_KTX_getInstance();
      case 'ASTC':
        return EncodedImageFormat_ASTC_getInstance();
      case 'DNG':
        return EncodedImageFormat_DNG_getInstance();
      case 'HEIF':
        return EncodedImageFormat_HEIF_getInstance();
      default:
        EncodedImageFormat_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var EncodedImageFormat_entriesInitialized;
  function EncodedImageFormat_initEntries() {
    if (EncodedImageFormat_entriesInitialized)
      return Unit_getInstance();
    EncodedImageFormat_entriesInitialized = true;
    EncodedImageFormat_BMP_instance = new EncodedImageFormat('BMP', 0);
    EncodedImageFormat_GIF_instance = new EncodedImageFormat('GIF', 1);
    EncodedImageFormat_ICO_instance = new EncodedImageFormat('ICO', 2);
    EncodedImageFormat_JPEG_instance = new EncodedImageFormat('JPEG', 3);
    EncodedImageFormat_PNG_instance = new EncodedImageFormat('PNG', 4);
    EncodedImageFormat_WBMP_instance = new EncodedImageFormat('WBMP', 5);
    EncodedImageFormat_WEBP_instance = new EncodedImageFormat('WEBP', 6);
    EncodedImageFormat_PKM_instance = new EncodedImageFormat('PKM', 7);
    EncodedImageFormat_KTX_instance = new EncodedImageFormat('KTX', 8);
    EncodedImageFormat_ASTC_instance = new EncodedImageFormat('ASTC', 9);
    EncodedImageFormat_DNG_instance = new EncodedImageFormat('DNG', 10);
    EncodedImageFormat_HEIF_instance = new EncodedImageFormat('HEIF', 11);
  }
  function EncodedImageFormat(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function EncodedImageFormat_BMP_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_BMP_instance;
  }
  function EncodedImageFormat_GIF_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_GIF_instance;
  }
  function EncodedImageFormat_ICO_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_ICO_instance;
  }
  function EncodedImageFormat_JPEG_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_JPEG_instance;
  }
  function EncodedImageFormat_PNG_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_PNG_instance;
  }
  function EncodedImageFormat_WBMP_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_WBMP_instance;
  }
  function EncodedImageFormat_WEBP_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_WEBP_instance;
  }
  function EncodedImageFormat_PKM_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_PKM_instance;
  }
  function EncodedImageFormat_KTX_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_KTX_instance;
  }
  function EncodedImageFormat_ASTC_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_ASTC_instance;
  }
  function EncodedImageFormat_DNG_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_DNG_instance;
  }
  function EncodedImageFormat_HEIF_getInstance() {
    EncodedImageFormat_initEntries();
    return EncodedImageFormat_HEIF_instance;
  }
  var FilterBlurMode_NORMAL_instance;
  var FilterBlurMode_SOLID_instance;
  var FilterBlurMode_OUTER_instance;
  var FilterBlurMode_INNER_instance;
  function values_5() {
    return [FilterBlurMode_NORMAL_getInstance(), FilterBlurMode_SOLID_getInstance(), FilterBlurMode_OUTER_getInstance(), FilterBlurMode_INNER_getInstance()];
  }
  function valueOf_5(value) {
    switch (value) {
      case 'NORMAL':
        return FilterBlurMode_NORMAL_getInstance();
      case 'SOLID':
        return FilterBlurMode_SOLID_getInstance();
      case 'OUTER':
        return FilterBlurMode_OUTER_getInstance();
      case 'INNER':
        return FilterBlurMode_INNER_getInstance();
      default:
        FilterBlurMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FilterBlurMode_entriesInitialized;
  function FilterBlurMode_initEntries() {
    if (FilterBlurMode_entriesInitialized)
      return Unit_getInstance();
    FilterBlurMode_entriesInitialized = true;
    FilterBlurMode_NORMAL_instance = new FilterBlurMode('NORMAL', 0);
    FilterBlurMode_SOLID_instance = new FilterBlurMode('SOLID', 1);
    FilterBlurMode_OUTER_instance = new FilterBlurMode('OUTER', 2);
    FilterBlurMode_INNER_instance = new FilterBlurMode('INNER', 3);
  }
  function FilterBlurMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FilterBlurMode_NORMAL_getInstance() {
    FilterBlurMode_initEntries();
    return FilterBlurMode_NORMAL_instance;
  }
  function FilterBlurMode_SOLID_getInstance() {
    FilterBlurMode_initEntries();
    return FilterBlurMode_SOLID_instance;
  }
  function FilterBlurMode_OUTER_getInstance() {
    FilterBlurMode_initEntries();
    return FilterBlurMode_OUTER_instance;
  }
  function FilterBlurMode_INNER_getInstance() {
    FilterBlurMode_initEntries();
    return FilterBlurMode_INNER_instance;
  }
  function FilterMipmap(filterMode, mipmapMode) {
    mipmapMode = mipmapMode === VOID ? MipmapMode_NONE_getInstance() : mipmapMode;
    this.filterMode_1 = filterMode;
    this.mipmapMode_1 = mipmapMode;
  }
  protoOf(FilterMipmap).get_filterMode_p630zo_k$ = function () {
    return this.filterMode_1;
  };
  protoOf(FilterMipmap).get_mipmapMode_d1j3dg_k$ = function () {
    return this.mipmapMode_1;
  };
  protoOf(FilterMipmap)._pack_1ia1a0_k$ = function () {
    return toLong(this.filterMode_1.get_ordinal_ip24qg_k$()).shl_bg8if3_k$(32).or_v7fvkl_k$(toLong(this.mipmapMode_1.get_ordinal_ip24qg_k$()));
  };
  protoOf(FilterMipmap)._packedInt1_kbgj89_k$ = function () {
    return this.filterMode_1.get_ordinal_ip24qg_k$();
  };
  protoOf(FilterMipmap)._packedInt2_kbgj8a_k$ = function () {
    return this.mipmapMode_1.get_ordinal_ip24qg_k$();
  };
  protoOf(FilterMipmap).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FilterMipmap))
      return false;
    if (!this.filterMode_1.equals(other.filterMode_1))
      return false;
    return this.mipmapMode_1.equals(other.mipmapMode_1);
  };
  protoOf(FilterMipmap).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.filterMode_1.hashCode() | 0;
    result = imul(result, PRIME) + this.mipmapMode_1.hashCode() | 0;
    return result;
  };
  protoOf(FilterMipmap).toString = function () {
    return 'FilterMipmap(_filterMode=' + this.filterMode_1 + ', _mipmapMode=' + this.mipmapMode_1 + ')';
  };
  var FilterMode_NEAREST_instance;
  var FilterMode_LINEAR_instance;
  function values_6() {
    return [FilterMode_NEAREST_getInstance(), FilterMode_LINEAR_getInstance()];
  }
  function valueOf_6(value) {
    switch (value) {
      case 'NEAREST':
        return FilterMode_NEAREST_getInstance();
      case 'LINEAR':
        return FilterMode_LINEAR_getInstance();
      default:
        FilterMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FilterMode_entriesInitialized;
  function FilterMode_initEntries() {
    if (FilterMode_entriesInitialized)
      return Unit_getInstance();
    FilterMode_entriesInitialized = true;
    FilterMode_NEAREST_instance = new FilterMode('NEAREST', 0);
    FilterMode_LINEAR_instance = new FilterMode('LINEAR', 1);
  }
  function FilterMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FilterMode_NEAREST_getInstance() {
    FilterMode_initEntries();
    return FilterMode_NEAREST_instance;
  }
  function FilterMode_LINEAR_getInstance() {
    FilterMode_initEntries();
    return FilterMode_LINEAR_instance;
  }
  var FilterTileMode_CLAMP_instance;
  var FilterTileMode_REPEAT_instance;
  var FilterTileMode_MIRROR_instance;
  var FilterTileMode_DECAL_instance;
  function values_7() {
    return [FilterTileMode_CLAMP_getInstance(), FilterTileMode_REPEAT_getInstance(), FilterTileMode_MIRROR_getInstance(), FilterTileMode_DECAL_getInstance()];
  }
  function valueOf_7(value) {
    switch (value) {
      case 'CLAMP':
        return FilterTileMode_CLAMP_getInstance();
      case 'REPEAT':
        return FilterTileMode_REPEAT_getInstance();
      case 'MIRROR':
        return FilterTileMode_MIRROR_getInstance();
      case 'DECAL':
        return FilterTileMode_DECAL_getInstance();
      default:
        FilterTileMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FilterTileMode_entriesInitialized;
  function FilterTileMode_initEntries() {
    if (FilterTileMode_entriesInitialized)
      return Unit_getInstance();
    FilterTileMode_entriesInitialized = true;
    FilterTileMode_CLAMP_instance = new FilterTileMode('CLAMP', 0);
    FilterTileMode_REPEAT_instance = new FilterTileMode('REPEAT', 1);
    FilterTileMode_MIRROR_instance = new FilterTileMode('MIRROR', 2);
    FilterTileMode_DECAL_instance = new FilterTileMode('DECAL', 3);
  }
  function FilterTileMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FilterTileMode_CLAMP_getInstance() {
    FilterTileMode_initEntries();
    return FilterTileMode_CLAMP_instance;
  }
  function FilterTileMode_REPEAT_getInstance() {
    FilterTileMode_initEntries();
    return FilterTileMode_REPEAT_instance;
  }
  function FilterTileMode_MIRROR_getInstance() {
    FilterTileMode_initEntries();
    return FilterTileMode_MIRROR_instance;
  }
  function FilterTileMode_DECAL_getInstance() {
    FilterTileMode_initEntries();
    return FilterTileMode_DECAL_instance;
  }
  function Companion_10() {
    Companion_instance_10 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_10).makeClone_j6bnh3_k$ = function (ptr) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return Font_init_$Create$(org_jetbrains_skia_Font__1nMakeClone(ptr));
  };
  var Companion_instance_10;
  function Companion_getInstance_11() {
    if (Companion_instance_10 == null)
      new Companion_10();
    return Companion_instance_10;
  }
  function Font_init_$Init$(ptr, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_5().PTR_1);
    Font.call($this);
    return $this;
  }
  function Font_init_$Create$(ptr) {
    return Font_init_$Init$(ptr, objectCreate(protoOf(Font)));
  }
  function Font_init_$Init$_0(ptr, managed, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_5().PTR_1, managed);
    Font.call($this);
    return $this;
  }
  function Font_init_$Create$_0(ptr, managed) {
    return Font_init_$Init$_0(ptr, managed, objectCreate(protoOf(Font)));
  }
  function Font_init_$Init$_1($this) {
    Font_init_$Init$(org_jetbrains_skia_Font__1nMakeDefault(), $this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function Font_init_$Create$_1() {
    return Font_init_$Init$_1(objectCreate(protoOf(Font)));
  }
  function Font_init_$Init$_2(typeface, $this) {
    Font_init_$Init$(org_jetbrains_skia_Font__1nMakeTypeface(getPtr(typeface)), $this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    reachabilityBarrier(typeface);
    return $this;
  }
  function Font_init_$Create$_2(typeface) {
    return Font_init_$Init$_2(typeface, objectCreate(protoOf(Font)));
  }
  function Font_init_$Init$_3(typeface, size, $this) {
    Font_init_$Init$(org_jetbrains_skia_Font__1nMakeTypefaceSize(getPtr(typeface), size), $this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    reachabilityBarrier(typeface);
    return $this;
  }
  function Font_init_$Create$_3(typeface, size) {
    return Font_init_$Init$_3(typeface, size, objectCreate(protoOf(Font)));
  }
  function Font_init_$Init$_4(typeface, size, scaleX, skewX, $this) {
    Font_init_$Init$(org_jetbrains_skia_Font__1nMakeTypefaceSizeScaleSkew(getPtr(typeface), size, scaleX, skewX), $this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    reachabilityBarrier(typeface);
    return $this;
  }
  function Font_init_$Create$_4(typeface, size, scaleX, skewX) {
    return Font_init_$Init$_4(typeface, size, scaleX, skewX, objectCreate(protoOf(Font)));
  }
  function _FinalizerHolder_5() {
    _FinalizerHolder_instance_5 = this;
    this.PTR_1 = org_jetbrains_skia_Font__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_5).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_5;
  function _FinalizerHolder_getInstance_5() {
    if (_FinalizerHolder_instance_5 == null)
      new _FinalizerHolder_5();
    return _FinalizerHolder_instance_5;
  }
  function Font$measureText$lambda(this$0, $s, $p) {
    return function ($this$fromInteropPointer, it) {
      var tmp = this$0.get__ptr_wohp4o_k$();
      var tmp_0 = $this$fromInteropPointer.toInterop_ok8jph_k$($s);
      var tmp0_safe_receiver = $s;
      var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.length;
      org_jetbrains_skia_Font__1nMeasureText(tmp, tmp_0, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, getPtr($p), it);
      return Unit_getInstance();
    };
  }
  function Font$getBounds$lambda(this$0, $glyphs, $p) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Font__1nGetBounds(this$0.get__ptr_wohp4o_k$(), $this$fromInteropPointer.toInterop_jg6tf3_k$($glyphs), $glyphs.length, getPtr($p), it);
      return Unit_getInstance();
    };
  }
  function Font$_get_metrics_$lambda_bxy7iq(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Font__1nGetMetrics(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  protoOf(Font).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Font__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Font).set_isAutoHintingForced_hyvih5_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetAutoHintingForced(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_isAutoHintingForced_s768tq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nIsAutoHintingForced(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).areBitmapsEmbedded_own12e_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nAreBitmapsEmbedded(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).setBitmapsEmbedded_de1a2x_k$ = function (value) {
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetBitmapsEmbedded(this.get__ptr_wohp4o_k$(), value);
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(Font).set_isSubpixel_axpii0_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetSubpixel(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_isSubpixel_3llq1l_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nIsSubpixel(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).areMetricsLinear_726pf0_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nAreMetricsLinear(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_isEmboldened_a014h3_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetEmboldened(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_isEmboldened_xvg5yw_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nIsEmboldened(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_isBaselineSnapped_2s5gd8_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetBaselineSnapped(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_isBaselineSnapped_weeo8j_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nIsBaselineSnapped(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_edging_tomfr5_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetEdging(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_edging_cs3cxv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_8()[org_jetbrains_skia_Font__1nGetEdging(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_hinting_edtsy_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetHinting(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_hinting_gio9hu_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_9()[org_jetbrains_skia_Font__1nGetHinting(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).makeWithSize_car883_k$ = function (size) {
    return Font_init_$Create$_4(this.get_typeface_s1tqao_k$(), size, this.get_scaleX_je2hxz_k$(), this.get_skewX_iyk9d1_k$());
  };
  protoOf(Font).get_typeface_s1tqao_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Font__1nGetTypeface(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_typefaceOrDefault_alvtlu_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Typeface(org_jetbrains_skia_Font__1nGetTypefaceOrDefault(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_size_469jh2_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetSize(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_size_woubt6_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nGetSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_scaleX_ykjjzx_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetScaleX(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_scaleX_je2hxz_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nGetScaleX(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).set_skewX_dqtgmh_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetSkewX(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_skewX_iyk9d1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nGetSkewX(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).setTypeface_25b4vv_k$ = function (typeface) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Font__1nSetTypeface(this.get__ptr_wohp4o_k$(), getPtr(typeface));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(typeface);
    }
    return tmp;
  };
  protoOf(Font).getStringGlyphs_iwygok_k$ = function (s) {
    return this.getUTF32Glyphs_wjpetp_k$(intCodePoints(s));
  };
  protoOf(Font).getUTF32Glyphs_wjpetp_k$ = function (uni) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (uni == null) {
        // Inline function 'kotlin.shortArrayOf' call
        tmp_0 = new Int16Array([]);
      } else {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Int16Array(uni.length);
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
            // Inline function 'org.jetbrains.skia.Font.getUTF32Glyphs.<anonymous>' call
            org_jetbrains_skia_Font__1nGetUTF32Glyphs(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_i7skn2_k$(uni), uni.length, handle);
            $this$interopScope.fromInterop_awvpm7_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = result;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getUTF32Glyph_sauiec_k$ = function (unichar) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nGetUTF32Glyph(this.get__ptr_wohp4o_k$(), unichar);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getStringGlyphsCount_66p1qe_k$ = function (s) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Font.getStringGlyphsCount.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = $this$interopScope.toInterop_ok8jph_k$(s);
          var tmp1_elvis_lhs = s == null ? null : s.length;
          tmp$ret$1 = org_jetbrains_skia_Font__1nGetStringGlyphsCount(tmp_0, tmp_1, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).measureText_g7rprs_k$ = function (s, p) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Font$measureText$lambda(this, s, p));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(p);
    }
    return tmp;
  };
  protoOf(Font).measureText$default_uvn9lt_k$ = function (s, p, $super) {
    p = p === VOID ? null : p;
    return $super === VOID ? this.measureText_g7rprs_k$(s, p) : $super.measureText_g7rprs_k$.call(this, s, p);
  };
  protoOf(Font).measureTextWidth_xa0hck_k$ = function (s) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return this.measureTextWidth_xgtvy0_k$(s, null);
  };
  protoOf(Font).measureTextWidth_xgtvy0_k$ = function (s, p) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Font.measureTextWidth.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = $this$interopScope.toInterop_ok8jph_k$(s);
          var tmp1_elvis_lhs = s == null ? null : s.length;
          tmp$ret$1 = org_jetbrains_skia_Font__1nMeasureTextWidth(tmp_0, tmp_1, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, getPtr(p));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(p);
    }
    return tmp;
  };
  protoOf(Font).getWidths_twpd9u_k$ = function (glyphs) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (glyphs == null) {
        // Inline function 'kotlin.floatArrayOf' call
        return new Float32Array([]);
      } else {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Float32Array(glyphs.length);
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
            // Inline function 'org.jetbrains.skia.Font.getWidths.<anonymous>' call
            org_jetbrains_skia_Font__1nGetWidths(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, handle);
            $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = result;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getBounds_jp1woq_k$ = function (glyphs) {
    return this.getBounds_fnkdr6_k$(glyphs, null);
  };
  protoOf(Font).getBounds_fnkdr6_k$ = function (glyphs, p) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (glyphs == null) {
        // Inline function 'kotlin.emptyArray' call
        tmp_0 = [];
      } else {
        var tmp_1 = Companion_getInstance_45();
        var tmp_2 = imul(glyphs.length, 4);
        tmp_0 = tmp_1.fromInteropPointer_n7oap9_k$(tmp_2, Font$getBounds$lambda(this, glyphs, p));
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(p);
    }
    return tmp;
  };
  protoOf(Font).getPositions_wq5khp_k$ = function (glyphs) {
    return this.getPositions_8ee2ia_k$(glyphs, new Point(0.0, 0.0));
  };
  protoOf(Font).getPositions_8ee2ia_k$ = function (glyphs, offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (glyphs == null) {
        // Inline function 'kotlin.emptyArray' call
        tmp_0 = [];
      } else {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Float32Array(imul(glyphs.length, 2));
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
            // Inline function 'org.jetbrains.skia.Font.getPositions.<anonymous>' call
            org_jetbrains_skia_Font__1nGetPositions(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, offset.get_x_1mhr67_k$(), offset.get_y_1mhr68_k$(), handle);
            $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        var positionsData = result;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, glyphs.length);
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Font.getPositions.<anonymous>' call
          var tmp$ret$4 = new Point(positionsData[imul(2, item)], positionsData[imul(2, item) + 1 | 0]);
          destination.add_utx5q5_k$(tmp$ret$4);
        }
        tmp_0 = copyToArray(destination);
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getXPositions_upq2on_k$ = function (glyphs) {
    return this.getXPositions_db979d_k$(glyphs, 0.0);
  };
  protoOf(Font).getXPositions_db979d_k$ = function (glyphs, offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (glyphs == null) {
        // Inline function 'kotlin.floatArrayOf' call
        tmp_0 = new Float32Array([]);
      } else {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Float32Array(glyphs.length);
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
            // Inline function 'org.jetbrains.skia.Font.getXPositions.<anonymous>' call
            org_jetbrains_skia_Font__1nGetXPositions(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_jg6tf3_k$(glyphs), offset, glyphs.length, handle);
            $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = result;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getPath_2islj7_k$ = function (glyph) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Font__1nGetPath(this.get__ptr_wohp4o_k$(), glyph);
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Path(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).getPaths_uud9bt_k$ = function (glyphs) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.arrayDecoderScope' call
      var arrayDecoder = null;
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.Font.getPaths.<anonymous>' call
        var tmp$ret$1;
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.Font.getPaths.<anonymous>.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var tmp_1 = this.get__ptr_wohp4o_k$();
            var tmp_2 = $this$interopScope.toInterop_jg6tf3_k$(glyphs);
            var tmp1_elvis_lhs = glyphs == null ? null : glyphs.length;
            tmp$ret$1 = org_jetbrains_skia_Font__1nGetPaths(tmp_1, tmp_2, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        arrayDecoder = new ArrayDecoder(tmp$ret$1, org_jetbrains_skia_Path__1nGetFinalizer());
        // Inline function 'org.jetbrains.skia.Font.getPaths.<anonymous>' call
        var arrayDecoder_0 = arrayDecoder;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, arrayDecoder_0.get_size_woubt6_k$());
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Font.getPaths.<anonymous>.<anonymous>' call
          var tmp$ret$3 = new Path(arrayDecoder_0.release_fo34vl_k$(item));
          destination.add_utx5q5_k$(tmp$ret$3);
        }
        tmp_0 = copyToArray(destination);
      }finally {
        var tmp0_safe_receiver = arrayDecoder;
        if (tmp0_safe_receiver == null)
          null;
        else {
          tmp0_safe_receiver.dispose_3nnxhr_k$();
        }
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_metrics_h2mme2_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_13();
      tmp = fromInteropPointer(tmp_0, Font$_get_metrics_$lambda_bxy7iq(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Font).get_spacing_w0flpi_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Font__1nGetSpacing(this.get__ptr_wohp4o_k$(), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function Font() {
    Companion_getInstance_11();
  }
  var FontEdging_ALIAS_instance;
  var FontEdging_ANTI_ALIAS_instance;
  var FontEdging_SUBPIXEL_ANTI_ALIAS_instance;
  function values_8() {
    return [FontEdging_ALIAS_getInstance(), FontEdging_ANTI_ALIAS_getInstance(), FontEdging_SUBPIXEL_ANTI_ALIAS_getInstance()];
  }
  function valueOf_8(value) {
    switch (value) {
      case 'ALIAS':
        return FontEdging_ALIAS_getInstance();
      case 'ANTI_ALIAS':
        return FontEdging_ANTI_ALIAS_getInstance();
      case 'SUBPIXEL_ANTI_ALIAS':
        return FontEdging_SUBPIXEL_ANTI_ALIAS_getInstance();
      default:
        FontEdging_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FontEdging_entriesInitialized;
  function FontEdging_initEntries() {
    if (FontEdging_entriesInitialized)
      return Unit_getInstance();
    FontEdging_entriesInitialized = true;
    FontEdging_ALIAS_instance = new FontEdging('ALIAS', 0);
    FontEdging_ANTI_ALIAS_instance = new FontEdging('ANTI_ALIAS', 1);
    FontEdging_SUBPIXEL_ANTI_ALIAS_instance = new FontEdging('SUBPIXEL_ANTI_ALIAS', 2);
  }
  function FontEdging(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FontEdging_ALIAS_getInstance() {
    FontEdging_initEntries();
    return FontEdging_ALIAS_instance;
  }
  function FontEdging_ANTI_ALIAS_getInstance() {
    FontEdging_initEntries();
    return FontEdging_ANTI_ALIAS_instance;
  }
  function FontEdging_SUBPIXEL_ANTI_ALIAS_getInstance() {
    FontEdging_initEntries();
    return FontEdging_SUBPIXEL_ANTI_ALIAS_instance;
  }
  function FontFamilyName(name, language) {
    this.name_1 = name;
    this.language_1 = language;
  }
  protoOf(FontFamilyName).get_name_woqyms_k$ = function () {
    return this.name_1;
  };
  protoOf(FontFamilyName).get_language_cjhhk1_k$ = function () {
    return this.language_1;
  };
  protoOf(FontFamilyName).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontFamilyName))
      return false;
    if (!(this.name_1 === other.name_1))
      return false;
    return this.language_1 === other.language_1;
  };
  protoOf(FontFamilyName).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + getStringHashCode(this.name_1) | 0;
    result = imul(result, PRIME) + getStringHashCode(this.language_1) | 0;
    return result;
  };
  protoOf(FontFamilyName).toString = function () {
    return 'FontFamilyName(_name=' + this.name_1 + ', _language=' + this.language_1 + ')';
  };
  function _get_signIx__1asypr($this) {
    return $this.signIx_1;
  }
  function _get_tagIx__b2av08($this) {
    return $this.tagIx_1;
  }
  function _get_startIx__e3d69s($this) {
    return $this.startIx_1;
  }
  function _get_endIx__hyvs61($this) {
    return $this.endIx_1;
  }
  function _get_valueIx__bu6nwx($this) {
    return $this.valueIx_1;
  }
  function FontFeature$Companion$parseW3$lambda(it) {
    // Inline function 'kotlin.text.trim' call
    var tmp$ret$0 = toString(trim(isCharSequence(it) ? it : THROW_CCE()));
    var parts = split(tmp$ret$0, [' ']);
    var name = parts.get_c1px32_k$(0);
    var value = getOrNull(parts, 1);
    var tmp;
    switch (value) {
      case 'on':
      case null:
        tmp = 1;
        break;
      case 'off':
        tmp = 0;
        break;
      default:
        var tmp0_elvis_lhs = toIntOrNull(value);
        tmp = tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs;
        break;
    }
    var value_0 = tmp;
    return name.length === 4 ? FontFeature_init_$Create$_0(name, value_0) : null;
  }
  function FontFeature_init_$Init$(feature, value, start, end, $this) {
    FontFeature.call($this, Companion_getInstance_20().fromString_g5hge7_k$(feature), value, start, end);
    return $this;
  }
  function FontFeature_init_$Create$(feature, value, start, end) {
    return FontFeature_init_$Init$(feature, value, start, end, objectCreate(protoOf(FontFeature)));
  }
  function FontFeature_init_$Init$_0(feature, value, $this) {
    FontFeature.call($this, Companion_getInstance_20().fromString_g5hge7_k$(feature), value, _UInt___init__impl__l7qpdl(0), _UInt___init__impl__l7qpdl(-1));
    return $this;
  }
  function FontFeature_init_$Create$_0(feature, value) {
    return FontFeature_init_$Init$_0(feature, value, objectCreate(protoOf(FontFeature)));
  }
  function FontFeature_init_$Init$_1(feature, value, $this) {
    FontFeature.call($this, Companion_getInstance_20().fromString_g5hge7_k$(feature), value ? 1 : 0, _UInt___init__impl__l7qpdl(0), _UInt___init__impl__l7qpdl(-1));
    return $this;
  }
  function FontFeature_init_$Create$_1(feature, value) {
    return FontFeature_init_$Init$_1(feature, value, objectCreate(protoOf(FontFeature)));
  }
  function FontFeature_init_$Init$_2(feature, $this) {
    FontFeature.call($this, Companion_getInstance_20().fromString_g5hge7_k$(feature), 1, _UInt___init__impl__l7qpdl(0), _UInt___init__impl__l7qpdl(-1));
    return $this;
  }
  function FontFeature_init_$Create$_2(feature) {
    return FontFeature_init_$Init$_2(feature, objectCreate(protoOf(FontFeature)));
  }
  function Companion_11() {
    Companion_instance_11 = this;
    this.GLOBAL_START_1 = _UInt___init__impl__l7qpdl(0);
    this.GLOBAL_END_1 = _UInt___init__impl__l7qpdl(-1);
    var tmp = this;
    // Inline function 'kotlin.arrayOfNulls' call
    tmp.EMPTY_1 = fillArrayVal(Array(0), null);
    this._splitPattern_1 = compilePattern('\\s+');
    this._featurePattern_1 = compilePattern('([-+])?([a-z0-9]{4})(?:\\[(\\d+)?:(\\d+)?\\])?(?:=(\\d+))?');
    this.signIx_1 = 1;
    this.tagIx_1 = 2;
    this.startIx_1 = 3;
    this.endIx_1 = 4;
    this.valueIx_1 = 5;
  }
  protoOf(Companion_11).get_GLOBAL_START_sjm7kl_k$ = function () {
    return this.GLOBAL_START_1;
  };
  protoOf(Companion_11).get_GLOBAL_END_dfgyuq_k$ = function () {
    return this.GLOBAL_END_1;
  };
  protoOf(Companion_11).get_EMPTY_i8q41w_k$ = function () {
    return this.EMPTY_1;
  };
  protoOf(Companion_11).get__splitPattern_gpup58_k$ = function () {
    return this._splitPattern_1;
  };
  protoOf(Companion_11).get__featurePattern_h3499s_k$ = function () {
    return this._featurePattern_1;
  };
  protoOf(Companion_11).parseOne_zbf36v_k$ = function (s) {
    var m = this._featurePattern_1.matcher_mwr1qt_k$(s);
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!m.matches_dwml9v_k$()) {
      // Inline function 'org.jetbrains.skia.Companion.parseOne.<anonymous>' call
      var message = 'Can\u2019t parse FontFeature: ' + s;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    var value = !(m.group_u7j3zt_k$(5) == null) ? toInt(ensureNotNull(m.group_u7j3zt_k$(5))) : m.group_u7j3zt_k$(1) == null ? 1 : '-' === m.group_u7j3zt_k$(1) ? 0 : 1;
    var start = m.group_u7j3zt_k$(3) == null ? _UInt___init__impl__l7qpdl(0) : toUInt(ensureNotNull(m.group_u7j3zt_k$(3)));
    var end = m.group_u7j3zt_k$(4) == null ? _UInt___init__impl__l7qpdl(-1) : toUInt(ensureNotNull(m.group_u7j3zt_k$(4)));
    return FontFeature_init_$Create$(ensureNotNull(m.group_u7j3zt_k$(2)), value, start, end);
  };
  protoOf(Companion_11).parse_pc1q8p_k$ = function (str) {
    // Inline function 'kotlin.collections.toTypedArray' call
    // Inline function 'kotlin.collections.map' call
    var this_0 = this._splitPattern_1.split_w9zaf1_k$(str);
    // Inline function 'kotlin.collections.mapTo' call
    var destination = ArrayList_init_$Create$(this_0.length);
    var inductionVariable = 0;
    var last = this_0.length;
    while (inductionVariable < last) {
      var item = this_0[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      // Inline function 'org.jetbrains.skia.Companion.parse.<anonymous>' call
      var tmp$ret$0 = Companion_getInstance_12().parseOne_zbf36v_k$(item);
      destination.add_utx5q5_k$(tmp$ret$0);
    }
    return copyToArray(destination);
  };
  protoOf(Companion_11).parseW3_f4iaol_k$ = function (str) {
    // Inline function 'kotlin.collections.toTypedArray' call
    var tmp = splitToSequence(str, [',']);
    var this_0 = toList(mapNotNull(tmp, FontFeature$Companion$parseW3$lambda));
    return copyToArray(this_0);
  };
  protoOf(Companion_11).arrayOfFontFeaturesToInterop_2tlmgk_k$ = function (_this__u8e3s4, fontFeatures) {
    var tmp1_elvis_lhs = fontFeatures == null ? null : fontFeatures.length;
    var ints = new Int32Array(imul(4, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs));
    if (fontFeatures == null)
      null;
    else {
      // Inline function 'kotlin.collections.forEachIndexed' call
      var index = 0;
      var inductionVariable = 0;
      var last = fontFeatures.length;
      while (inductionVariable < last) {
        var item = fontFeatures[inductionVariable];
        inductionVariable = inductionVariable + 1 | 0;
        // Inline function 'org.jetbrains.skia.Companion.arrayOfFontFeaturesToInterop.<anonymous>' call
        var tmp1 = index;
        index = tmp1 + 1 | 0;
        var j = imul(tmp1, 4);
        ints[j] = item._tag_1;
        ints[j + 1 | 0] = item.value_1;
        var tmp = j + 2 | 0;
        // Inline function 'kotlin.UInt.toInt' call
        var this_0 = item.start_1;
        ints[tmp] = _UInt___get_data__impl__f0vqqw(this_0);
        var tmp_0 = j + 3 | 0;
        // Inline function 'kotlin.UInt.toInt' call
        var this_1 = item.end_1;
        ints[tmp_0] = _UInt___get_data__impl__f0vqqw(this_1);
      }
    }
    return _this__u8e3s4.toInterop_i7skn2_k$(ints);
  };
  protoOf(Companion_11).fromInteropEncodedBy2Ints_rkgp1j_k$ = function (fontFeatures) {
    var featuresCount = fontFeatures.length / 2 | 0;
    var tmp = 0;
    // Inline function 'kotlin.arrayOfNulls' call
    var tmp_0 = fillArrayVal(Array(featuresCount), null);
    while (tmp < featuresCount) {
      var tmp_1 = tmp;
      var j = imul(tmp_1, 2);
      tmp_0[tmp_1] = new FontFeature(fontFeatures[j], fontFeatures[j + 1 | 0], _UInt___init__impl__l7qpdl(0), _UInt___init__impl__l7qpdl(-1));
      tmp = tmp + 1 | 0;
    }
    return tmp_0;
  };
  var Companion_instance_11;
  function Companion_getInstance_12() {
    if (Companion_instance_11 == null)
      new Companion_11();
    return Companion_instance_11;
  }
  function FontFeature(_tag, value, start, end) {
    Companion_getInstance_12();
    this._tag_1 = _tag;
    this.value_1 = value;
    this.start_1 = start;
    this.end_1 = end;
  }
  protoOf(FontFeature).get__tag_wohrms_k$ = function () {
    return this._tag_1;
  };
  protoOf(FontFeature).get_value_j01efc_k$ = function () {
    return this.value_1;
  };
  protoOf(FontFeature).get_start_qjwd9b_k$ = function () {
    return this.start_1;
  };
  protoOf(FontFeature).get_end_l6o3mg_k$ = function () {
    return this.end_1;
  };
  protoOf(FontFeature).get_tag_18ivnz_k$ = function () {
    return Companion_getInstance_20().toString_w4mr8s_k$(this._tag_1);
  };
  protoOf(FontFeature).toString = function () {
    var range = '';
    var tmp;
    // Inline function 'kotlin.UInt.compareTo' call
    var this_0 = this.start_1;
    var other = _UInt___init__impl__l7qpdl(0);
    if (uintCompare(_UInt___get_data__impl__f0vqqw(this_0), _UInt___get_data__impl__f0vqqw(other)) > 0) {
      tmp = true;
    } else {
      // Inline function 'kotlin.UInt.compareTo' call
      var this_1 = this.end_1;
      var other_0 = Companion_getInstance().get_MAX_VALUE_bmdakz_k$();
      tmp = uintCompare(_UInt___get_data__impl__f0vqqw(this_1), _UInt___get_data__impl__f0vqqw(other_0)) < 0;
    }
    if (tmp) {
      var tmp_0;
      // Inline function 'kotlin.UInt.compareTo' call
      var this_2 = this.start_1;
      var other_1 = _UInt___init__impl__l7qpdl(0);
      if (uintCompare(_UInt___get_data__impl__f0vqqw(this_2), _UInt___get_data__impl__f0vqqw(other_1)) > 0) {
        tmp_0 = new UInt(this.start_1);
      } else {
        tmp_0 = '';
      }
      var tmp_1 = '[' + tmp_0 + ':';
      var tmp_2;
      // Inline function 'kotlin.UInt.compareTo' call
      var this_3 = this.end_1;
      var other_2 = Companion_getInstance().get_MAX_VALUE_bmdakz_k$();
      if (uintCompare(_UInt___get_data__impl__f0vqqw(this_3), _UInt___get_data__impl__f0vqqw(other_2)) < 0) {
        tmp_2 = new UInt(this.end_1);
      } else {
        tmp_2 = '';
      }
      range = tmp_1 + toString(tmp_2) + ']';
    }
    var valuePrefix = '';
    var valueSuffix = '';
    if (this.value_1 === 0)
      valuePrefix = '-';
    else if (this.value_1 === 1)
      valuePrefix = '+';
    else
      valueSuffix = '=' + this.value_1;
    return 'FontFeature(' + valuePrefix + this._tag_1 + range + valueSuffix + ')';
  };
  protoOf(FontFeature).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontFeature))
      return false;
    if (!(this.get_tag_18ivnz_k$() === other.get_tag_18ivnz_k$()))
      return false;
    if (!(this.value_1 === other.value_1))
      return false;
    if (!(this.start_1 === other.start_1))
      return false;
    return this.end_1 === other.end_1;
  };
  protoOf(FontFeature).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this._tag_1 | 0;
    result = imul(result, PRIME) + this.value_1 | 0;
    var tmp = imul(result, PRIME);
    // Inline function 'kotlin.UInt.toInt' call
    // Inline function 'kotlin.UInt.xor' call
    // Inline function 'kotlin.UInt.shr' call
    var this_0 = this.start_1;
    var this_1 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_0) >>> 16 | 0);
    var other = this.start_1;
    var this_2 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_1) ^ _UInt___get_data__impl__f0vqqw(other));
    result = tmp + _UInt___get_data__impl__f0vqqw(this_2) | 0;
    var tmp_0 = imul(result, PRIME);
    // Inline function 'kotlin.UInt.toInt' call
    // Inline function 'kotlin.UInt.xor' call
    // Inline function 'kotlin.UInt.shr' call
    var this_3 = this.end_1;
    var this_4 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_3) >>> 16 | 0);
    var other_0 = this.end_1;
    var this_5 = _UInt___init__impl__l7qpdl(_UInt___get_data__impl__f0vqqw(this_4) ^ _UInt___get_data__impl__f0vqqw(other_0));
    result = tmp_0 + _UInt___get_data__impl__f0vqqw(this_5) | 0;
    return result;
  };
  protoOf(FontFeature).toInteropIntArray_qnb5ak_k$ = function () {
    // Inline function 'kotlin.intArrayOf' call
    // Inline function 'kotlin.UInt.toInt' call
    var this_0 = this.start_1;
    var tmp = _UInt___get_data__impl__f0vqqw(this_0);
    // Inline function 'kotlin.UInt.toInt' call
    var this_1 = this.end_1;
    var tmp$ret$1 = _UInt___get_data__impl__f0vqqw(this_1);
    return new Int32Array([this._tag_1, this.value_1, tmp, tmp$ret$1]);
  };
  protoOf(FontFeature).toInterop_cyi1hz_k$ = function (_this__u8e3s4) {
    return _this__u8e3s4.toInterop_i7skn2_k$(this.toInteropIntArray_qnb5ak_k$());
  };
  var FontHinting_NONE_instance;
  var FontHinting_SLIGHT_instance;
  var FontHinting_NORMAL_instance;
  var FontHinting_FULL_instance;
  function values_9() {
    return [FontHinting_NONE_getInstance(), FontHinting_SLIGHT_getInstance(), FontHinting_NORMAL_getInstance(), FontHinting_FULL_getInstance()];
  }
  function valueOf_9(value) {
    switch (value) {
      case 'NONE':
        return FontHinting_NONE_getInstance();
      case 'SLIGHT':
        return FontHinting_SLIGHT_getInstance();
      case 'NORMAL':
        return FontHinting_NORMAL_getInstance();
      case 'FULL':
        return FontHinting_FULL_getInstance();
      default:
        FontHinting_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FontHinting_entriesInitialized;
  function FontHinting_initEntries() {
    if (FontHinting_entriesInitialized)
      return Unit_getInstance();
    FontHinting_entriesInitialized = true;
    FontHinting_NONE_instance = new FontHinting('NONE', 0);
    FontHinting_SLIGHT_instance = new FontHinting('SLIGHT', 1);
    FontHinting_NORMAL_instance = new FontHinting('NORMAL', 2);
    FontHinting_FULL_instance = new FontHinting('FULL', 3);
  }
  function FontHinting(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FontHinting_NONE_getInstance() {
    FontHinting_initEntries();
    return FontHinting_NONE_instance;
  }
  function FontHinting_SLIGHT_getInstance() {
    FontHinting_initEntries();
    return FontHinting_SLIGHT_instance;
  }
  function FontHinting_NORMAL_getInstance() {
    FontHinting_initEntries();
    return FontHinting_NORMAL_instance;
  }
  function FontHinting_FULL_getInstance() {
    FontHinting_initEntries();
    return FontHinting_FULL_instance;
  }
  function Companion_12() {
    Companion_instance_12 = this;
  }
  var Companion_instance_12;
  function Companion_getInstance_13() {
    if (Companion_instance_12 == null)
      new Companion_12();
    return Companion_instance_12;
  }
  function FontMetrics(top, ascent, descent, bottom, leading, avgCharWidth, maxCharWidth, xMin, xMax, xHeight, capHeight, underlineThickness, underlinePosition, strikeoutThickness, strikeoutPosition) {
    Companion_getInstance_13();
    this.top_1 = top;
    this.ascent_1 = ascent;
    this.descent_1 = descent;
    this.bottom_1 = bottom;
    this.leading_1 = leading;
    this.avgCharWidth_1 = avgCharWidth;
    this.maxCharWidth_1 = maxCharWidth;
    this.xMin_1 = xMin;
    this.xMax_1 = xMax;
    this.xHeight_1 = xHeight;
    this.capHeight_1 = capHeight;
    this.underlineThickness_1 = underlineThickness;
    this.underlinePosition_1 = underlinePosition;
    this.strikeoutThickness_1 = strikeoutThickness;
    this.strikeoutPosition_1 = strikeoutPosition;
  }
  protoOf(FontMetrics).get_top_18ivbo_k$ = function () {
    return this.top_1;
  };
  protoOf(FontMetrics).get_ascent_b435cz_k$ = function () {
    return this.ascent_1;
  };
  protoOf(FontMetrics).get_descent_r0gq8h_k$ = function () {
    return this.descent_1;
  };
  protoOf(FontMetrics).get_bottom_bj8ras_k$ = function () {
    return this.bottom_1;
  };
  protoOf(FontMetrics).get_leading_23jbbx_k$ = function () {
    return this.leading_1;
  };
  protoOf(FontMetrics).get_avgCharWidth_jhbh3t_k$ = function () {
    return this.avgCharWidth_1;
  };
  protoOf(FontMetrics).get_maxCharWidth_6q1xed_k$ = function () {
    return this.maxCharWidth_1;
  };
  protoOf(FontMetrics).get_xMin_wowxkz_k$ = function () {
    return this.xMin_1;
  };
  protoOf(FontMetrics).get_xMax_wowxed_k$ = function () {
    return this.xMax_1;
  };
  protoOf(FontMetrics).get_xHeight_mi1wba_k$ = function () {
    return this.xHeight_1;
  };
  protoOf(FontMetrics).get_capHeight_wysicw_k$ = function () {
    return this.capHeight_1;
  };
  protoOf(FontMetrics).get_underlineThickness_rbhcpd_k$ = function () {
    return this.underlineThickness_1;
  };
  protoOf(FontMetrics).get_underlinePosition_g01d3o_k$ = function () {
    return this.underlinePosition_1;
  };
  protoOf(FontMetrics).get_strikeoutThickness_omshz5_k$ = function () {
    return this.strikeoutThickness_1;
  };
  protoOf(FontMetrics).get_strikeoutPosition_1qsqs_k$ = function () {
    return this.strikeoutPosition_1;
  };
  protoOf(FontMetrics).get_height_e7t92o_k$ = function () {
    return this.descent_1 - this.ascent_1;
  };
  protoOf(FontMetrics).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontMetrics))
      return false;
    if (!(compareTo(this.top_1, other.top_1) === 0))
      return false;
    if (!(compareTo(this.ascent_1, other.ascent_1) === 0))
      return false;
    if (!(compareTo(this.descent_1, other.descent_1) === 0))
      return false;
    if (!(compareTo(this.bottom_1, other.bottom_1) === 0))
      return false;
    if (!(compareTo(this.leading_1, other.leading_1) === 0))
      return false;
    if (!(compareTo(this.avgCharWidth_1, other.avgCharWidth_1) === 0))
      return false;
    if (!(compareTo(this.maxCharWidth_1, other.maxCharWidth_1) === 0))
      return false;
    if (!(compareTo(this.xMin_1, other.xMin_1) === 0))
      return false;
    if (!(compareTo(this.xMax_1, other.xMax_1) === 0))
      return false;
    if (!(compareTo(this.xHeight_1, other.xHeight_1) === 0))
      return false;
    if (!(compareTo(this.capHeight_1, other.capHeight_1) === 0))
      return false;
    if (this.underlineThickness_1 == null ? !(other.underlineThickness_1 == null) : !(this.underlineThickness_1 == other.underlineThickness_1))
      return false;
    if (this.underlinePosition_1 == null ? !(other.underlinePosition_1 == null) : !(this.underlinePosition_1 == other.underlinePosition_1))
      return false;
    if (this.strikeoutThickness_1 == null ? !(other.strikeoutThickness_1 == null) : !(this.strikeoutThickness_1 == other.strikeoutThickness_1))
      return false;
    return !(this.strikeoutPosition_1 == null ? !(other.strikeoutPosition_1 == null) : !(this.strikeoutPosition_1 == other.strikeoutPosition_1));
  };
  protoOf(FontMetrics).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.top_1) | 0;
    result = imul(result, PRIME) + toBits(this.ascent_1) | 0;
    result = imul(result, PRIME) + toBits(this.descent_1) | 0;
    result = imul(result, PRIME) + toBits(this.bottom_1) | 0;
    result = imul(result, PRIME) + toBits(this.leading_1) | 0;
    result = imul(result, PRIME) + toBits(this.avgCharWidth_1) | 0;
    result = imul(result, PRIME) + toBits(this.maxCharWidth_1) | 0;
    result = imul(result, PRIME) + toBits(this.xMin_1) | 0;
    result = imul(result, PRIME) + toBits(this.xMax_1) | 0;
    result = imul(result, PRIME) + toBits(this.xHeight_1) | 0;
    result = imul(result, PRIME) + toBits(this.capHeight_1) | 0;
    var tmp = imul(result, PRIME);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver = this.underlineThickness_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    var tmp_0 = imul(result, PRIME);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver_0 = this.underlinePosition_1;
    var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
    result = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
    var tmp_1 = imul(result, PRIME);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver_1 = this.strikeoutThickness_1;
    var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
    result = tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
    var tmp_2 = imul(result, PRIME);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver_2 = this.strikeoutPosition_1;
    var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
    result = tmp_2 + (tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2) | 0;
    return result;
  };
  protoOf(FontMetrics).toString = function () {
    return 'FontMetrics(_top=' + this.top_1 + ', _ascent=' + this.ascent_1 + ', _descent=' + this.descent_1 + ', _bottom=' + this.bottom_1 + ', _leading=' + this.leading_1 + ', _avgCharWidth=' + this.avgCharWidth_1 + ', _maxCharWidth=' + this.maxCharWidth_1 + ', _xMin=' + this.xMin_1 + ', _xMax=' + this.xMax_1 + ', _xHeight=' + this.xHeight_1 + ', _capHeight=' + this.capHeight_1 + ', _underlineThickness=' + this.underlineThickness_1 + ', _underlinePosition=' + this.underlinePosition_1 + ', _strikeoutThickness=' + this.strikeoutThickness_1 + ', _strikeoutPosition=' + this.strikeoutPosition_1 + ')';
  };
  function fromInteropPointer(_this__u8e3s4, block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(15);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return fromRawData(_this__u8e3s4, result);
  }
  function fromRawData(_this__u8e3s4, rawData) {
    var tmp = rawData[0];
    var tmp_0 = rawData[1];
    var tmp_1 = rawData[2];
    var tmp_2 = rawData[3];
    var tmp_3 = rawData[4];
    var tmp_4 = rawData[5];
    var tmp_5 = rawData[6];
    var tmp_6 = rawData[7];
    var tmp_7 = rawData[8];
    var tmp_8 = rawData[9];
    var tmp_9 = rawData[10];
    // Inline function 'org.jetbrains.skia.asNumberOrNull' call
    var this_0 = rawData[11];
    var tmp_10 = isNaN_0(this_0) ? null : this_0;
    // Inline function 'org.jetbrains.skia.asNumberOrNull' call
    var this_1 = rawData[12];
    var tmp_11 = isNaN_0(this_1) ? null : this_1;
    // Inline function 'org.jetbrains.skia.asNumberOrNull' call
    var this_2 = rawData[13];
    var tmp_12 = isNaN_0(this_2) ? null : this_2;
    // Inline function 'org.jetbrains.skia.asNumberOrNull' call
    var this_3 = rawData[14];
    var tmp$ret$3 = isNaN_0(this_3) ? null : this_3;
    return new FontMetrics(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, tmp_11, tmp_12, tmp$ret$3);
  }
  function asNumberOrNull(_this__u8e3s4) {
    return isNaN_0(_this__u8e3s4) ? null : _this__u8e3s4;
  }
  function Companion_13() {
    Companion_instance_13 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
    this.default_1 = FontMgr_init_$Create$_0(org_jetbrains_skia_FontMgr__1nDefault(), false);
  }
  protoOf(Companion_13).get_default_qtagd4_k$ = function () {
    return this.default_1;
  };
  var Companion_instance_13;
  function Companion_getInstance_14() {
    if (Companion_instance_13 == null)
      new Companion_13();
    return Companion_instance_13;
  }
  function FontMgr_init_$Init$(ptr, $this) {
    RefCnt_init_$Init$(ptr, $this);
    FontMgr.call($this);
    return $this;
  }
  function FontMgr_init_$Create$(ptr) {
    return FontMgr_init_$Init$(ptr, objectCreate(protoOf(FontMgr)));
  }
  function FontMgr_init_$Init$_0(ptr, allowClose, $this) {
    RefCnt_init_$Init$_0(ptr, allowClose, $this);
    FontMgr.call($this);
    return $this;
  }
  function FontMgr_init_$Create$_0(ptr, allowClose) {
    return FontMgr_init_$Init$_0(ptr, allowClose, objectCreate(protoOf(FontMgr)));
  }
  protoOf(FontMgr).get_familiesCount_njbimc_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_FontMgr__1nGetFamiliesCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).getFamilyName_q0narx_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withStringResult' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      // Inline function 'org.jetbrains.skia.FontMgr.getFamilyName.<anonymous>' call
      var tmp$ret$0 = org_jetbrains_skia_FontMgr__1nGetFamilyName(this.get__ptr_wohp4o_k$(), index);
      var this_0 = new ManagedString(tmp$ret$0);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
        tmp_0 = this_0.toString();
      }finally {
        this_0.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).makeStyleSet_r1ved5_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_FontMgr__1nMakeStyleSet(this.get__ptr_wohp4o_k$(), index);
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new FontStyleSet(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).matchFamily_ntx01u_k$ = function (familyName) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.FontMgr.matchFamily.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = new FontStyleSet(org_jetbrains_skia_FontMgr__1nMatchFamily(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(familyName)));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).matchFamilyStyle_p90cxu_k$ = function (familyName, style) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.FontMgr.matchFamilyStyle.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_FontMgr__1nMatchFamilyStyle(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(familyName), style.get__value_a7m5q3_k$());
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$1;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).matchFamiliesStyle_mrciqq_k$ = function (families, style) {
    var inductionVariable = 0;
    var last = families.length;
    while (inductionVariable < last) {
      var family = families[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      var typeface = this.matchFamilyStyle_p90cxu_k$(family, style);
      if (!(typeface == null))
        return typeface;
    }
    return null;
  };
  protoOf(FontMgr).matchFamilyStyleCharacter_o2spm_k$ = function (familyName, style, bcp47, character) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.FontMgr.matchFamilyStyleCharacter.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = $this$interopScope.toInterop_ok8jph_k$(familyName);
          var tmp_2 = style.get__value_a7m5q3_k$();
          var tmp_3;
          if (bcp47 == null) {
            // Inline function 'kotlin.emptyArray' call
            tmp_3 = [];
          } else {
            tmp_3 = bcp47;
          }
          var tmp_4 = $this$interopScope.toInterop_2ejn5p_k$(tmp_3);
          var tmp2_elvis_lhs = bcp47 == null ? null : bcp47.length;
          tmp$ret$2 = org_jetbrains_skia_FontMgr__1nMatchFamilyStyleCharacter(tmp_0, tmp_1, tmp_2, tmp_4, tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs, character);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$2;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgr).matchFamiliesStyleCharacter_3qtzpm_k$ = function (families, style, bcp47, character) {
    var inductionVariable = 0;
    var last = families.length;
    while (inductionVariable < last) {
      var family = families[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      var typeface = this.matchFamilyStyleCharacter_o2spm_k$(family, style, bcp47, character);
      if (!(typeface == null))
        return typeface;
    }
    return null;
  };
  protoOf(FontMgr).makeFromData_auylbu_k$ = function (data, ttcIndex) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_FontMgr__1nMakeFromData(this.get__ptr_wohp4o_k$(), getPtr(data), ttcIndex);
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(data);
    }
    return tmp;
  };
  protoOf(FontMgr).makeFromData$default_m5xxm4_k$ = function (data, ttcIndex, $super) {
    ttcIndex = ttcIndex === VOID ? 0 : ttcIndex;
    return $super === VOID ? this.makeFromData_auylbu_k$(data, ttcIndex) : $super.makeFromData_auylbu_k$.call(this, data, ttcIndex);
  };
  function FontMgr() {
    Companion_getInstance_14();
  }
  var FontSlant_UPRIGHT_instance;
  var FontSlant_ITALIC_instance;
  var FontSlant_OBLIQUE_instance;
  function values_10() {
    return [FontSlant_UPRIGHT_getInstance(), FontSlant_ITALIC_getInstance(), FontSlant_OBLIQUE_getInstance()];
  }
  function valueOf_10(value) {
    switch (value) {
      case 'UPRIGHT':
        return FontSlant_UPRIGHT_getInstance();
      case 'ITALIC':
        return FontSlant_ITALIC_getInstance();
      case 'OBLIQUE':
        return FontSlant_OBLIQUE_getInstance();
      default:
        FontSlant_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var FontSlant_entriesInitialized;
  function FontSlant_initEntries() {
    if (FontSlant_entriesInitialized)
      return Unit_getInstance();
    FontSlant_entriesInitialized = true;
    FontSlant_UPRIGHT_instance = new FontSlant('UPRIGHT', 0);
    FontSlant_ITALIC_instance = new FontSlant('ITALIC', 1);
    FontSlant_OBLIQUE_instance = new FontSlant('OBLIQUE', 2);
  }
  function FontSlant(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function FontSlant_UPRIGHT_getInstance() {
    FontSlant_initEntries();
    return FontSlant_UPRIGHT_instance;
  }
  function FontSlant_ITALIC_getInstance() {
    FontSlant_initEntries();
    return FontSlant_ITALIC_instance;
  }
  function FontSlant_OBLIQUE_getInstance() {
    FontSlant_initEntries();
    return FontSlant_OBLIQUE_instance;
  }
  function FontStyle_init_$Init$(weight, width, slant, $this) {
    FontStyle.call($this);
    $this._value_1 = weight & 65535 | (width & 255) << 16 | slant.get_ordinal_ip24qg_k$() << 24;
    return $this;
  }
  function FontStyle_init_$Create$(weight, width, slant) {
    return FontStyle_init_$Init$(weight, width, slant, objectCreate(protoOf(FontStyle)));
  }
  function FontStyle_init_$Init$_0(value, $this) {
    FontStyle.call($this);
    $this._value_1 = value;
    return $this;
  }
  function FontStyle_init_$Create$_0(value) {
    return FontStyle_init_$Init$_0(value, objectCreate(protoOf(FontStyle)));
  }
  function Companion_14() {
    Companion_instance_14 = this;
    this.NORMAL_1 = FontStyle_init_$Create$(Companion_getInstance_18().get_NORMAL_1k4cts_k$(), Companion_getInstance_19().get_NORMAL_1k4cts_k$(), FontSlant_UPRIGHT_getInstance());
    this.BOLD_1 = FontStyle_init_$Create$(Companion_getInstance_18().get_BOLD_wnyh1q_k$(), Companion_getInstance_19().get_NORMAL_1k4cts_k$(), FontSlant_UPRIGHT_getInstance());
    this.ITALIC_1 = FontStyle_init_$Create$(Companion_getInstance_18().get_NORMAL_1k4cts_k$(), Companion_getInstance_19().get_NORMAL_1k4cts_k$(), FontSlant_ITALIC_getInstance());
    this.BOLD_ITALIC_1 = FontStyle_init_$Create$(Companion_getInstance_18().get_BOLD_wnyh1q_k$(), Companion_getInstance_19().get_NORMAL_1k4cts_k$(), FontSlant_ITALIC_getInstance());
  }
  protoOf(Companion_14).get_NORMAL_1k4cts_k$ = function () {
    return this.NORMAL_1;
  };
  protoOf(Companion_14).get_BOLD_wnyh1q_k$ = function () {
    return this.BOLD_1;
  };
  protoOf(Companion_14).get_ITALIC_qnnif_k$ = function () {
    return this.ITALIC_1;
  };
  protoOf(Companion_14).get_BOLD_ITALIC_kdd5j3_k$ = function () {
    return this.BOLD_ITALIC_1;
  };
  var Companion_instance_14;
  function Companion_getInstance_15() {
    if (Companion_instance_14 == null)
      new Companion_14();
    return Companion_instance_14;
  }
  protoOf(FontStyle).get__value_a7m5q3_k$ = function () {
    return this._value_1;
  };
  protoOf(FontStyle).get_weight_lbhkzl_k$ = function () {
    return this._value_1 & 65535;
  };
  protoOf(FontStyle).withWeight_ue6mre_k$ = function (weight) {
    return FontStyle_init_$Create$(weight, this.get_width_j0q4yl_k$(), this.get_slant_iykt6t_k$());
  };
  protoOf(FontStyle).get_width_j0q4yl_k$ = function () {
    return this._value_1 >> 16 & 255;
  };
  protoOf(FontStyle).withWidth_f15y6g_k$ = function (width) {
    return FontStyle_init_$Create$(this.get_weight_lbhkzl_k$(), width, this.get_slant_iykt6t_k$());
  };
  protoOf(FontStyle).get_slant_iykt6t_k$ = function () {
    return values_10()[this._value_1 >> 24 & 255];
  };
  protoOf(FontStyle).withSlant_xjtyhw_k$ = function (slant) {
    return FontStyle_init_$Create$(this.get_weight_lbhkzl_k$(), this.get_width_j0q4yl_k$(), slant);
  };
  protoOf(FontStyle).toString = function () {
    return 'FontStyle(weight=' + this.get_weight_lbhkzl_k$() + ', width=' + this.get_width_j0q4yl_k$() + ', slant=' + this.get_slant_iykt6t_k$() + ')';
  };
  protoOf(FontStyle).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontStyle))
      return false;
    return this._value_1 === other._value_1;
  };
  protoOf(FontStyle).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this._value_1 | 0;
    return result;
  };
  function FontStyle() {
    Companion_getInstance_15();
  }
  function Companion_15() {
    Companion_instance_15 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_15).makeEmpty_kjipdr_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new FontStyleSet(org_jetbrains_skia_FontStyleSet__1nMakeEmpty());
  };
  var Companion_instance_15;
  function Companion_getInstance_16() {
    if (Companion_instance_15 == null)
      new Companion_15();
    return Companion_instance_15;
  }
  function FontStyleSet(ptr) {
    Companion_getInstance_16();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(FontStyleSet).count_1kgzrj_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_FontStyleSet__1nCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontStyleSet).getStyle_dffpbx_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = FontStyle_init_$Create$_0(org_jetbrains_skia_FontStyleSet__1nGetStyle(this.get__ptr_wohp4o_k$(), index));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontStyleSet).getStyleName_kztdhq_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withStringResult' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      // Inline function 'org.jetbrains.skia.FontStyleSet.getStyleName.<anonymous>' call
      var tmp$ret$0 = org_jetbrains_skia_FontStyleSet__1nGetStyleName(this.get__ptr_wohp4o_k$(), index);
      var this_0 = new ManagedString(tmp$ret$0);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
        tmp_0 = this_0.toString();
      }finally {
        this_0.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontStyleSet).getTypeface_trtvaj_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_FontStyleSet__1nGetTypeface(this.get__ptr_wohp4o_k$(), index);
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontStyleSet).matchStyle_glwss7_k$ = function (style) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_FontStyleSet__1nMatchStyle(this.get__ptr_wohp4o_k$(), style.get__value_a7m5q3_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function _get_tagIx__b2av08_0($this) {
    return $this.tagIx_1;
  }
  function _get_valueIx__bu6nwx_0($this) {
    return $this.valueIx_1;
  }
  function FontVariation_init_$Init$(feature, value, $this) {
    FontVariation.call($this, Companion_getInstance_20().fromString_g5hge7_k$(feature), value);
    return $this;
  }
  function FontVariation_init_$Create$(feature, value) {
    return FontVariation_init_$Init$(feature, value, objectCreate(protoOf(FontVariation)));
  }
  function Companion_16() {
    Companion_instance_16 = this;
    var tmp = this;
    // Inline function 'kotlin.arrayOfNulls' call
    tmp.EMPTY_1 = fillArrayVal(Array(0), null);
    this._splitPattern_1 = compilePattern('\\s+');
    this._variationPattern_1 = compilePattern('([a-z0-9]{4})=(\\d+)');
    this.tagIx_1 = 1;
    this.valueIx_1 = 2;
  }
  protoOf(Companion_16).get_EMPTY_i8q41w_k$ = function () {
    return this.EMPTY_1;
  };
  protoOf(Companion_16).get__splitPattern_gpup58_k$ = function () {
    return this._splitPattern_1;
  };
  protoOf(Companion_16).get__variationPattern_o2yczx_k$ = function () {
    return this._variationPattern_1;
  };
  protoOf(Companion_16).parseOne_zbf36v_k$ = function (s) {
    var m = this._variationPattern_1.matcher_mwr1qt_k$(s);
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!m.matches_dwml9v_k$()) {
      // Inline function 'org.jetbrains.skia.Companion.parseOne.<anonymous>' call
      var message = 'Can\u2019t parse FontVariation: ' + s;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.text.toFloat' call
    var this_0 = ensureNotNull(m.group_u7j3zt_k$(2));
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var value = toDouble(this_0);
    var tag = ensureNotNull(m.group_u7j3zt_k$(1));
    return FontVariation_init_$Create$(tag, value);
  };
  protoOf(Companion_16).parse_pc1q8p_k$ = function (str) {
    // Inline function 'kotlin.collections.toTypedArray' call
    // Inline function 'kotlin.collections.map' call
    var this_0 = this._splitPattern_1.split_w9zaf1_k$(str);
    // Inline function 'kotlin.collections.mapTo' call
    var destination = ArrayList_init_$Create$(this_0.length);
    var inductionVariable = 0;
    var last = this_0.length;
    while (inductionVariable < last) {
      var item = this_0[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      // Inline function 'org.jetbrains.skia.Companion.parse.<anonymous>' call
      var tmp$ret$0 = Companion_getInstance_17().parseOne_zbf36v_k$(item);
      destination.add_utx5q5_k$(tmp$ret$0);
    }
    return copyToArray(destination);
  };
  var Companion_instance_16;
  function Companion_getInstance_17() {
    if (Companion_instance_16 == null)
      new Companion_16();
    return Companion_instance_16;
  }
  function FontVariation(_tag, value) {
    Companion_getInstance_17();
    this._tag_1 = _tag;
    this.value_1 = value;
  }
  protoOf(FontVariation).get__tag_wohrms_k$ = function () {
    return this._tag_1;
  };
  protoOf(FontVariation).get_value_j01efc_k$ = function () {
    return this.value_1;
  };
  protoOf(FontVariation).get_tag_18ivnz_k$ = function () {
    return Companion_getInstance_20().toString_w4mr8s_k$(this._tag_1);
  };
  protoOf(FontVariation).toString = function () {
    return this.get_tag_18ivnz_k$() + '=' + this.value_1;
  };
  protoOf(FontVariation).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontVariation))
      return false;
    if (!(this.get_tag_18ivnz_k$() === other.get_tag_18ivnz_k$()))
      return false;
    return compareTo(this.value_1, other.value_1) === 0;
  };
  protoOf(FontVariation).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this._tag_1 | 0;
    result = imul(result, PRIME) + toBits(this.value_1) | 0;
    return result;
  };
  function FontVariationAxis_init_$Init$(tag, min, def, max, hidden, $this) {
    FontVariationAxis.call($this, Companion_getInstance_20().fromString_g5hge7_k$(tag), min, def, max, hidden);
    return $this;
  }
  function FontVariationAxis_init_$Create$(tag, min, def, max, hidden) {
    return FontVariationAxis_init_$Init$(tag, min, def, max, hidden, objectCreate(protoOf(FontVariationAxis)));
  }
  function FontVariationAxis_init_$Init$_0(tag, min, def, max, $this) {
    FontVariationAxis.call($this, Companion_getInstance_20().fromString_g5hge7_k$(tag), min, def, max, false);
    return $this;
  }
  function FontVariationAxis_init_$Create$_0(tag, min, def, max) {
    return FontVariationAxis_init_$Init$_0(tag, min, def, max, objectCreate(protoOf(FontVariationAxis)));
  }
  function FontVariationAxis(_tag, minValue, defaultValue, maxValue, isHidden) {
    this._tag_1 = _tag;
    this.minValue_1 = minValue;
    this.defaultValue_1 = defaultValue;
    this.maxValue_1 = maxValue;
    this.isHidden_1 = isHidden;
  }
  protoOf(FontVariationAxis).get__tag_wohrms_k$ = function () {
    return this._tag_1;
  };
  protoOf(FontVariationAxis).get_minValue_ggd348_k$ = function () {
    return this.minValue_1;
  };
  protoOf(FontVariationAxis).get_defaultValue_6cv1mv_k$ = function () {
    return this.defaultValue_1;
  };
  protoOf(FontVariationAxis).get_maxValue_p78wqy_k$ = function () {
    return this.maxValue_1;
  };
  protoOf(FontVariationAxis).get_isHidden_u8m81p_k$ = function () {
    return this.isHidden_1;
  };
  protoOf(FontVariationAxis).get_tag_18ivnz_k$ = function () {
    return Companion_getInstance_20().toString_w4mr8s_k$(this._tag_1);
  };
  protoOf(FontVariationAxis).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontVariationAxis))
      return false;
    if (!(this._tag_1 === other._tag_1))
      return false;
    if (!(compareTo(this.minValue_1, other.minValue_1) === 0))
      return false;
    if (!(compareTo(this.defaultValue_1, other.defaultValue_1) === 0))
      return false;
    if (!(compareTo(this.maxValue_1, other.maxValue_1) === 0))
      return false;
    return this.isHidden_1 === other.isHidden_1;
  };
  protoOf(FontVariationAxis).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this._tag_1 | 0;
    result = imul(result, PRIME) + toBits(this.minValue_1) | 0;
    result = imul(result, PRIME) + toBits(this.defaultValue_1) | 0;
    result = imul(result, PRIME) + toBits(this.maxValue_1) | 0;
    result = imul(result, PRIME) + (this.isHidden_1 ? 79 : 97) | 0;
    return result;
  };
  protoOf(FontVariationAxis).toString = function () {
    return 'FontVariationAxis(_tag=' + this._tag_1 + ', _minValue=' + this.minValue_1 + ', _defaultValue=' + this.defaultValue_1 + ', _maxValue=' + this.maxValue_1 + ', _hidden=' + this.isHidden_1 + ')';
  };
  function Companion_17() {
    Companion_instance_17 = this;
    this.INVISIBLE_1 = 0;
    this.THIN_1 = 100;
    this.EXTRA_LIGHT_1 = 200;
    this.LIGHT_1 = 300;
    this.NORMAL_1 = 400;
    this.MEDIUM_1 = 500;
    this.SEMI_BOLD_1 = 600;
    this.BOLD_1 = 700;
    this.EXTRA_BOLD_1 = 800;
    this.BLACK_1 = 900;
    this.EXTRA_BLACK_1 = 1000;
  }
  protoOf(Companion_17).get_INVISIBLE_n5awv8_k$ = function () {
    return this.INVISIBLE_1;
  };
  protoOf(Companion_17).get_THIN_wo9tk2_k$ = function () {
    return this.THIN_1;
  };
  protoOf(Companion_17).get_EXTRA_LIGHT_lrf1j2_k$ = function () {
    return this.EXTRA_LIGHT_1;
  };
  protoOf(Companion_17).get_LIGHT_ichxal_k$ = function () {
    return this.LIGHT_1;
  };
  protoOf(Companion_17).get_NORMAL_1k4cts_k$ = function () {
    return this.NORMAL_1;
  };
  protoOf(Companion_17).get_MEDIUM_xbs72_k$ = function () {
    return this.MEDIUM_1;
  };
  protoOf(Companion_17).get_SEMI_BOLD_rtiayb_k$ = function () {
    return this.SEMI_BOLD_1;
  };
  protoOf(Companion_17).get_BOLD_wnyh1q_k$ = function () {
    return this.BOLD_1;
  };
  protoOf(Companion_17).get_EXTRA_BOLD_p3im5_k$ = function () {
    return this.EXTRA_BOLD_1;
  };
  protoOf(Companion_17).get_BLACK_i71rqu_k$ = function () {
    return this.BLACK_1;
  };
  protoOf(Companion_17).get_EXTRA_BLACK_llyvzb_k$ = function () {
    return this.EXTRA_BLACK_1;
  };
  var Companion_instance_17;
  function Companion_getInstance_18() {
    if (Companion_instance_17 == null)
      new Companion_17();
    return Companion_instance_17;
  }
  function FontWeight() {
  }
  function Companion_18() {
    Companion_instance_18 = this;
    this.ULTRA_CONDENSED_1 = 1;
    this.EXTRA_CONDENSED_1 = 2;
    this.CONDENSED_1 = 3;
    this.SEMI_CONDENSED_1 = 4;
    this.NORMAL_1 = 5;
    this.SEMI_EXPANDED_1 = 6;
    this.EXPANDED_1 = 7;
    this.EXTRA_EXPANDED_1 = 8;
    this.ULTRA_EXPANDED_1 = 9;
  }
  protoOf(Companion_18).get_ULTRA_CONDENSED_5q8iej_k$ = function () {
    return this.ULTRA_CONDENSED_1;
  };
  protoOf(Companion_18).get_EXTRA_CONDENSED_3p5b4f_k$ = function () {
    return this.EXTRA_CONDENSED_1;
  };
  protoOf(Companion_18).get_CONDENSED_uqmjz6_k$ = function () {
    return this.CONDENSED_1;
  };
  protoOf(Companion_18).get_SEMI_CONDENSED_a0rou9_k$ = function () {
    return this.SEMI_CONDENSED_1;
  };
  protoOf(Companion_18).get_NORMAL_1k4cts_k$ = function () {
    return this.NORMAL_1;
  };
  protoOf(Companion_18).get_SEMI_EXPANDED_tn0vjz_k$ = function () {
    return this.SEMI_EXPANDED_1;
  };
  protoOf(Companion_18).get_EXPANDED_k3n2iq_k$ = function () {
    return this.EXPANDED_1;
  };
  protoOf(Companion_18).get_EXTRA_EXPANDED_ni4cvl_k$ = function () {
    return this.EXTRA_EXPANDED_1;
  };
  protoOf(Companion_18).get_ULTRA_EXPANDED_izi4ut_k$ = function () {
    return this.ULTRA_EXPANDED_1;
  };
  var Companion_instance_18;
  function Companion_getInstance_19() {
    if (Companion_instance_18 == null)
      new Companion_18();
    return Companion_instance_18;
  }
  function FontWidth() {
  }
  function Companion_19() {
    Companion_instance_19 = this;
  }
  protoOf(Companion_19).fromString_g5hge7_k$ = function (name) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(name.length === 4)) {
      // Inline function 'org.jetbrains.skia.Companion.fromString.<anonymous>' call
      var message = "Name must be exactly 4 symbols, got: '" + name + "'";
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.code' call
    var this_0 = charSequenceGet(name, 0);
    var tmp = (Char__toInt_impl_vasixd(this_0) & 255) << 24;
    // Inline function 'kotlin.code' call
    var this_1 = charSequenceGet(name, 1);
    var tmp_0 = tmp | (Char__toInt_impl_vasixd(this_1) & 255) << 16;
    // Inline function 'kotlin.code' call
    var this_2 = charSequenceGet(name, 2);
    var tmp_1 = tmp_0 | (Char__toInt_impl_vasixd(this_2) & 255) << 8;
    // Inline function 'kotlin.code' call
    var this_3 = charSequenceGet(name, 3);
    return tmp_1 | Char__toInt_impl_vasixd(this_3) & 255;
  };
  protoOf(Companion_19).toString_w4mr8s_k$ = function (tag) {
    // Inline function 'kotlin.charArrayOf' call
    var tmp$ret$0 = charArrayOf([numberToChar(tag >> 24 & 255), numberToChar(tag >> 16 & 255), numberToChar(tag >> 8 & 255), numberToChar(tag & 255)]);
    return concatToString(tmp$ret$0);
  };
  var Companion_instance_19;
  function Companion_getInstance_20() {
    if (Companion_instance_19 == null)
      new Companion_19();
    return Companion_instance_19;
  }
  function FourByteTag() {
  }
  var GLBackendState_RENDER_TARGET_instance;
  var GLBackendState_TEXTURE_BINDING_instance;
  var GLBackendState_VIEW_instance;
  var GLBackendState_BLEND_instance;
  var GLBackendState_MSAA_ENABLE_instance;
  var GLBackendState_VERTEX_instance;
  var GLBackendState_STENCIL_instance;
  var GLBackendState_PIXEL_STORE_instance;
  var GLBackendState_PROGRAM_instance;
  var GLBackendState_FIXED_FUNCTION_instance;
  var GLBackendState_MISC_instance;
  var GLBackendState_PATH_RENDERING_instance;
  function values_11() {
    return [GLBackendState_RENDER_TARGET_getInstance(), GLBackendState_TEXTURE_BINDING_getInstance(), GLBackendState_VIEW_getInstance(), GLBackendState_BLEND_getInstance(), GLBackendState_MSAA_ENABLE_getInstance(), GLBackendState_VERTEX_getInstance(), GLBackendState_STENCIL_getInstance(), GLBackendState_PIXEL_STORE_getInstance(), GLBackendState_PROGRAM_getInstance(), GLBackendState_FIXED_FUNCTION_getInstance(), GLBackendState_MISC_getInstance(), GLBackendState_PATH_RENDERING_getInstance()];
  }
  function valueOf_11(value) {
    switch (value) {
      case 'RENDER_TARGET':
        return GLBackendState_RENDER_TARGET_getInstance();
      case 'TEXTURE_BINDING':
        return GLBackendState_TEXTURE_BINDING_getInstance();
      case 'VIEW':
        return GLBackendState_VIEW_getInstance();
      case 'BLEND':
        return GLBackendState_BLEND_getInstance();
      case 'MSAA_ENABLE':
        return GLBackendState_MSAA_ENABLE_getInstance();
      case 'VERTEX':
        return GLBackendState_VERTEX_getInstance();
      case 'STENCIL':
        return GLBackendState_STENCIL_getInstance();
      case 'PIXEL_STORE':
        return GLBackendState_PIXEL_STORE_getInstance();
      case 'PROGRAM':
        return GLBackendState_PROGRAM_getInstance();
      case 'FIXED_FUNCTION':
        return GLBackendState_FIXED_FUNCTION_getInstance();
      case 'MISC':
        return GLBackendState_MISC_getInstance();
      case 'PATH_RENDERING':
        return GLBackendState_PATH_RENDERING_getInstance();
      default:
        GLBackendState_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var GLBackendState_entriesInitialized;
  function GLBackendState_initEntries() {
    if (GLBackendState_entriesInitialized)
      return Unit_getInstance();
    GLBackendState_entriesInitialized = true;
    GLBackendState_RENDER_TARGET_instance = new GLBackendState('RENDER_TARGET', 0, 1);
    GLBackendState_TEXTURE_BINDING_instance = new GLBackendState('TEXTURE_BINDING', 1, 2);
    GLBackendState_VIEW_instance = new GLBackendState('VIEW', 2, 4);
    GLBackendState_BLEND_instance = new GLBackendState('BLEND', 3, 8);
    GLBackendState_MSAA_ENABLE_instance = new GLBackendState('MSAA_ENABLE', 4, 16);
    GLBackendState_VERTEX_instance = new GLBackendState('VERTEX', 5, 32);
    GLBackendState_STENCIL_instance = new GLBackendState('STENCIL', 6, 64);
    GLBackendState_PIXEL_STORE_instance = new GLBackendState('PIXEL_STORE', 7, 128);
    GLBackendState_PROGRAM_instance = new GLBackendState('PROGRAM', 8, 256);
    GLBackendState_FIXED_FUNCTION_instance = new GLBackendState('FIXED_FUNCTION', 9, 512);
    GLBackendState_MISC_instance = new GLBackendState('MISC', 10, 1024);
    GLBackendState_PATH_RENDERING_instance = new GLBackendState('PATH_RENDERING', 11, 2048);
  }
  function GLBackendState(name, ordinal, _bit) {
    Enum.call(this, name, ordinal);
    this._bit_1 = _bit;
  }
  protoOf(GLBackendState).get__bit_wohehj_k$ = function () {
    return this._bit_1;
  };
  function GLBackendState_RENDER_TARGET_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_RENDER_TARGET_instance;
  }
  function GLBackendState_TEXTURE_BINDING_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_TEXTURE_BINDING_instance;
  }
  function GLBackendState_VIEW_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_VIEW_instance;
  }
  function GLBackendState_BLEND_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_BLEND_instance;
  }
  function GLBackendState_MSAA_ENABLE_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_MSAA_ENABLE_instance;
  }
  function GLBackendState_VERTEX_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_VERTEX_instance;
  }
  function GLBackendState_STENCIL_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_STENCIL_instance;
  }
  function GLBackendState_PIXEL_STORE_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_PIXEL_STORE_instance;
  }
  function GLBackendState_PROGRAM_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_PROGRAM_instance;
  }
  function GLBackendState_FIXED_FUNCTION_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_FIXED_FUNCTION_instance;
  }
  function GLBackendState_MISC_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_MISC_instance;
  }
  function GLBackendState_PATH_RENDERING_getInstance() {
    GLBackendState_initEntries();
    return GLBackendState_PATH_RENDERING_instance;
  }
  function Companion_20() {
    Companion_instance_20 = this;
    this._INTERPOLATE_PREMUL_1 = 1;
    this.DEFAULT_1 = new GradientStyle(FilterTileMode_CLAMP_getInstance(), true, null);
  }
  protoOf(Companion_20).get__INTERPOLATE_PREMUL_6lamxh_k$ = function () {
    return this._INTERPOLATE_PREMUL_1;
  };
  protoOf(Companion_20).set_DEFAULT_5c1etq_k$ = function (_set____db54di) {
    this.DEFAULT_1 = _set____db54di;
  };
  protoOf(Companion_20).get_DEFAULT_wccqmg_k$ = function () {
    return this.DEFAULT_1;
  };
  var Companion_instance_20;
  function Companion_getInstance_21() {
    if (Companion_instance_20 == null)
      new Companion_20();
    return Companion_instance_20;
  }
  function GradientStyle(tileMode, isPremul, localMatrix) {
    Companion_getInstance_21();
    this.tileMode_1 = tileMode;
    this.isPremul_1 = isPremul;
    this.localMatrix_1 = localMatrix;
  }
  protoOf(GradientStyle).get_tileMode_4e76t6_k$ = function () {
    return this.tileMode_1;
  };
  protoOf(GradientStyle).get_isPremul_y5y6l0_k$ = function () {
    return this.isPremul_1;
  };
  protoOf(GradientStyle).get_localMatrix_y78w4j_k$ = function () {
    return this.localMatrix_1;
  };
  protoOf(GradientStyle)._getFlags_xsuxps_k$ = function () {
    return 0 | (this.isPremul_1 ? Companion_getInstance_21()._INTERPOLATE_PREMUL_1 : 0);
  };
  protoOf(GradientStyle)._getMatrixArray_7p1jwh_k$ = function () {
    var tmp0_safe_receiver = this.localMatrix_1;
    return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_mat_18j0uh_k$();
  };
  protoOf(GradientStyle).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof GradientStyle))
      return false;
    if (!(this.isPremul_1 === other.isPremul_1))
      return false;
    if (!this.tileMode_1.equals(other.tileMode_1))
      return false;
    return !(this.localMatrix_1 == null ? !(other.localMatrix_1 == null) : !equals(this.localMatrix_1, other.localMatrix_1));
  };
  protoOf(GradientStyle).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + (this.isPremul_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + this.tileMode_1.hashCode() | 0;
    var tmp = imul(result, PRIME);
    var tmp0_safe_receiver = this.localMatrix_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode();
    result = tmp + (tmp1_elvis_lhs == null ? 43 : tmp1_elvis_lhs) | 0;
    return result;
  };
  protoOf(GradientStyle).toString = function () {
    return 'GradientStyle(_tileMode=' + this.tileMode_1 + ', _premul=' + this.isPremul_1 + ', _localMatrix=' + this.localMatrix_1 + ')';
  };
  protoOf(GradientStyle).withTileMode_nuq78v_k$ = function (_tileMode) {
    return this.tileMode_1.equals(_tileMode) ? this : new GradientStyle(_tileMode, this.isPremul_1, this.localMatrix_1);
  };
  protoOf(GradientStyle).withPremul_616y1q_k$ = function (_premul) {
    return this.isPremul_1 === _premul ? this : new GradientStyle(this.tileMode_1, _premul, this.localMatrix_1);
  };
  protoOf(GradientStyle).withLocalMatrix_vhyxcw_k$ = function (_localMatrix) {
    return this.localMatrix_1 === _localMatrix ? this : new GradientStyle(this.tileMode_1, this.isPremul_1, _localMatrix);
  };
  function IHasImageInfo() {
  }
  function Companion_21() {
    Companion_instance_21 = this;
    this.ZERO_1 = new IPoint(0, 0);
  }
  protoOf(Companion_21).get_ZERO_wodlgx_k$ = function () {
    return this.ZERO_1;
  };
  var Companion_instance_21;
  function Companion_getInstance_22() {
    if (Companion_instance_21 == null)
      new Companion_21();
    return Companion_instance_21;
  }
  function IPoint(x, y) {
    Companion_getInstance_22();
    this.x_1 = x;
    this.y_1 = y;
  }
  protoOf(IPoint).get_x_1mhr67_k$ = function () {
    return this.x_1;
  };
  protoOf(IPoint).get_y_1mhr68_k$ = function () {
    return this.y_1;
  };
  protoOf(IPoint).offset_wlt177_k$ = function (dx, dy) {
    return new IPoint(this.x_1 + dx | 0, this.y_1 + dy | 0);
  };
  protoOf(IPoint).offset_v4gwwd_k$ = function (vec) {
    return this.offset_wlt177_k$(vec.x_1, vec.y_1);
  };
  protoOf(IPoint).get_isEmpty_zauvru_k$ = function () {
    return this.x_1 <= 0 ? true : this.y_1 <= 0;
  };
  protoOf(IPoint).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof IPoint))
      return false;
    if (!(this.x_1 === other.x_1))
      return false;
    return this.y_1 === other.y_1;
  };
  protoOf(IPoint).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.x_1 | 0;
    result = imul(result, PRIME) + this.y_1 | 0;
    return result;
  };
  protoOf(IPoint).toString = function () {
    return 'IPoint(_x=' + this.x_1 + ', _y=' + this.y_1 + ')';
  };
  function Companion_22() {
    Companion_instance_22 = this;
  }
  var Companion_instance_22;
  function Companion_getInstance_23() {
    if (Companion_instance_22 == null)
      new Companion_22();
    return Companion_instance_22;
  }
  function IRange(start, end) {
    Companion_getInstance_23();
    this.start_1 = start;
    this.end_1 = end;
  }
  protoOf(IRange).get_start_iypx6h_k$ = function () {
    return this.start_1;
  };
  protoOf(IRange).get_end_18j6ha_k$ = function () {
    return this.end_1;
  };
  protoOf(IRange).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof IRange))
      return false;
    if (!(this.start_1 === other.start_1))
      return false;
    return this.end_1 === other.end_1;
  };
  protoOf(IRange).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.start_1 | 0;
    result = imul(result, PRIME) + this.end_1 | 0;
    return result;
  };
  protoOf(IRange).toString = function () {
    return 'IRange(_start=' + this.start_1 + ', _end=' + this.end_1 + ')';
  };
  function fromInteropPointer_0(_this__u8e3s4, block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(2);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new IRange(result_0[0], result_0[1]);
  }
  function Companion_23() {
    Companion_instance_23 = this;
  }
  protoOf(Companion_23).makeLTRB_nm9ew6_k$ = function (l, t, r, b) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(l <= r)) {
      // Inline function 'org.jetbrains.skia.Companion.makeLTRB.<anonymous>' call
      var message = 'IRect::makeLTRB expected l <= r, got ' + l + ' > ' + r;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(t <= b)) {
      // Inline function 'org.jetbrains.skia.Companion.makeLTRB.<anonymous>' call
      var message_0 = 'IRect::makeLTRB expected t <= b, got ' + t + ' > ' + b;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    return new IRect(l, t, r, b);
  };
  protoOf(Companion_23).makeXYWH_reycg0_k$ = function (l, t, w, h) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(w >= 0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeXYWH.<anonymous>' call
      var message = 'IRect::makeXYWH expected w >= 0, got: ' + w;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(h >= 0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeXYWH.<anonymous>' call
      var message_0 = 'IRect::makeXYWH expected h >= 0, got: ' + h;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    var tmp;
    if (w >= 0 ? h >= 0 : false) {
      tmp = new IRect(l, t, l + w | 0, t + h | 0);
    } else {
      throw IllegalArgumentException_init_$Create$_0();
    }
    return tmp;
  };
  protoOf(Companion_23).makeWH_utwirj_k$ = function (w, h) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(w >= 0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeWH.<anonymous>' call
      var message = 'IRect::makeWH expected w >= 0, got: ' + w;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(h >= 0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeWH.<anonymous>' call
      var message_0 = 'IRect::makeWH expected h >= 0, got: ' + h;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    var tmp;
    if (w >= 0 ? h >= 0 : false) {
      tmp = new IRect(0, 0, w, h);
    } else {
      throw IllegalArgumentException_init_$Create$_0();
    }
    return tmp;
  };
  var Companion_instance_23;
  function Companion_getInstance_24() {
    if (Companion_instance_23 == null)
      new Companion_23();
    return Companion_instance_23;
  }
  function IRect(left, top, right, bottom) {
    Companion_getInstance_24();
    this.left_1 = left;
    this.top_1 = top;
    this.right_1 = right;
    this.bottom_1 = bottom;
  }
  protoOf(IRect).get_left_woprgw_k$ = function () {
    return this.left_1;
  };
  protoOf(IRect).get_top_18ivbo_k$ = function () {
    return this.top_1;
  };
  protoOf(IRect).get_right_ixz7xv_k$ = function () {
    return this.right_1;
  };
  protoOf(IRect).get_bottom_bj8ras_k$ = function () {
    return this.bottom_1;
  };
  protoOf(IRect).get_width_j0q4yl_k$ = function () {
    return this.right_1 - this.left_1 | 0;
  };
  protoOf(IRect).get_height_e7t92o_k$ = function () {
    return this.bottom_1 - this.top_1 | 0;
  };
  protoOf(IRect).intersect_htlya9_k$ = function (other) {
    var tmp;
    if (((this.right_1 <= other.left_1 ? true : other.right_1 <= this.left_1) ? true : this.bottom_1 <= other.top_1) ? true : other.bottom_1 <= this.top_1) {
      tmp = null;
    } else {
      // Inline function 'kotlin.comparisons.maxOf' call
      var a = this.left_1;
      var b = other.left_1;
      var tmp_0 = Math.max(a, b);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_0 = this.top_1;
      var b_0 = other.top_1;
      var tmp_1 = Math.max(a_0, b_0);
      // Inline function 'kotlin.comparisons.minOf' call
      var a_1 = this.right_1;
      var b_1 = other.right_1;
      var tmp_2 = Math.min(a_1, b_1);
      // Inline function 'kotlin.comparisons.minOf' call
      var a_2 = this.bottom_1;
      var b_2 = other.bottom_1;
      var tmp$ret$3 = Math.min(a_2, b_2);
      tmp = new IRect(tmp_0, tmp_1, tmp_2, tmp$ret$3);
    }
    return tmp;
  };
  protoOf(IRect).offset_wlt177_k$ = function (dx, dy) {
    return new IRect(this.left_1 + dx | 0, this.top_1 + dy | 0, this.right_1 + dx | 0, this.bottom_1 + dy | 0);
  };
  protoOf(IRect).offset_v4gwwd_k$ = function (vec) {
    return this.offset_wlt177_k$(vec.get_x_1mhr67_k$(), vec.get_y_1mhr68_k$());
  };
  protoOf(IRect).toRect_edc83l_k$ = function () {
    return new Rect(this.left_1, this.top_1, this.right_1, this.bottom_1);
  };
  protoOf(IRect).serializeToIntArray_wv960r_k$ = function () {
    // Inline function 'kotlin.intArrayOf' call
    return new Int32Array([this.left_1, this.top_1, this.right_1, this.bottom_1]);
  };
  protoOf(IRect).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof IRect))
      return false;
    if (!(this.left_1 === other.left_1))
      return false;
    if (!(this.top_1 === other.top_1))
      return false;
    if (!(this.right_1 === other.right_1))
      return false;
    return this.bottom_1 === other.bottom_1;
  };
  protoOf(IRect).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.left_1 | 0;
    result = imul(result, PRIME) + this.top_1 | 0;
    result = imul(result, PRIME) + this.right_1 | 0;
    result = imul(result, PRIME) + this.bottom_1 | 0;
    return result;
  };
  protoOf(IRect).toString = function () {
    return 'IRect(_left=' + this.left_1 + ', _top=' + this.top_1 + ', _right=' + this.right_1 + ', _bottom=' + this.bottom_1 + ')';
  };
  function Companion_24() {
    Companion_instance_24 = this;
  }
  protoOf(Companion_24).make_50txf2_k$ = function (w, h) {
    return new ISize(w, h);
  };
  protoOf(Companion_24).makeEmpty_kjipdr_k$ = function () {
    return new ISize(0, 0);
  };
  var Companion_instance_24;
  function Companion_getInstance_25() {
    if (Companion_instance_24 == null)
      new Companion_24();
    return Companion_instance_24;
  }
  function ISize(width, height) {
    Companion_getInstance_25();
    this.width_1 = width;
    this.height_1 = height;
  }
  protoOf(ISize).get_width_j0q4yl_k$ = function () {
    return this.width_1;
  };
  protoOf(ISize).get_height_e7t92o_k$ = function () {
    return this.height_1;
  };
  protoOf(ISize).isZero_jihrta_k$ = function () {
    return this.width_1 === 0 ? this.height_1 === 0 : false;
  };
  protoOf(ISize).isEmpty_y1axqb_k$ = function () {
    return this.width_1 <= 0 ? true : this.height_1 <= 0;
  };
  protoOf(ISize).area_1scr1_k$ = function () {
    return imul(this.width_1, this.height_1);
  };
  protoOf(ISize).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ISize))
      return false;
    if (!(this.width_1 === other.width_1))
      return false;
    return this.height_1 === other.height_1;
  };
  protoOf(ISize).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.width_1 | 0;
    result = imul(result, PRIME) + this.height_1 | 0;
    return result;
  };
  protoOf(ISize).toString = function () {
    return 'ISize(_width=' + this.width_1 + ', _height=' + this.height_1 + ')';
  };
  function Companion_25() {
    Companion_instance_25 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_25).makeRaster_g46ckp_k$ = function (imageInfo, bytes, rowBytes) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeRaster.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_Image__1nMakeRaster(imageInfo.get_width_j0q4yl_k$(), imageInfo.get_height_e7t92o_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), $this$interopScope.toInterop_h7cpet_k$(bytes), rowBytes);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$1;
      if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
        throw RuntimeException_init_$Create$('Failed to makeRaster ' + imageInfo + ' ' + bytes + ' ' + rowBytes);
      tmp = new Image(ptr);
    }finally {
      reachabilityBarrier(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Companion_25).makeRaster_shdisq_k$ = function (imageInfo, data, rowBytes) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Image__1nMakeRasterData(imageInfo.get_width_j0q4yl_k$(), imageInfo.get_height_e7t92o_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), imageInfo.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), getPtr(data), rowBytes);
      if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
        throw RuntimeException_init_$Create$('Failed to makeRaster ' + imageInfo + ' ' + data + ' ' + rowBytes);
      tmp = new Image(ptr);
    }finally {
      reachabilityBarrier(imageInfo.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
      reachabilityBarrier(data);
    }
    return tmp;
  };
  protoOf(Companion_25).makeFromBitmap_39nkt4_k$ = function (bitmap) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Image__1nMakeFromBitmap(getPtr(bitmap));
      if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
        throw RuntimeException_init_$Create$('Failed to Image::makeFromBitmap ' + bitmap);
      tmp = new Image(ptr);
    }finally {
      reachabilityBarrier(bitmap);
    }
    return tmp;
  };
  protoOf(Companion_25).makeFromPixmap_rva8tn_k$ = function (pixmap) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Image__1nMakeFromPixmap(getPtr(pixmap));
      if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
        throw RuntimeException_init_$Create$('Failed to Image::makeFromRaster ' + pixmap);
      tmp = new Image(ptr);
    }finally {
      reachabilityBarrier(pixmap);
    }
    return tmp;
  };
  protoOf(Companion_25).makeFromEncoded_99p5hy_k$ = function (bytes) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeFromEncoded.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_Image__1nMakeFromEncoded($this$interopScope.toInterop_h7cpet_k$(bytes), bytes.length);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var ptr = tmp$ret$1;
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!!(ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
      // Inline function 'org.jetbrains.skia.Companion.makeFromEncoded.<anonymous>' call
      var message = 'Failed to Image::makeFromEncoded';
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    return new Image(ptr);
  };
  var Companion_instance_25;
  function Companion_getInstance_26() {
    if (Companion_instance_25 == null)
      new Companion_25();
    return Companion_instance_25;
  }
  function Image_nGetImageInfo$ref() {
    var l = function (p0, p1, p2) {
      org_jetbrains_skia_Image__1nGetImageInfo(p0, p1, p2);
      return Unit_getInstance();
    };
    l.callableName = 'Image_nGetImageInfo';
    return l;
  }
  function Image$_get_imageInfo_$lambda_c2a05w(this$0) {
    return function () {
      var tmp;
      if (this$0._imageInfo_1 == null) {
        var tmp_0 = this$0;
        var tmp_1 = Companion_getInstance_28();
        var tmp_2 = this$0.get__ptr_wohp4o_k$();
        tmp_0._imageInfo_1 = tmp_1.createUsing_vjf7w1_k$(tmp_2, Image_nGetImageInfo$ref());
        tmp = Unit_getInstance();
      }
      return Unit_getInstance();
    };
  }
  function Image(ptr) {
    Companion_getInstance_26();
    RefCnt_init_$Init$(ptr, this);
    this._imageInfo_1 = null;
  }
  protoOf(Image).set__imageInfo_okaray_k$ = function (_set____db54di) {
    this._imageInfo_1 = _set____db54di;
  };
  protoOf(Image).get__imageInfo_bpddpv_k$ = function () {
    return this._imageInfo_1;
  };
  protoOf(Image).get_imageInfo_60i77k_k$ = function () {
    var tmp;
    try {
      if (this._imageInfo_1 == null) {
        commonSynchronized(this, Image$_get_imageInfo_$lambda_c2a05w(this));
      }
      tmp = ensureNotNull(this._imageInfo_1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Image).encodeToData_hd42n1_k$ = function (format, quality) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Image__1nEncodeToData(this.get__ptr_wohp4o_k$(), format.get_ordinal_ip24qg_k$(), quality);
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Data(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Image).encodeToData$default_mjv0rj_k$ = function (format, quality, $super) {
    format = format === VOID ? EncodedImageFormat_PNG_getInstance() : format;
    quality = quality === VOID ? 100 : quality;
    return $super === VOID ? this.encodeToData_hd42n1_k$(format, quality) : $super.encodeToData_hd42n1_k$.call(this, format, quality);
  };
  protoOf(Image).makeShader_q54znw_k$ = function (localMatrix) {
    return this.makeShader_7nwpzf_k$(FilterTileMode_CLAMP_getInstance(), FilterTileMode_CLAMP_getInstance(), Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), localMatrix);
  };
  protoOf(Image).makeShader_lzo5mc_k$ = function (tmx, tmy, localMatrix) {
    return this.makeShader_7nwpzf_k$(tmx, tmy, Companion_getInstance_50().get_DEFAULT_wccqmg_k$(), localMatrix);
  };
  protoOf(Image).makeShader_7nwpzf_k$ = function (tmx, tmy, sampling, localMatrix) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Image.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = tmx.get_ordinal_ip24qg_k$();
          var tmp_2 = tmy.get_ordinal_ip24qg_k$();
          var tmp_3 = sampling._packedInt1_kbgj89_k$();
          var tmp_4 = sampling._packedInt2_kbgj8a_k$();
          tmp$ret$1 = org_jetbrains_skia_Image__1nMakeShader(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, $this$interopScope.toInterop_uum1m9_k$(localMatrix == null ? null : localMatrix.get_mat_18j0uh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Image).makeShader$default_cg3yhf_k$ = function (tmx, tmy, sampling, localMatrix, $super) {
    tmx = tmx === VOID ? FilterTileMode_CLAMP_getInstance() : tmx;
    tmy = tmy === VOID ? FilterTileMode_CLAMP_getInstance() : tmy;
    sampling = sampling === VOID ? Companion_getInstance_50().get_DEFAULT_wccqmg_k$() : sampling;
    localMatrix = localMatrix === VOID ? null : localMatrix;
    return $super === VOID ? this.makeShader_7nwpzf_k$(tmx, tmy, sampling, localMatrix) : $super.makeShader_7nwpzf_k$.call(this, tmx, tmy, sampling, localMatrix);
  };
  protoOf(Image).peekPixels_1l1uy0_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'kotlin.takeIf' call
      var this_0 = org_jetbrains_skia_Image__1nPeekPixels(this.get__ptr_wohp4o_k$());
      // Inline function 'kotlin.contracts.contract' call
      var tmp_0;
      // Inline function 'org.jetbrains.skia.Image.peekPixels.<anonymous>' call
      if (!(this_0 === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        tmp_0 = this_0;
      } else {
        tmp_0 = null;
      }
      var tmp0_safe_receiver = tmp_0;
      var tmp_1;
      if (tmp0_safe_receiver == null) {
        tmp_1 = null;
      } else {
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'org.jetbrains.skia.Image.peekPixels.<anonymous>' call
        tmp_1 = new Pixmap(tmp0_safe_receiver, true);
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Image).peekPixels_m2dzob_k$ = function (pixmap) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Image__1nPeekPixelsToPixmap(this.get__ptr_wohp4o_k$(), getPtr(pixmap));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(pixmap);
    }
    return tmp;
  };
  protoOf(Image).readPixels_s2nedo_k$ = function (dst) {
    return this.readPixels_7t7jxw_k$(null, dst, 0, 0, false);
  };
  protoOf(Image).readPixels_yiqj5g_k$ = function (dst, srcX, srcY) {
    return this.readPixels_7t7jxw_k$(null, dst, srcX, srcY, false);
  };
  protoOf(Image).readPixels_voss88_k$ = function (context, dst) {
    return this.readPixels_7t7jxw_k$(context, dst, 0, 0, false);
  };
  protoOf(Image).readPixels_8b4grs_k$ = function (context, dst, srcX, srcY) {
    return this.readPixels_7t7jxw_k$(context, dst, srcX, srcY, false);
  };
  protoOf(Image).readPixels_7t7jxw_k$ = function (context, dst, srcX, srcY, cache) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Image__1nReadPixelsBitmap(this.get__ptr_wohp4o_k$(), getPtr(context), getPtr(dst), srcX, srcY, cache);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(context);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  protoOf(Image).readPixels_ulcszi_k$ = function (dst, srcX, srcY, cache) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Image__1nReadPixelsPixmap(this.get__ptr_wohp4o_k$(), getPtr(dst), srcX, srcY, cache);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  protoOf(Image).scalePixels_6swj8h_k$ = function (dst, samplingMode, cache) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Image__1nScalePixels(this.get__ptr_wohp4o_k$(), getPtr(dst), samplingMode._packedInt1_kbgj89_k$(), samplingMode._packedInt2_kbgj8a_k$(), cache);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  function Companion_26() {
    Companion_instance_26 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_26).makeAlphaThreshold_88v5py_k$ = function (r, innerMin, outerMax, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeAlphaThreshold.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(r);
          var tmp_1 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeAlphaThreshold(tmp_0, innerMin, outerMax, tmp_1, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(r);
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeArithmetic_czgrwo_k$ = function (k1, k2, k3, k4, enforcePMColor, bg, fg, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeArithmetic.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(bg);
          var tmp_1 = getPtr(fg);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeArithmetic(k1, k2, k3, k4, enforcePMColor, tmp_0, tmp_1, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(bg);
      reachabilityBarrier(fg);
    }
    return tmp;
  };
  protoOf(Companion_26).makeBlend_w4abuc_k$ = function (blendMode, bg, fg, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeBlend.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = blendMode.get_ordinal_ip24qg_k$();
          var tmp_1 = getPtr(bg);
          var tmp_2 = getPtr(fg);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeBlend(tmp_0, tmp_1, tmp_2, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(bg);
      reachabilityBarrier(fg);
    }
    return tmp;
  };
  protoOf(Companion_26).makeBlur_dz1nmo_k$ = function (sigmaX, sigmaY, mode, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeBlur.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = mode.get_ordinal_ip24qg_k$();
          var tmp_1 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeBlur(sigmaX, sigmaY, tmp_0, tmp_1, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeBlur$default_wsud0e_k$ = function (sigmaX, sigmaY, mode, input, crop, $super) {
    input = input === VOID ? null : input;
    crop = crop === VOID ? null : crop;
    return $super === VOID ? this.makeBlur_dz1nmo_k$(sigmaX, sigmaY, mode, input, crop) : $super.makeBlur_dz1nmo_k$.call(this, sigmaX, sigmaY, mode, input, crop);
  };
  protoOf(Companion_26).makeColorFilter_wptvsg_k$ = function (f, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeColorFilter.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(f);
          var tmp_1 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeColorFilter(tmp_0, tmp_1, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(f);
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeCompose_dtsxz0_k$ = function (outer, inner) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeCompose(getPtr(outer), getPtr(inner)));
    }finally {
      reachabilityBarrier(outer);
      reachabilityBarrier(inner);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDisplacementMap_at7fx0_k$ = function (x, y, scale, displacement, color, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDisplacementMap.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = x.get_ordinal_ip24qg_k$();
          var tmp_1 = y.get_ordinal_ip24qg_k$();
          var tmp_2 = getPtr(displacement);
          var tmp_3 = getPtr(color);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDisplacementMap(tmp_0, tmp_1, scale, tmp_2, tmp_3, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(displacement);
      reachabilityBarrier(color);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDropShadow_bhsrna_k$ = function (dx, dy, sigmaX, sigmaY, color, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDropShadow.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDropShadow(dx, dy, sigmaX, sigmaY, color, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDropShadow$default_nbpi2g_k$ = function (dx, dy, sigmaX, sigmaY, color, input, crop, $super) {
    input = input === VOID ? null : input;
    crop = crop === VOID ? null : crop;
    return $super === VOID ? this.makeDropShadow_bhsrna_k$(dx, dy, sigmaX, sigmaY, color, input, crop) : $super.makeDropShadow_bhsrna_k$.call(this, dx, dy, sigmaX, sigmaY, color, input, crop);
  };
  protoOf(Companion_26).makeDropShadowOnly_hiw9by_k$ = function (dx, dy, sigmaX, sigmaY, color, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDropShadowOnly.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDropShadowOnly(dx, dy, sigmaX, sigmaY, color, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDropShadowOnly$default_9p8jr8_k$ = function (dx, dy, sigmaX, sigmaY, color, input, crop, $super) {
    input = input === VOID ? null : input;
    crop = crop === VOID ? null : crop;
    return $super === VOID ? this.makeDropShadowOnly_hiw9by_k$(dx, dy, sigmaX, sigmaY, color, input, crop) : $super.makeDropShadowOnly_hiw9by_k$.call(this, dx, dy, sigmaX, sigmaY, color, input, crop);
  };
  protoOf(Companion_26).makeImage_j0jomz_k$ = function (image) {
    var r = Companion_getInstance_45().makeWH_nov667_k$(image.get_width_j0q4yl_k$(), image.get_height_e7t92o_k$());
    return this.makeImage_1vx7mr_k$(image, r, r, Companion_getInstance_50().get_DEFAULT_wccqmg_k$());
  };
  protoOf(Companion_26).makeImage_1vx7mr_k$ = function (image, src, dst, mode) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeImage(getPtr(image), src.get_left_woprgw_k$(), src.get_top_18ivbo_k$(), src.get_right_ixz7xv_k$(), src.get_bottom_bj8ras_k$(), dst.get_left_woprgw_k$(), dst.get_top_18ivbo_k$(), dst.get_right_ixz7xv_k$(), dst.get_bottom_bj8ras_k$(), mode._packedInt1_kbgj89_k$(), mode._packedInt2_kbgj8a_k$()));
    }finally {
      reachabilityBarrier(image);
    }
    return tmp;
  };
  protoOf(Companion_26).makeMagnifier_zy6yc_k$ = function (r, inset, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeMagnifier.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = r.get_left_woprgw_k$();
          var tmp_1 = r.get_top_18ivbo_k$();
          var tmp_2 = r.get_right_ixz7xv_k$();
          var tmp_3 = r.get_bottom_bj8ras_k$();
          var tmp_4 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeMagnifier(tmp_0, tmp_1, tmp_2, tmp_3, inset, tmp_4, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeMatrixConvolution_6t90e2_k$ = function (kernelW, kernelH, kernel, gain, bias, offsetX, offsetY, tileMode, convolveAlpha, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeMatrixConvolution.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = $this$interopScope.toInterop_uum1m9_k$(kernel);
          var tmp_1 = tileMode.get_ordinal_ip24qg_k$();
          var tmp_2 = getPtr(input);
          tmp$ret$1 = org_jetbrains_skia_ImageFilter__1nMakeMatrixConvolution(kernelW, kernelH, tmp_0, gain, bias, offsetX, offsetY, tmp_1, convolveAlpha, tmp_2, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new ImageFilter(tmp$ret$1);
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeMatrixTransform_8i9riq_k$ = function (matrix, mode, input) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeMatrixTransform.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_ImageFilter__1nMakeMatrixTransform($this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()), mode._packedInt1_kbgj89_k$(), mode._packedInt2_kbgj8a_k$(), getPtr(input));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new ImageFilter(tmp$ret$1);
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeMerge_cad2v8_k$ = function (filters, crop) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeMerge.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var tmp;
        try {
          Stats_getInstance().onNativeCall_s2f4hw_k$();
          var filterPtrs = new NativePointerArray(filters.length);
          var inductionVariable = 0;
          var last = filters.length - 1 | 0;
          if (inductionVariable <= last)
            do {
              var i = inductionVariable;
              inductionVariable = inductionVariable + 1 | 0;
              filterPtrs.set_g707pu_k$(i, getPtr(filters[i]));
            }
             while (inductionVariable <= last);
          var tmp_0 = $this$interopScope.toInterop_1ghudk_k$(filterPtrs);
          var tmp_1 = filters.length;
          tmp = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeMerge(tmp_0, tmp_1, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
        }finally {
          reachabilityBarrier(filters);
        }
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp;
  };
  protoOf(Companion_26).makeOffset_lafoeo_k$ = function (dx, dy, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeOffset.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeOffset(dx, dy, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeShader_pffvva_k$ = function (shader, dither, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(shader);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeShader(tmp_0, dither, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(shader);
    }
    return tmp;
  };
  protoOf(Companion_26).makeShader$default_e9k1bv_k$ = function (shader, dither, crop, $super) {
    dither = dither === VOID ? false : dither;
    return $super === VOID ? this.makeShader_pffvva_k$(shader, dither, crop) : $super.makeShader_pffvva_k$.call(this, shader, dither, crop);
  };
  protoOf(Companion_26).makeRuntimeShader_nl4lek_k$ = function (runtimeShaderBuilder, shaderName, input) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeRuntimeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeRuntimeShader(getPtr(runtimeShaderBuilder), $this$interopScope.toInterop_ok8jph_k$(shaderName), getPtr(input)));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(runtimeShaderBuilder);
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeRuntimeShader_izv2rr_k$ = function (runtimeShaderBuilder, shaderNames, inputs) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(shaderNames.length === inputs.length)) {
        // Inline function 'kotlin.require.<anonymous>' call
        var message = 'Failed requirement.';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeRuntimeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var inputPtrs = new NativePointerArray(inputs.length);
          var inductionVariable = 0;
          var last = inputs.length - 1 | 0;
          if (inductionVariable <= last)
            do {
              var i = inductionVariable;
              inductionVariable = inductionVariable + 1 | 0;
              inputPtrs.set_g707pu_k$(i, getPtr(inputs[i]));
            }
             while (inductionVariable <= last);
          tmp$ret$2 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeRuntimeShaderFromArray(getPtr(runtimeShaderBuilder), $this$interopScope.toInterop_2ejn5p_k$(shaderNames), $this$interopScope.toInterop_1ghudk_k$(inputPtrs), inputPtrs.get_size_woubt6_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$2;
    }finally {
      reachabilityBarrier(runtimeShaderBuilder);
      reachabilityBarrier(inputs);
    }
    return tmp;
  };
  protoOf(Companion_26).makeTile_17mmom_k$ = function (src, dst, input) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeTile(src.get_left_woprgw_k$(), src.get_top_18ivbo_k$(), src.get_right_ixz7xv_k$(), src.get_bottom_bj8ras_k$(), dst.get_left_woprgw_k$(), dst.get_top_18ivbo_k$(), dst.get_right_ixz7xv_k$(), dst.get_bottom_bj8ras_k$(), getPtr(input)));
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDilate_nzvgoo_k$ = function (rx, ry, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDilate.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDilate(rx, ry, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeErode_pd42p0_k$ = function (rx, ry, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeErode.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeErode(rx, ry, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDistantLitDiffuse_1eic4z_k$ = function (x, y, z, lightColor, surfaceScale, kd, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDistantLitDiffuse.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDistantLitDiffuse(x, y, z, lightColor, surfaceScale, kd, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makePointLitDiffuse_f3fppg_k$ = function (x, y, z, lightColor, surfaceScale, kd, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makePointLitDiffuse.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakePointLitDiffuse(x, y, z, lightColor, surfaceScale, kd, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeSpotLitDiffuse_abj8ms_k$ = function (x0, y0, z0, x1, y1, z1, falloffExponent, cutoffAngle, lightColor, surfaceScale, kd, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeSpotLitDiffuse.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeSpotLitDiffuse(x0, y0, z0, x1, y1, z1, falloffExponent, cutoffAngle, lightColor, surfaceScale, kd, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeDistantLitSpecular_jgkl1c_k$ = function (x, y, z, lightColor, surfaceScale, ks, shininess, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeDistantLitSpecular.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeDistantLitSpecular(x, y, z, lightColor, surfaceScale, ks, shininess, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makePointLitSpecular_uyc169_k$ = function (x, y, z, lightColor, surfaceScale, ks, shininess, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makePointLitSpecular.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakePointLitSpecular(x, y, z, lightColor, surfaceScale, ks, shininess, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  protoOf(Companion_26).makeSpotLitSpecular_v3swnb_k$ = function (x0, y0, z0, x1, y1, z1, falloffExponent, cutoffAngle, lightColor, surfaceScale, ks, shininess, input, crop) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeSpotLitSpecular.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = getPtr(input);
          tmp$ret$1 = new ImageFilter(org_jetbrains_skia_ImageFilter__1nMakeSpotLitSpecular(x0, y0, z0, x1, y1, z1, falloffExponent, cutoffAngle, lightColor, surfaceScale, ks, shininess, tmp_0, $this$interopScope.toInterop_i7skn2_k$(crop == null ? null : crop.serializeToIntArray_wv960r_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(input);
    }
    return tmp;
  };
  var Companion_instance_26;
  function Companion_getInstance_27() {
    if (Companion_instance_26 == null)
      new Companion_26();
    return Companion_instance_26;
  }
  function ImageFilter(ptr) {
    Companion_getInstance_27();
    RefCnt_init_$Init$(ptr, this);
  }
  function ImageInfo_init_$Init$(width, height, colorType, alphaType, $this) {
    ImageInfo.call($this, new ColorInfo(colorType, alphaType, null), width, height);
    return $this;
  }
  function ImageInfo_init_$Create$(width, height, colorType, alphaType) {
    return ImageInfo_init_$Init$(width, height, colorType, alphaType, objectCreate(protoOf(ImageInfo)));
  }
  function ImageInfo_init_$Init$_0(width, height, colorType, alphaType, colorSpace, $this) {
    ImageInfo.call($this, new ColorInfo(colorType, alphaType, colorSpace), width, height);
    return $this;
  }
  function ImageInfo_init_$Create$_0(width, height, colorType, alphaType, colorSpace) {
    return ImageInfo_init_$Init$_0(width, height, colorType, alphaType, colorSpace, objectCreate(protoOf(ImageInfo)));
  }
  function ImageInfo_init_$Init$_1(width, height, colorType, alphaType, colorSpace, $this) {
    ImageInfo_init_$Init$_0(width, height, values_3()[colorType], values_1()[alphaType], colorSpace === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : ColorSpace_init_$Create$(colorSpace), $this);
    return $this;
  }
  function ImageInfo_init_$Create$_1(width, height, colorType, alphaType, colorSpace) {
    return ImageInfo_init_$Init$_1(width, height, colorType, alphaType, colorSpace, objectCreate(protoOf(ImageInfo)));
  }
  function Companion_27() {
    Companion_instance_27 = this;
    this.DEFAULT_1 = new ImageInfo(Companion_getInstance_5().get_DEFAULT_wccqmg_k$(), 0, 0);
  }
  protoOf(Companion_27).get_DEFAULT_wccqmg_k$ = function () {
    return this.DEFAULT_1;
  };
  protoOf(Companion_27).makeN32_3as8gh_k$ = function (width, height, alphaType) {
    return new ImageInfo(new ColorInfo(Companion_getInstance_7().get_N32_18jozg_k$(), alphaType, null), width, height);
  };
  protoOf(Companion_27).makeN32_aso3w8_k$ = function (width, height, alphaType, colorSpace) {
    return new ImageInfo(new ColorInfo(Companion_getInstance_7().get_N32_18jozg_k$(), alphaType, colorSpace), width, height);
  };
  protoOf(Companion_27).makeS32_t68uyy_k$ = function (width, height, alphaType) {
    return new ImageInfo(new ColorInfo(Companion_getInstance_7().get_N32_18jozg_k$(), alphaType, Companion_getInstance_6().get_sRGB_wottib_k$()), width, height);
  };
  protoOf(Companion_27).makeN32Premul_iqgvhc_k$ = function (width, height) {
    return new ImageInfo(new ColorInfo(Companion_getInstance_7().get_N32_18jozg_k$(), ColorAlphaType_PREMUL_getInstance(), null), width, height);
  };
  protoOf(Companion_27).makeN32Premul_hz2ms9_k$ = function (width, height, colorSpace) {
    return new ImageInfo(new ColorInfo(Companion_getInstance_7().get_N32_18jozg_k$(), ColorAlphaType_PREMUL_getInstance(), colorSpace), width, height);
  };
  protoOf(Companion_27).makeA8_kz383p_k$ = function (width, height) {
    return new ImageInfo(new ColorInfo(ColorType_ALPHA_8_getInstance(), ColorAlphaType_PREMUL_getInstance(), null), width, height);
  };
  protoOf(Companion_27).makeUnknown_2sadg_k$ = function (width, height) {
    return new ImageInfo(new ColorInfo(ColorType_UNKNOWN_getInstance(), ColorAlphaType_UNKNOWN_getInstance(), null), width, height);
  };
  protoOf(Companion_27).createUsing_vjf7w1_k$ = function (_ptr, _nGetImageInfo) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var colorSpacePtr = null;
    // Inline function 'kotlin.let' call
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(4);
    $l$block_0: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        // Inline function 'org.jetbrains.skia.Companion.createUsing.<anonymous>' call
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result_0 = new NativePointerArray(1);
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0_0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope_0 = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle_0 = $this$interopScope_0.toInteropForResult_nw6uau_k$(result_0);
            // Inline function 'org.jetbrains.skia.Companion.createUsing.<anonymous>.<anonymous>' call
            _nGetImageInfo(_ptr, handle, handle_0);
            $this$interopScope_0.fromInterop_phusho_k$(handle_0, result_0);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        colorSpacePtr = result_0.get_c1px32_k$(0);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block_0;
      }finally {
        var tmp1_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1_0 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'org.jetbrains.skia.Companion.createUsing.<anonymous>' call
    return ImageInfo_init_$Create$_1(result[0], result[1], result[2], result[3], ensureNotNull(colorSpacePtr));
  };
  var Companion_instance_27;
  function Companion_getInstance_28() {
    if (Companion_instance_27 == null)
      new Companion_27();
    return Companion_instance_27;
  }
  function ImageInfo(colorInfo, width, height) {
    Companion_getInstance_28();
    this.colorInfo_1 = colorInfo;
    this.width_1 = width;
    this.height_1 = height;
  }
  protoOf(ImageInfo).get_colorInfo_tre0vs_k$ = function () {
    return this.colorInfo_1;
  };
  protoOf(ImageInfo).get_width_j0q4yl_k$ = function () {
    return this.width_1;
  };
  protoOf(ImageInfo).get_height_e7t92o_k$ = function () {
    return this.height_1;
  };
  protoOf(ImageInfo).get_minRowBytes_yg2hc6_k$ = function () {
    return imul(this.width_1, this.get_bytesPerPixel_yisyiz_k$());
  };
  protoOf(ImageInfo).get_colorType_tr6rn0_k$ = function () {
    return this.colorInfo_1.get_colorType_tr6rn0_k$();
  };
  protoOf(ImageInfo).withColorType_9ad897_k$ = function (colorType) {
    return this.withColorInfo_64ok8p_k$(this.colorInfo_1.withColorType_9ad897_k$(colorType));
  };
  protoOf(ImageInfo).get_colorAlphaType_aqfov2_k$ = function () {
    return this.colorInfo_1.get_alphaType_1awv75_k$();
  };
  protoOf(ImageInfo).withColorAlphaType_dgzrpp_k$ = function (alphaType) {
    return this.withColorInfo_64ok8p_k$(this.colorInfo_1.withAlphaType_z42bb8_k$(alphaType));
  };
  protoOf(ImageInfo).get_colorSpace_yx2b0_k$ = function () {
    return this.colorInfo_1.get_colorSpace_yx2b0_k$();
  };
  protoOf(ImageInfo).withColorSpace_4yspap_k$ = function (colorSpace) {
    return this.withColorInfo_64ok8p_k$(this.colorInfo_1.withColorSpace_yuen1e_k$(colorSpace));
  };
  protoOf(ImageInfo).get_isEmpty_zauvru_k$ = function () {
    return this.width_1 <= 0 ? true : this.height_1 <= 0;
  };
  protoOf(ImageInfo).get_isOpaque_xnqi0k_k$ = function () {
    return this.colorInfo_1.get_isOpaque_xnqi0k_k$();
  };
  protoOf(ImageInfo).get_bounds_bj99ku_k$ = function () {
    return Companion_getInstance_24().makeXYWH_reycg0_k$(0, 0, this.width_1, this.height_1);
  };
  protoOf(ImageInfo).get_isGammaCloseToSRGB_62yjev_k$ = function () {
    return this.colorInfo_1.get_isGammaCloseToSRGB_62yjev_k$();
  };
  protoOf(ImageInfo).withWidthHeight_jcby3d_k$ = function (width, height) {
    return new ImageInfo(this.colorInfo_1, width, height);
  };
  protoOf(ImageInfo).get_bytesPerPixel_yisyiz_k$ = function () {
    return this.colorInfo_1.get_bytesPerPixel_yisyiz_k$();
  };
  protoOf(ImageInfo).get_shiftPerPixel_3lby8u_k$ = function () {
    return this.colorInfo_1.get_shiftPerPixel_3lby8u_k$();
  };
  protoOf(ImageInfo).isRowBytesValid_aa8iwj_k$ = function (rowBytes) {
    if (rowBytes.compareTo_9jj042_k$(toLong(this.get_minRowBytes_yg2hc6_k$())) < 0)
      return false;
    var shift = this.get_shiftPerPixel_3lby8u_k$();
    return rowBytes.shr_9fl3wl_k$(shift).shl_bg8if3_k$(shift).equals(rowBytes);
  };
  protoOf(ImageInfo).computeOffset_i6ij98_k$ = function (x, y, rowBytes) {
    return this.colorInfo_1.get_colorType_tr6rn0_k$().computeOffset_i6ij98_k$(x, y, rowBytes);
  };
  protoOf(ImageInfo).computeByteSize_5twt7c_k$ = function (rowBytes) {
    return 0 === this.height_1 ? 0 : imul(this.height_1 - 1 | 0, rowBytes) + imul(this.width_1, this.get_bytesPerPixel_yisyiz_k$()) | 0;
  };
  protoOf(ImageInfo).computeMinByteSize_33guu4_k$ = function () {
    return this.computeByteSize_5twt7c_k$(this.get_minRowBytes_yg2hc6_k$());
  };
  protoOf(ImageInfo).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ImageInfo))
      return false;
    if (!(this.width_1 === other.width_1))
      return false;
    if (!(this.height_1 === other.height_1))
      return false;
    return this.colorInfo_1.equals(other.colorInfo_1);
  };
  protoOf(ImageInfo).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.width_1 | 0;
    result = imul(result, PRIME) + this.height_1 | 0;
    result = imul(result, PRIME) + this.colorInfo_1.hashCode() | 0;
    return result;
  };
  protoOf(ImageInfo).toString = function () {
    return 'ImageInfo(_colorInfo=' + this.colorInfo_1 + ', _width=' + this.width_1 + ', _height=' + this.height_1 + ')';
  };
  protoOf(ImageInfo).withColorInfo_64ok8p_k$ = function (_colorInfo) {
    return this.colorInfo_1 === _colorInfo ? this : new ImageInfo(_colorInfo, this.width_1, this.height_1);
  };
  protoOf(ImageInfo).withWidth_f15y6g_k$ = function (_width) {
    return this.width_1 === _width ? this : new ImageInfo(this.colorInfo_1, _width, this.height_1);
  };
  protoOf(ImageInfo).withHeight_zc2dhx_k$ = function (_height) {
    return this.height_1 === _height ? this : new ImageInfo(this.colorInfo_1, this.width_1, _height);
  };
  var InversionMode_NO_instance;
  var InversionMode_BRIGHTNESS_instance;
  var InversionMode_LIGHTNESS_instance;
  function values_12() {
    return [InversionMode_NO_getInstance(), InversionMode_BRIGHTNESS_getInstance(), InversionMode_LIGHTNESS_getInstance()];
  }
  function valueOf_12(value) {
    switch (value) {
      case 'NO':
        return InversionMode_NO_getInstance();
      case 'BRIGHTNESS':
        return InversionMode_BRIGHTNESS_getInstance();
      case 'LIGHTNESS':
        return InversionMode_LIGHTNESS_getInstance();
      default:
        InversionMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var InversionMode_entriesInitialized;
  function InversionMode_initEntries() {
    if (InversionMode_entriesInitialized)
      return Unit_getInstance();
    InversionMode_entriesInitialized = true;
    InversionMode_NO_instance = new InversionMode('NO', 0);
    InversionMode_BRIGHTNESS_instance = new InversionMode('BRIGHTNESS', 1);
    InversionMode_LIGHTNESS_instance = new InversionMode('LIGHTNESS', 2);
  }
  function InversionMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function InversionMode_NO_getInstance() {
    InversionMode_initEntries();
    return InversionMode_NO_instance;
  }
  function InversionMode_BRIGHTNESS_getInstance() {
    InversionMode_initEntries();
    return InversionMode_BRIGHTNESS_instance;
  }
  function InversionMode_LIGHTNESS_getInstance() {
    InversionMode_initEntries();
    return InversionMode_LIGHTNESS_instance;
  }
  function Companion_28() {
    Companion_instance_28 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_28;
  function Companion_getInstance_29() {
    if (Companion_instance_28 == null)
      new Companion_28();
    return Companion_instance_28;
  }
  function ManagedString_init_$Init$(s, $this) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.ManagedString.<init>.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_ManagedString__1nMake($this$interopScope.toInterop_ok8jph_k$(s));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    ManagedString.call($this, tmp$ret$1);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function ManagedString_init_$Create$(s) {
    return ManagedString_init_$Init$(s, objectCreate(protoOf(ManagedString)));
  }
  function _FinalizerHolder_6() {
    _FinalizerHolder_instance_6 = this;
    this.PTR_1 = org_jetbrains_skia_ManagedString__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_6).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_6;
  function _FinalizerHolder_getInstance_6() {
    if (_FinalizerHolder_instance_6 == null)
      new _FinalizerHolder_6();
    return _FinalizerHolder_instance_6;
  }
  function ManagedString(ptr, managed) {
    Companion_getInstance_29();
    managed = managed === VOID ? true : managed;
    Managed.call(this, ptr, _FinalizerHolder_getInstance_6().PTR_1, managed);
  }
  protoOf(ManagedString).toString = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var size = org_jetbrains_skia_ManagedString__nStringSize(this.get__ptr_wohp4o_k$());
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int8Array(size);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_toi1ab_k$(result);
          // Inline function 'org.jetbrains.skia.ManagedString.toString.<anonymous>' call
          org_jetbrains_skia_ManagedString__nStringData(this.get__ptr_wohp4o_k$(), handle, size);
          $this$interopScope.fromInterop_40e3wn_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = decodeToString(result);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ManagedString).insert_zhjdk5_k$ = function (offset, s) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_ManagedString__1nInsert(this.get__ptr_wohp4o_k$(), offset, $this$interopScope.toInterop_ok8jph_k$(s));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(ManagedString).append_bgzq5c_k$ = function (s) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_ManagedString__1nAppend(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(s));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(ManagedString).remove_cqondg_k$ = function (from) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_ManagedString__1nRemoveSuffix(this.get__ptr_wohp4o_k$(), from);
    return this;
  };
  protoOf(ManagedString).remove_i3tv9g_k$ = function (from, length) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_ManagedString__1nRemove(this.get__ptr_wohp4o_k$(), from, length);
    return this;
  };
  function Companion_29() {
    Companion_instance_29 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_29).makeBlur_sh0rnw_k$ = function (mode, sigma, respectCTM) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new MaskFilter(org_jetbrains_skia_MaskFilter__1nMakeBlur(mode.get_ordinal_ip24qg_k$(), sigma, respectCTM));
  };
  protoOf(Companion_29).makeBlur$default_wa8lhq_k$ = function (mode, sigma, respectCTM, $super) {
    respectCTM = respectCTM === VOID ? true : respectCTM;
    return $super === VOID ? this.makeBlur_sh0rnw_k$(mode, sigma, respectCTM) : $super.makeBlur_sh0rnw_k$.call(this, mode, sigma, respectCTM);
  };
  protoOf(Companion_29).makeShader_6gs3kt_k$ = function (s) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new MaskFilter(org_jetbrains_skia_MaskFilter__1nMakeShader(getPtr(s)));
    }finally {
      reachabilityBarrier(s);
    }
    return tmp;
  };
  protoOf(Companion_29).makeTable_1muyzk_k$ = function (table) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(table.length === 256)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTable.<anonymous>' call
      var message = 'Expected 256 elements, got ' + table.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeTable.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_MaskFilter__1nMakeTable($this$interopScope.toInterop_h7cpet_k$(table));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new MaskFilter(tmp$ret$2);
  };
  protoOf(Companion_29).makeGamma_v2akxt_k$ = function (gamma) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new MaskFilter(org_jetbrains_skia_MaskFilter__1nMakeGamma(gamma));
  };
  protoOf(Companion_29).makeClip_yknmqm_k$ = function (min, max) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new MaskFilter(org_jetbrains_skia_MaskFilter__1nMakeClip(toByte(min), toByte(max)));
  };
  var Companion_instance_29;
  function Companion_getInstance_30() {
    if (Companion_instance_29 == null)
      new Companion_29();
    return Companion_instance_29;
  }
  function MaskFilter(ptr) {
    Companion_getInstance_30();
    RefCnt_init_$Init$(ptr, this);
  }
  function Companion_30() {
    Companion_instance_30 = this;
    this.IDENTITY_1 = new Matrix22(new Float32Array([1.0, 0.0, 0.0, 1.0]));
  }
  protoOf(Companion_30).get_IDENTITY_l3t6d5_k$ = function () {
    return this.IDENTITY_1;
  };
  protoOf(Companion_30).fromInteropPointer_2qty6v_k$ = function (block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(4);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new Matrix22(result_0.slice());
  };
  var Companion_instance_30;
  function Companion_getInstance_31() {
    if (Companion_instance_30 == null)
      new Companion_30();
    return Companion_instance_30;
  }
  function Matrix22(mat) {
    Companion_getInstance_31();
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(mat.length === 4)) {
      // Inline function 'org.jetbrains.skia.Matrix22.<anonymous>' call
      var message = 'Expected 4 elements, got ' + mat.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    this.mat_1 = mat;
  }
  protoOf(Matrix22).get_mat_18j0uh_k$ = function () {
    return this.mat_1;
  };
  protoOf(Matrix22).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Matrix22))
      return false;
    return contentEquals(this.mat_1, other.mat_1);
  };
  protoOf(Matrix22).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + contentHashCode(this.mat_1) | 0;
    return result;
  };
  protoOf(Matrix22).toString = function () {
    return 'Matrix22(_mat=' + this.mat_1 + ')';
  };
  function Companion_31() {
    Companion_instance_31 = this;
    this.IDENTITY_1 = this.makeTranslate_9v7aio_k$(0.0, 0.0);
  }
  protoOf(Companion_31).get_IDENTITY_l3t6d5_k$ = function () {
    return this.IDENTITY_1;
  };
  protoOf(Companion_31).makeTranslate_9v7aio_k$ = function (dx, dy) {
    return new Matrix33(new Float32Array([1.0, 0.0, dx, 0.0, 1.0, dy, 0.0, 0.0, 1.0]));
  };
  protoOf(Companion_31).makeScale_drksuc_k$ = function (s) {
    return this.makeScale_4fbq4c_k$(s, s);
  };
  protoOf(Companion_31).makeScale_4fbq4c_k$ = function (sx, sy) {
    return new Matrix33(new Float32Array([sx, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 1.0]));
  };
  protoOf(Companion_31).makeRotate_qd0e7j_k$ = function (deg) {
    var rad = toRadians(deg);
    // Inline function 'kotlin.math.sin' call
    var sin = Math.sin(rad);
    // Inline function 'kotlin.math.cos' call
    var cos = Math.cos(rad);
    var tolerance = 2.44140625E-4;
    // Inline function 'kotlin.math.abs' call
    var x = sin;
    if (Math.abs(x) <= tolerance)
      sin = 0.0;
    // Inline function 'kotlin.math.abs' call
    var x_0 = cos;
    if (Math.abs(x_0) <= tolerance)
      cos = 0.0;
    return new Matrix33(new Float32Array([cos, -sin, 0.0, sin, cos, 0.0, 0.0, 0.0, 1.0]));
  };
  protoOf(Companion_31).makeRotate_1vecke_k$ = function (deg, pivot) {
    return this.makeRotate_clww29_k$(deg, pivot.get_x_1mhr67_k$(), pivot.get_y_1mhr68_k$());
  };
  protoOf(Companion_31).makeRotate_clww29_k$ = function (deg, pivotx, pivoty) {
    var rad = toRadians(deg);
    // Inline function 'kotlin.math.sin' call
    var sin = Math.sin(rad);
    // Inline function 'kotlin.math.cos' call
    var cos = Math.cos(rad);
    var tolerance = 2.44140625E-4;
    // Inline function 'kotlin.math.abs' call
    var x = sin;
    if (Math.abs(x) <= tolerance)
      sin = 0.0;
    // Inline function 'kotlin.math.abs' call
    var x_0 = cos;
    if (Math.abs(x_0) <= tolerance)
      cos = 0.0;
    return new Matrix33(new Float32Array([cos, -sin, pivotx - pivotx * cos + pivoty * sin, sin, cos, pivoty - pivoty * cos - pivotx * sin, 0.0, 0.0, 1.0]));
  };
  protoOf(Companion_31).makeSkew_a6jizs_k$ = function (sx, sy) {
    return new Matrix33(new Float32Array([1.0, sx, 0.0, sy, 1.0, 0.0, 0.0, 0.0, 1.0]));
  };
  var Companion_instance_31;
  function Companion_getInstance_32() {
    if (Companion_instance_31 == null)
      new Companion_31();
    return Companion_instance_31;
  }
  function Matrix33(mat) {
    Companion_getInstance_32();
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(mat.length === 9)) {
      // Inline function 'org.jetbrains.skia.Matrix33.<anonymous>' call
      var message = 'Expected 9 elements, got ' + mat.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    this.mat_1 = mat;
  }
  protoOf(Matrix33).get_mat_18j0uh_k$ = function () {
    return this.mat_1;
  };
  protoOf(Matrix33).makePreScale_mnit9x_k$ = function (sx, sy) {
    return new Matrix33(new Float32Array([this.mat_1[0] * sx, this.mat_1[1] * sy, this.mat_1[2], this.mat_1[3] * sx, this.mat_1[4] * sy, this.mat_1[5], this.mat_1[6] * sx, this.mat_1[7] * sy, this.mat_1[8]]));
  };
  protoOf(Matrix33).makeConcat_ntjlss_k$ = function (other) {
    return new Matrix33(new Float32Array([this.mat_1[0] * other.mat_1[0] + this.mat_1[1] * other.mat_1[3] + this.mat_1[2] * other.mat_1[6], this.mat_1[0] * other.mat_1[1] + this.mat_1[1] * other.mat_1[4] + this.mat_1[2] * other.mat_1[7], this.mat_1[0] * other.mat_1[2] + this.mat_1[1] * other.mat_1[5] + this.mat_1[2] * other.mat_1[8], this.mat_1[3] * other.mat_1[0] + this.mat_1[4] * other.mat_1[3] + this.mat_1[5] * other.mat_1[6], this.mat_1[3] * other.mat_1[1] + this.mat_1[4] * other.mat_1[4] + this.mat_1[5] * other.mat_1[7], this.mat_1[3] * other.mat_1[2] + this.mat_1[4] * other.mat_1[5] + this.mat_1[5] * other.mat_1[8], this.mat_1[6] * other.mat_1[0] + this.mat_1[7] * other.mat_1[3] + this.mat_1[8] * other.mat_1[6], this.mat_1[6] * other.mat_1[1] + this.mat_1[7] * other.mat_1[4] + this.mat_1[8] * other.mat_1[7], this.mat_1[6] * other.mat_1[2] + this.mat_1[7] * other.mat_1[5] + this.mat_1[8] * other.mat_1[8]]));
  };
  protoOf(Matrix33).asMatrix44_i0r32r_k$ = function () {
    return new Matrix44(new Float32Array([this.mat_1[0], this.mat_1[1], 0.0, this.mat_1[2], this.mat_1[3], this.mat_1[4], 0.0, this.mat_1[5], 0.0, 0.0, 1.0, 0.0, this.mat_1[6], this.mat_1[7], 0.0, this.mat_1[8]]));
  };
  protoOf(Matrix33).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Matrix33))
      return false;
    return contentEquals(this.mat_1, other.mat_1);
  };
  protoOf(Matrix33).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + contentHashCode(this.mat_1) | 0;
    return result;
  };
  protoOf(Matrix33).toString = function () {
    return 'Matrix33(_mat=' + this.mat_1 + ')';
  };
  function toRadians(_this__u8e3s4) {
    return _this__u8e3s4 / 180 * get_PI();
  }
  function Companion_32() {
    Companion_instance_32 = this;
    this.IDENTITY_1 = new Matrix44(new Float32Array([1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]));
  }
  protoOf(Companion_32).get_IDENTITY_l3t6d5_k$ = function () {
    return this.IDENTITY_1;
  };
  protoOf(Companion_32).fromInteropPointer_2qty6v_k$ = function (block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(16);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new Matrix44(result_0.slice());
  };
  var Companion_instance_32;
  function Companion_getInstance_33() {
    if (Companion_instance_32 == null)
      new Companion_32();
    return Companion_instance_32;
  }
  function Matrix44(mat) {
    Companion_getInstance_33();
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(mat.length === 16)) {
      // Inline function 'org.jetbrains.skia.Matrix44.<anonymous>' call
      var message = 'Expected 16 elements, got ' + mat.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    this.mat_1 = mat;
  }
  protoOf(Matrix44).get_mat_18j0uh_k$ = function () {
    return this.mat_1;
  };
  protoOf(Matrix44).asMatrix33_i0r31v_k$ = function () {
    return new Matrix33(new Float32Array([this.mat_1[0], this.mat_1[1], this.mat_1[3], this.mat_1[4], this.mat_1[5], this.mat_1[7], this.mat_1[12], this.mat_1[13], this.mat_1[15]]));
  };
  protoOf(Matrix44).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Matrix44))
      return false;
    return contentEquals(this.mat_1, other.mat_1);
  };
  protoOf(Matrix44).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + contentHashCode(this.mat_1) | 0;
    return result;
  };
  protoOf(Matrix44).toString = function () {
    return 'Matrix44(_mat=' + this.mat_1 + ')';
  };
  var MipmapMode_NONE_instance;
  var MipmapMode_NEAREST_instance;
  var MipmapMode_LINEAR_instance;
  function values_13() {
    return [MipmapMode_NONE_getInstance(), MipmapMode_NEAREST_getInstance(), MipmapMode_LINEAR_getInstance()];
  }
  function valueOf_13(value) {
    switch (value) {
      case 'NONE':
        return MipmapMode_NONE_getInstance();
      case 'NEAREST':
        return MipmapMode_NEAREST_getInstance();
      case 'LINEAR':
        return MipmapMode_LINEAR_getInstance();
      default:
        MipmapMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var MipmapMode_entriesInitialized;
  function MipmapMode_initEntries() {
    if (MipmapMode_entriesInitialized)
      return Unit_getInstance();
    MipmapMode_entriesInitialized = true;
    MipmapMode_NONE_instance = new MipmapMode('NONE', 0);
    MipmapMode_NEAREST_instance = new MipmapMode('NEAREST', 1);
    MipmapMode_LINEAR_instance = new MipmapMode('LINEAR', 2);
  }
  function MipmapMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function MipmapMode_NONE_getInstance() {
    MipmapMode_initEntries();
    return MipmapMode_NONE_instance;
  }
  function MipmapMode_NEAREST_getInstance() {
    MipmapMode_initEntries();
    return MipmapMode_NEAREST_instance;
  }
  function MipmapMode_LINEAR_getInstance() {
    MipmapMode_initEntries();
    return MipmapMode_LINEAR_instance;
  }
  function Companion_33() {
    Companion_instance_33 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_33;
  function Companion_getInstance_34() {
    if (Companion_instance_33 == null)
      new Companion_33();
    return Companion_instance_33;
  }
  function _FinalizerHolder_7() {
    _FinalizerHolder_instance_7 = this;
    this.PTR_1 = org_jetbrains_skia_Paint__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_7).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_7;
  function _FinalizerHolder_getInstance_7() {
    if (_FinalizerHolder_instance_7 == null)
      new _FinalizerHolder_7();
    return _FinalizerHolder_instance_7;
  }
  function Paint_init_$Init$(ptr, managed, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_7().PTR_1, managed);
    Paint.call($this);
    return $this;
  }
  function Paint_init_$Create$(ptr, managed) {
    return Paint_init_$Init$(ptr, managed, objectCreate(protoOf(Paint)));
  }
  function Paint_init_$Init$_0($this) {
    Managed.call($this, org_jetbrains_skia_Paint__1nMake(), _FinalizerHolder_getInstance_7().PTR_1);
    Paint.call($this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function Paint_init_$Create$_0() {
    return Paint_init_$Init$_0(objectCreate(protoOf(Paint)));
  }
  protoOf(Paint).makeClone_kiegb3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = Paint_init_$Create$(org_jetbrains_skia_Paint__1nMakeClone(this.get__ptr_wohp4o_k$()), true);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Paint__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Paint).reset_1sjh3j_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Paint__1nReset(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Paint).set_isAntiAlias_m6kooi_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetAntiAlias(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_isAntiAlias_255n51_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nIsAntiAlias(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_isDither_gotak8_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetDither(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_isDither_scq189_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nIsDither(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_mode_s75p6s_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetMode(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_mode_woqlt8_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_14()[org_jetbrains_skia_Paint__1nGetMode(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).setStroke_ox9nbp_k$ = function (value) {
    this.set_mode_s75p6s_k$(value ? PaintMode_STROKE_getInstance() : PaintMode_FILL_getInstance());
    return this;
  };
  protoOf(Paint).set_color_7ztbpe_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetColor(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_color_ipu8u2_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nGetColor(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_color4f_gk5qia_k$ = function (value) {
    this.setColor4f_qx9bsm_k$(value, null);
  };
  protoOf(Paint).get_color4f_gyvzvw_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(4);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.Paint.<get-color4f>.<anonymous>' call
          org_jetbrains_skia_Paint__1nGetColor4f(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = Color4f_init_$Create$(result);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).setColor4f_qx9bsm_k$ = function (color, colorSpace) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetColor4f(this.get__ptr_wohp4o_k$(), color.get_r_1mhr61_k$(), color.get_g_1mhr5q_k$(), color.get_b_1mhr5l_k$(), color.get_a_1mhr5k_k$(), getPtr(colorSpace));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(colorSpace);
    }
    return tmp;
  };
  protoOf(Paint).get_alphaf_b0gxxt_k$ = function () {
    return this.get_color4f_gyvzvw_k$().get_a_1mhr5k_k$();
  };
  protoOf(Paint).set_alpha_lxtbmv_k$ = function (value) {
    this.setAlphaf_y68m0e_k$(value / 255.0);
  };
  protoOf(Paint).get_alpha_iooth1_k$ = function () {
    // Inline function 'kotlin.math.round' call
    var x = this.get_alphaf_b0gxxt_k$() * 255.0;
    var tmp$ret$0 = round(x);
    return numberToInt(tmp$ret$0);
  };
  protoOf(Paint).setAlphaf_y68m0e_k$ = function (a) {
    this.setColor4f_qx9bsm_k$(this.get_color4f_gyvzvw_k$().withA_s9shpf_k$(a), null);
    return this;
  };
  protoOf(Paint).setARGB_4ujff6_k$ = function (a, r, g, b) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Paint__1nSetColor4f(this.get__ptr_wohp4o_k$(), r / 255.0, g / 255.0, b / 255.0, a / 255.0, Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
    return this;
  };
  protoOf(Paint).set_strokeWidth_owqvpl_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetStrokeWidth(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_strokeWidth_pbded7_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nGetStrokeWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_strokeMiter_5ftsgo_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetStrokeMiter(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_strokeMiter_pgv0sc_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nGetStrokeMiter(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_strokeCap_dv3f3n_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetStrokeCap(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_strokeCap_86eci9_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_15()[org_jetbrains_skia_Paint__1nGetStrokeCap(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_strokeJoin_pswy8t_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetStrokeJoin(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_strokeJoin_ulyoz9_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_16()[org_jetbrains_skia_Paint__1nGetStrokeJoin(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_shader_tgaw5e_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetShader(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(value);
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_shader_jgtazy_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var shaderPtr = org_jetbrains_skia_Paint__1nGetShader(this.get__ptr_wohp4o_k$());
      tmp = shaderPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Shader(shaderPtr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_colorFilter_9zyasg_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetColorFilter(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(value);
    }
    return tmp;
  };
  protoOf(Paint).get_colorFilter_nt8pqq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var colorFilterPtr = org_jetbrains_skia_Paint__1nGetColorFilter(this.get__ptr_wohp4o_k$());
      tmp = colorFilterPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : ColorFilter_init_$Create$(colorFilterPtr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_blendMode_s14yaj_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetBlendMode(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_blendMode_nbql0r_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values()[org_jetbrains_skia_Paint__1nGetBlendMode(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).get_isSrcOver_xdt2zf_k$ = function () {
    return this.get_blendMode_nbql0r_k$().equals(BlendMode_SRC_OVER_getInstance());
  };
  protoOf(Paint).set_pathEffect_2qfjq4_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetPathEffect(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(value);
    }
    return tmp;
  };
  protoOf(Paint).get_pathEffect_d6tz6p_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var pathEffectPtr = org_jetbrains_skia_Paint__1nGetPathEffect(this.get__ptr_wohp4o_k$());
      tmp = pathEffectPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new PathEffect(pathEffectPtr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_maskFilter_qativ4_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetMaskFilter(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(value);
    }
    return tmp;
  };
  protoOf(Paint).get_maskFilter_cajg25_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var maskFilterPtr = org_jetbrains_skia_Paint__1nGetMaskFilter(this.get__ptr_wohp4o_k$());
      tmp = maskFilterPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new MaskFilter(maskFilterPtr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).set_imageFilter_3887og_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Paint__1nSetImageFilter(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(value);
    }
    return tmp;
  };
  protoOf(Paint).get_imageFilter_rhhupi_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var imageFilterPtr = org_jetbrains_skia_Paint__1nGetImageFilter(this.get__ptr_wohp4o_k$());
      tmp = imageFilterPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new ImageFilter(imageFilterPtr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paint).hasNothingToDraw_cw7i8i_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Paint__1nHasNothingToDraw(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function Paint() {
    Companion_getInstance_34();
  }
  var PaintMode_FILL_instance;
  var PaintMode_STROKE_instance;
  var PaintMode_STROKE_AND_FILL_instance;
  function values_14() {
    return [PaintMode_FILL_getInstance(), PaintMode_STROKE_getInstance(), PaintMode_STROKE_AND_FILL_getInstance()];
  }
  function valueOf_14(value) {
    switch (value) {
      case 'FILL':
        return PaintMode_FILL_getInstance();
      case 'STROKE':
        return PaintMode_STROKE_getInstance();
      case 'STROKE_AND_FILL':
        return PaintMode_STROKE_AND_FILL_getInstance();
      default:
        PaintMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PaintMode_entriesInitialized;
  function PaintMode_initEntries() {
    if (PaintMode_entriesInitialized)
      return Unit_getInstance();
    PaintMode_entriesInitialized = true;
    PaintMode_FILL_instance = new PaintMode('FILL', 0);
    PaintMode_STROKE_instance = new PaintMode('STROKE', 1);
    PaintMode_STROKE_AND_FILL_instance = new PaintMode('STROKE_AND_FILL', 2);
  }
  function PaintMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PaintMode_FILL_getInstance() {
    PaintMode_initEntries();
    return PaintMode_FILL_instance;
  }
  function PaintMode_STROKE_getInstance() {
    PaintMode_initEntries();
    return PaintMode_STROKE_instance;
  }
  function PaintMode_STROKE_AND_FILL_getInstance() {
    PaintMode_initEntries();
    return PaintMode_STROKE_AND_FILL_instance;
  }
  var PaintStrokeCap_BUTT_instance;
  var PaintStrokeCap_ROUND_instance;
  var PaintStrokeCap_SQUARE_instance;
  function values_15() {
    return [PaintStrokeCap_BUTT_getInstance(), PaintStrokeCap_ROUND_getInstance(), PaintStrokeCap_SQUARE_getInstance()];
  }
  function valueOf_15(value) {
    switch (value) {
      case 'BUTT':
        return PaintStrokeCap_BUTT_getInstance();
      case 'ROUND':
        return PaintStrokeCap_ROUND_getInstance();
      case 'SQUARE':
        return PaintStrokeCap_SQUARE_getInstance();
      default:
        PaintStrokeCap_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PaintStrokeCap_entriesInitialized;
  function PaintStrokeCap_initEntries() {
    if (PaintStrokeCap_entriesInitialized)
      return Unit_getInstance();
    PaintStrokeCap_entriesInitialized = true;
    PaintStrokeCap_BUTT_instance = new PaintStrokeCap('BUTT', 0);
    PaintStrokeCap_ROUND_instance = new PaintStrokeCap('ROUND', 1);
    PaintStrokeCap_SQUARE_instance = new PaintStrokeCap('SQUARE', 2);
  }
  function PaintStrokeCap(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PaintStrokeCap_BUTT_getInstance() {
    PaintStrokeCap_initEntries();
    return PaintStrokeCap_BUTT_instance;
  }
  function PaintStrokeCap_ROUND_getInstance() {
    PaintStrokeCap_initEntries();
    return PaintStrokeCap_ROUND_instance;
  }
  function PaintStrokeCap_SQUARE_getInstance() {
    PaintStrokeCap_initEntries();
    return PaintStrokeCap_SQUARE_instance;
  }
  var PaintStrokeJoin_MITER_instance;
  var PaintStrokeJoin_ROUND_instance;
  var PaintStrokeJoin_BEVEL_instance;
  function values_16() {
    return [PaintStrokeJoin_MITER_getInstance(), PaintStrokeJoin_ROUND_getInstance(), PaintStrokeJoin_BEVEL_getInstance()];
  }
  function valueOf_16(value) {
    switch (value) {
      case 'MITER':
        return PaintStrokeJoin_MITER_getInstance();
      case 'ROUND':
        return PaintStrokeJoin_ROUND_getInstance();
      case 'BEVEL':
        return PaintStrokeJoin_BEVEL_getInstance();
      default:
        PaintStrokeJoin_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PaintStrokeJoin_entriesInitialized;
  function PaintStrokeJoin_initEntries() {
    if (PaintStrokeJoin_entriesInitialized)
      return Unit_getInstance();
    PaintStrokeJoin_entriesInitialized = true;
    PaintStrokeJoin_MITER_instance = new PaintStrokeJoin('MITER', 0);
    PaintStrokeJoin_ROUND_instance = new PaintStrokeJoin('ROUND', 1);
    PaintStrokeJoin_BEVEL_instance = new PaintStrokeJoin('BEVEL', 2);
  }
  function PaintStrokeJoin(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PaintStrokeJoin_MITER_getInstance() {
    PaintStrokeJoin_initEntries();
    return PaintStrokeJoin_MITER_instance;
  }
  function PaintStrokeJoin_ROUND_getInstance() {
    PaintStrokeJoin_initEntries();
    return PaintStrokeJoin_ROUND_instance;
  }
  function PaintStrokeJoin_BEVEL_getInstance() {
    PaintStrokeJoin_initEntries();
    return PaintStrokeJoin_BEVEL_instance;
  }
  function Companion_34() {
    Companion_instance_34 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_34).makeFromSVGString_dedb4t_k$ = function (svg) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeFromSVGString.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_Path__1nMakeFromSVGString($this$interopScope.toInterop_ok8jph_k$(svg));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result = tmp$ret$1;
    if (result === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
      throw IllegalArgumentException_init_$Create$('Failed to parse SVG Path string: ' + svg);
    } else {
      return new Path(result);
    }
  };
  protoOf(Companion_34).isLineDegenerate_oqcde5_k$ = function (p1, p2, exact) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_Path__1nIsLineDegenerate(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), exact);
  };
  protoOf(Companion_34).isQuadDegenerate_opa301_k$ = function (p1, p2, p3, exact) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_Path__1nIsQuadDegenerate(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), p3.get_x_1mhr67_k$(), p3.get_y_1mhr68_k$(), exact);
  };
  protoOf(Companion_34).isCubicDegenerate_12rx2l_k$ = function (p1, p2, p3, p4, exact) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_Path__1nIsCubicDegenerate(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), p3.get_x_1mhr67_k$(), p3.get_y_1mhr68_k$(), p4.get_x_1mhr67_k$(), p4.get_y_1mhr68_k$(), exact);
  };
  protoOf(Companion_34).convertConicToQuads_55y1w5_k$ = function (p0, p1, p2, w, pow2) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var maxResultPointCount = 1 + imul(2, 1 << pow2) | 0;
    var pointCount = 0;
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(imul(maxResultPointCount, 2));
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        // Inline function 'org.jetbrains.skia.Companion.convertConicToQuads.<anonymous>' call
        pointCount = org_jetbrains_skia_Path__1nConvertConicToQuads(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), w, pow2, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var coords = result;
    var tmp = 0;
    var tmp_0 = pointCount;
    // Inline function 'kotlin.arrayOfNulls' call
    var tmp_1 = fillArrayVal(Array(tmp_0), null);
    while (tmp < tmp_0) {
      var tmp_2 = tmp;
      tmp_1[tmp_2] = new Point(coords[imul(2, tmp_2)], coords[imul(2, tmp_2) + 1 | 0]);
      tmp = tmp + 1 | 0;
    }
    return tmp_1;
  };
  protoOf(Companion_34).makeCombining_fcc5ry_k$ = function (one, two, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Path__1nMakeCombining(getPtr(one), getPtr(two), op.get_ordinal_ip24qg_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Path(ptr);
    }finally {
      reachabilityBarrier(one);
      reachabilityBarrier(two);
    }
    return tmp;
  };
  protoOf(Companion_34).makeFromBytes_a9u38z_k$ = function (data) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeFromBytes.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_Path__1nMakeFromBytes($this$interopScope.toInterop_h7cpet_k$(data), data.length);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result = tmp$ret$1;
    if (result === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
      throw IllegalArgumentException_init_$Create$('Failed to parse serialized Path');
    } else {
      return new Path(result);
    }
  };
  var Companion_instance_34;
  function Companion_getInstance_35() {
    if (Companion_instance_34 == null)
      new Companion_34();
    return Companion_instance_34;
  }
  function _FinalizerHolder_8() {
    _FinalizerHolder_instance_8 = this;
    this.PTR_1 = org_jetbrains_skia_Path__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_8).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_8;
  function _FinalizerHolder_getInstance_8() {
    if (_FinalizerHolder_instance_8 == null)
      new _FinalizerHolder_8();
    return _FinalizerHolder_instance_8;
  }
  function Path_init_$Init$($this) {
    Path.call($this, org_jetbrains_skia_Path__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function Path_init_$Create$() {
    return Path_init_$Init$(objectCreate(protoOf(Path)));
  }
  function Path$_get_isOval_$lambda_8zqc3n(this$0) {
    return function (it) {
      return org_jetbrains_skia_Path__1nIsOval(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function Path$_get_isRRect_$lambda_wbfc2j(this$0) {
    return function (it) {
      return org_jetbrains_skia_Path__1nIsRRect(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function Path$_get_asLine_$lambda_ygdjx5(this$0) {
    return function (it) {
      return org_jetbrains_skia_Path__1nMaybeGetAsLine(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function Path$getPoint$lambda(this$0, $index) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Path__1nGetPoint(this$0.get__ptr_wohp4o_k$(), $index, it);
      return Unit_getInstance();
    };
  }
  function Path$_get_bounds_$lambda_qr8ora(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Path__1nGetBounds(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Path$computeTightBounds$lambda(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Path__1nComputeTightBounds(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Path$_get_isRect_$lambda_r4x835(this$0) {
    return function (it) {
      return org_jetbrains_skia_Path__1nIsRect(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function Path$_get_lastPt_$lambda_5o3kd7(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Path__1nGetLastPt(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Path(ptr) {
    Companion_getInstance_35();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_8().PTR_1);
  }
  protoOf(Path).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Path__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Path).isInterpolatable_rol6yt_k$ = function (compare) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsInterpolatable(this.get__ptr_wohp4o_k$(), getPtr(compare));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(compare);
    }
    return tmp;
  };
  protoOf(Path).makeLerp_vn6bk_k$ = function (ending, weight) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Path__1nMakeLerp(this.get__ptr_wohp4o_k$(), getPtr(ending), weight);
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        // Inline function 'org.jetbrains.skia.Path.makeLerp.<anonymous>' call
        var message = 'Point array is not the same size as ending Point array';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      tmp = new Path(ptr);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(ending);
    }
    return tmp;
  };
  protoOf(Path).set_fillMode_p4qpgv_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nSetFillMode(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_fillMode_r5zfyn_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_20()[org_jetbrains_skia_Path__1nGetFillMode(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isConvex_ryvmuy_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsConvex(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isOval_ew3p2d_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointerNullable_rzwb3l_k$(Path$_get_isOval_$lambda_8zqc3n(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isRRect_zhiq9v_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_43();
      tmp = tmp_0.fromInteropPointerNullable_rzwb3l_k$(Path$_get_isRRect_$lambda_wbfc2j(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).reset_1sjh3j_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nReset(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).rewind_fg9p39_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRewind(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).get_isEmpty_zauvru_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsEmpty(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isLastContourClosed_snojnn_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsLastContourClosed(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isFinite_taph6q_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = !!org_jetbrains_skia_Path__1nIsFinite(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).set_isVolatile_k3bwia_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nSetVolatile(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isVolatile_6ihgtr_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsVolatile(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).setVolatile_o5vpvd_k$ = function (isVolatile) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nSetVolatile(this.get__ptr_wohp4o_k$(), isVolatile);
    return this;
  };
  protoOf(Path).get_asLine_b3ojm7_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      var rectBuffer = tmp_0.fromInteropPointerNullable_rzwb3l_k$(Path$_get_asLine_$lambda_ygdjx5(this));
      var tmp_1;
      if (rectBuffer == null) {
        tmp_1 = null;
      } else {
        // Inline function 'kotlin.run' call
        // Inline function 'kotlin.contracts.contract' call
        // Inline function 'org.jetbrains.skia.Path.<get-asLine>.<anonymous>' call
        // Inline function 'kotlin.arrayOf' call
        // Inline function 'kotlin.js.unsafeCast' call
        // Inline function 'kotlin.js.asDynamic' call
        tmp_1 = [new Point(rectBuffer.get_left_woprgw_k$(), rectBuffer.get_top_18ivbo_k$()), new Point(rectBuffer.get_right_ixz7xv_k$(), rectBuffer.get_bottom_bj8ras_k$())];
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_pointsCount_wj83gj_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nGetPointsCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).getPoint_os8i7y_k$ = function (index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_42();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Path$getPoint$lambda(this, index));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_points_i5obn0_k$ = function () {
    // Inline function 'kotlin.arrayOfNulls' call
    var size = this.get_pointsCount_wj83gj_k$();
    var res = fillArrayVal(Array(size), null);
    this.getPoints_io3lw8_k$(res, res.length);
    return res;
  };
  protoOf(Path).getPoints_io3lw8_k$ = function (points, max) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(points == null ? max === 0 : max >= 0)) {
        // Inline function 'kotlin.require.<anonymous>' call
        var message = 'Failed requirement.';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (points == null) {
        var tmp$ret$2;
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.Path.getPoints.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var tmp_1 = this.get__ptr_wohp4o_k$();
            tmp$ret$2 = org_jetbrains_skia_Path__1nGetPoints(tmp_1, $this$interopScope.toInterop_uum1m9_k$((null == null ? true : isFloatArray(null)) ? null : THROW_CCE()), max);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = tmp$ret$2;
      } else {
        var result = 0;
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result_0 = new Float32Array(imul(max, 2));
        $l$block_0: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0_0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope_0 = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope_0.toInteropForResult_8kh23x_k$(result_0);
            // Inline function 'org.jetbrains.skia.Path.getPoints.<anonymous>' call
            result = org_jetbrains_skia_Path__1nGetPoints(this.get__ptr_wohp4o_k$(), handle, max);
            $this$interopScope_0.fromInterop_s0mjrj_k$(handle, result_0);
            break $l$block_0;
          }finally {
            var tmp1_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1_0 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        var coords = result_0;
        var inductionVariable = 0;
        // Inline function 'kotlin.math.min' call
        var b = result;
        var last = Math.min(max, b);
        if (inductionVariable < last)
          do {
            var i = inductionVariable;
            inductionVariable = inductionVariable + 1 | 0;
            points[i] = new Point(coords[imul(2, i)], coords[imul(2, i) + 1 | 0]);
          }
           while (inductionVariable < last);
        tmp_0 = result;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_verbsCount_7ejlqc_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nCountVerbs(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_verbs_j042dn_k$ = function () {
    // Inline function 'kotlin.arrayOfNulls' call
    var size = this.get_verbsCount_7ejlqc_k$();
    var res = fillArrayVal(Array(size), null);
    this.getVerbs_s8vk47_k$(res, res.length);
    return res;
  };
  protoOf(Path).getVerbs_s8vk47_k$ = function (verbs, max) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(verbs == null ? max === 0 : true)) {
        // Inline function 'kotlin.require.<anonymous>' call
        var message = 'Failed requirement.';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var out = verbs == null ? null : new Int8Array(max);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Path.getVerbs.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var ptr = $this$interopScope.toInterop_h7cpet_k$(out);
          // Inline function 'kotlin.also' call
          var this_0 = org_jetbrains_skia_Path__1nGetVerbs(this.get__ptr_wohp4o_k$(), ptr, max);
          // Inline function 'kotlin.contracts.contract' call
          // Inline function 'org.jetbrains.skia.Path.getVerbs.<anonymous>.<anonymous>' call
          if (out == null)
            null;
          else {
            // Inline function 'kotlin.let' call
            // Inline function 'kotlin.contracts.contract' call
            $this$interopScope.fromInterop_40e3wn_k$(ptr, out);
          }
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var count = this_0;
      if (!(verbs == null)) {
        var inductionVariable = 0;
        // Inline function 'kotlin.comparisons.minOf' call
        var last = Math.min(count, max);
        if (inductionVariable < last)
          do {
            var i = inductionVariable;
            inductionVariable = inductionVariable + 1 | 0;
            verbs[i] = values_22()[ensureNotNull(out)[i]];
          }
           while (inductionVariable < last);
      }
      tmp = count;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_approximateBytesUsed_bonctf_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nApproximateBytesUsed(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).swap_ho9d16_k$ = function (other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nSwap(this.get__ptr_wohp4o_k$(), getPtr(other));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Path).get_bounds_bj99ku_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Path$_get_bounds_$lambda_qr8ora(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).updateBoundsCache_zdvfic_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nUpdateBoundsCache(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).computeTightBounds_22bfek_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Path$computeTightBounds$lambda(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).conservativelyContainsRect_6vi4je_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nConservativelyContainsRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).incReserve_2hleoq_k$ = function (extraPtCount) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nIncReserve(this.get__ptr_wohp4o_k$(), extraPtCount);
    return this;
  };
  protoOf(Path).moveTo_n8tdjo_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nMoveTo(this.get__ptr_wohp4o_k$(), x, y);
    return this;
  };
  protoOf(Path).moveTo_bsapet_k$ = function (p) {
    return this.moveTo_n8tdjo_k$(p.get_x_1mhr67_k$(), p.get_y_1mhr68_k$());
  };
  protoOf(Path).rMoveTo_gj475u_k$ = function (dx, dy) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRMoveTo(this.get__ptr_wohp4o_k$(), dx, dy);
    return this;
  };
  protoOf(Path).lineTo_985bqp_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nLineTo(this.get__ptr_wohp4o_k$(), x, y);
    return this;
  };
  protoOf(Path).lineTo_f50dhe_k$ = function (p) {
    return this.lineTo_985bqp_k$(p.get_x_1mhr67_k$(), p.get_y_1mhr68_k$());
  };
  protoOf(Path).rLineTo_2ig5cv_k$ = function (dx, dy) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRLineTo(this.get__ptr_wohp4o_k$(), dx, dy);
    return this;
  };
  protoOf(Path).quadTo_nivwo2_k$ = function (x1, y1, x2, y2) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nQuadTo(this.get__ptr_wohp4o_k$(), x1, y1, x2, y2);
    return this;
  };
  protoOf(Path).quadTo_gvfif4_k$ = function (p1, p2) {
    return this.quadTo_nivwo2_k$(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$());
  };
  protoOf(Path).rQuadTo_i9659w_k$ = function (dx1, dy1, dx2, dy2) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRQuadTo(this.get__ptr_wohp4o_k$(), dx1, dy1, dx2, dy2);
    return this;
  };
  protoOf(Path).conicTo_xp2za7_k$ = function (x1, y1, x2, y2, w) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nConicTo(this.get__ptr_wohp4o_k$(), x1, y1, x2, y2, w);
    return this;
  };
  protoOf(Path).conicTo_gdmp4z_k$ = function (p1, p2, w) {
    return this.conicTo_xp2za7_k$(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), w);
  };
  protoOf(Path).rConicTo_u135rn_k$ = function (dx1, dy1, dx2, dy2, w) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRConicTo(this.get__ptr_wohp4o_k$(), dx1, dy1, dx2, dy2, w);
    return this;
  };
  protoOf(Path).cubicTo_g393vf_k$ = function (x1, y1, x2, y2, x3, y3) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nCubicTo(this.get__ptr_wohp4o_k$(), x1, y1, x2, y2, x3, y3);
    return this;
  };
  protoOf(Path).cubicTo_w120du_k$ = function (p1, p2, p3) {
    return this.cubicTo_g393vf_k$(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), p3.get_x_1mhr67_k$(), p3.get_y_1mhr68_k$());
  };
  protoOf(Path).rCubicTo_5i712l_k$ = function (dx1, dy1, dx2, dy2, dx3, dy3) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nRCubicTo(this.get__ptr_wohp4o_k$(), dx1, dy1, dx2, dy2, dx3, dy3);
    return this;
  };
  protoOf(Path).arcTo_lk9bpr_k$ = function (oval, startAngle, sweepAngle, forceMoveTo) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nArcTo(this.get__ptr_wohp4o_k$(), oval.get_left_woprgw_k$(), oval.get_top_18ivbo_k$(), oval.get_right_ixz7xv_k$(), oval.get_bottom_bj8ras_k$(), startAngle, sweepAngle, forceMoveTo);
    return this;
  };
  protoOf(Path).tangentArcTo_bcyl3k_k$ = function (x1, y1, x2, y2, radius) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nTangentArcTo(this.get__ptr_wohp4o_k$(), x1, y1, x2, y2, radius);
    return this;
  };
  protoOf(Path).tangentArcTo_8wu6a6_k$ = function (p1, p2, radius) {
    return this.tangentArcTo_bcyl3k_k$(p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), p2.get_x_1mhr67_k$(), p2.get_y_1mhr68_k$(), radius);
  };
  protoOf(Path).ellipticalArcTo_970dku_k$ = function (rx, ry, xAxisRotate, arc, direction, x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nEllipticalArcTo(this.get__ptr_wohp4o_k$(), rx, ry, xAxisRotate, arc.get_ordinal_ip24qg_k$(), direction.get_ordinal_ip24qg_k$(), x, y);
    return this;
  };
  protoOf(Path).ellipticalArcTo_p96bvm_k$ = function (r, xAxisRotate, arc, direction, xy) {
    return this.ellipticalArcTo_970dku_k$(r.get_x_1mhr67_k$(), r.get_y_1mhr68_k$(), xAxisRotate, arc, direction, xy.get_x_1mhr67_k$(), xy.get_y_1mhr68_k$());
  };
  protoOf(Path).rEllipticalArcTo_ce2xps_k$ = function (rx, ry, xAxisRotate, arc, direction, dx, dy) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nREllipticalArcTo(this.get__ptr_wohp4o_k$(), rx, ry, xAxisRotate, arc.get_ordinal_ip24qg_k$(), direction.get_ordinal_ip24qg_k$(), dx, dy);
    return this;
  };
  protoOf(Path).closePath_7zbz5v_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nClosePath(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).get_isRect_ew59h3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointerNullable_rzwb3l_k$(Path$_get_isRect_$lambda_r4x835(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).addRect_bv7tm2_k$ = function (rect, dir, start) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nAddRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$(), dir.get_ordinal_ip24qg_k$(), start);
    return this;
  };
  protoOf(Path).addRect$default_mv5gnm_k$ = function (rect, dir, start, $super) {
    dir = dir === VOID ? PathDirection_CLOCKWISE_getInstance() : dir;
    start = start === VOID ? 0 : start;
    return $super === VOID ? this.addRect_bv7tm2_k$(rect, dir, start) : $super.addRect_bv7tm2_k$.call(this, rect, dir, start);
  };
  protoOf(Path).addOval_xujeh0_k$ = function (oval, dir, start) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nAddOval(this.get__ptr_wohp4o_k$(), oval.get_left_woprgw_k$(), oval.get_top_18ivbo_k$(), oval.get_right_ixz7xv_k$(), oval.get_bottom_bj8ras_k$(), dir.get_ordinal_ip24qg_k$(), start);
    return this;
  };
  protoOf(Path).addOval$default_akalvk_k$ = function (oval, dir, start, $super) {
    dir = dir === VOID ? PathDirection_CLOCKWISE_getInstance() : dir;
    start = start === VOID ? 1 : start;
    return $super === VOID ? this.addOval_xujeh0_k$(oval, dir, start) : $super.addOval_xujeh0_k$.call(this, oval, dir, start);
  };
  protoOf(Path).addCircle_v04k2t_k$ = function (x, y, radius, dir) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nAddCircle(this.get__ptr_wohp4o_k$(), x, y, radius, dir.get_ordinal_ip24qg_k$());
    return this;
  };
  protoOf(Path).addCircle$default_1ec06o_k$ = function (x, y, radius, dir, $super) {
    dir = dir === VOID ? PathDirection_CLOCKWISE_getInstance() : dir;
    return $super === VOID ? this.addCircle_v04k2t_k$(x, y, radius, dir) : $super.addCircle_v04k2t_k$.call(this, x, y, radius, dir);
  };
  protoOf(Path).addArc_ab3w7m_k$ = function (oval, startAngle, sweepAngle) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nAddArc(this.get__ptr_wohp4o_k$(), oval.get_left_woprgw_k$(), oval.get_top_18ivbo_k$(), oval.get_right_ixz7xv_k$(), oval.get_bottom_bj8ras_k$(), startAngle, sweepAngle);
    return this;
  };
  protoOf(Path).addRRect_4yvulw_k$ = function (rrect, dir, start) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_Path__1nAddRRect(this.get__ptr_wohp4o_k$(), rrect.get_left_woprgw_k$(), rrect.get_top_18ivbo_k$(), rrect.get_right_ixz7xv_k$(), rrect.get_bottom_bj8ras_k$(), $this$interopScope.toInterop_uum1m9_k$(rrect.get_radii_ixu1u4_k$()), rrect.get_radii_ixu1u4_k$().length, dir.get_ordinal_ip24qg_k$(), start);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Path).addRRect$default_20pqkw_k$ = function (rrect, dir, start, $super) {
    dir = dir === VOID ? PathDirection_CLOCKWISE_getInstance() : dir;
    start = start === VOID ? 6 : start;
    return $super === VOID ? this.addRRect_4yvulw_k$(rrect, dir, start) : $super.addRRect_4yvulw_k$.call(this, rrect, dir, start);
  };
  protoOf(Path).addPoly_f30zvx_k$ = function (pts, close) {
    var flat = new Float32Array(imul(pts.length, 2));
    var inductionVariable = 0;
    var last = pts.length - 1 | 0;
    if (inductionVariable <= last)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        flat[imul(i, 2)] = pts[i].get_x_1mhr67_k$();
        flat[imul(i, 2) + 1 | 0] = pts[i].get_y_1mhr68_k$();
      }
       while (inductionVariable <= last);
    return this.addPoly_8e99p6_k$(flat, close);
  };
  protoOf(Path).addPoly_8e99p6_k$ = function (pts, close) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!((pts.length % 2 | 0) === 0)) {
      // Inline function 'org.jetbrains.skia.Path.addPoly.<anonymous>' call
      var message = 'Expected even amount of pts, got ' + pts.length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_Path__1nAddPoly(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(pts), pts.length / 2 | 0, close);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(Path).addPath_qsu6b0_k$ = function (src, extend) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nAddPath(this.get__ptr_wohp4o_k$(), getPtr(src), extend);
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Path).addPath$default_4mip2b_k$ = function (src, extend, $super) {
    extend = extend === VOID ? false : extend;
    return $super === VOID ? this.addPath_qsu6b0_k$(src, extend) : $super.addPath_qsu6b0_k$.call(this, src, extend);
  };
  protoOf(Path).addPath_knkmr0_k$ = function (src, dx, dy, extend) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nAddPathOffset(this.get__ptr_wohp4o_k$(), getPtr(src), dx, dy, extend);
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Path).addPath$default_qvsmxp_k$ = function (src, dx, dy, extend, $super) {
    extend = extend === VOID ? false : extend;
    return $super === VOID ? this.addPath_knkmr0_k$(src, dx, dy, extend) : $super.addPath_knkmr0_k$.call(this, src, dx, dy, extend);
  };
  protoOf(Path).addPath_ohturs_k$ = function (src, matrix, extend) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Path__1nAddPathTransform(this.get__ptr_wohp4o_k$(), getPtr(src), $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()), extend);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Path).addPath$default_odujul_k$ = function (src, matrix, extend, $super) {
    extend = extend === VOID ? false : extend;
    return $super === VOID ? this.addPath_ohturs_k$(src, matrix, extend) : $super.addPath_ohturs_k$.call(this, src, matrix, extend);
  };
  protoOf(Path).reverseAddPath_j2peon_k$ = function (src) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nReverseAddPath(this.get__ptr_wohp4o_k$(), getPtr(src));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Path).offset_1bpnju_k$ = function (dx, dy, dst) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Path__1nOffset(this.get__ptr_wohp4o_k$(), dx, dy, getPtr(dst));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  protoOf(Path).offset$default_5tue8h_k$ = function (dx, dy, dst, $super) {
    dst = dst === VOID ? null : dst;
    return $super === VOID ? this.offset_1bpnju_k$(dx, dy, dst) : $super.offset_1bpnju_k$.call(this, dx, dy, dst);
  };
  protoOf(Path).transform_y5snp1_k$ = function (matrix, applyPerspectiveClip) {
    return this.transform_hz2bc_k$(matrix, null, applyPerspectiveClip);
  };
  protoOf(Path).transform_hz2bc_k$ = function (matrix, dst, applyPerspectiveClip) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Path__1nTransform(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()), getPtr(dst), applyPerspectiveClip);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dst);
    }
    return tmp;
  };
  protoOf(Path).transform$default_8dct7o_k$ = function (matrix, dst, applyPerspectiveClip, $super) {
    dst = dst === VOID ? null : dst;
    applyPerspectiveClip = applyPerspectiveClip === VOID ? true : applyPerspectiveClip;
    return $super === VOID ? this.transform_hz2bc_k$(matrix, dst, applyPerspectiveClip) : $super.transform_hz2bc_k$.call(this, matrix, dst, applyPerspectiveClip);
  };
  protoOf(Path).set_lastPt_6y8w7q_k$ = function (value) {
    this.setLastPt_3j63i4_k$(value.get_x_1mhr67_k$(), value.get_y_1mhr68_k$());
  };
  protoOf(Path).get_lastPt_g1z77n_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_42();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Path$_get_lastPt_$lambda_5o3kd7(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).setLastPt_3j63i4_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nSetLastPt(this.get__ptr_wohp4o_k$(), x, y);
    return this;
  };
  protoOf(Path).get_segmentMasks_d3onvh_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nGetSegmentMasks(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).iterator_jk1svi_k$ = function () {
    return this.iterator_xssagn_k$(false);
  };
  protoOf(Path).iterator_xssagn_k$ = function (forceClose) {
    return Companion_getInstance_37().make_86hh5o_k$(this, forceClose);
  };
  protoOf(Path).contains_wtyech_k$ = function (x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nContains(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).contains_tungdu_k$ = function (p) {
    return this.contains_wtyech_k$(p.get_x_1mhr67_k$(), p.get_y_1mhr68_k$());
  };
  protoOf(Path).dump_1uc50_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nDump(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).dumpHex_x8jo1z_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_Path__1nDumpHex(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Path).serializeToBytes_97u91s_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Path.serializeToBytes.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          tmp$ret$1 = org_jetbrains_skia_Path__1nSerializeToBytes(tmp_0, $this$interopScope.toInterop_h7cpet_k$((null == null ? true : isByteArray(null)) ? null : THROW_CCE()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var size = tmp$ret$1;
      if (size === -1) {
        throw Error_init_$Create$('Path is too big');
      }
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int8Array(size);
      $l$block_0: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0_0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope_0 = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope_0.toInteropForResult_toi1ab_k$(result);
          // Inline function 'org.jetbrains.skia.Path.serializeToBytes.<anonymous>' call
          org_jetbrains_skia_Path__1nSerializeToBytes(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope_0.fromInterop_40e3wn_k$(handle, result);
          break $l$block_0;
        }finally {
          var tmp1_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1_0 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_generationId_x1e17g_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nGetGenerationId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Path).get_isValid_zh4f7b_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Path__1nIsValid(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  var PathDirection_CLOCKWISE_instance;
  var PathDirection_COUNTER_CLOCKWISE_instance;
  function values_17() {
    return [PathDirection_CLOCKWISE_getInstance(), PathDirection_COUNTER_CLOCKWISE_getInstance()];
  }
  function valueOf_17(value) {
    switch (value) {
      case 'CLOCKWISE':
        return PathDirection_CLOCKWISE_getInstance();
      case 'COUNTER_CLOCKWISE':
        return PathDirection_COUNTER_CLOCKWISE_getInstance();
      default:
        PathDirection_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PathDirection_entriesInitialized;
  function PathDirection_initEntries() {
    if (PathDirection_entriesInitialized)
      return Unit_getInstance();
    PathDirection_entriesInitialized = true;
    PathDirection_CLOCKWISE_instance = new PathDirection('CLOCKWISE', 0);
    PathDirection_COUNTER_CLOCKWISE_instance = new PathDirection('COUNTER_CLOCKWISE', 1);
  }
  function PathDirection(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PathDirection_CLOCKWISE_getInstance() {
    PathDirection_initEntries();
    return PathDirection_CLOCKWISE_instance;
  }
  function PathDirection_COUNTER_CLOCKWISE_getInstance() {
    PathDirection_initEntries();
    return PathDirection_COUNTER_CLOCKWISE_instance;
  }
  var Style_TRANSLATE_instance;
  var Style_ROTATE_instance;
  var Style_MORPH_instance;
  function values_18() {
    return [Style_TRANSLATE_getInstance(), Style_ROTATE_getInstance(), Style_MORPH_getInstance()];
  }
  function valueOf_18(value) {
    switch (value) {
      case 'TRANSLATE':
        return Style_TRANSLATE_getInstance();
      case 'ROTATE':
        return Style_ROTATE_getInstance();
      case 'MORPH':
        return Style_MORPH_getInstance();
      default:
        Style_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Style_entriesInitialized;
  function Style_initEntries() {
    if (Style_entriesInitialized)
      return Unit_getInstance();
    Style_entriesInitialized = true;
    Style_TRANSLATE_instance = new Style('TRANSLATE', 0);
    Style_ROTATE_instance = new Style('ROTATE', 1);
    Style_MORPH_instance = new Style('MORPH', 2);
  }
  function Companion_35() {
    Companion_instance_35 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_35).makePath1D_ly4j3w_k$ = function (path, advance, phase, style) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new PathEffect(org_jetbrains_skia_PathEffect__1nMakePath1D(getPtr(path), advance, phase, style.get_ordinal_ip24qg_k$()));
    }finally {
      reachabilityBarrier(path);
    }
    return tmp;
  };
  protoOf(Companion_35).makePath2D_1p21bj_k$ = function (matrix, path) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makePath2D.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_PathEffect__1nMakePath2D($this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()), getPtr(path));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new PathEffect(tmp$ret$1);
    }finally {
      reachabilityBarrier(path);
    }
    return tmp;
  };
  protoOf(Companion_35).makeLine2D_u2e2w2_k$ = function (width, matrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeLine2D.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_PathEffect__1nMakeLine2D(width, $this$interopScope.toInterop_uum1m9_k$(matrix.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new PathEffect(tmp$ret$1);
  };
  protoOf(Companion_35).makeCorner_cq39e3_k$ = function (radius) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new PathEffect(org_jetbrains_skia_PathEffect__1nMakeCorner(radius));
  };
  protoOf(Companion_35).makeDash_9suxds_k$ = function (intervals, phase) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeDash.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = org_jetbrains_skia_PathEffect__1nMakeDash($this$interopScope.toInterop_uum1m9_k$(intervals), intervals.length, phase);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new PathEffect(tmp$ret$1);
  };
  protoOf(Companion_35).makeDiscrete_1rigy7_k$ = function (segLength, dev, seed) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new PathEffect(org_jetbrains_skia_PathEffect__1nMakeDiscrete(segLength, dev, seed));
  };
  var Companion_instance_35;
  function Companion_getInstance_36() {
    if (Companion_instance_35 == null)
      new Companion_35();
    return Companion_instance_35;
  }
  function Style(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function Style_TRANSLATE_getInstance() {
    Style_initEntries();
    return Style_TRANSLATE_instance;
  }
  function Style_ROTATE_getInstance() {
    Style_initEntries();
    return Style_ROTATE_instance;
  }
  function Style_MORPH_getInstance() {
    Style_initEntries();
    return Style_MORPH_instance;
  }
  function PathEffect(ptr) {
    Companion_getInstance_36();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(PathEffect).makeSum_am4rha_k$ = function (second) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new PathEffect(org_jetbrains_skia_PathEffect__1nMakeSum(this.get__ptr_wohp4o_k$(), getPtr(second)));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(second);
    }
    return tmp;
  };
  protoOf(PathEffect).makeCompose_dsdae3_k$ = function (inner) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new PathEffect(org_jetbrains_skia_PathEffect__1nMakeCompose(this.get__ptr_wohp4o_k$(), getPtr(inner)));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(inner);
    }
    return tmp;
  };
  var PathEllipseArc_SMALLER_instance;
  var PathEllipseArc_LARGER_instance;
  function values_19() {
    return [PathEllipseArc_SMALLER_getInstance(), PathEllipseArc_LARGER_getInstance()];
  }
  function valueOf_19(value) {
    switch (value) {
      case 'SMALLER':
        return PathEllipseArc_SMALLER_getInstance();
      case 'LARGER':
        return PathEllipseArc_LARGER_getInstance();
      default:
        PathEllipseArc_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PathEllipseArc_entriesInitialized;
  function PathEllipseArc_initEntries() {
    if (PathEllipseArc_entriesInitialized)
      return Unit_getInstance();
    PathEllipseArc_entriesInitialized = true;
    PathEllipseArc_SMALLER_instance = new PathEllipseArc('SMALLER', 0);
    PathEllipseArc_LARGER_instance = new PathEllipseArc('LARGER', 1);
  }
  function PathEllipseArc(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PathEllipseArc_SMALLER_getInstance() {
    PathEllipseArc_initEntries();
    return PathEllipseArc_SMALLER_instance;
  }
  function PathEllipseArc_LARGER_getInstance() {
    PathEllipseArc_initEntries();
    return PathEllipseArc_LARGER_instance;
  }
  var PathFillMode_WINDING_instance;
  var PathFillMode_EVEN_ODD_instance;
  var PathFillMode_INVERSE_WINDING_instance;
  var PathFillMode_INVERSE_EVEN_ODD_instance;
  function values_20() {
    return [PathFillMode_WINDING_getInstance(), PathFillMode_EVEN_ODD_getInstance(), PathFillMode_INVERSE_WINDING_getInstance(), PathFillMode_INVERSE_EVEN_ODD_getInstance()];
  }
  function valueOf_20(value) {
    switch (value) {
      case 'WINDING':
        return PathFillMode_WINDING_getInstance();
      case 'EVEN_ODD':
        return PathFillMode_EVEN_ODD_getInstance();
      case 'INVERSE_WINDING':
        return PathFillMode_INVERSE_WINDING_getInstance();
      case 'INVERSE_EVEN_ODD':
        return PathFillMode_INVERSE_EVEN_ODD_getInstance();
      default:
        PathFillMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PathFillMode_entriesInitialized;
  function PathFillMode_initEntries() {
    if (PathFillMode_entriesInitialized)
      return Unit_getInstance();
    PathFillMode_entriesInitialized = true;
    PathFillMode_WINDING_instance = new PathFillMode('WINDING', 0);
    PathFillMode_EVEN_ODD_instance = new PathFillMode('EVEN_ODD', 1);
    PathFillMode_INVERSE_WINDING_instance = new PathFillMode('INVERSE_WINDING', 2);
    PathFillMode_INVERSE_EVEN_ODD_instance = new PathFillMode('INVERSE_EVEN_ODD', 3);
  }
  function PathFillMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  protoOf(PathFillMode).get_isInverse_vc7th9_k$ = function () {
    return this.equals(PathFillMode_INVERSE_WINDING_getInstance()) ? true : this.equals(PathFillMode_INVERSE_EVEN_ODD_getInstance());
  };
  protoOf(PathFillMode).inverse_wevods_k$ = function () {
    var tmp;
    switch (this.get_ordinal_ip24qg_k$()) {
      case 0:
        tmp = PathFillMode_INVERSE_WINDING_getInstance();
        break;
      case 1:
        tmp = PathFillMode_INVERSE_EVEN_ODD_getInstance();
        break;
      case 2:
        tmp = PathFillMode_WINDING_getInstance();
        break;
      case 3:
        tmp = PathFillMode_EVEN_ODD_getInstance();
        break;
      default:
        noWhenBranchMatchedException();
        break;
    }
    return tmp;
  };
  function PathFillMode_WINDING_getInstance() {
    PathFillMode_initEntries();
    return PathFillMode_WINDING_instance;
  }
  function PathFillMode_EVEN_ODD_getInstance() {
    PathFillMode_initEntries();
    return PathFillMode_EVEN_ODD_instance;
  }
  function PathFillMode_INVERSE_WINDING_getInstance() {
    PathFillMode_initEntries();
    return PathFillMode_INVERSE_WINDING_instance;
  }
  function PathFillMode_INVERSE_EVEN_ODD_getInstance() {
    PathFillMode_initEntries();
    return PathFillMode_INVERSE_EVEN_ODD_instance;
  }
  var PathOp_DIFFERENCE_instance;
  var PathOp_INTERSECT_instance;
  var PathOp_UNION_instance;
  var PathOp_XOR_instance;
  var PathOp_REVERSE_DIFFERENCE_instance;
  function values_21() {
    return [PathOp_DIFFERENCE_getInstance(), PathOp_INTERSECT_getInstance(), PathOp_UNION_getInstance(), PathOp_XOR_getInstance(), PathOp_REVERSE_DIFFERENCE_getInstance()];
  }
  function valueOf_21(value) {
    switch (value) {
      case 'DIFFERENCE':
        return PathOp_DIFFERENCE_getInstance();
      case 'INTERSECT':
        return PathOp_INTERSECT_getInstance();
      case 'UNION':
        return PathOp_UNION_getInstance();
      case 'XOR':
        return PathOp_XOR_getInstance();
      case 'REVERSE_DIFFERENCE':
        return PathOp_REVERSE_DIFFERENCE_getInstance();
      default:
        PathOp_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PathOp_entriesInitialized;
  function PathOp_initEntries() {
    if (PathOp_entriesInitialized)
      return Unit_getInstance();
    PathOp_entriesInitialized = true;
    PathOp_DIFFERENCE_instance = new PathOp('DIFFERENCE', 0);
    PathOp_INTERSECT_instance = new PathOp('INTERSECT', 1);
    PathOp_UNION_instance = new PathOp('UNION', 2);
    PathOp_XOR_instance = new PathOp('XOR', 3);
    PathOp_REVERSE_DIFFERENCE_instance = new PathOp('REVERSE_DIFFERENCE', 4);
  }
  function PathOp(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PathOp_DIFFERENCE_getInstance() {
    PathOp_initEntries();
    return PathOp_DIFFERENCE_instance;
  }
  function PathOp_INTERSECT_getInstance() {
    PathOp_initEntries();
    return PathOp_INTERSECT_instance;
  }
  function PathOp_UNION_getInstance() {
    PathOp_initEntries();
    return PathOp_UNION_instance;
  }
  function PathOp_XOR_getInstance() {
    PathOp_initEntries();
    return PathOp_XOR_instance;
  }
  function PathOp_REVERSE_DIFFERENCE_getInstance() {
    PathOp_initEntries();
    return PathOp_REVERSE_DIFFERENCE_instance;
  }
  function PathSegment_init_$Init$(verbOrdinal, x0, y0, isClosedContour, $this) {
    PathSegment.call($this, values_22()[verbOrdinal], new Point(x0, y0), null, null, null, 0.0, false, isClosedContour);
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(verbOrdinal === PathVerb_MOVE_getInstance().get_ordinal_ip24qg_k$() ? true : verbOrdinal === PathVerb_CLOSE_getInstance().get_ordinal_ip24qg_k$())) {
      // Inline function 'org.jetbrains.skia.PathSegment.<init>.<anonymous>' call
      var message = 'Expected MOVE or CLOSE, got ' + values_22()[verbOrdinal];
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    return $this;
  }
  function PathSegment_init_$Create$(verbOrdinal, x0, y0, isClosedContour) {
    return PathSegment_init_$Init$(verbOrdinal, x0, y0, isClosedContour, objectCreate(protoOf(PathSegment)));
  }
  function PathSegment_init_$Init$_0(x0, y0, x1, y1, isCloseLine, isClosedContour, $this) {
    PathSegment.call($this, PathVerb_LINE_getInstance(), new Point(x0, y0), new Point(x1, y1), null, null, 0.0, isCloseLine, isClosedContour);
    return $this;
  }
  function PathSegment_init_$Create$_0(x0, y0, x1, y1, isCloseLine, isClosedContour) {
    return PathSegment_init_$Init$_0(x0, y0, x1, y1, isCloseLine, isClosedContour, objectCreate(protoOf(PathSegment)));
  }
  function PathSegment_init_$Init$_1(x0, y0, x1, y1, x2, y2, isClosedContour, $this) {
    PathSegment.call($this, PathVerb_QUAD_getInstance(), new Point(x0, y0), new Point(x1, y1), new Point(x2, y2), null, 0.0, false, isClosedContour);
    return $this;
  }
  function PathSegment_init_$Create$_1(x0, y0, x1, y1, x2, y2, isClosedContour) {
    return PathSegment_init_$Init$_1(x0, y0, x1, y1, x2, y2, isClosedContour, objectCreate(protoOf(PathSegment)));
  }
  function PathSegment_init_$Init$_2(x0, y0, x1, y1, x2, y2, conicWeight, isClosedContour, $this) {
    PathSegment.call($this, PathVerb_CONIC_getInstance(), new Point(x0, y0), new Point(x1, y1), new Point(x2, y2), null, conicWeight, false, isClosedContour);
    return $this;
  }
  function PathSegment_init_$Create$_2(x0, y0, x1, y1, x2, y2, conicWeight, isClosedContour) {
    return PathSegment_init_$Init$_2(x0, y0, x1, y1, x2, y2, conicWeight, isClosedContour, objectCreate(protoOf(PathSegment)));
  }
  function PathSegment_init_$Init$_3(x0, y0, x1, y1, x2, y2, x3, y3, isClosedContour, $this) {
    PathSegment.call($this, PathVerb_CUBIC_getInstance(), new Point(x0, y0), new Point(x1, y1), new Point(x2, y2), new Point(x3, y3), 0.0, false, isClosedContour);
    return $this;
  }
  function PathSegment_init_$Create$_3(x0, y0, x1, y1, x2, y2, x3, y3, isClosedContour) {
    return PathSegment_init_$Init$_3(x0, y0, x1, y1, x2, y2, x3, y3, isClosedContour, objectCreate(protoOf(PathSegment)));
  }
  function PathSegment(verb, p0, p1, p2, p3, conicWeight, isCloseLine, isClosedContour) {
    verb = verb === VOID ? PathVerb_DONE_getInstance() : verb;
    p0 = p0 === VOID ? null : p0;
    p1 = p1 === VOID ? null : p1;
    p2 = p2 === VOID ? null : p2;
    p3 = p3 === VOID ? null : p3;
    conicWeight = conicWeight === VOID ? 0.0 : conicWeight;
    isCloseLine = isCloseLine === VOID ? false : isCloseLine;
    isClosedContour = isClosedContour === VOID ? false : isClosedContour;
    this.verb_1 = verb;
    this.p0__1 = p0;
    this.p1__1 = p1;
    this.p2__1 = p2;
    this.p3__1 = p3;
    this.conicWeight_1 = conicWeight;
    this.isCloseLine_1 = isCloseLine;
    this.isClosedContour_1 = isClosedContour;
  }
  protoOf(PathSegment).get_verb_wow5m0_k$ = function () {
    return this.verb_1;
  };
  protoOf(PathSegment).get_p0_kntnsn_k$ = function () {
    return this.p0__1;
  };
  protoOf(PathSegment).get_p1_kntnsm_k$ = function () {
    return this.p1__1;
  };
  protoOf(PathSegment).get_p2_kntnsl_k$ = function () {
    return this.p2__1;
  };
  protoOf(PathSegment).get_p3_kntnsk_k$ = function () {
    return this.p3__1;
  };
  protoOf(PathSegment).get_conicWeight_53i43v_k$ = function () {
    return this.conicWeight_1;
  };
  protoOf(PathSegment).get_isCloseLine_peehzt_k$ = function () {
    return this.isCloseLine_1;
  };
  protoOf(PathSegment).get_isClosedContour_xjfrj9_k$ = function () {
    return this.isClosedContour_1;
  };
  protoOf(PathSegment).toString = function () {
    return 'Segment(verb=' + this.verb_1 + (!this.verb_1.equals(PathVerb_DONE_getInstance()) ? ', p0=' + this.p0__1 : '') + ((((this.verb_1.equals(PathVerb_LINE_getInstance()) ? true : this.verb_1.equals(PathVerb_QUAD_getInstance())) ? true : this.verb_1.equals(PathVerb_CONIC_getInstance())) ? true : this.verb_1.equals(PathVerb_CUBIC_getInstance())) ? ', p1=' + this.p1__1 : '') + (((this.verb_1.equals(PathVerb_QUAD_getInstance()) ? true : this.verb_1.equals(PathVerb_CONIC_getInstance())) ? true : this.verb_1.equals(PathVerb_CUBIC_getInstance())) ? ', p2=' + this.p2__1 : '') + (this.verb_1.equals(PathVerb_CUBIC_getInstance()) ? ', p3=' + this.p3__1 : '') + (this.verb_1.equals(PathVerb_CONIC_getInstance()) ? ', conicWeight=' + this.conicWeight_1 : '') + (this.verb_1.equals(PathVerb_LINE_getInstance()) ? ', closeLine=' + this.isCloseLine_1 : '') + (!this.verb_1.equals(PathVerb_DONE_getInstance()) ? ', closedContour=' + this.isClosedContour_1 : '') + ')';
  };
  protoOf(PathSegment).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof PathSegment))
      return false;
    return ((((((this.verb_1.equals(other.verb_1) ? !this.verb_1.equals(PathVerb_DONE_getInstance()) ? equals(this.p0__1, other.p0__1) : true : false) ? (((this.verb_1.equals(PathVerb_LINE_getInstance()) ? true : this.verb_1.equals(PathVerb_QUAD_getInstance())) ? true : this.verb_1.equals(PathVerb_CONIC_getInstance())) ? true : this.verb_1.equals(PathVerb_CUBIC_getInstance())) ? equals(this.p1__1, other.p1__1) : true : false) ? ((this.verb_1.equals(PathVerb_QUAD_getInstance()) ? true : this.verb_1.equals(PathVerb_CONIC_getInstance())) ? true : this.verb_1.equals(PathVerb_CUBIC_getInstance())) ? equals(this.p2__1, other.p2__1) : true : false) ? this.verb_1.equals(PathVerb_CUBIC_getInstance()) ? equals(this.p3__1, other.p3__1) : true : false) ? this.verb_1.equals(PathVerb_CONIC_getInstance()) ? compareTo(other.conicWeight_1, this.conicWeight_1) === 0 : true : false) ? this.verb_1.equals(PathVerb_LINE_getInstance()) ? this.isCloseLine_1 === other.isCloseLine_1 : true : false) ? !this.verb_1.equals(PathVerb_DONE_getInstance()) ? this.isClosedContour_1 === other.isClosedContour_1 : true : false;
  };
  protoOf(PathSegment).hashCode = function () {
    var tmp;
    switch (this.verb_1.get_ordinal_ip24qg_k$()) {
      case 6:
        tmp = objectHashes([this.verb_1]);
        break;
      case 0:
        tmp = objectHashes([this.verb_1, this.p0__1, this.isClosedContour_1]);
        break;
      case 1:
        tmp = objectHashes([this.verb_1, this.p0__1, this.p1__1, this.isCloseLine_1, this.isClosedContour_1]);
        break;
      case 2:
        tmp = objectHashes([this.verb_1, this.p0__1, this.p1__1, this.p2__1, this.isClosedContour_1]);
        break;
      case 3:
        tmp = objectHashes([this.verb_1, this.p0__1, this.p1__1, this.p2__1, this.conicWeight_1, this.isClosedContour_1]);
        break;
      case 4:
        tmp = objectHashes([this.verb_1, this.p0__1, this.p1__1, this.p2__1, this.p3__1, this.isClosedContour_1]);
        break;
      default:
        throw RuntimeException_init_$Create$('Unreachable');
    }
    return tmp;
  };
  function objectHashes(args) {
    return contentHashCode_0(args);
  }
  function Companion_36() {
    Companion_instance_36 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_36).make_86hh5o_k$ = function (path, forceClose) {
    var tmp;
    try {
      var i = new PathSegmentIterator(path, org_jetbrains_skia_PathSegmentIterator__1nMake(getPtr(path), forceClose));
      i._nextSegment_1 = nextSegment(i);
      tmp = i;
    }finally {
      reachabilityBarrier(path);
    }
    return tmp;
  };
  var Companion_instance_36;
  function Companion_getInstance_37() {
    if (Companion_instance_36 == null)
      new Companion_36();
    return Companion_instance_36;
  }
  function _FinalizerHolder_9() {
    _FinalizerHolder_instance_9 = this;
    this.PTR_1 = org_jetbrains_skia_PathSegmentIterator__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_9).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_9;
  function _FinalizerHolder_getInstance_9() {
    if (_FinalizerHolder_instance_9 == null)
      new _FinalizerHolder_9();
    return _FinalizerHolder_instance_9;
  }
  function nextSegment($this) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(10);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        // Inline function 'org.jetbrains.skia.PathSegmentIterator.nextSegment.<anonymous>' call
        org_jetbrains_skia_PathSegmentIterator__1nNext($this.get__ptr_wohp4o_k$(), handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return pathSegmentFromIntArray(result);
  }
  function PathSegmentIterator(_path, ptr) {
    Companion_getInstance_37();
    Managed.call(this, ptr, org_jetbrains_skia_PathSegmentIterator__1nGetFinalizer());
    this._path_1 = _path;
    this._nextSegment_1 = null;
    Stats_getInstance().onNativeCall_s2f4hw_k$();
  }
  protoOf(PathSegmentIterator).get__path_innhej_k$ = function () {
    return this._path_1;
  };
  protoOf(PathSegmentIterator).set__nextSegment_dinc_k$ = function (_set____db54di) {
    this._nextSegment_1 = _set____db54di;
  };
  protoOf(PathSegmentIterator).get__nextSegment_lry0mu_k$ = function () {
    return this._nextSegment_1;
  };
  protoOf(PathSegmentIterator).next_20eer_k$ = function () {
    var tmp;
    try {
      var tmp0_safe_receiver = this._nextSegment_1;
      if (equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_verb_wow5m0_k$(), PathVerb_DONE_getInstance()))
        throw NoSuchElementException_init_$Create$();
      var res = this._nextSegment_1;
      this._nextSegment_1 = nextSegment(this);
      tmp = res;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PathSegmentIterator).hasNext_bitz1p_k$ = function () {
    var tmp0_safe_receiver = this._nextSegment_1;
    return !equals(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_verb_wow5m0_k$(), PathVerb_DONE_getInstance());
  };
  protoOf(PathSegmentIterator).remove_ldkf9o_k$ = function () {
    // Inline function 'kotlin.TODO' call
    var reason = 'Not yet implemented';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  function pathSegmentFromIntArray(points) {
    var context = last(points);
    var verb = context & 7;
    var isClosedBit = context >> 7 & 1;
    var isClosedLineBit = context >> 6 & 1;
    var isClosed = !(isClosedBit === 0);
    var tmp;
    switch (values_22()[verb].get_ordinal_ip24qg_k$()) {
      case 0:
      case 5:
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits = points[0];
        var tmp_0 = floatFromBits(bits);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_0 = points[1];
        var tmp$ret$1 = floatFromBits(bits_0);
        tmp = PathSegment_init_$Create$(verb, tmp_0, tmp$ret$1, isClosed);
        break;
      case 1:
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_1 = points[0];
        var tmp_1 = floatFromBits(bits_1);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_2 = points[1];
        var tmp_2 = floatFromBits(bits_2);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_3 = points[2];
        var tmp_3 = floatFromBits(bits_3);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_4 = points[3];
        var tmp$ret$5 = floatFromBits(bits_4);
        tmp = PathSegment_init_$Create$_0(tmp_1, tmp_2, tmp_3, tmp$ret$5, !(isClosedLineBit === 0), isClosed);
        break;
      case 2:
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_5 = points[0];
        var tmp_4 = floatFromBits(bits_5);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_6 = points[1];
        var tmp_5 = floatFromBits(bits_6);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_7 = points[2];
        var tmp_6 = floatFromBits(bits_7);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_8 = points[3];
        var tmp_7 = floatFromBits(bits_8);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_9 = points[4];
        var tmp_8 = floatFromBits(bits_9);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_10 = points[5];
        var tmp$ret$11 = floatFromBits(bits_10);
        tmp = PathSegment_init_$Create$_1(tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp$ret$11, isClosed);
        break;
      case 3:
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_11 = points[0];
        var tmp_9 = floatFromBits(bits_11);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_12 = points[1];
        var tmp_10 = floatFromBits(bits_12);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_13 = points[2];
        var tmp_11 = floatFromBits(bits_13);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_14 = points[3];
        var tmp_12 = floatFromBits(bits_14);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_15 = points[4];
        var tmp_13 = floatFromBits(bits_15);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_16 = points[5];
        var tmp_14 = floatFromBits(bits_16);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_17 = points[8];
        var tmp$ret$18 = floatFromBits(bits_17);
        tmp = PathSegment_init_$Create$_2(tmp_9, tmp_10, tmp_11, tmp_12, tmp_13, tmp_14, tmp$ret$18, isClosed);
        break;
      case 4:
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_18 = points[0];
        var tmp_15 = floatFromBits(bits_18);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_19 = points[1];
        var tmp_16 = floatFromBits(bits_19);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_20 = points[2];
        var tmp_17 = floatFromBits(bits_20);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_21 = points[3];
        var tmp_18 = floatFromBits(bits_21);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_22 = points[4];
        var tmp_19 = floatFromBits(bits_22);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_23 = points[5];
        var tmp_20 = floatFromBits(bits_23);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_24 = points[6];
        var tmp_21 = floatFromBits(bits_24);
        // Inline function 'kotlin.fromBits' call

        FloatCompanionObject_getInstance();
        var bits_25 = points[7];
        var tmp$ret$26 = floatFromBits(bits_25);
        tmp = PathSegment_init_$Create$_3(tmp_15, tmp_16, tmp_17, tmp_18, tmp_19, tmp_20, tmp_21, tmp$ret$26, isClosed);
        break;
      case 6:
        tmp = new PathSegment();
        break;
      default:
        noWhenBranchMatchedException();
        break;
    }
    return tmp;
  }
  var PathVerb_MOVE_instance;
  var PathVerb_LINE_instance;
  var PathVerb_QUAD_instance;
  var PathVerb_CONIC_instance;
  var PathVerb_CUBIC_instance;
  var PathVerb_CLOSE_instance;
  var PathVerb_DONE_instance;
  function values_22() {
    return [PathVerb_MOVE_getInstance(), PathVerb_LINE_getInstance(), PathVerb_QUAD_getInstance(), PathVerb_CONIC_getInstance(), PathVerb_CUBIC_getInstance(), PathVerb_CLOSE_getInstance(), PathVerb_DONE_getInstance()];
  }
  function valueOf_22(value) {
    switch (value) {
      case 'MOVE':
        return PathVerb_MOVE_getInstance();
      case 'LINE':
        return PathVerb_LINE_getInstance();
      case 'QUAD':
        return PathVerb_QUAD_getInstance();
      case 'CONIC':
        return PathVerb_CONIC_getInstance();
      case 'CUBIC':
        return PathVerb_CUBIC_getInstance();
      case 'CLOSE':
        return PathVerb_CLOSE_getInstance();
      case 'DONE':
        return PathVerb_DONE_getInstance();
      default:
        PathVerb_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PathVerb_entriesInitialized;
  function PathVerb_initEntries() {
    if (PathVerb_entriesInitialized)
      return Unit_getInstance();
    PathVerb_entriesInitialized = true;
    PathVerb_MOVE_instance = new PathVerb('MOVE', 0);
    PathVerb_LINE_instance = new PathVerb('LINE', 1);
    PathVerb_QUAD_instance = new PathVerb('QUAD', 2);
    PathVerb_CONIC_instance = new PathVerb('CONIC', 3);
    PathVerb_CUBIC_instance = new PathVerb('CUBIC', 4);
    PathVerb_CLOSE_instance = new PathVerb('CLOSE', 5);
    PathVerb_DONE_instance = new PathVerb('DONE', 6);
  }
  function PathVerb(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PathVerb_MOVE_getInstance() {
    PathVerb_initEntries();
    return PathVerb_MOVE_instance;
  }
  function PathVerb_LINE_getInstance() {
    PathVerb_initEntries();
    return PathVerb_LINE_instance;
  }
  function PathVerb_QUAD_getInstance() {
    PathVerb_initEntries();
    return PathVerb_QUAD_instance;
  }
  function PathVerb_CONIC_getInstance() {
    PathVerb_initEntries();
    return PathVerb_CONIC_instance;
  }
  function PathVerb_CUBIC_getInstance() {
    PathVerb_initEntries();
    return PathVerb_CUBIC_instance;
  }
  function PathVerb_CLOSE_getInstance() {
    PathVerb_initEntries();
    return PathVerb_CLOSE_instance;
  }
  function PathVerb_DONE_getInstance() {
    PathVerb_initEntries();
    return PathVerb_DONE_instance;
  }
  function Companion_37() {
    Companion_instance_37 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_37).makeFromData_68bs4e_k$ = function (data) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Picture__1nMakeFromData(getPtr(data));
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Picture(ptr);
    }finally {
      reachabilityBarrier(data);
    }
    return tmp;
  };
  protoOf(Companion_37).makePlaceholder_pn8tsy_k$ = function (cull) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Picture(org_jetbrains_skia_Picture__1nMakePlaceholder(cull.get_left_woprgw_k$(), cull.get_top_18ivbo_k$(), cull.get_right_ixz7xv_k$(), cull.get_bottom_bj8ras_k$()));
  };
  var Companion_instance_37;
  function Companion_getInstance_38() {
    if (Companion_instance_37 == null)
      new Companion_37();
    return Companion_instance_37;
  }
  function Picture$_get_cullRect_$lambda_wn0agg(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Picture__1nGetCullRect(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Picture(ptr) {
    Companion_getInstance_38();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(Picture).playback_cnuskt_k$ = function (canvas, abort) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_Picture__1nPlayback(this.get__ptr_wohp4o_k$(), getPtr(canvas), $this$interopScope.booleanCallback_o0l8jn_k$(abort));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(canvas);
    }
    return tmp;
  };
  protoOf(Picture).playback$default_qqwb36_k$ = function (canvas, abort, $super) {
    abort = abort === VOID ? null : abort;
    return $super === VOID ? this.playback_cnuskt_k$(canvas, abort) : $super.playback_cnuskt_k$.call(this, canvas, abort);
  };
  protoOf(Picture).get_cullRect_p89ozl_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Picture$_get_cullRect_$lambda_wn0agg(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).get_uniqueId_ycv0d1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Picture__1nGetUniqueId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).serializeToData_6ks2it_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Data(org_jetbrains_skia_Picture__1nSerializeToData(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).get_approximateOpCount_3hzat9_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Picture__1nGetApproximateOpCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).get_approximateBytesUsed_bonctf_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Picture__1nGetApproximateBytesUsed(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).makeShader_bftdf8_k$ = function (tmx, tmy, mode, localMatrix, tileRect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var arr = localMatrix == null ? null : localMatrix.get_mat_18j0uh_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Picture.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          var tmp_1 = tmx.get_ordinal_ip24qg_k$();
          var tmp_2 = tmy.get_ordinal_ip24qg_k$();
          var tmp_3 = mode.get_ordinal_ip24qg_k$();
          var tmp_4 = $this$interopScope.toInterop_uum1m9_k$(arr);
          var tmp_5 = !(tileRect == null);
          var tmp1_elvis_lhs = tileRect == null ? null : tileRect.get_left_woprgw_k$();
          var tmp_6 = tmp1_elvis_lhs == null ? 0.0 : tmp1_elvis_lhs;
          var tmp3_elvis_lhs = tileRect == null ? null : tileRect.get_top_18ivbo_k$();
          var tmp_7 = tmp3_elvis_lhs == null ? 0.0 : tmp3_elvis_lhs;
          var tmp5_elvis_lhs = tileRect == null ? null : tileRect.get_right_ixz7xv_k$();
          var tmp_8 = tmp5_elvis_lhs == null ? 0.0 : tmp5_elvis_lhs;
          var tmp7_elvis_lhs = tileRect == null ? null : tileRect.get_bottom_bj8ras_k$();
          tmp$ret$1 = org_jetbrains_skia_Picture__1nMakeShader(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp7_elvis_lhs == null ? 0.0 : tmp7_elvis_lhs);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Picture).makeShader$default_tocgta_k$ = function (tmx, tmy, mode, localMatrix, tileRect, $super) {
    localMatrix = localMatrix === VOID ? null : localMatrix;
    tileRect = tileRect === VOID ? null : tileRect;
    return $super === VOID ? this.makeShader_bftdf8_k$(tmx, tmy, mode, localMatrix, tileRect) : $super.makeShader_bftdf8_k$.call(this, tmx, tmy, mode, localMatrix, tileRect);
  };
  function Companion_38() {
    Companion_instance_38 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_38;
  function Companion_getInstance_39() {
    if (Companion_instance_38 == null)
      new Companion_38();
    return Companion_instance_38;
  }
  function PictureRecorder_init_$Init$($this) {
    PictureRecorder.call($this, org_jetbrains_skia_PictureRecorder__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function PictureRecorder_init_$Create$() {
    return PictureRecorder_init_$Init$(objectCreate(protoOf(PictureRecorder)));
  }
  function _FinalizerHolder_10() {
    _FinalizerHolder_instance_10 = this;
    this.PTR_1 = org_jetbrains_skia_PictureRecorder__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_10).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_10;
  function _FinalizerHolder_getInstance_10() {
    if (_FinalizerHolder_instance_10 == null)
      new _FinalizerHolder_10();
    return _FinalizerHolder_instance_10;
  }
  function PictureRecorder(ptr) {
    Companion_getInstance_39();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_10().PTR_1);
  }
  protoOf(PictureRecorder).beginRecording_8ffhcr_k$ = function (bounds) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Canvas(org_jetbrains_skia_PictureRecorder__1nBeginRecording(this.get__ptr_wohp4o_k$(), bounds.get_left_woprgw_k$(), bounds.get_top_18ivbo_k$(), bounds.get_right_ixz7xv_k$(), bounds.get_bottom_bj8ras_k$()), false, this);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PictureRecorder).get_recordingCanvas_db77b4_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_PictureRecorder__1nGetRecordingCanvas(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Canvas(ptr, false, this);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PictureRecorder).finishRecordingAsPicture_98rgby_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Picture(org_jetbrains_skia_PictureRecorder__1nFinishRecordingAsPicture(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PictureRecorder).finishRecordingAsPicture_ar6kp7_k$ = function (cull) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Picture(org_jetbrains_skia_PictureRecorder__1nFinishRecordingAsPictureWithCull(this.get__ptr_wohp4o_k$(), cull.get_left_woprgw_k$(), cull.get_top_18ivbo_k$(), cull.get_right_ixz7xv_k$(), cull.get_bottom_bj8ras_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  var PixelGeometry_UNKNOWN_instance;
  var PixelGeometry_RGB_H_instance;
  var PixelGeometry_BGR_H_instance;
  var PixelGeometry_RGB_V_instance;
  var PixelGeometry_BGR_V_instance;
  function values_23() {
    return [PixelGeometry_UNKNOWN_getInstance(), PixelGeometry_RGB_H_getInstance(), PixelGeometry_BGR_H_getInstance(), PixelGeometry_RGB_V_getInstance(), PixelGeometry_BGR_V_getInstance()];
  }
  function valueOf_23(value) {
    switch (value) {
      case 'UNKNOWN':
        return PixelGeometry_UNKNOWN_getInstance();
      case 'RGB_H':
        return PixelGeometry_RGB_H_getInstance();
      case 'BGR_H':
        return PixelGeometry_BGR_H_getInstance();
      case 'RGB_V':
        return PixelGeometry_RGB_V_getInstance();
      case 'BGR_V':
        return PixelGeometry_BGR_V_getInstance();
      default:
        PixelGeometry_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PixelGeometry_entriesInitialized;
  function PixelGeometry_initEntries() {
    if (PixelGeometry_entriesInitialized)
      return Unit_getInstance();
    PixelGeometry_entriesInitialized = true;
    PixelGeometry_UNKNOWN_instance = new PixelGeometry('UNKNOWN', 0);
    PixelGeometry_RGB_H_instance = new PixelGeometry('RGB_H', 1);
    PixelGeometry_BGR_H_instance = new PixelGeometry('BGR_H', 2);
    PixelGeometry_RGB_V_instance = new PixelGeometry('RGB_V', 3);
    PixelGeometry_BGR_V_instance = new PixelGeometry('BGR_V', 4);
  }
  function PixelGeometry(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PixelGeometry_UNKNOWN_getInstance() {
    PixelGeometry_initEntries();
    return PixelGeometry_UNKNOWN_instance;
  }
  function PixelGeometry_RGB_H_getInstance() {
    PixelGeometry_initEntries();
    return PixelGeometry_RGB_H_instance;
  }
  function PixelGeometry_BGR_H_getInstance() {
    PixelGeometry_initEntries();
    return PixelGeometry_BGR_H_instance;
  }
  function PixelGeometry_RGB_V_getInstance() {
    PixelGeometry_initEntries();
    return PixelGeometry_RGB_V_instance;
  }
  function PixelGeometry_BGR_V_getInstance() {
    PixelGeometry_initEntries();
    return PixelGeometry_BGR_V_instance;
  }
  function Companion_39() {
    Companion_instance_39 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_39;
  function Companion_getInstance_40() {
    if (Companion_instance_39 == null)
      new Companion_39();
    return Companion_instance_39;
  }
  function PixelRef(ptr) {
    Companion_getInstance_40();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(PixelRef).get_width_j0q4yl_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_PixelRef__1nGetWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PixelRef).get_height_e7t92o_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_PixelRef__1nGetHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PixelRef).get_rowBytes_viqv7q_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_PixelRef__1nGetRowBytes(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PixelRef).get_generationId_x1e17g_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_PixelRef__1nGetGenerationId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PixelRef).notifyPixelsChanged_97ppqa_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_PixelRef__1nNotifyPixelsChanged(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(PixelRef).get_isImmutable_b8i701_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_PixelRef__1nIsImmutable(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(PixelRef).setImmutable_j5sn28_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_PixelRef__1nSetImmutable(this.get__ptr_wohp4o_k$());
    return this;
  };
  function _set_underlyingMemoryOwner__rt5bo0_0($this, _set____db54di) {
    $this.underlyingMemoryOwner_1 = _set____db54di;
  }
  function _get_underlyingMemoryOwner__lniz8c_0($this) {
    return $this.underlyingMemoryOwner_1;
  }
  function _set__imageInfo__mc24b7($this, _set____db54di) {
    $this._imageInfo_1 = _set____db54di;
  }
  function _get__imageInfo__xmtcip($this) {
    return $this._imageInfo_1;
  }
  function _get__imageInfoLock__jyiqly($this) {
    return $this._imageInfoLock_1;
  }
  function Pixmap_init_$Init$($this) {
    Pixmap.call($this, org_jetbrains_skia_Pixmap__1nMakeNull(), true);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function Pixmap_init_$Create$() {
    return Pixmap_init_$Init$(objectCreate(protoOf(Pixmap)));
  }
  function _FinalizerHolder_11() {
    _FinalizerHolder_instance_11 = this;
    this.PTR_1 = org_jetbrains_skia_Pixmap__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_11).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_11;
  function _FinalizerHolder_getInstance_11() {
    if (_FinalizerHolder_instance_11 == null)
      new _FinalizerHolder_11();
    return _FinalizerHolder_instance_11;
  }
  function Companion_40() {
    Companion_instance_40 = this;
  }
  protoOf(Companion_40).make_byytax_k$ = function (info, buffer, rowBytes) {
    return this.make_rofvts_k$(info, buffer.writableData_rh05g6_k$(), rowBytes, buffer);
  };
  protoOf(Companion_40).make_rofvts_k$ = function (info, addr, rowBytes, underlyingMemoryOwner) {
    var tmp;
    try {
      var ptr = org_jetbrains_skia_Pixmap__1nMake(info.get_width_j0q4yl_k$(), info.get_height_e7t92o_k$(), info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), addr, rowBytes);
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        // Inline function 'org.jetbrains.skia.Companion.make.<anonymous>' call
        var message = 'Failed to create Pixmap.';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      // Inline function 'kotlin.also' call
      var this_0 = new Pixmap(ptr, true);
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'org.jetbrains.skia.Companion.make.<anonymous>' call
      this_0.underlyingMemoryOwner_1 = underlyingMemoryOwner;
      tmp = this_0;
    }finally {
      reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Companion_40).make$default_3qv7q5_k$ = function (info, addr, rowBytes, underlyingMemoryOwner, $super) {
    underlyingMemoryOwner = underlyingMemoryOwner === VOID ? null : underlyingMemoryOwner;
    return $super === VOID ? this.make_rofvts_k$(info, addr, rowBytes, underlyingMemoryOwner) : $super.make_rofvts_k$.call(this, info, addr, rowBytes, underlyingMemoryOwner);
  };
  var Companion_instance_40;
  function Companion_getInstance_41() {
    if (Companion_instance_40 == null)
      new Companion_40();
    return Companion_instance_40;
  }
  function _nGetInfo$ref() {
    var l = function (p0, p1, p2) {
      org_jetbrains_skia_Pixmap__1nGetInfo(p0, p1, p2);
      return Unit_getInstance();
    };
    l.callableName = '_nGetInfo';
    return l;
  }
  function Pixmap(ptr, managed) {
    Companion_getInstance_41();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_11().PTR_1, managed);
    this.underlyingMemoryOwner_1 = null;
    this._imageInfo_1 = null;
    this._imageInfoLock_1 = Unit_getInstance();
  }
  protoOf(Pixmap).reset_5u6xz3_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
    this._imageInfo_1 = null;
    org_jetbrains_skia_Pixmap__1nReset(this.get__ptr_wohp4o_k$());
    this.underlyingMemoryOwner_1 = null;
    reachabilityBarrier(this);
  };
  protoOf(Pixmap).reset_2psgxd_k$ = function (info, addr, rowBytes, underlyingMemoryOwner) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
    this._imageInfo_1 = null;
    org_jetbrains_skia_Pixmap__1nResetWithInfo(this.get__ptr_wohp4o_k$(), info.get_width_j0q4yl_k$(), info.get_height_e7t92o_k$(), info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), addr, rowBytes);
    this.underlyingMemoryOwner_1 = underlyingMemoryOwner;
    reachabilityBarrier(this);
    reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
  };
  protoOf(Pixmap).reset$default_ugy6f8_k$ = function (info, addr, rowBytes, underlyingMemoryOwner, $super) {
    underlyingMemoryOwner = underlyingMemoryOwner === VOID ? null : underlyingMemoryOwner;
    var tmp;
    if ($super === VOID) {
      this.reset_2psgxd_k$(info, addr, rowBytes, underlyingMemoryOwner);
      tmp = Unit_getInstance();
    } else {
      tmp = $super.reset_2psgxd_k$.call(this, info, addr, rowBytes, underlyingMemoryOwner);
    }
    return tmp;
  };
  protoOf(Pixmap).reset_3ir8ru_k$ = function (info, buffer, rowBytes) {
    this.reset_2psgxd_k$(info, buffer.writableData_rh05g6_k$(), rowBytes, buffer);
  };
  protoOf(Pixmap).setColorSpace_w5s5wy_k$ = function (colorSpace) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
    this._imageInfo_1 = null;
    org_jetbrains_skia_Pixmap__1nSetColorSpace(this.get__ptr_wohp4o_k$(), getPtr(colorSpace));
    reachabilityBarrier(this);
    reachabilityBarrier(colorSpace);
  };
  protoOf(Pixmap).extractSubset_dqe4dj_k$ = function (subsetPtr, area) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nExtractSubset(this.get__ptr_wohp4o_k$(), subsetPtr, area.get_left_woprgw_k$(), area.get_top_18ivbo_k$(), area.get_right_ixz7xv_k$(), area.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).extractSubset_uaesb9_k$ = function (subset, area) {
    return this.extractSubset_dqe4dj_k$(subset.get__ptr_wohp4o_k$(), area);
  };
  protoOf(Pixmap).get_info_woo16f_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
      // Inline function 'org.jetbrains.skia.Pixmap.<get-info>.<anonymous>' call
      if (this._imageInfo_1 == null) {
        var tmp_0 = this;
        var tmp_1 = Companion_getInstance_28();
        var tmp_2 = this.get__ptr_wohp4o_k$();
        tmp_0._imageInfo_1 = tmp_1.createUsing_vjf7w1_k$(tmp_2, _nGetInfo$ref());
      }
      tmp = ensureNotNull(this._imageInfo_1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).get_rowBytes_viqv7q_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetRowBytes(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).get_addr_woiptm_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetAddr(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).get_rowBytesAsPixels_1cm8m1_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetRowBytesAsPixels(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).computeByteSize_txd6dc_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nComputeByteSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).computeIsOpaque_fs8hxa_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nComputeIsOpaque(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).getColor_m56hoz_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetColor(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).getAlphaF_16fs4e_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetAlphaF(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).getAddr_x9bsnt_k$ = function (x, y) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nGetAddrAt(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).readPixels_javj15_k$ = function (info, addr, rowBytes) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nReadPixels(this.get__ptr_wohp4o_k$(), info.get_width_j0q4yl_k$(), info.get_height_e7t92o_k$(), info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), addr, rowBytes);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Pixmap).readPixels_m0ekwp_k$ = function (info, addr, rowBytes, srcX, srcY) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nReadPixelsFromPoint(this.get__ptr_wohp4o_k$(), info.get_width_j0q4yl_k$(), info.get_height_e7t92o_k$(), info.get_colorInfo_tre0vs_k$().get_colorType_tr6rn0_k$().get_ordinal_ip24qg_k$(), info.get_colorInfo_tre0vs_k$().get_alphaType_1awv75_k$().get_ordinal_ip24qg_k$(), getPtr(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$()), addr, rowBytes, srcX, srcY);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(info.get_colorInfo_tre0vs_k$().get_colorSpace_yx2b0_k$());
    }
    return tmp;
  };
  protoOf(Pixmap).readPixels_gv66ve_k$ = function (pixmap) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
      // Inline function 'org.jetbrains.skia.Pixmap.readPixels.<anonymous>' call
      this._imageInfo_1 = null;
      tmp = org_jetbrains_skia_Pixmap__1nReadPixelsToPixmap(this.get__ptr_wohp4o_k$(), getPtr(pixmap));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(pixmap);
    }
    return tmp;
  };
  protoOf(Pixmap).readPixels_iu4cvx_k$ = function (pixmap, srcX, srcY) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skiko.maybeSynchronized' call
      // Inline function 'org.jetbrains.skia.Pixmap.readPixels.<anonymous>' call
      pixmap._imageInfo_1 = null;
      tmp = org_jetbrains_skia_Pixmap__1nReadPixelsToPixmapFromPoint(this.get__ptr_wohp4o_k$(), getPtr(pixmap), srcX, srcY);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(pixmap);
    }
    return tmp;
  };
  protoOf(Pixmap).scalePixels_vlw5x5_k$ = function (dstPixmap, samplingMode) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nScalePixels(this.get__ptr_wohp4o_k$(), getPtr(dstPixmap), samplingMode._packedInt1_kbgj89_k$(), samplingMode._packedInt2_kbgj8a_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(dstPixmap);
    }
    return tmp;
  };
  protoOf(Pixmap).erase_n4yeia_k$ = function (color) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nErase(this.get__ptr_wohp4o_k$(), color);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).erase_g6n8ws_k$ = function (color, subset) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_Pixmap__1nEraseSubset(this.get__ptr_wohp4o_k$(), color, subset.get_left_woprgw_k$(), subset.get_top_18ivbo_k$(), subset.get_right_ixz7xv_k$(), subset.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Pixmap).get_buffer_bmaafd_k$ = function () {
    var tmp = this.underlyingMemoryOwner_1;
    var tmp0_elvis_lhs = tmp instanceof Data ? tmp : null;
    return tmp0_elvis_lhs == null ? Companion_getInstance_8().makeWithoutCopy_pf98no_k$(this.get_addr_woiptm_k$(), this.computeByteSize_txd6dc_k$(), this) : tmp0_elvis_lhs;
  };
  function Companion_41() {
    Companion_instance_41 = this;
    this.ZERO_1 = new Point(0.0, 0.0);
  }
  protoOf(Companion_41).get_ZERO_wodlgx_k$ = function () {
    return this.ZERO_1;
  };
  protoOf(Companion_41).flattenArray_n7c6vn_k$ = function (pts) {
    if (pts == null)
      return null;
    var arr = new Float32Array(imul(pts.length, 2));
    var inductionVariable = 0;
    var last = pts.length - 1 | 0;
    if (inductionVariable <= last)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        arr[imul(i, 2)] = pts[i].x_1;
        arr[imul(i, 2) + 1 | 0] = pts[i].y_1;
      }
       while (inductionVariable <= last);
    return arr;
  };
  protoOf(Companion_41).fromArray_3oemf6_k$ = function (pts) {
    if (pts == null)
      return null;
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!((pts.length % 2 | 0) === 0)) {
      // Inline function 'org.jetbrains.skia.Companion.fromArray.<anonymous>' call
      var message = 'Expected ' + pts.length + ' % 2 == 0';
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.arrayOfNulls' call
    var size = pts.length / 2 | 0;
    var arr = fillArrayVal(Array(size), null);
    var inductionVariable = 0;
    var last = pts.length / 2 | 0;
    if (inductionVariable < last)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        arr[i] = new Point(pts[imul(i, 2)], pts[imul(i, 2) + 1 | 0]);
      }
       while (inductionVariable < last);
    return arr;
  };
  protoOf(Companion_41).fromInteropPointer_2qty6v_k$ = function (block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(2);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new Point(result_0[0], result_0[1]);
  };
  var Companion_instance_41;
  function Companion_getInstance_42() {
    if (Companion_instance_41 == null)
      new Companion_41();
    return Companion_instance_41;
  }
  function Point(x, y) {
    Companion_getInstance_42();
    this.x_1 = x;
    this.y_1 = y;
  }
  protoOf(Point).get_x_1mhr67_k$ = function () {
    return this.x_1;
  };
  protoOf(Point).get_y_1mhr68_k$ = function () {
    return this.y_1;
  };
  protoOf(Point).offset_dxmngz_k$ = function (dx, dy) {
    return new Point(this.x_1 + dx, this.y_1 + dy);
  };
  protoOf(Point).offset_obaapu_k$ = function (vec) {
    return this.offset_dxmngz_k$(vec.x_1, vec.y_1);
  };
  protoOf(Point).scale_n1f8ya_k$ = function (scale) {
    return this.scale_ln7xze_k$(scale, scale);
  };
  protoOf(Point).scale_ln7xze_k$ = function (sx, sy) {
    return new Point(this.x_1 * sx, this.y_1 * sy);
  };
  protoOf(Point).get_isEmpty_zauvru_k$ = function () {
    return this.x_1 <= 0.0 ? true : this.y_1 <= 0.0;
  };
  protoOf(Point).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Point))
      return false;
    if (!(compareTo(this.x_1, other.x_1) === 0))
      return false;
    return compareTo(this.y_1, other.y_1) === 0;
  };
  protoOf(Point).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.x_1) | 0;
    result = imul(result, PRIME) + toBits(this.y_1) | 0;
    return result;
  };
  protoOf(Point).toString = function () {
    return 'Point(_x=' + this.x_1 + ', _y=' + this.y_1 + ')';
  };
  function Point3(x, y, z) {
    this.x_1 = x;
    this.y_1 = y;
    this.z_1 = z;
  }
  protoOf(Point3).get_x_1mhr67_k$ = function () {
    return this.x_1;
  };
  protoOf(Point3).get_y_1mhr68_k$ = function () {
    return this.y_1;
  };
  protoOf(Point3).get_z_1mhr69_k$ = function () {
    return this.z_1;
  };
  protoOf(Point3).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Point3))
      return false;
    if (!(compareTo(this.x_1, other.x_1) === 0))
      return false;
    if (!(compareTo(this.y_1, other.y_1) === 0))
      return false;
    return compareTo(this.z_1, other.z_1) === 0;
  };
  protoOf(Point3).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.x_1) | 0;
    result = imul(result, PRIME) + toBits(this.y_1) | 0;
    result = imul(result, PRIME) + toBits(this.z_1) | 0;
    return result;
  };
  protoOf(Point3).toString = function () {
    return 'Point3(_x=' + this.x_1 + ', _y=' + this.y_1 + ', _z=' + this.z_1 + ')';
  };
  function RRect$Companion$fromInteropPointerNullable$lambda($result, $block) {
    return function ($this$fromInteropPointer, it) {
      $result._v = $block(it);
      return Unit_getInstance();
    };
  }
  function Companion_42() {
    Companion_instance_42 = this;
  }
  protoOf(Companion_42).makeLTRB_nd4cmm_k$ = function (l, t, r, b, radius) {
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([radius]);
    return new RRect(l, t, r, b, tmp$ret$0);
  };
  protoOf(Companion_42).makeLTRB_qlrzkq_k$ = function (l, t, r, b, xRad, yRad) {
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([xRad, yRad]);
    return new RRect(l, t, r, b, tmp$ret$0);
  };
  protoOf(Companion_42).makeLTRB_xirmw6_k$ = function (l, t, r, b, tlRad, trRad, brRad, blRad) {
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([tlRad, trRad, brRad, blRad]);
    return new RRect(l, t, r, b, tmp$ret$0);
  };
  protoOf(Companion_42).makeNinePatchLTRB_9odfz4_k$ = function (l, t, r, b, lRad, tRad, rRad, bRad) {
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([lRad, tRad, rRad, tRad, rRad, bRad, lRad, bRad]);
    return new RRect(l, t, r, b, tmp$ret$0);
  };
  protoOf(Companion_42).makeComplexLTRB_n5v03i_k$ = function (l, t, r, b, radii) {
    return new RRect(l, t, r, b, radii);
  };
  protoOf(Companion_42).makeOvalLTRB_5f3jl4_k$ = function (l, t, r, b) {
    // Inline function 'kotlin.floatArrayOf' call
    // Inline function 'kotlin.math.abs' call
    var x = r - l;
    var tmp = Math.abs(x) / 2.0;
    // Inline function 'kotlin.math.abs' call
    var x_0 = b - t;
    var tmp$ret$1 = Math.abs(x_0);
    var tmp$ret$2 = new Float32Array([tmp, tmp$ret$1 / 2.0]);
    return new RRect(l, t, r, b, tmp$ret$2);
  };
  protoOf(Companion_42).makePillLTRB_42gzjz_k$ = function (l, t, r, b) {
    // Inline function 'kotlin.floatArrayOf' call
    // Inline function 'kotlin.comparisons.minOf' call
    // Inline function 'kotlin.math.abs' call
    var x = r - l;
    var a = Math.abs(x);
    // Inline function 'kotlin.math.abs' call
    var x_0 = t - b;
    var b_0 = Math.abs(x_0);
    var tmp$ret$2 = Math.min(a, b_0);
    var tmp$ret$3 = new Float32Array([tmp$ret$2 / 2.0]);
    return new RRect(l, t, r, b, tmp$ret$3);
  };
  protoOf(Companion_42).makeXYWH_b3h0co_k$ = function (l, t, w, h, radius) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([radius]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$0);
  };
  protoOf(Companion_42).makeXYWH_6xtrb4_k$ = function (l, t, w, h, xRad, yRad) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([xRad, yRad]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$0);
  };
  protoOf(Companion_42).makeXYWH_dzsdxc_k$ = function (l, t, w, h, tlRad, trRad, brRad, blRad) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([tlRad, trRad, brRad, blRad]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$0);
  };
  protoOf(Companion_42).makeNinePatchXYWH_9ulszq_k$ = function (l, t, w, h, lRad, tRad, rRad, bRad) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([lRad, tRad, rRad, tRad, rRad, bRad, lRad, bRad]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$0);
  };
  protoOf(Companion_42).makeComplexXYWH_ymo8tg_k$ = function (l, t, w, h, radii) {
    return new RRect(l, t, l + w, t + h, radii);
  };
  protoOf(Companion_42).makeOvalXYWH_l9nmry_k$ = function (l, t, w, h) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    var tmp$ret$0 = new Float32Array([w / 2.0, h / 2.0]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$0);
  };
  protoOf(Companion_42).makePillXYWH_bs33mv_k$ = function (l, t, w, h) {
    var tmp = l + w;
    var tmp_0 = t + h;
    // Inline function 'kotlin.floatArrayOf' call
    // Inline function 'kotlin.comparisons.minOf' call
    var tmp$ret$0 = Math.min(w, h);
    var tmp$ret$1 = new Float32Array([tmp$ret$0 / 2.0]);
    return new RRect(l, t, tmp, tmp_0, tmp$ret$1);
  };
  protoOf(Companion_42).fromInteropPointer_2qty6v_k$ = function (block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(12);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new RRect(result_0[0], result_0[1], result_0[2], result_0[3], copyOfRange(result_0, 4, 12));
  };
  protoOf(Companion_42).fromInteropPointerNullable_rzwb3l_k$ = function (block) {
    var result = {_v: true};
    var rect = this.fromInteropPointer_2qty6v_k$(RRect$Companion$fromInteropPointerNullable$lambda(result, block));
    var tmp;
    if (result._v) {
      tmp = rect;
    } else {
      tmp = null;
    }
    return tmp;
  };
  var Companion_instance_42;
  function Companion_getInstance_43() {
    if (Companion_instance_42 == null)
      new Companion_42();
    return Companion_instance_42;
  }
  function RRect(l, t, r, b, radii) {
    Companion_getInstance_43();
    Rect.call(this, l, t, r, b);
    this.radii_1 = radii;
  }
  protoOf(RRect).get_radii_ixu1u4_k$ = function () {
    return this.radii_1;
  };
  protoOf(RRect).inflate_rvluy7_k$ = function (spread) {
    var becomesRect = true;
    var inductionVariable = 0;
    var last = this.radii_1.length - 1 | 0;
    if (inductionVariable <= last)
      $l$loop: do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        if (this.radii_1[i] + spread >= 0.0) {
          becomesRect = false;
          break $l$loop;
        }
      }
       while (inductionVariable <= last);
    var tmp;
    if (becomesRect) {
      var tmp_0 = Companion_getInstance_45();
      var tmp_1 = this.get_left_woprgw_k$() - spread;
      var tmp_2 = this.get_top_18ivbo_k$() - spread;
      // Inline function 'kotlin.comparisons.maxOf' call
      var a = this.get_left_woprgw_k$() - spread;
      var b = this.get_right_ixz7xv_k$() + spread;
      var tmp_3 = Math.max(a, b);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_0 = this.get_top_18ivbo_k$() - spread;
      var b_0 = this.get_bottom_bj8ras_k$() + spread;
      var tmp$ret$1 = Math.max(a_0, b_0);
      tmp = tmp_0.makeLTRB_2wvuxm_k$(tmp_1, tmp_2, tmp_3, tmp$ret$1);
    } else {
      // Inline function 'kotlin.collections.copyOf' call
      // Inline function 'kotlin.js.asDynamic' call
      var radii = this.radii_1.slice();
      var inductionVariable_0 = 0;
      var last_0 = radii.length - 1 | 0;
      if (inductionVariable_0 <= last_0)
        do {
          var i_0 = inductionVariable_0;
          inductionVariable_0 = inductionVariable_0 + 1 | 0;
          // Inline function 'kotlin.comparisons.maxOf' call
          var b_1 = radii[i_0] + spread;
          radii[i_0] = Math.max(0.0, b_1);
        }
         while (inductionVariable_0 <= last_0);
      var tmp_4 = this.get_left_woprgw_k$() - spread;
      var tmp_5 = this.get_top_18ivbo_k$() - spread;
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_1 = this.get_left_woprgw_k$() - spread;
      var b_2 = this.get_right_ixz7xv_k$() + spread;
      var tmp_6 = Math.max(a_1, b_2);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_2 = this.get_top_18ivbo_k$() - spread;
      var b_3 = this.get_bottom_bj8ras_k$() + spread;
      var tmp$ret$6 = Math.max(a_2, b_3);
      tmp = new RRect(tmp_4, tmp_5, tmp_6, tmp$ret$6, radii);
    }
    return tmp;
  };
  protoOf(RRect).toString = function () {
    return 'RRect(_left=' + this.get_left_woprgw_k$() + ', _top=' + this.get_top_18ivbo_k$() + ', _right=' + this.get_right_ixz7xv_k$() + ', _bottom=' + this.get_bottom_bj8ras_k$() + ', _radii=' + joinToString(this.radii_1) + ')';
  };
  protoOf(RRect).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof RRect))
      return false;
    if (!protoOf(Rect).equals.call(this, other))
      return false;
    var tmp;
    if (this.radii_1.length === other.radii_1.length) {
      tmp = contentEquals(this.radii_1, other.radii_1);
    } else {
      tmp = contentEquals(normalizeRadii(this.radii_1), normalizeRadii(other.radii_1));
    }
    return tmp;
  };
  protoOf(RRect).hashCode = function () {
    var PRIME = 59;
    var result = protoOf(Rect).hashCode.call(this);
    result = imul(result, PRIME) + contentHashCode(this.radii_1) | 0;
    return result;
  };
  function normalizeRadii(radii) {
    var tmp;
    switch (radii.length) {
      case 0:
        var tmp_0 = 0;
        var tmp_1 = new Float32Array(8);
        while (tmp_0 < 8) {
          tmp_1[tmp_0] = 0.0;
          tmp_0 = tmp_0 + 1 | 0;
        }

        tmp = tmp_1;
        break;
      case 1:
        var tmp_2 = 0;
        var tmp_3 = new Float32Array(8);
        while (tmp_2 < 8) {
          tmp_3[tmp_2] = radii[0];
          tmp_2 = tmp_2 + 1 | 0;
        }

        tmp = tmp_3;
        break;
      case 2:
        var tmp_4 = 0;
        var tmp_5 = new Float32Array(8);
        while (tmp_4 < 8) {
          var tmp_6 = tmp_4;
          tmp_5[tmp_6] = radii[tmp_6 % 2 | 0];
          tmp_4 = tmp_4 + 1 | 0;
        }

        tmp = tmp_5;
        break;
      case 4:
        var tmp_7 = 0;
        var tmp_8 = new Float32Array(8);
        while (tmp_7 < 8) {
          var tmp_9 = tmp_7;
          tmp_8[tmp_9] = radii[tmp_9 / 2 | 0];
          tmp_7 = tmp_7 + 1 | 0;
        }

        tmp = tmp_8;
        break;
      case 8:
        tmp = radii;
        break;
      default:
        throw Error_init_$Create$('illegal radii array');
    }
    return tmp;
  }
  function Companion_43() {
    Companion_instance_43 = this;
  }
  protoOf(Companion_43).makeFromRadians_tue7dy_k$ = function (scale, radians, tx, ty, ax, ay) {
    // Inline function 'kotlin.math.sin' call
    var s = Math.sin(radians) * scale;
    // Inline function 'kotlin.math.cos' call
    var c = Math.cos(radians) * scale;
    return new RSXform(c, s, tx + -c * ax + s * ay, ty + -s * ax - c * ay);
  };
  var Companion_instance_43;
  function Companion_getInstance_44() {
    if (Companion_instance_43 == null)
      new Companion_43();
    return Companion_instance_43;
  }
  function RSXform(scos, ssin, tx, ty) {
    Companion_getInstance_44();
    this.scos_1 = scos;
    this.ssin_1 = ssin;
    this.tx_1 = tx;
    this.ty_1 = ty;
  }
  protoOf(RSXform).get_scos_wou73x_k$ = function () {
    return this.scos_1;
  };
  protoOf(RSXform).get_ssin_wouitq_k$ = function () {
    return this.ssin_1;
  };
  protoOf(RSXform).get_tx_kntnn7_k$ = function () {
    return this.tx_1;
  };
  protoOf(RSXform).get_ty_kntnn6_k$ = function () {
    return this.ty_1;
  };
  protoOf(RSXform).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof RSXform))
      return false;
    if (!(compareTo(this.scos_1, other.scos_1) === 0))
      return false;
    if (!(compareTo(this.ssin_1, other.ssin_1) === 0))
      return false;
    if (!(compareTo(this.tx_1, other.tx_1) === 0))
      return false;
    return compareTo(this.ty_1, other.ty_1) === 0;
  };
  protoOf(RSXform).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.scos_1) | 0;
    result = imul(result, PRIME) + toBits(this.ssin_1) | 0;
    result = imul(result, PRIME) + toBits(this.tx_1) | 0;
    result = imul(result, PRIME) + toBits(this.ty_1) | 0;
    return result;
  };
  protoOf(RSXform).toString = function () {
    return 'RSXform(_scos=' + this.scos_1 + ', _ssin=' + this.ssin_1 + ', _tx=' + this.tx_1 + ', _ty=' + this.ty_1 + ')';
  };
  function Rect$Companion$fromInteropPointerNullable$lambda($result, $block) {
    return function ($this$fromInteropPointer, it) {
      $result._v = $block(it);
      return Unit_getInstance();
    };
  }
  function Companion_44() {
    Companion_instance_44 = this;
  }
  protoOf(Companion_44).makeLTRB_2wvuxm_k$ = function (l, t, r, b) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(l <= r)) {
      // Inline function 'org.jetbrains.skia.Companion.makeLTRB.<anonymous>' call
      var message = 'Rect::makeLTRB expected l <= r, got ' + l + ' > ' + r;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(t <= b)) {
      // Inline function 'org.jetbrains.skia.Companion.makeLTRB.<anonymous>' call
      var message_0 = 'Rect::makeLTRB expected t <= b, got ' + t + ' > ' + b;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    return new Rect(l, t, r, b);
  };
  protoOf(Companion_44).makeWH_nov667_k$ = function (w, h) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(w >= 0.0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeWH.<anonymous>' call
      var message = 'Rect::makeWH expected w >= 0, got: ' + w;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(h >= 0.0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeWH.<anonymous>' call
      var message_0 = 'Rect::makeWH expected h >= 0, got: ' + h;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    return new Rect(0.0, 0.0, w, h);
  };
  protoOf(Companion_44).makeWH_w7wyhe_k$ = function (size) {
    return this.makeWH_nov667_k$(size.get_x_1mhr67_k$(), size.get_y_1mhr68_k$());
  };
  protoOf(Companion_44).makeXYWH_irfy4g_k$ = function (l, t, w, h) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(w >= 0.0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeXYWH.<anonymous>' call
      var message = 'Rect::makeXYWH expected w >= 0, got: ' + w;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(h >= 0.0)) {
      // Inline function 'org.jetbrains.skia.Companion.makeXYWH.<anonymous>' call
      var message_0 = 'Rect::makeXYWH expected h >= 0, got: ' + h;
      throw IllegalArgumentException_init_$Create$(toString(message_0));
    }
    return new Rect(l, t, l + w, t + h);
  };
  protoOf(Companion_44).fromInteropPointer_2qty6v_k$ = function (block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(4);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    return new Rect(result_0[0], result_0[1], result_0[2], result_0[3]);
  };
  protoOf(Companion_44).fromInteropPointer_n7oap9_k$ = function (size, block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(size);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var result_0 = result;
    // Inline function 'kotlin.collections.toTypedArray' call
    // Inline function 'kotlin.collections.map' call
    var this_0 = chunked(toList_0(result_0), 4);
    // Inline function 'kotlin.collections.mapTo' call
    var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
    var tmp0_iterator = this_0.iterator_jk1svi_k$();
    while (tmp0_iterator.hasNext_bitz1p_k$()) {
      var item = tmp0_iterator.next_20eer_k$();
      // Inline function 'org.jetbrains.skia.Companion.fromInteropPointer.<anonymous>' call
      // Inline function 'kotlin.collections.component1' call
      var left = item.get_c1px32_k$(0);
      // Inline function 'kotlin.collections.component2' call
      var top = item.get_c1px32_k$(1);
      // Inline function 'kotlin.collections.component3' call
      var right = item.get_c1px32_k$(2);
      // Inline function 'kotlin.collections.component4' call
      var bottom = item.get_c1px32_k$(3);
      var tmp$ret$7 = new Rect(left, right, top, bottom);
      destination.add_utx5q5_k$(tmp$ret$7);
    }
    return copyToArray(destination);
  };
  protoOf(Companion_44).fromInteropPointerNullable_rzwb3l_k$ = function (block) {
    var result = {_v: true};
    var rect = this.fromInteropPointer_2qty6v_k$(Rect$Companion$fromInteropPointerNullable$lambda(result, block));
    var tmp;
    if (result._v) {
      tmp = rect;
    } else {
      tmp = null;
    }
    return tmp;
  };
  var Companion_instance_44;
  function Companion_getInstance_45() {
    if (Companion_instance_44 == null)
      new Companion_44();
    return Companion_instance_44;
  }
  function Rect(left, top, right, bottom) {
    Companion_getInstance_45();
    this.left_1 = left;
    this.top_1 = top;
    this.right_1 = right;
    this.bottom_1 = bottom;
  }
  protoOf(Rect).get_left_woprgw_k$ = function () {
    return this.left_1;
  };
  protoOf(Rect).get_top_18ivbo_k$ = function () {
    return this.top_1;
  };
  protoOf(Rect).get_right_ixz7xv_k$ = function () {
    return this.right_1;
  };
  protoOf(Rect).get_bottom_bj8ras_k$ = function () {
    return this.bottom_1;
  };
  protoOf(Rect).get_width_j0q4yl_k$ = function () {
    return this.right_1 - this.left_1;
  };
  protoOf(Rect).get_height_e7t92o_k$ = function () {
    return this.bottom_1 - this.top_1;
  };
  protoOf(Rect).intersect_s861ek_k$ = function (other) {
    var tmp;
    if (((this.right_1 <= other.left_1 ? true : other.right_1 <= this.left_1) ? true : this.bottom_1 <= other.top_1) ? true : other.bottom_1 <= this.top_1) {
      tmp = null;
    } else {
      // Inline function 'kotlin.comparisons.maxOf' call
      var a = this.left_1;
      var b = other.left_1;
      var tmp_0 = Math.max(a, b);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_0 = this.top_1;
      var b_0 = other.top_1;
      var tmp_1 = Math.max(a_0, b_0);
      // Inline function 'kotlin.comparisons.minOf' call
      var a_1 = this.right_1;
      var b_1 = other.right_1;
      var tmp_2 = Math.min(a_1, b_1);
      // Inline function 'kotlin.comparisons.minOf' call
      var a_2 = this.bottom_1;
      var b_2 = other.bottom_1;
      var tmp$ret$3 = Math.min(a_2, b_2);
      tmp = new Rect(tmp_0, tmp_1, tmp_2, tmp$ret$3);
    }
    return tmp;
  };
  protoOf(Rect).scale_n1f8ya_k$ = function (scale) {
    return this.scale_ln7xze_k$(scale, scale);
  };
  protoOf(Rect).scale_ln7xze_k$ = function (sx, sy) {
    return new Rect(this.left_1 * sx, this.top_1 * sy, this.right_1 * sx, this.bottom_1 * sy);
  };
  protoOf(Rect).offset_dxmngz_k$ = function (dx, dy) {
    return new Rect(this.left_1 + dx, this.top_1 + dy, this.right_1 + dx, this.bottom_1 + dy);
  };
  protoOf(Rect).offset_obaapu_k$ = function (vec) {
    return this.offset_dxmngz_k$(vec.get_x_1mhr67_k$(), vec.get_y_1mhr68_k$());
  };
  protoOf(Rect).toIRect_jg4w5q_k$ = function () {
    return new IRect(numberToInt(this.left_1), numberToInt(this.top_1), numberToInt(this.right_1), numberToInt(this.bottom_1));
  };
  protoOf(Rect).inflate_rvluy7_k$ = function (spread) {
    var tmp;
    if (spread <= 0.0) {
      var tmp_0 = Companion_getInstance_45();
      var tmp_1 = this.left_1 - spread;
      var tmp_2 = this.top_1 - spread;
      // Inline function 'kotlin.comparisons.maxOf' call
      var a = this.left_1 - spread;
      var b = this.right_1 + spread;
      var tmp_3 = Math.max(a, b);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_0 = this.top_1 - spread;
      var b_0 = this.bottom_1 + spread;
      var tmp$ret$1 = Math.max(a_0, b_0);
      tmp = tmp_0.makeLTRB_2wvuxm_k$(tmp_1, tmp_2, tmp_3, tmp$ret$1);
    } else {
      var tmp_4 = Companion_getInstance_43();
      var tmp_5 = this.left_1 - spread;
      var tmp_6 = this.top_1 - spread;
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_1 = this.left_1 - spread;
      var b_1 = this.right_1 + spread;
      var tmp_7 = Math.max(a_1, b_1);
      // Inline function 'kotlin.comparisons.maxOf' call
      var a_2 = this.top_1 - spread;
      var b_2 = this.bottom_1 + spread;
      var tmp$ret$3 = Math.max(a_2, b_2);
      tmp = tmp_4.makeLTRB_nd4cmm_k$(tmp_5, tmp_6, tmp_7, tmp$ret$3, spread);
    }
    return tmp;
  };
  protoOf(Rect).serializeToFloatArray_8g0vd4_k$ = function () {
    // Inline function 'kotlin.floatArrayOf' call
    return new Float32Array([this.left_1, this.top_1, this.right_1, this.bottom_1]);
  };
  protoOf(Rect).get_isEmpty_zauvru_k$ = function () {
    return this.right_1 === this.left_1 ? true : this.top_1 === this.bottom_1;
  };
  protoOf(Rect).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Rect))
      return false;
    if (!(compareTo(this.left_1, other.left_1) === 0))
      return false;
    if (!(compareTo(this.top_1, other.top_1) === 0))
      return false;
    if (!(compareTo(this.right_1, other.right_1) === 0))
      return false;
    return compareTo(this.bottom_1, other.bottom_1) === 0;
  };
  protoOf(Rect).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.left_1) | 0;
    result = imul(result, PRIME) + toBits(this.top_1) | 0;
    result = imul(result, PRIME) + toBits(this.right_1) | 0;
    result = imul(result, PRIME) + toBits(this.bottom_1) | 0;
    return result;
  };
  protoOf(Rect).toString = function () {
    return 'Rect(_left=' + this.left_1 + ', _top=' + this.top_1 + ', _right=' + this.right_1 + ', _bottom=' + this.bottom_1 + ')';
  };
  var Op_DIFFERENCE_instance;
  var Op_INTERSECT_instance;
  var Op_UNION_instance;
  var Op_XOR_instance;
  var Op_REVERSE_DIFFERENCE_instance;
  var Op_REPLACE_instance;
  function Companion_45() {
    Companion_instance_45 = this;
    this._values_1 = values_24();
  }
  protoOf(Companion_45).get__values_wfmpnc_k$ = function () {
    return this._values_1;
  };
  var Companion_instance_45;
  function Companion_getInstance_46() {
    Op_initEntries();
    if (Companion_instance_45 == null)
      new Companion_45();
    return Companion_instance_45;
  }
  function values_24() {
    return [Op_DIFFERENCE_getInstance(), Op_INTERSECT_getInstance(), Op_UNION_getInstance(), Op_XOR_getInstance(), Op_REVERSE_DIFFERENCE_getInstance(), Op_REPLACE_getInstance()];
  }
  function valueOf_24(value) {
    switch (value) {
      case 'DIFFERENCE':
        return Op_DIFFERENCE_getInstance();
      case 'INTERSECT':
        return Op_INTERSECT_getInstance();
      case 'UNION':
        return Op_UNION_getInstance();
      case 'XOR':
        return Op_XOR_getInstance();
      case 'REVERSE_DIFFERENCE':
        return Op_REVERSE_DIFFERENCE_getInstance();
      case 'REPLACE':
        return Op_REPLACE_getInstance();
      default:
        Op_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Op_entriesInitialized;
  function Op_initEntries() {
    if (Op_entriesInitialized)
      return Unit_getInstance();
    Op_entriesInitialized = true;
    Op_DIFFERENCE_instance = new Op('DIFFERENCE', 0);
    Op_INTERSECT_instance = new Op('INTERSECT', 1);
    Op_UNION_instance = new Op('UNION', 2);
    Op_XOR_instance = new Op('XOR', 3);
    Op_REVERSE_DIFFERENCE_instance = new Op('REVERSE_DIFFERENCE', 4);
    Op_REPLACE_instance = new Op('REPLACE', 5);
    Companion_getInstance_46();
  }
  function Companion_46() {
    Companion_instance_46 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_46;
  function Companion_getInstance_47() {
    if (Companion_instance_46 == null)
      new Companion_46();
    return Companion_instance_46;
  }
  function Op(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function _FinalizerHolder_12() {
    _FinalizerHolder_instance_12 = this;
    this.PTR_1 = org_jetbrains_skia_Region__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_12).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_12;
  function _FinalizerHolder_getInstance_12() {
    if (_FinalizerHolder_instance_12 == null)
      new _FinalizerHolder_12();
    return _FinalizerHolder_instance_12;
  }
  function Op_DIFFERENCE_getInstance() {
    Op_initEntries();
    return Op_DIFFERENCE_instance;
  }
  function Op_INTERSECT_getInstance() {
    Op_initEntries();
    return Op_INTERSECT_instance;
  }
  function Op_UNION_getInstance() {
    Op_initEntries();
    return Op_UNION_instance;
  }
  function Op_XOR_getInstance() {
    Op_initEntries();
    return Op_XOR_instance;
  }
  function Op_REVERSE_DIFFERENCE_getInstance() {
    Op_initEntries();
    return Op_REVERSE_DIFFERENCE_instance;
  }
  function Op_REPLACE_getInstance() {
    Op_initEntries();
    return Op_REPLACE_instance;
  }
  function Region() {
    Companion_getInstance_47();
    Managed.call(this, org_jetbrains_skia_Region__1nMake(), _FinalizerHolder_getInstance_12().PTR_1);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
  }
  protoOf(Region).set_8immr8_k$ = function (r) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nSet(this.get__ptr_wohp4o_k$(), getPtr(r));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).get_isEmpty_zauvru_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nIsEmpty(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).get_isRect_ew59h3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nIsRect(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).get_isComplex_en8j99_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nIsComplex(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).get_bounds_bj99ku_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int32Array(4);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          // Inline function 'org.jetbrains.skia.Region.<get-bounds>.<anonymous>' call
          org_jetbrains_skia_Region__1nGetBounds(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ltrb = result;
      tmp = new IRect(ltrb[0], ltrb[1], ltrb[2], ltrb[3]);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).computeRegionComplexity_n8wihj_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nComputeRegionComplexity(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).getBoundaryPath_nuij54_k$ = function (p) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nGetBoundaryPath(this.get__ptr_wohp4o_k$(), getPtr(p));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(p);
    }
    return tmp;
  };
  protoOf(Region).setEmpty_n0dedn_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nSetEmpty(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).setRect_3ad4m0_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nSetRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).setRects_v9ociz_k$ = function (rects) {
    var tmp;
    try {
      var arr = new Int32Array(imul(rects.length, 4));
      var inductionVariable = 0;
      var last = rects.length - 1 | 0;
      if (inductionVariable <= last)
        do {
          var i = inductionVariable;
          inductionVariable = inductionVariable + 1 | 0;
          arr[imul(i, 4)] = rects[i].get_left_woprgw_k$();
          arr[imul(i, 4) + 1 | 0] = rects[i].get_top_18ivbo_k$();
          arr[imul(i, 4) + 2 | 0] = rects[i].get_right_ixz7xv_k$();
          arr[imul(i, 4) + 3 | 0] = rects[i].get_bottom_bj8ras_k$();
        }
         while (inductionVariable <= last);
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Region.setRects.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_Region__1nSetRects(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_i7skn2_k$(arr), rects.length);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).setRegion_ml0mu8_k$ = function (r) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nSetRegion(this.get__ptr_wohp4o_k$(), getPtr(r));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).setPath_tbr2kk_k$ = function (path, clip) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nSetPath(this.get__ptr_wohp4o_k$(), getPtr(path), getPtr(clip));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(path);
      reachabilityBarrier(clip);
    }
    return tmp;
  };
  protoOf(Region).intersects_w7cpye_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nIntersectsIRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).intersects_6kz1pa_k$ = function (r) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nIntersectsRegion(this.get__ptr_wohp4o_k$(), getPtr(r));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).contains_ntjdb5_k$ = function (x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nContainsIPoint(this.get__ptr_wohp4o_k$(), x, y);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).contains_wbfbgx_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nContainsIRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).contains_azbk15_k$ = function (r) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nContainsRegion(this.get__ptr_wohp4o_k$(), getPtr(r));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).quickContains_bpk6g2_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nQuickContains(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).quickReject_mkqnky_k$ = function (rect) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nQuickRejectIRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).quickReject_6iv9pm_k$ = function (r) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nQuickRejectRegion(this.get__ptr_wohp4o_k$(), getPtr(r));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).translate_8uwxz6_k$ = function (dx, dy) {
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_Region__1nTranslate(this.get__ptr_wohp4o_k$(), dx, dy);
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(Region).op_blhm49_k$ = function (rect, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nOpIRect(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$(), op.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Region).op_adyudl_k$ = function (r, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nOpRegion(this.get__ptr_wohp4o_k$(), getPtr(r), op.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).op_rhb8bt_k$ = function (rect, r, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nOpIRectRegion(this.get__ptr_wohp4o_k$(), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$(), getPtr(r), op.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).op_g0o6yj_k$ = function (r, rect, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nOpRegionIRect(this.get__ptr_wohp4o_k$(), getPtr(r), rect.get_left_woprgw_k$(), rect.get_top_18ivbo_k$(), rect.get_right_ixz7xv_k$(), rect.get_bottom_bj8ras_k$(), op.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(r);
    }
    return tmp;
  };
  protoOf(Region).op_nhz0wl_k$ = function (a, b, op) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Region__1nOpRegionRegion(this.get__ptr_wohp4o_k$(), getPtr(a), getPtr(b), op.get_ordinal_ip24qg_k$());
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(a);
      reachabilityBarrier(b);
    }
    return tmp;
  };
  function Companion_47() {
    Companion_instance_47 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_47).makeForShader_1a5ikm_k$ = function (sksl) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeForShader.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = makeFromResultPtr(Companion_getInstance_48(), org_jetbrains_skia_RuntimeEffect__1nMakeForShader($this$interopScope.toInterop_ok8jph_k$(sksl)));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp$ret$1;
  };
  protoOf(Companion_47).makeForColorFilter_gzto6y_k$ = function (sksl) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeForColorFilter.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = makeFromResultPtr(Companion_getInstance_48(), org_jetbrains_skia_RuntimeEffect__1nMakeForColorFilter($this$interopScope.toInterop_ok8jph_k$(sksl)));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp$ret$1;
  };
  var Companion_instance_47;
  function Companion_getInstance_48() {
    if (Companion_instance_47 == null)
      new Companion_47();
    return Companion_instance_47;
  }
  function RuntimeEffect(ptr) {
    Companion_getInstance_48();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(RuntimeEffect).makeShader_i2wb28_k$ = function (uniforms, children, localMatrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp1_elvis_lhs = children == null ? null : children.length;
    var childCount = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
    var childrenPtrs = new NativePointerArray(childCount);
    var inductionVariable = 0;
    if (inductionVariable < childCount)
      do {
        var i = inductionVariable;
        inductionVariable = inductionVariable + 1 | 0;
        childrenPtrs.set_g707pu_k$(i, getPtr(ensureNotNull(children)[i]));
      }
       while (inductionVariable < childCount);
    var matrix = localMatrix == null ? null : localMatrix.get_mat_18j0uh_k$();
    var tmp;
    try {
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.RuntimeEffect.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = new Shader(org_jetbrains_skia_RuntimeEffect__1nMakeShader(this.get__ptr_wohp4o_k$(), getPtr(uniforms), $this$interopScope.toInterop_1ghudk_k$(childrenPtrs), childCount, $this$interopScope.toInterop_uum1m9_k$(matrix)));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(uniforms);
      reachabilityBarrier(children);
    }
    return tmp;
  };
  function Companion_48() {
    Companion_instance_48 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_48;
  function Companion_getInstance_49() {
    if (Companion_instance_48 == null)
      new Companion_48();
    return Companion_instance_48;
  }
  function RuntimeShaderBuilder_init_$Init$(effect, $this) {
    RuntimeShaderBuilder.call($this, org_jetbrains_skia_RuntimeShaderBuilder__1nMakeFromRuntimeEffect(effect.get__ptr_wohp4o_k$()));
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    reachabilityBarrier(effect);
    return $this;
  }
  function RuntimeShaderBuilder_init_$Create$(effect) {
    return RuntimeShaderBuilder_init_$Init$(effect, objectCreate(protoOf(RuntimeShaderBuilder)));
  }
  function _FinalizerHolder_13() {
    _FinalizerHolder_instance_13 = this;
    this.PTR_1 = org_jetbrains_skia_RuntimeShaderBuilder__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_13).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_13;
  function _FinalizerHolder_getInstance_13() {
    if (_FinalizerHolder_instance_13 == null)
      new _FinalizerHolder_13();
    return _FinalizerHolder_instance_13;
  }
  function RuntimeShaderBuilder(ptr) {
    Companion_getInstance_49();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_13().PTR_1);
  }
  protoOf(RuntimeShaderBuilder).uniform_ylabge_k$ = function (name, value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformInt(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_mzdtsa_k$ = function (name, value1, value2) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformInt2(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_t6n7m_k$ = function (name, value1, value2, value3) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformInt3(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2, value3);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_9dj4om_k$ = function (name, value1, value2, value3, value4) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformInt4(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2, value3, value4);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_4i38v6_k$ = function (name, value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloat(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_tq9kom_k$ = function (name, value1, value2) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloat2(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_ummoda_k$ = function (name, value1, value2, value3) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloat3(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2, value3);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_vs6anq_k$ = function (name, value1, value2, value3, value4) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloat4(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), value1, value2, value3, value4);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_fcxzk_k$ = function (name, value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloatMatrix22(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), $this$interopScope.toInterop_uum1m9_k$(value.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_7ocmpc_k$ = function (name, value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloatMatrix33(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), $this$interopScope.toInterop_uum1m9_k$(value.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).uniform_excbf4_k$ = function (name, value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_RuntimeShaderBuilder__1nUniformFloatMatrix44(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), $this$interopScope.toInterop_uum1m9_k$(value.get_mat_18j0uh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  };
  protoOf(RuntimeShaderBuilder).child_1yesjl_k$ = function (name, shader) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_RuntimeShaderBuilder__1nChildShader(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), getPtr(shader));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(shader);
    }
  };
  protoOf(RuntimeShaderBuilder).child_to5z4z_k$ = function (name, colorFilter) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_RuntimeShaderBuilder__1nChildColorFilter(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(name), getPtr(colorFilter));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(colorFilter);
    }
  };
  protoOf(RuntimeShaderBuilder).makeShader_q54znw_k$ = function (localMatrix) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.RuntimeShaderBuilder.makeShader.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp_0 = this.get__ptr_wohp4o_k$();
          tmp$ret$1 = new Shader(org_jetbrains_skia_RuntimeShaderBuilder__1nMakeShader(tmp_0, $this$interopScope.toInterop_uum1m9_k$(localMatrix == null ? null : localMatrix.get_mat_18j0uh_k$())));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = tmp$ret$1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(RuntimeShaderBuilder).makeShader$default_m7earm_k$ = function (localMatrix, $super) {
    localMatrix = localMatrix === VOID ? null : localMatrix;
    return $super === VOID ? this.makeShader_q54znw_k$(localMatrix) : $super.makeShader_q54znw_k$.call(this, localMatrix);
  };
  function Companion_49() {
    Companion_instance_49 = this;
    this.DEFAULT_1 = new FilterMipmap(FilterMode_NEAREST_getInstance(), MipmapMode_NONE_getInstance());
    this.LINEAR_1 = new FilterMipmap(FilterMode_LINEAR_getInstance(), MipmapMode_NONE_getInstance());
    this.MITCHELL_1 = new CubicResampler(0.33333334, 0.33333334);
    this.CATMULL_ROM_1 = new CubicResampler(0.0, 0.5);
  }
  protoOf(Companion_49).get_DEFAULT_wccqmg_k$ = function () {
    return this.DEFAULT_1;
  };
  protoOf(Companion_49).get_LINEAR_inmlq_k$ = function () {
    return this.LINEAR_1;
  };
  protoOf(Companion_49).get_MITCHELL_wfuvf5_k$ = function () {
    return this.MITCHELL_1;
  };
  protoOf(Companion_49).get_CATMULL_ROM_ca0mli_k$ = function () {
    return this.CATMULL_ROM_1;
  };
  var Companion_instance_49;
  function Companion_getInstance_50() {
    if (Companion_instance_49 == null)
      new Companion_49();
    return Companion_instance_49;
  }
  function SamplingMode() {
  }
  function Companion_50() {
    Companion_instance_50 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_50).makeLinearGradient_jguod2_k$ = function (p0, p1, colors) {
    return this.makeLinearGradient$default_lqtcyn_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), colors);
  };
  protoOf(Companion_50).makeLinearGradient_c7fdp5_k$ = function (p0, p1, colors, positions) {
    return this.makeLinearGradient$default_lqtcyn_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), colors, positions);
  };
  protoOf(Companion_50).makeLinearGradient_nzvn6x_k$ = function (p0, p1, colors, positions, style) {
    return this.makeLinearGradient_gatnrf_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), colors, positions, style);
  };
  protoOf(Companion_50).makeLinearGradient_gatnrf_k$ = function (x0, y0, x1, y1, colors, positions, style) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(positions == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Companion.makeLinearGradient.<anonymous>' call
      var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeLinearGradient.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeLinearGradient(x0, y0, x1, y1, $this$interopScope.toInterop_i7skn2_k$(colors), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new Shader(tmp$ret$2);
  };
  protoOf(Companion_50).makeLinearGradient$default_lqtcyn_k$ = function (x0, y0, x1, y1, colors, positions, style, $super) {
    positions = positions === VOID ? null : positions;
    style = style === VOID ? Companion_getInstance_21().get_DEFAULT_wccqmg_k$() : style;
    return $super === VOID ? this.makeLinearGradient_gatnrf_k$(x0, y0, x1, y1, colors, positions, style) : $super.makeLinearGradient_gatnrf_k$.call(this, x0, y0, x1, y1, colors, positions, style);
  };
  protoOf(Companion_50).makeLinearGradient_30fwn7_k$ = function (p0, p1, colors, cs, positions, style) {
    return this.makeLinearGradient_vcgx41_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), colors, cs, positions, style);
  };
  protoOf(Companion_50).makeLinearGradient_vcgx41_k$ = function (x0, y0, x1, y1, colors, cs, positions, style) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(positions == null ? true : colors.length === positions.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeLinearGradient.<anonymous>' call
        var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeLinearGradient.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeLinearGradientCS(x0, y0, x1, y1, $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_3().flattenArray_qrwamz_k$(colors)), getPtr(cs), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$2);
    }finally {
      reachabilityBarrier(cs);
    }
    return tmp;
  };
  protoOf(Companion_50).makeRadialGradient_7zhkm9_k$ = function (center, r, colors) {
    return this.makeRadialGradient$default_cahjdr_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), r, colors);
  };
  protoOf(Companion_50).makeRadialGradient_21kxou_k$ = function (center, r, colors, positions) {
    return this.makeRadialGradient$default_cahjdr_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), r, colors, positions);
  };
  protoOf(Companion_50).makeRadialGradient_eicsek_k$ = function (center, r, colors, positions, style) {
    return this.makeRadialGradient_ai7hst_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), r, colors, positions, style);
  };
  protoOf(Companion_50).makeRadialGradient_ai7hst_k$ = function (x, y, r, colors, positions, style) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(positions == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Companion.makeRadialGradient.<anonymous>' call
      var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeRadialGradient.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeRadialGradient(x, y, r, $this$interopScope.toInterop_i7skn2_k$(colors), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new Shader(tmp$ret$2);
  };
  protoOf(Companion_50).makeRadialGradient$default_cahjdr_k$ = function (x, y, r, colors, positions, style, $super) {
    positions = positions === VOID ? null : positions;
    style = style === VOID ? Companion_getInstance_21().get_DEFAULT_wccqmg_k$() : style;
    return $super === VOID ? this.makeRadialGradient_ai7hst_k$(x, y, r, colors, positions, style) : $super.makeRadialGradient_ai7hst_k$.call(this, x, y, r, colors, positions, style);
  };
  protoOf(Companion_50).makeRadialGradient_78s554_k$ = function (center, r, colors, cs, positions, style) {
    return this.makeRadialGradient_69f0uh_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), r, colors, cs, positions, style);
  };
  protoOf(Companion_50).makeRadialGradient_69f0uh_k$ = function (x, y, r, colors, cs, positions, style) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(positions == null ? true : colors.length === positions.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeRadialGradient.<anonymous>' call
        var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeRadialGradient.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeRadialGradientCS(x, y, r, $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_3().flattenArray_qrwamz_k$(colors)), getPtr(cs), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$2);
    }finally {
      reachabilityBarrier(cs);
    }
    return tmp;
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_opmp7e_k$ = function (p0, r0, p1, r1, colors) {
    return this.makeTwoPointConicalGradient$default_levdlp_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), r0, p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), r1, colors);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_s0tgph_k$ = function (p0, r0, p1, r1, colors, positions) {
    return this.makeTwoPointConicalGradient$default_levdlp_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), r0, p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), r1, colors, positions);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_1nw8z1_k$ = function (p0, r0, p1, r1, colors, positions, style) {
    return this.makeTwoPointConicalGradient_ycg16b_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), r0, p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), r1, colors, positions, style);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_ycg16b_k$ = function (x0, y0, r0, x1, y1, r1, colors, positions, style) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(positions == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Companion.makeTwoPointConicalGradient.<anonymous>' call
      var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeTwoPointConicalGradient.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeTwoPointConicalGradient(x0, y0, r0, x1, y1, r1, $this$interopScope.toInterop_i7skn2_k$(colors), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new Shader(tmp$ret$2);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient$default_levdlp_k$ = function (x0, y0, r0, x1, y1, r1, colors, positions, style, $super) {
    positions = positions === VOID ? null : positions;
    style = style === VOID ? Companion_getInstance_21().get_DEFAULT_wccqmg_k$() : style;
    return $super === VOID ? this.makeTwoPointConicalGradient_ycg16b_k$(x0, y0, r0, x1, y1, r1, colors, positions, style) : $super.makeTwoPointConicalGradient_ycg16b_k$.call(this, x0, y0, r0, x1, y1, r1, colors, positions, style);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_khj4xr_k$ = function (p0, r0, p1, r1, colors, cs, positions, style) {
    return this.makeTwoPointConicalGradient_ui7xsx_k$(p0.get_x_1mhr67_k$(), p0.get_y_1mhr68_k$(), r0, p1.get_x_1mhr67_k$(), p1.get_y_1mhr68_k$(), r1, colors, cs, positions, style);
  };
  protoOf(Companion_50).makeTwoPointConicalGradient_ui7xsx_k$ = function (x0, y0, r0, x1, y1, r1, colors, cs, positions, style) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(positions == null ? true : colors.length === positions.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeTwoPointConicalGradient.<anonymous>' call
        var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeTwoPointConicalGradient.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeTwoPointConicalGradientCS(x0, y0, r0, x1, y1, r1, $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_3().flattenArray_qrwamz_k$(colors)), getPtr(cs), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$2);
    }finally {
      reachabilityBarrier(cs);
    }
    return tmp;
  };
  protoOf(Companion_50).makeSweepGradient_4vf01a_k$ = function (center, colors) {
    return this.makeSweepGradient_zab343_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), colors);
  };
  protoOf(Companion_50).makeSweepGradient_zab343_k$ = function (x, y, colors) {
    return this.makeSweepGradient_8uc99m_k$(x, y, 0.0, 360.0, colors, null, Companion_getInstance_21().get_DEFAULT_wccqmg_k$());
  };
  protoOf(Companion_50).makeSweepGradient_f0ioyl_k$ = function (center, colors, positions) {
    return this.makeSweepGradient_hn03zg_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), colors, positions);
  };
  protoOf(Companion_50).makeSweepGradient_hn03zg_k$ = function (x, y, colors, positions) {
    return this.makeSweepGradient_8uc99m_k$(x, y, 0.0, 360.0, colors, positions, Companion_getInstance_21().get_DEFAULT_wccqmg_k$());
  };
  protoOf(Companion_50).makeSweepGradient_w7naed_k$ = function (center, colors, positions, style) {
    return this.makeSweepGradient_th6kd2_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), colors, positions, style);
  };
  protoOf(Companion_50).makeSweepGradient_th6kd2_k$ = function (x, y, colors, positions, style) {
    return this.makeSweepGradient_8uc99m_k$(x, y, 0.0, 360.0, colors, positions, style);
  };
  protoOf(Companion_50).makeSweepGradient_aw0lzv_k$ = function (center, startAngle, endAngle, colors, positions, style) {
    return this.makeSweepGradient_8uc99m_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), startAngle, endAngle, colors, positions, style);
  };
  protoOf(Companion_50).makeSweepGradient_8uc99m_k$ = function (x, y, startAngle, endAngle, colors, positions, style) {
    // Inline function 'kotlin.require' call
    // Inline function 'kotlin.contracts.contract' call
    if (!(positions == null ? true : colors.length === positions.length)) {
      // Inline function 'org.jetbrains.skia.Companion.makeSweepGradient.<anonymous>' call
      var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
      throw IllegalArgumentException_init_$Create$(toString(message));
    }
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$2;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeSweepGradient.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeSweepGradient(x, y, startAngle, endAngle, $this$interopScope.toInterop_i7skn2_k$(colors), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new Shader(tmp$ret$2);
  };
  protoOf(Companion_50).makeSweepGradient_vi2nbb_k$ = function (center, startAngle, endAngle, colors, cs, positions, style) {
    return this.makeSweepGradient_gktxpm_k$(center.get_x_1mhr67_k$(), center.get_y_1mhr68_k$(), startAngle, endAngle, colors, cs, positions, style);
  };
  protoOf(Companion_50).makeSweepGradient_gktxpm_k$ = function (x, y, startAngle, endAngle, colors, cs, positions, style) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(positions == null ? true : colors.length === positions.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeSweepGradient.<anonymous>' call
        var message = 'colors.length ' + colors.length + '!= positions.length ' + ensureNotNull(positions).length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeSweepGradient.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_Shader__1nMakeSweepGradientCS(x, y, startAngle, endAngle, $this$interopScope.toInterop_uum1m9_k$(Companion_getInstance_3().flattenArray_qrwamz_k$(colors)), getPtr(cs), $this$interopScope.toInterop_uum1m9_k$(positions), colors.length, style.get_tileMode_4e76t6_k$().get_ordinal_ip24qg_k$(), style._getFlags_xsuxps_k$(), $this$interopScope.toInterop_uum1m9_k$(style._getMatrixArray_7p1jwh_k$()));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$2);
    }finally {
      reachabilityBarrier(cs);
    }
    return tmp;
  };
  protoOf(Companion_50).makeEmpty_kjipdr_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Shader(org_jetbrains_skia_Shader__1nMakeEmpty());
  };
  protoOf(Companion_50).makeColor_yae4rn_k$ = function (color) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Shader(org_jetbrains_skia_Shader__1nMakeColor(color));
  };
  protoOf(Companion_50).makeColor_jnjzug_k$ = function (color, space) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shader(org_jetbrains_skia_Shader__1nMakeColorCS(color.get_r_1mhr61_k$(), color.get_g_1mhr5q_k$(), color.get_b_1mhr5l_k$(), color.get_a_1mhr5k_k$(), getPtr(space)));
    }finally {
      reachabilityBarrier(space);
    }
    return tmp;
  };
  protoOf(Companion_50).makeBlend_n95y0n_k$ = function (mode, dst, src) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shader(org_jetbrains_skia_Shader__1nMakeBlend(mode.get_ordinal_ip24qg_k$(), getPtr(dst), getPtr(src)));
    }finally {
      reachabilityBarrier(dst);
      reachabilityBarrier(src);
    }
    return tmp;
  };
  protoOf(Companion_50).makeFractalNoise_or6pg_k$ = function (baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeFractalNoise.<anonymous>' call
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_Shader__1nMakeFractalNoise(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize.get_width_j0q4yl_k$(), tileSize.get_height_e7t92o_k$());
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Companion_50).makeFractalNoise$default_1wp4xl_k$ = function (baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize, $super) {
    tileSize = tileSize === VOID ? Companion_getInstance_25().makeEmpty_kjipdr_k$() : tileSize;
    return $super === VOID ? this.makeFractalNoise_or6pg_k$(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize) : $super.makeFractalNoise_or6pg_k$.call(this, baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize);
  };
  protoOf(Companion_50).makeTurbulence_jxg3w6_k$ = function (baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeTurbulence.<anonymous>' call
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_Shader__1nMakeTurbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize.get_width_j0q4yl_k$(), tileSize.get_height_e7t92o_k$());
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = new Shader(tmp$ret$1);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Companion_50).makeTurbulence$default_tcphjj_k$ = function (baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize, $super) {
    tileSize = tileSize === VOID ? Companion_getInstance_25().makeEmpty_kjipdr_k$() : tileSize;
    return $super === VOID ? this.makeTurbulence_jxg3w6_k$(baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize) : $super.makeTurbulence_jxg3w6_k$.call(this, baseFrequencyX, baseFrequencyY, numOctaves, seed, tileSize);
  };
  var Companion_instance_50;
  function Companion_getInstance_51() {
    if (Companion_instance_50 == null)
      new Companion_50();
    return Companion_instance_50;
  }
  function Shader(ptr) {
    Companion_getInstance_51();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(Shader).makeWithColorFilter_czdh5l_k$ = function (f) {
    var tmp;
    try {
      tmp = new Shader(org_jetbrains_skia_Shader__1nMakeWithColorFilter(this.get__ptr_wohp4o_k$(), getPtr(f)));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(f);
    }
    return tmp;
  };
  function ShadowUtils() {
    ShadowUtils_instance = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(ShadowUtils).drawShadow_xq8ad3_k$ = function (canvas, path, zPlaneParams, lightPos, lightRadius, ambientColor, spotColor, transparentOccluder, geometricOnly) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var flags = 0;
    if (transparentOccluder)
      flags = flags | 1;
    if (geometricOnly)
      flags = flags | 2;
    try {
      org_jetbrains_skia_ShadowUtils__1nDrawShadow(getPtr(canvas), getPtr(path), zPlaneParams.get_x_1mhr67_k$(), zPlaneParams.get_y_1mhr68_k$(), zPlaneParams.get_z_1mhr69_k$(), lightPos.get_x_1mhr67_k$(), lightPos.get_y_1mhr68_k$(), lightPos.get_z_1mhr69_k$(), lightRadius, ambientColor, spotColor, flags);
    }finally {
      reachabilityBarrier(canvas);
      reachabilityBarrier(path);
    }
  };
  protoOf(ShadowUtils).computeTonalAmbientColor_btprpu_k$ = function (ambientColor, spotColor) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_ShadowUtils__1nComputeTonalAmbientColor(ambientColor, spotColor);
  };
  protoOf(ShadowUtils).computeTonalSpotColor_wns0ee_k$ = function (ambientColor, spotColor) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_ShadowUtils__1nComputeTonalSpotColor(ambientColor, spotColor);
  };
  var ShadowUtils_instance;
  function ShadowUtils_getInstance() {
    if (ShadowUtils_instance == null)
      new ShadowUtils();
    return ShadowUtils_instance;
  }
  function arrayDecoderScope(arrayDecoderBlock, block) {
    var arrayDecoder = null;
    var tmp;
    try {
      arrayDecoder = arrayDecoderBlock();
      tmp = block(arrayDecoder);
    }finally {
      var tmp0_safe_receiver = arrayDecoder;
      if (tmp0_safe_receiver == null)
        null;
      else {
        tmp0_safe_receiver.dispose_3nnxhr_k$();
      }
    }
    return tmp;
  }
  function _get_ptr__e6ez4z($this) {
    return $this.ptr_1;
  }
  function _get_disposePtr__lmk25g($this) {
    return $this.disposePtr_1;
  }
  function ArrayDecoder(ptr, disposePtr) {
    this.ptr_1 = ptr;
    this.disposePtr_1 = disposePtr;
  }
  protoOf(ArrayDecoder).dispose_3nnxhr_k$ = function () {
    org_jetbrains_skia_StdVectorDecoder__1nDisposeArray(this.ptr_1, this.disposePtr_1);
  };
  protoOf(ArrayDecoder).release_fo34vl_k$ = function (index) {
    return org_jetbrains_skia_StdVectorDecoder__1nReleaseElement(this.ptr_1, index);
  };
  protoOf(ArrayDecoder).get_size_woubt6_k$ = function () {
    return org_jetbrains_skia_StdVectorDecoder__1nGetArraySize(this.ptr_1);
  };
  function SurfaceProps_init_$Init$(geo, $this) {
    SurfaceProps.call($this, false, geo);
    return $this;
  }
  function SurfaceProps_init_$Create$(geo) {
    return SurfaceProps_init_$Init$(geo, objectCreate(protoOf(SurfaceProps)));
  }
  function _getPixelGeometryOrdinal($this) {
    return $this.pixelGeometry_1.get_ordinal_ip24qg_k$();
  }
  function SurfaceProps(isDeviceIndependentFonts, pixelGeometry) {
    isDeviceIndependentFonts = isDeviceIndependentFonts === VOID ? false : isDeviceIndependentFonts;
    pixelGeometry = pixelGeometry === VOID ? PixelGeometry_UNKNOWN_getInstance() : pixelGeometry;
    this.isDeviceIndependentFonts_1 = isDeviceIndependentFonts;
    this.pixelGeometry_1 = pixelGeometry;
  }
  protoOf(SurfaceProps).get_isDeviceIndependentFonts_ykmjil_k$ = function () {
    return this.isDeviceIndependentFonts_1;
  };
  protoOf(SurfaceProps).get_pixelGeometry_ohm51t_k$ = function () {
    return this.pixelGeometry_1;
  };
  protoOf(SurfaceProps)._getFlags_xsuxps_k$ = function () {
    return 0 | (this.isDeviceIndependentFonts_1 ? 1 : 0);
  };
  protoOf(SurfaceProps).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof SurfaceProps))
      return false;
    if (!(this.isDeviceIndependentFonts_1 === other.isDeviceIndependentFonts_1))
      return false;
    return this.pixelGeometry_1.equals(other.pixelGeometry_1);
  };
  protoOf(SurfaceProps).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + (this.isDeviceIndependentFonts_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + this.pixelGeometry_1.hashCode() | 0;
    return result;
  };
  protoOf(SurfaceProps).toString = function () {
    return 'SurfaceProps(_deviceIndependentFonts=' + this.isDeviceIndependentFonts_1 + ', _pixelGeometry=' + this.pixelGeometry_1 + ')';
  };
  protoOf(SurfaceProps).withDeviceIndependentFonts_28pn8f_k$ = function (_deviceIndependentFonts) {
    return this.isDeviceIndependentFonts_1 === _deviceIndependentFonts ? this : new SurfaceProps(_deviceIndependentFonts, this.pixelGeometry_1);
  };
  protoOf(SurfaceProps).withPixelGeometry_j9bcme_k$ = function (_pixelGeometry) {
    return this.pixelGeometry_1.equals(_pixelGeometry) ? this : new SurfaceProps(this.isDeviceIndependentFonts_1, _pixelGeometry);
  };
  protoOf(SurfaceProps).packToIntArray_17vj5u_k$ = function () {
    // Inline function 'kotlin.intArrayOf' call
    return new Int32Array([this._getFlags_xsuxps_k$(), _getPixelGeometryOrdinal(this)]);
  };
  function Run(typeface, glyphs) {
    this.typeface_1 = typeface;
    this.glyphs_1 = glyphs;
  }
  protoOf(Run).get_typeface_s1tqao_k$ = function () {
    return this.typeface_1;
  };
  protoOf(Run).get_glyphs_duwlao_k$ = function () {
    return this.glyphs_1;
  };
  protoOf(Run).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof Run))
      return false;
    return this.typeface_1.equals(other.typeface_1) ? contentEquals_0(this.glyphs_1, other.glyphs_1) : false;
  };
  protoOf(Run).hashCode = function () {
    var result = this.typeface_1.hashCode();
    result = imul(31, result) + contentHashCode_1(this.glyphs_1) | 0;
    return result;
  };
  protoOf(Run).component1_7eebsc_k$ = function () {
    return this.typeface_1;
  };
  protoOf(Run).component2_7eebsb_k$ = function () {
    return this.glyphs_1;
  };
  protoOf(Run).copy_npaj1q_k$ = function (typeface, glyphs) {
    return new Run(typeface, glyphs);
  };
  protoOf(Run).copy$default_j76h0y_k$ = function (typeface, glyphs, $super) {
    typeface = typeface === VOID ? this.typeface_1 : typeface;
    glyphs = glyphs === VOID ? this.glyphs_1 : glyphs;
    return $super === VOID ? this.copy_npaj1q_k$(typeface, glyphs) : $super.copy_npaj1q_k$.call(this, typeface, glyphs);
  };
  protoOf(Run).toString = function () {
    return 'Run(typeface=' + this.typeface_1 + ', glyphs=' + toString(this.glyphs_1) + ')';
  };
  function FinalizerHolder() {
    FinalizerHolder_instance = this;
    this.PTR_1 = org_jetbrains_skia_TextBlob_Iter__1nGetFinalizer();
  }
  protoOf(FinalizerHolder).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var FinalizerHolder_instance;
  function FinalizerHolder_getInstance() {
    if (FinalizerHolder_instance == null)
      new FinalizerHolder();
    return FinalizerHolder_instance;
  }
  function Companion_51() {
    Companion_instance_51 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_51).makeFromPosH_an9l3j_k$ = function (glyphs, xpos, ypos, font) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(glyphs.length === xpos.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeFromPosH.<anonymous>' call
        var message = 'glyphs.length ' + glyphs.length + ' != xpos.length ' + xpos.length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeFromPosH.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_TextBlob__1nMakeFromPosH($this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, $this$interopScope.toInterop_uum1m9_k$(xpos), ypos, getPtr(font));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$2;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new TextBlob(ptr);
    }finally {
      reachabilityBarrier(font);
    }
    return tmp;
  };
  protoOf(Companion_51).makeFromPos_wrki1g_k$ = function (glyphs, pos, font) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(glyphs.length === pos.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeFromPos.<anonymous>' call
        var message = 'glyphs.length ' + glyphs.length + ' != pos.length ' + pos.length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      var floatPos = new Float32Array(imul(pos.length, 2));
      var inductionVariable = 0;
      var last = pos.length - 1 | 0;
      if (inductionVariable <= last)
        do {
          var i = inductionVariable;
          inductionVariable = inductionVariable + 1 | 0;
          floatPos[imul(i, 2)] = pos[i].get_x_1mhr67_k$();
          floatPos[imul(i, 2) + 1 | 0] = pos[i].get_y_1mhr68_k$();
        }
         while (inductionVariable <= last);
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeFromPos.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_TextBlob__1nMakeFromPos($this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, $this$interopScope.toInterop_uum1m9_k$(floatPos), getPtr(font));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$2;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new TextBlob(ptr);
    }finally {
      reachabilityBarrier(font);
    }
    return tmp;
  };
  protoOf(Companion_51).makeFromRSXform_ktsrw0_k$ = function (glyphs, xform, font) {
    var tmp;
    try {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!(glyphs.length === xform.length)) {
        // Inline function 'org.jetbrains.skia.Companion.makeFromRSXform.<anonymous>' call
        var message = 'glyphs.length ' + glyphs.length + ' != xform.length ' + xform.length;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      var floatXform = new Float32Array(imul(xform.length, 4));
      var inductionVariable = 0;
      var last = xform.length - 1 | 0;
      if (inductionVariable <= last)
        do {
          var i = inductionVariable;
          inductionVariable = inductionVariable + 1 | 0;
          floatXform[imul(i, 4)] = xform[i].get_scos_wou73x_k$();
          floatXform[imul(i, 4) + 1 | 0] = xform[i].get_ssin_wouitq_k$();
          floatXform[imul(i, 4) + 2 | 0] = xform[i].get_tx_kntnn7_k$();
          floatXform[imul(i, 4) + 3 | 0] = xform[i].get_ty_kntnn6_k$();
        }
         while (inductionVariable <= last);
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Companion.makeFromRSXform.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$2 = org_jetbrains_skia_TextBlob__1nMakeFromRSXform($this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, $this$interopScope.toInterop_uum1m9_k$(floatXform), getPtr(font));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$2;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new TextBlob(ptr);
    }finally {
      reachabilityBarrier(font);
    }
    return tmp;
  };
  protoOf(Companion_51).makeFromData_68bs4e_k$ = function (data) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_TextBlob__1nMakeFromData(getPtr(data));
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new TextBlob(ptr);
    }finally {
      reachabilityBarrier(data);
    }
    return tmp;
  };
  var Companion_instance_51;
  function Companion_getInstance_52() {
    if (Companion_instance_51 == null)
      new Companion_51();
    return Companion_instance_51;
  }
  function _FinalizerHolder_14() {
    _FinalizerHolder_instance_14 = this;
    this.PTR_1 = org_jetbrains_skia_TextBlob__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_14).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_14;
  function _FinalizerHolder_getInstance_14() {
    if (_FinalizerHolder_instance_14 == null)
      new _FinalizerHolder_14();
    return _FinalizerHolder_instance_14;
  }
  function TextBlobIter(textBlob) {
    Managed.call(this, org_jetbrains_skia_TextBlob_Iter__1nCreate(textBlob.get__ptr_wohp4o_k$()), FinalizerHolder_getInstance().PTR_1);
    this.textBlob_1 = textBlob;
  }
  protoOf(TextBlobIter).get_textBlob_mmbepf_k$ = function () {
    return this.textBlob_1;
  };
  protoOf(TextBlobIter).hasNext_bitz1p_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      return org_jetbrains_skia_TextBlob_Iter__1nHasNext(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(TextBlobIter).next_20eer_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      var typeface = new Typeface(org_jetbrains_skia_TextBlob_Iter__1nGetTypeface(this.get__ptr_wohp4o_k$()));
      var glyphCount = org_jetbrains_skia_TextBlob_Iter__1nGetGlyphCount(this.get__ptr_wohp4o_k$());
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int16Array(glyphCount);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlobIter.next.<anonymous>' call
          org_jetbrains_skia_TextBlob_Iter__1nGetGlyphs(this.get__ptr_wohp4o_k$(), handle, glyphCount);
          $this$interopScope.fromInterop_awvpm7_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var glyphs = result;
      org_jetbrains_skia_TextBlob_Iter__1nFetch(this.get__ptr_wohp4o_k$());
      return new Run(typeface, glyphs);
    }finally {
      reachabilityBarrier(this);
    }
  };
  function TextBlob$_get_bounds_$lambda_i7cufv(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_TextBlob__1nBounds(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function TextBlob$_get_tightBounds_$lambda_5628hz(this$0) {
    return function (it) {
      return org_jetbrains_skia_TextBlob__1nGetTightBounds(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function TextBlob$_get_blockBounds_$lambda_94ls22(this$0) {
    return function (it) {
      return org_jetbrains_skia_TextBlob__1nGetBlockBounds(this$0.get__ptr_wohp4o_k$(), it);
    };
  }
  function TextBlob(ptr) {
    Companion_getInstance_52();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_14().PTR_1);
  }
  protoOf(TextBlob).get_bounds_bj99ku_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(TextBlob$_get_bounds_$lambda_i7cufv(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_uniqueId_ycv0d1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_TextBlob__1nGetUniqueId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).getIntercepts_ftg7t_k$ = function (lowerBound, upperBound) {
    return this.getIntercepts_m53fn9_k$(lowerBound, upperBound, null);
  };
  protoOf(TextBlob).getIntercepts_m53fn9_k$ = function (lowerBound, upperBound, paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(org_jetbrains_skia_TextBlob__1nGetInterceptsLength(this.get__ptr_wohp4o_k$(), lowerBound, upperBound, getPtr(paint)));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlob.getIntercepts.<anonymous>' call
          org_jetbrains_skia_TextBlob__1nGetIntercepts(this.get__ptr_wohp4o_k$(), lowerBound, upperBound, getPtr(paint), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(TextBlob).serializeToData_6ks2it_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Data(org_jetbrains_skia_TextBlob__1nSerializeToData(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_glyphs_duwlao_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int16Array(this.get_glyphsLength_ec2622_k$());
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlob.<get-glyphs>.<anonymous>' call
          org_jetbrains_skia_TextBlob__1nGetGlyphs(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_awvpm7_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_glyphsLength_ec2622_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_TextBlob__1nGetGlyphsLength(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_positions_ya7scf_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(org_jetbrains_skia_TextBlob__1nGetPositionsLength(this.get__ptr_wohp4o_k$()));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlob.<get-positions>.<anonymous>' call
          org_jetbrains_skia_TextBlob__1nGetPositions(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_clusters_avr9fi_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.withNullableResult' call
        var result = new Int32Array(org_jetbrains_skia_TextBlob__1nGetClustersLength(this.get__ptr_wohp4o_k$()));
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          var tmp_0;
          // Inline function 'org.jetbrains.skia.TextBlob.<get-clusters>.<anonymous>' call
          if (org_jetbrains_skia_TextBlob__1nGetClusters(this.get__ptr_wohp4o_k$(), handle)) {
            $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
            tmp_0 = result;
          } else {
            tmp_0 = null;
          }
          tmp$ret$1 = tmp_0;
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var tmp_1;
      if (tmp$ret$1 == null) {
        throw IllegalArgumentException_init_$Create$_0();
      } else {
        tmp_1 = tmp$ret$1;
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_tightBounds_akosga_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      var tmp0_elvis_lhs = tmp_0.fromInteropPointerNullable_rzwb3l_k$(TextBlob$_get_tightBounds_$lambda_5628hz(this));
      var tmp_1;
      if (tmp0_elvis_lhs == null) {
        throw IllegalArgumentException_init_$Create$_0();
      } else {
        tmp_1 = tmp0_elvis_lhs;
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_blockBounds_kek27t_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      var tmp0_elvis_lhs = tmp_0.fromInteropPointerNullable_rzwb3l_k$(TextBlob$_get_blockBounds_$lambda_94ls22(this));
      var tmp_1;
      if (tmp0_elvis_lhs == null) {
        throw IllegalArgumentException_init_$Create$_0();
      } else {
        tmp_1 = tmp0_elvis_lhs;
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_firstBaseline_s5430_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withNullableResult' call
      var result = new Float32Array(1);
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withNullableResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlob.<get-firstBaseline>.<anonymous>' call
          var blockResult = org_jetbrains_skia_TextBlob__1nGetFirstBaseline(this.get__ptr_wohp4o_k$(), handle);
          var tmp_0;
          if (blockResult) {
            $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
            tmp_0 = result;
          } else {
            tmp_0 = null;
          }
          tmp$ret$2 = tmp_0;
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var tmp1_elvis_lhs = tmp$ret$2 == null ? null : firstOrNull(tmp$ret$2);
      var tmp_1;
      if (tmp1_elvis_lhs == null) {
        throw IllegalArgumentException_init_$Create$_0();
      } else {
        tmp_1 = tmp1_elvis_lhs;
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).get_lastBaseline_inuptw_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withNullableResult' call
      var result = new Float32Array(1);
      var tmp$ret$2;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withNullableResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextBlob.<get-lastBaseline>.<anonymous>' call
          var blockResult = org_jetbrains_skia_TextBlob__1nGetLastBaseline(this.get__ptr_wohp4o_k$(), handle);
          var tmp_0;
          if (blockResult) {
            $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
            tmp_0 = result;
          } else {
            tmp_0 = null;
          }
          tmp$ret$2 = tmp_0;
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var tmp1_elvis_lhs = tmp$ret$2 == null ? null : firstOrNull(tmp$ret$2);
      var tmp_1;
      if (tmp1_elvis_lhs == null) {
        throw IllegalArgumentException_init_$Create$_0();
      } else {
        tmp_1 = tmp1_elvis_lhs;
      }
      tmp = tmp_1;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextBlob).iterator_jk1svi_k$ = function () {
    return new TextBlobIter(this);
  };
  function Companion_52() {
    Companion_instance_52 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_52).make_35acrw_k$ = function (text, font) {
    return this.make_dl7d9q_k$(text, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$());
  };
  protoOf(Companion_52).make_dl7d9q_k$ = function (text, font, opts) {
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = Companion_getInstance_72().makeShapeDontWrapOrReorder_8z25ai_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.Companion.make.<anonymous>' call
      tmp = this_0.shapeLine_obeq7i_k$(text, font, ensureNotNull(opts));
    }finally {
      this_0.close_yn9xrc_k$();
    }
    return tmp;
  };
  var Companion_instance_52;
  function Companion_getInstance_53() {
    if (Companion_instance_52 == null)
      new Companion_52();
    return Companion_instance_52;
  }
  function _FinalizerHolder_15() {
    _FinalizerHolder_instance_15 = this;
    this.PTR_1 = org_jetbrains_skia_TextLine__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_15).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_15;
  function _FinalizerHolder_getInstance_15() {
    if (_FinalizerHolder_instance_15 == null)
      new _FinalizerHolder_15();
    return _FinalizerHolder_instance_15;
  }
  function TextLine(ptr) {
    Companion_getInstance_53();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_15().PTR_1);
  }
  protoOf(TextLine).get_ascent_b435cz_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetAscent(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_capHeight_wysicw_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetCapHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_xHeight_mi1wba_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetXHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_descent_r0gq8h_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetDescent(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_leading_23jbbx_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetLeading(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_width_j0q4yl_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_height_e7t92o_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_textBlob_mmbepf_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      var res = org_jetbrains_skia_TextLine__1nGetTextBlob(this.get__ptr_wohp4o_k$());
      tmp = res === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new TextBlob(res);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_glyphs_duwlao_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      var length = this.get_glyphsLength_ec2622_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int16Array(length);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
          // Inline function 'org.jetbrains.skia.TextLine.<get-glyphs>.<anonymous>' call
          org_jetbrains_skia_TextLine__1nGetGlyphs(this.get__ptr_wohp4o_k$(), handle, length);
          $this$interopScope.fromInterop_awvpm7_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_glyphsLength_ec2622_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_TextLine__1nGetGlyphsLength(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_positions_ya7scf_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(imul(this.get_glyphsLength_ec2622_k$(), 2));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextLine.<get-positions>.<anonymous>' call
          org_jetbrains_skia_TextLine__1nGetPositions(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_runPositions_qaj5go_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(org_jetbrains_skia_TextLine__1nGetRunPositionsCount(this.get__ptr_wohp4o_k$()));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextLine.<get-runPositions>.<anonymous>' call
          org_jetbrains_skia_TextLine__1nGetRunPositions(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_breakPositions_urk158_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(org_jetbrains_skia_TextLine__1nGetBreakPositionsCount(this.get__ptr_wohp4o_k$()));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.TextLine.<get-breakPositions>.<anonymous>' call
          org_jetbrains_skia_TextLine__1nGetBreakPositions(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).get_breakOffsets_mit1fu_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int32Array(org_jetbrains_skia_TextLine__1nGetBreakOffsetsCount(this.get__ptr_wohp4o_k$()));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          // Inline function 'org.jetbrains.skia.TextLine.<get-breakOffsets>.<anonymous>' call
          org_jetbrains_skia_TextLine__1nGetBreakOffsets(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).getOffsetAtCoord_wppzvl_k$ = function (x) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_TextLine__1nGetOffsetAtCoord(this.get__ptr_wohp4o_k$(), x);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).getLeftOffsetAtCoord_21zc1m_k$ = function (x) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_TextLine__1nGetLeftOffsetAtCoord(this.get__ptr_wohp4o_k$(), x);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).getCoordAtOffset_yqenjn_k$ = function (offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_TextLine__1nGetCoordAtOffset(this.get__ptr_wohp4o_k$(), offset);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextLine).getIntercepts_ftg7t_k$ = function (lowerBound, upperBound) {
    return this.getIntercepts_m53fn9_k$(lowerBound, upperBound, null);
  };
  protoOf(TextLine).getIntercepts_m53fn9_k$ = function (lowerBound, upperBound, paint) {
    try {
      // Inline function 'org.jetbrains.skia.impl.use' call
      var this_0 = ensureNotNull(this.get_textBlob_mmbepf_k$());
      var tmp;
      try {
        return this_0.getIntercepts_m53fn9_k$(lowerBound, upperBound, paint);
      }finally {
        this_0.close_yn9xrc_k$();
      }
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
  };
  function Companion_53() {
    Companion_instance_53 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_53).makeDefault_o5l1fx_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Typeface(org_jetbrains_skia_Typeface__1nMakeDefault());
  };
  protoOf(Companion_53).makeFromName_qvvozr_k$ = function (name, style) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.Companion.makeFromName.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        tmp$ret$1 = new Typeface(org_jetbrains_skia_Typeface__1nMakeFromName($this$interopScope.toInterop_ok8jph_k$(name), style.get__value_a7m5q3_k$()));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp$ret$1;
  };
  protoOf(Companion_53).makeFromData_4x66rt_k$ = function (data, index) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Typeface__1nMakeFromData(getPtr(data), index);
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        // Inline function 'org.jetbrains.skia.Companion.makeFromData.<anonymous>' call
        var message = 'Failed to create Typeface from data ' + data;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      tmp = new Typeface(ptr);
    }finally {
      reachabilityBarrier(data);
    }
    return tmp;
  };
  protoOf(Companion_53).makeFromData$default_spx7a0_k$ = function (data, index, $super) {
    index = index === VOID ? 0 : index;
    return $super === VOID ? this.makeFromData_4x66rt_k$(data, index) : $super.makeFromData_4x66rt_k$.call(this, data, index);
  };
  var Companion_instance_53;
  function Companion_getInstance_54() {
    if (Companion_instance_53 == null)
      new Companion_53();
    return Companion_instance_53;
  }
  function Typeface$_get_bounds_$lambda_1n9k94(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_Typeface__1nGetBounds(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function Typeface(ptr) {
    Companion_getInstance_54();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(Typeface).get_fontStyle_h4vaiv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = FontStyle_init_$Create$_0(org_jetbrains_skia_Typeface__1nGetFontStyle(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_isBold_evv9aw_k$ = function () {
    return this.get_fontStyle_h4vaiv_k$().get_weight_lbhkzl_k$() >= Companion_getInstance_18().get_SEMI_BOLD_rtiayb_k$();
  };
  protoOf(Typeface).get_isItalic_uvnu0z_k$ = function () {
    return !this.get_fontStyle_h4vaiv_k$().get_slant_iykt6t_k$().equals(FontSlant_UPRIGHT_getInstance());
  };
  protoOf(Typeface).get_isFixedPitch_2kf2yp_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nIsFixedPitch(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_variations_8uga4p_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var count = org_jetbrains_skia_Typeface__1nGetVariationsCount(this.get__ptr_wohp4o_k$());
      var tmp_0;
      if (count > 0) {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Int32Array(imul(count, 2));
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
            // Inline function 'org.jetbrains.skia.Typeface.<get-variations>.<anonymous>' call
            org_jetbrains_skia_Typeface__1nGetVariations(this.get__ptr_wohp4o_k$(), handle, count);
            $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        var variationsData = result;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, count);
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Typeface.<get-variations>.<anonymous>' call
          var j = imul(2, item);
          var tmp_1 = variationsData[j];
          // Inline function 'kotlin.fromBits' call
          FloatCompanionObject_getInstance();
          var bits = variationsData[j + 1 | 0];
          var tmp$ret$3 = floatFromBits(bits);
          var tmp$ret$4 = new FontVariation(tmp_1, tmp$ret$3);
          destination.add_utx5q5_k$(tmp$ret$4);
        }
        tmp_0 = copyToArray(destination);
      } else {
        tmp_0 = null;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_variationAxes_3em8j3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var axisCount = org_jetbrains_skia_Typeface__1nGetVariationAxesCount(this.get__ptr_wohp4o_k$());
      var tmp_0;
      if (axisCount <= 0) {
        tmp_0 = null;
      } else {
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Int32Array(imul(axisCount, 5));
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
            // Inline function 'org.jetbrains.skia.Typeface.<get-variationAxes>.<anonymous>' call
            org_jetbrains_skia_Typeface__1nGetVariationAxes(this.get__ptr_wohp4o_k$(), handle, axisCount);
            $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        var axisData = result;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, axisCount);
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Typeface.<get-variationAxes>.<anonymous>' call
          var j = imul(5, item);
          var tmp_1 = axisData[j];
          // Inline function 'kotlin.fromBits' call
          FloatCompanionObject_getInstance();
          var bits = axisData[j + 1 | 0];
          var tmp_2 = floatFromBits(bits);
          // Inline function 'kotlin.fromBits' call
          FloatCompanionObject_getInstance();
          var bits_0 = axisData[j + 2 | 0];
          var tmp_3 = floatFromBits(bits_0);
          // Inline function 'kotlin.fromBits' call
          FloatCompanionObject_getInstance();
          var bits_1 = axisData[j + 3 | 0];
          var tmp$ret$5 = floatFromBits(bits_1);
          var tmp$ret$6 = new FontVariationAxis(tmp_1, tmp_2, tmp_3, tmp$ret$5, !(axisData[j + 4 | 0] === 0));
          destination.add_utx5q5_k$(tmp$ret$6);
        }
        tmp_0 = copyToArray(destination);
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_uniqueId_ycv0d1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetUniqueId(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      tmp = org_jetbrains_skia_Typeface__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(Typeface).makeClone_adoj06_k$ = function (variation) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = [variation];
    return this.makeClone_6dxzh2_k$(tmp$ret$2, 0);
  };
  protoOf(Typeface).makeClone_6dxzh2_k$ = function (variations, collectionIndex) {
    var tmp;
    try {
      if (variations.length === 0)
        return this;
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'kotlin.collections.flatMap' call
      // Inline function 'kotlin.collections.flatMapTo' call
      var this_0 = asList(variations);
      var destination = ArrayList_init_$Create$_0();
      var tmp0_iterator = this_0.iterator_jk1svi_k$();
      while (tmp0_iterator.hasNext_bitz1p_k$()) {
        var element = tmp0_iterator.next_20eer_k$();
        // Inline function 'org.jetbrains.skia.Typeface.makeClone.<anonymous>' call
        var list = listOf([element.get__tag_wohrms_k$(), toRawBits(element.get_value_j01efc_k$())]);
        addAll(destination, list);
      }
      var variationsData = toIntArray(destination);
      var tmp$ret$4;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.Typeface.makeClone.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$4 = org_jetbrains_skia_Typeface__1nMakeClone(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_i7skn2_k$(variationsData), imul(2, variations.length), collectionIndex);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$4;
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        // Inline function 'org.jetbrains.skia.Typeface.makeClone.<anonymous>' call
        var message = 'Failed to clone Typeface ' + this + ' with ' + variations;
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      tmp = new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).makeClone$default_6gmwks_k$ = function (variations, collectionIndex, $super) {
    collectionIndex = collectionIndex === VOID ? 0 : collectionIndex;
    return $super === VOID ? this.makeClone_6dxzh2_k$(variations, collectionIndex) : $super.makeClone_6dxzh2_k$.call(this, variations, collectionIndex);
  };
  protoOf(Typeface).getStringGlyphs_iwygok_k$ = function (s) {
    return this.getUTF32Glyphs_wjpetp_k$(intCodePoints(s));
  };
  protoOf(Typeface).getUTF32Glyphs_wjpetp_k$ = function (uni) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (!(uni == null)) {
        $l$block_0: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.Typeface.getUTF32Glyphs.<anonymous>' call
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            // Inline function 'org.jetbrains.skia.impl.withResult' call
            var result = new Int16Array(uni.length);
            $l$block: {
              // Inline function 'org.jetbrains.skia.impl.interopScope' call
              try {
                var tmp0_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
                _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0_0 + 1 | 0);
                // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
                var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
                var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
                // Inline function 'org.jetbrains.skia.Typeface.getUTF32Glyphs.<anonymous>.<anonymous>' call
                org_jetbrains_skia_Typeface__1nGetUTF32Glyphs(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_i7skn2_k$(uni), uni.length, handle);
                $this$interopScope.fromInterop_awvpm7_k$(handle, result);
                break $l$block;
              }finally {
                var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
                _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
                if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
                  _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
                }
              }
            }
            break $l$block_0;
          }finally {
            var tmp1_0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1_0 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = result;
      } else {
        // Inline function 'kotlin.shortArrayOf' call
        tmp_0 = new Int16Array([]);
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).getUTF32Glyph_sauiec_k$ = function (unichar) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetUTF32Glyph(this.get__ptr_wohp4o_k$(), unichar);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_glyphsCount_2vwgkh_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetGlyphsCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_tablesCount_wnl2dd_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetTablesCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_tableTags_odeheq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var count = org_jetbrains_skia_Typeface__1nGetTableTagsCount(this.get__ptr_wohp4o_k$());
      var tmp_0;
      if (count > 0) {
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        // Inline function 'org.jetbrains.skia.impl.withResult' call
        var result = new Int32Array(count);
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
            // Inline function 'org.jetbrains.skia.Typeface.<get-tableTags>.<anonymous>' call
            org_jetbrains_skia_Typeface__1nGetTableTags(this.get__ptr_wohp4o_k$(), handle, count);
            $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        var this_0 = toList_1(result);
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Typeface.<get-tableTags>.<anonymous>' call
          var tmp$ret$3 = Companion_getInstance_20().toString_w4mr8s_k$(item);
          destination.add_utx5q5_k$(tmp$ret$3);
        }
        tmp_0 = copyToArray(destination);
      } else {
        // Inline function 'kotlin.emptyArray' call
        tmp_0 = [];
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).getTableSize_loqg67_k$ = function (tag) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetTableSize(this.get__ptr_wohp4o_k$(), Companion_getInstance_20().fromString_g5hge7_k$(tag));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).getTableData_z27rfs_k$ = function (tag) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_Typeface__1nGetTableData(this.get__ptr_wohp4o_k$(), Companion_getInstance_20().fromString_g5hge7_k$(tag));
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Data(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_unitsPerEm_uqhaf3_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_Typeface__1nGetUnitsPerEm(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).getKerningPairAdjustments_lthlyz_k$ = function (glyphs) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0;
      if (!(glyphs == null)) {
        var tmp_1;
        if (glyphs.length > 0) {
          var tmp$ret$1;
          $l$block: {
            // Inline function 'org.jetbrains.skia.impl.withNullableResult' call
            var result = new Int32Array(glyphs.length);
            // Inline function 'org.jetbrains.skia.impl.interopScope' call
            try {
              var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
              _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
              var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
              var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
              var tmp_2;
              // Inline function 'org.jetbrains.skia.Typeface.getKerningPairAdjustments.<anonymous>' call
              if (org_jetbrains_skia_Typeface__1nGetKerningPairAdjustments(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_jg6tf3_k$(glyphs), glyphs.length, handle)) {
                $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
                tmp_2 = result;
              } else {
                tmp_2 = null;
              }
              tmp$ret$1 = tmp_2;
              break $l$block;
            }finally {
              var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
              _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
              if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
                _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
              }
            }
          }
          tmp_1 = tmp$ret$1;
        } else {
          tmp_1 = null;
        }
        tmp_0 = tmp_1;
      } else {
        tmp_0 = null;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_familyNames_2vvpd1_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.arrayDecoderScope' call
      var arrayDecoder = null;
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.Typeface.<get-familyNames>.<anonymous>' call
        arrayDecoder = new ArrayDecoder(org_jetbrains_skia_Typeface__1nGetFamilyNames(this.get__ptr_wohp4o_k$()), org_jetbrains_skia_ManagedString__1nGetFinalizer());
        // Inline function 'org.jetbrains.skia.Typeface.<get-familyNames>.<anonymous>' call
        var arrayDecoder_0 = arrayDecoder;
        var size = arrayDecoder_0.get_size_woubt6_k$();
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, size / 2 | 0);
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.Typeface.<get-familyNames>.<anonymous>.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.withStringResult' call
          var pointer = arrayDecoder_0.release_fo34vl_k$(imul(2, item));
          // Inline function 'org.jetbrains.skia.impl.use' call
          var this_1 = new ManagedString(pointer);
          var tmp_1;
          try {
            // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
            tmp_1 = this_1.toString();
          }finally {
            this_1.close_yn9xrc_k$();
          }
          var name = tmp_1;
          // Inline function 'org.jetbrains.skia.impl.withStringResult' call
          var pointer_0 = arrayDecoder_0.release_fo34vl_k$(imul(2, item) + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.use' call
          var this_2 = new ManagedString(pointer_0);
          var tmp_2;
          try {
            // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
            tmp_2 = this_2.toString();
          }finally {
            this_2.close_yn9xrc_k$();
          }
          var language = tmp_2;
          var tmp$ret$7 = new FontFamilyName(name, language);
          destination.add_utx5q5_k$(tmp$ret$7);
        }
        tmp_0 = copyToArray(destination);
      }finally {
        var tmp0_safe_receiver = arrayDecoder;
        if (tmp0_safe_receiver == null)
          null;
        else {
          tmp0_safe_receiver.dispose_3nnxhr_k$();
        }
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_familyName_6ytaaw_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withStringResult' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      // Inline function 'org.jetbrains.skia.Typeface.<get-familyName>.<anonymous>' call
      var tmp$ret$0 = org_jetbrains_skia_Typeface__1nGetFamilyName(this.get__ptr_wohp4o_k$());
      var this_0 = new ManagedString(tmp$ret$0);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
        tmp_0 = this_0.toString();
      }finally {
        this_0.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).get_bounds_bj99ku_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_45();
      tmp = tmp_0.fromInteropPointer_2qty6v_k$(Typeface$_get_bounds_$lambda_1n9k94(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Typeface).toString = function () {
    return "Typeface(familyName='" + this.get_familyName_6ytaaw_k$() + "', fontStyle=" + this.get_fontStyle_h4vaiv_k$() + ', uniqueId=' + this.get_uniqueId_ycv0d1_k$() + ')';
  };
  function Companion_54() {
    Companion_instance_54 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_54;
  function Companion_getInstance_55() {
    if (Companion_instance_54 == null)
      new Companion_54();
    return Companion_instance_54;
  }
  function _FinalizerHolder_16() {
    _FinalizerHolder_instance_16 = this;
    this.PTR_1 = org_jetbrains_skia_U16String__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_16).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_16;
  function _FinalizerHolder_getInstance_16() {
    if (_FinalizerHolder_instance_16 == null)
      new _FinalizerHolder_16();
    return _FinalizerHolder_instance_16;
  }
  function U16String(ptr) {
    Companion_getInstance_55();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_16().PTR_1);
  }
  var VertexMode_TRIANGLES_instance;
  var VertexMode_TRIANGLE_STRIP_instance;
  var VertexMode_TRIANGLE_FAN_instance;
  function values_25() {
    return [VertexMode_TRIANGLES_getInstance(), VertexMode_TRIANGLE_STRIP_getInstance(), VertexMode_TRIANGLE_FAN_getInstance()];
  }
  function valueOf_25(value) {
    switch (value) {
      case 'TRIANGLES':
        return VertexMode_TRIANGLES_getInstance();
      case 'TRIANGLE_STRIP':
        return VertexMode_TRIANGLE_STRIP_getInstance();
      case 'TRIANGLE_FAN':
        return VertexMode_TRIANGLE_FAN_getInstance();
      default:
        VertexMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var VertexMode_entriesInitialized;
  function VertexMode_initEntries() {
    if (VertexMode_entriesInitialized)
      return Unit_getInstance();
    VertexMode_entriesInitialized = true;
    VertexMode_TRIANGLES_instance = new VertexMode('TRIANGLES', 0);
    VertexMode_TRIANGLE_STRIP_instance = new VertexMode('TRIANGLE_STRIP', 1);
    VertexMode_TRIANGLE_FAN_instance = new VertexMode('TRIANGLE_FAN', 2);
  }
  function VertexMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function VertexMode_TRIANGLES_getInstance() {
    VertexMode_initEntries();
    return VertexMode_TRIANGLES_instance;
  }
  function VertexMode_TRIANGLE_STRIP_getInstance() {
    VertexMode_initEntries();
    return VertexMode_TRIANGLE_STRIP_instance;
  }
  function VertexMode_TRIANGLE_FAN_getInstance() {
    VertexMode_initEntries();
    return VertexMode_TRIANGLE_FAN_instance;
  }
  function CharDirection() {
    CharDirection_instance = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
    this.LEFT_TO_RIGHT_1 = 0;
    this.RIGHT_TO_LEFT_1 = 1;
    this.EUROPEAN_NUMBER_1 = 2;
    this.EUROPEAN_NUMBER_SEPARATOR_1 = 3;
    this.EUROPEAN_NUMBER_TERMINATOR_1 = 4;
    this.ARABIC_NUMBER_1 = 5;
    this.COMMON_NUMBER_SEPARATOR_1 = 6;
    this.BLOCK_SEPARATOR_1 = 7;
    this.SEGMENT_SEPARATOR_1 = 8;
    this.WHITE_SPACE_NEUTRAL_1 = 9;
    this.OTHER_NEUTRAL_1 = 10;
    this.LEFT_TO_RIGHT_EMBEDDING_1 = 11;
    this.LEFT_TO_RIGHT_OVERRIDE_1 = 12;
    this.RIGHT_TO_LEFT_ARABIC_1 = 13;
    this.RIGHT_TO_LEFT_EMBEDDING_1 = 14;
    this.RIGHT_TO_LEFT_OVERRIDE_1 = 15;
    this.POP_DIRECTIONAL_FORMAT_1 = 16;
    this.DIR_NON_SPACING_MARK_1 = 17;
    this.BOUNDARY_NEUTRAL_1 = 18;
    this.FIRST_STRONG_ISOLATE_1 = 19;
    this.LEFT_TO_RIGHT_ISOLATE_1 = 20;
    this.RIGHT_TO_LEFT_ISOLATE_1 = 21;
    this.POP_DIRECTIONAL_ISOLATE_1 = 22;
  }
  protoOf(CharDirection).get_LEFT_TO_RIGHT_d09sjd_k$ = function () {
    return this.LEFT_TO_RIGHT_1;
  };
  protoOf(CharDirection).get_RIGHT_TO_LEFT_mqemu9_k$ = function () {
    return this.RIGHT_TO_LEFT_1;
  };
  protoOf(CharDirection).get_EUROPEAN_NUMBER_raq440_k$ = function () {
    return this.EUROPEAN_NUMBER_1;
  };
  protoOf(CharDirection).get_EUROPEAN_NUMBER_SEPARATOR_hx7xbe_k$ = function () {
    return this.EUROPEAN_NUMBER_SEPARATOR_1;
  };
  protoOf(CharDirection).get_EUROPEAN_NUMBER_TERMINATOR_q05o6u_k$ = function () {
    return this.EUROPEAN_NUMBER_TERMINATOR_1;
  };
  protoOf(CharDirection).get_ARABIC_NUMBER_ueqxar_k$ = function () {
    return this.ARABIC_NUMBER_1;
  };
  protoOf(CharDirection).get_COMMON_NUMBER_SEPARATOR_p2q4hm_k$ = function () {
    return this.COMMON_NUMBER_SEPARATOR_1;
  };
  protoOf(CharDirection).get_BLOCK_SEPARATOR_jne4ja_k$ = function () {
    return this.BLOCK_SEPARATOR_1;
  };
  protoOf(CharDirection).get_SEGMENT_SEPARATOR_swt634_k$ = function () {
    return this.SEGMENT_SEPARATOR_1;
  };
  protoOf(CharDirection).get_WHITE_SPACE_NEUTRAL_sskz73_k$ = function () {
    return this.WHITE_SPACE_NEUTRAL_1;
  };
  protoOf(CharDirection).get_OTHER_NEUTRAL_x7bhv3_k$ = function () {
    return this.OTHER_NEUTRAL_1;
  };
  protoOf(CharDirection).get_LEFT_TO_RIGHT_EMBEDDING_lstmm9_k$ = function () {
    return this.LEFT_TO_RIGHT_EMBEDDING_1;
  };
  protoOf(CharDirection).get_LEFT_TO_RIGHT_OVERRIDE_co3zw_k$ = function () {
    return this.LEFT_TO_RIGHT_OVERRIDE_1;
  };
  protoOf(CharDirection).get_RIGHT_TO_LEFT_ARABIC_1wz4lo_k$ = function () {
    return this.RIGHT_TO_LEFT_ARABIC_1;
  };
  protoOf(CharDirection).get_RIGHT_TO_LEFT_EMBEDDING_6zf6jb_k$ = function () {
    return this.RIGHT_TO_LEFT_EMBEDDING_1;
  };
  protoOf(CharDirection).get_RIGHT_TO_LEFT_OVERRIDE_wnkyzw_k$ = function () {
    return this.RIGHT_TO_LEFT_OVERRIDE_1;
  };
  protoOf(CharDirection).get_POP_DIRECTIONAL_FORMAT_ylp8tf_k$ = function () {
    return this.POP_DIRECTIONAL_FORMAT_1;
  };
  protoOf(CharDirection).get_DIR_NON_SPACING_MARK_h4tggm_k$ = function () {
    return this.DIR_NON_SPACING_MARK_1;
  };
  protoOf(CharDirection).get_BOUNDARY_NEUTRAL_moyt2d_k$ = function () {
    return this.BOUNDARY_NEUTRAL_1;
  };
  protoOf(CharDirection).get_FIRST_STRONG_ISOLATE_tk9wor_k$ = function () {
    return this.FIRST_STRONG_ISOLATE_1;
  };
  protoOf(CharDirection).get_LEFT_TO_RIGHT_ISOLATE_gxw3_k$ = function () {
    return this.LEFT_TO_RIGHT_ISOLATE_1;
  };
  protoOf(CharDirection).get_RIGHT_TO_LEFT_ISOLATE_zg43l7_k$ = function () {
    return this.RIGHT_TO_LEFT_ISOLATE_1;
  };
  protoOf(CharDirection).get_POP_DIRECTIONAL_ISOLATE_hxcyqp_k$ = function () {
    return this.POP_DIRECTIONAL_ISOLATE_1;
  };
  protoOf(CharDirection).of_xanmn3_k$ = function (codePoint) {
    return org_jetbrains_skia_icu_Unicode_charDirection(codePoint);
  };
  var CharDirection_instance;
  function CharDirection_getInstance() {
    if (CharDirection_instance == null)
      new CharDirection();
    return CharDirection_instance;
  }
  function use(_this__u8e3s4, block) {
    var tmp;
    try {
      tmp = block(_this__u8e3s4);
    }finally {
      _this__u8e3s4.close_yn9xrc_k$();
    }
    return tmp;
  }
  function ArrayInteropDecoder() {
  }
  function withResult(result, block) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function getPtr(n) {
    var tmp1_elvis_lhs = n == null ? null : n.get__ptr_wohp4o_k$();
    return tmp1_elvis_lhs == null ? Companion_getInstance_77().get_NullPointer_8qbg7n_k$() : tmp1_elvis_lhs;
  }
  function withResult_0(result, block) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_toi1ab_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_40e3wn_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function withResult_1(result, block) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function withStringResult(pointer) {
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = new ManagedString(pointer);
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
      tmp = this_0.toString();
    }finally {
      this_0.close_yn9xrc_k$();
    }
    return tmp;
  }
  function withStringResult_0(block) {
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = new ManagedString(block());
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
      tmp = this_0.toString();
    }finally {
      this_0.close_yn9xrc_k$();
    }
    return tmp;
  }
  function withResult_2(result, block) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_awvpm7_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function withNullableResult(result, block) {
    // Inline function 'org.jetbrains.skia.impl.interopScope' call
    try {
      var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
      var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
      var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
      var tmp;
      if (block($this$interopScope, handle)) {
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        tmp = result;
      } else {
        tmp = null;
      }
      return tmp;
    }finally {
      var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
      if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
      }
    }
  }
  function withNullableResult_0(result, block) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withNullableResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        var blockResult = block($this$interopScope, handle);
        var tmp;
        if (blockResult) {
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          tmp = result;
        } else {
          tmp = null;
        }
        tmp$ret$1 = tmp;
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp$ret$1;
  }
  function withResult_3(result, block) {
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_nw6uau_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_phusho_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function withStringReferenceResult(block) {
    var string = new ManagedString(block(), false);
    return string.toString();
  }
  var Affinity_UPSTREAM_instance;
  var Affinity_DOWNSTREAM_instance;
  function values_26() {
    return [Affinity_UPSTREAM_getInstance(), Affinity_DOWNSTREAM_getInstance()];
  }
  function valueOf_26(value) {
    switch (value) {
      case 'UPSTREAM':
        return Affinity_UPSTREAM_getInstance();
      case 'DOWNSTREAM':
        return Affinity_DOWNSTREAM_getInstance();
      default:
        Affinity_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Affinity_entriesInitialized;
  function Affinity_initEntries() {
    if (Affinity_entriesInitialized)
      return Unit_getInstance();
    Affinity_entriesInitialized = true;
    Affinity_UPSTREAM_instance = new Affinity('UPSTREAM', 0);
    Affinity_DOWNSTREAM_instance = new Affinity('DOWNSTREAM', 1);
  }
  function Affinity(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function Affinity_UPSTREAM_getInstance() {
    Affinity_initEntries();
    return Affinity_UPSTREAM_instance;
  }
  function Affinity_DOWNSTREAM_getInstance() {
    Affinity_initEntries();
    return Affinity_DOWNSTREAM_instance;
  }
  var Alignment_LEFT_instance;
  var Alignment_RIGHT_instance;
  var Alignment_CENTER_instance;
  var Alignment_JUSTIFY_instance;
  var Alignment_START_instance;
  var Alignment_END_instance;
  function values_27() {
    return [Alignment_LEFT_getInstance(), Alignment_RIGHT_getInstance(), Alignment_CENTER_getInstance(), Alignment_JUSTIFY_getInstance(), Alignment_START_getInstance(), Alignment_END_getInstance()];
  }
  function valueOf_27(value) {
    switch (value) {
      case 'LEFT':
        return Alignment_LEFT_getInstance();
      case 'RIGHT':
        return Alignment_RIGHT_getInstance();
      case 'CENTER':
        return Alignment_CENTER_getInstance();
      case 'JUSTIFY':
        return Alignment_JUSTIFY_getInstance();
      case 'START':
        return Alignment_START_getInstance();
      case 'END':
        return Alignment_END_getInstance();
      default:
        Alignment_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Alignment_entriesInitialized;
  function Alignment_initEntries() {
    if (Alignment_entriesInitialized)
      return Unit_getInstance();
    Alignment_entriesInitialized = true;
    Alignment_LEFT_instance = new Alignment('LEFT', 0);
    Alignment_RIGHT_instance = new Alignment('RIGHT', 1);
    Alignment_CENTER_instance = new Alignment('CENTER', 2);
    Alignment_JUSTIFY_instance = new Alignment('JUSTIFY', 3);
    Alignment_START_instance = new Alignment('START', 4);
    Alignment_END_instance = new Alignment('END', 5);
  }
  function Alignment(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function Alignment_LEFT_getInstance() {
    Alignment_initEntries();
    return Alignment_LEFT_instance;
  }
  function Alignment_RIGHT_getInstance() {
    Alignment_initEntries();
    return Alignment_RIGHT_instance;
  }
  function Alignment_CENTER_getInstance() {
    Alignment_initEntries();
    return Alignment_CENTER_instance;
  }
  function Alignment_JUSTIFY_getInstance() {
    Alignment_initEntries();
    return Alignment_JUSTIFY_instance;
  }
  function Alignment_START_getInstance() {
    Alignment_initEntries();
    return Alignment_START_instance;
  }
  function Alignment_END_getInstance() {
    Alignment_initEntries();
    return Alignment_END_instance;
  }
  var BaselineMode_ALPHABETIC_instance;
  var BaselineMode_IDEOGRAPHIC_instance;
  function values_28() {
    return [BaselineMode_ALPHABETIC_getInstance(), BaselineMode_IDEOGRAPHIC_getInstance()];
  }
  function valueOf_28(value) {
    switch (value) {
      case 'ALPHABETIC':
        return BaselineMode_ALPHABETIC_getInstance();
      case 'IDEOGRAPHIC':
        return BaselineMode_IDEOGRAPHIC_getInstance();
      default:
        BaselineMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var BaselineMode_entriesInitialized;
  function BaselineMode_initEntries() {
    if (BaselineMode_entriesInitialized)
      return Unit_getInstance();
    BaselineMode_entriesInitialized = true;
    BaselineMode_ALPHABETIC_instance = new BaselineMode('ALPHABETIC', 0);
    BaselineMode_IDEOGRAPHIC_instance = new BaselineMode('IDEOGRAPHIC', 1);
  }
  function BaselineMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function BaselineMode_ALPHABETIC_getInstance() {
    BaselineMode_initEntries();
    return BaselineMode_ALPHABETIC_instance;
  }
  function BaselineMode_IDEOGRAPHIC_getInstance() {
    BaselineMode_initEntries();
    return BaselineMode_IDEOGRAPHIC_instance;
  }
  var DecorationLineStyle_SOLID_instance;
  var DecorationLineStyle_DOUBLE_instance;
  var DecorationLineStyle_DOTTED_instance;
  var DecorationLineStyle_DASHED_instance;
  var DecorationLineStyle_WAVY_instance;
  function values_29() {
    return [DecorationLineStyle_SOLID_getInstance(), DecorationLineStyle_DOUBLE_getInstance(), DecorationLineStyle_DOTTED_getInstance(), DecorationLineStyle_DASHED_getInstance(), DecorationLineStyle_WAVY_getInstance()];
  }
  function valueOf_29(value) {
    switch (value) {
      case 'SOLID':
        return DecorationLineStyle_SOLID_getInstance();
      case 'DOUBLE':
        return DecorationLineStyle_DOUBLE_getInstance();
      case 'DOTTED':
        return DecorationLineStyle_DOTTED_getInstance();
      case 'DASHED':
        return DecorationLineStyle_DASHED_getInstance();
      case 'WAVY':
        return DecorationLineStyle_WAVY_getInstance();
      default:
        DecorationLineStyle_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var DecorationLineStyle_entriesInitialized;
  function DecorationLineStyle_initEntries() {
    if (DecorationLineStyle_entriesInitialized)
      return Unit_getInstance();
    DecorationLineStyle_entriesInitialized = true;
    DecorationLineStyle_SOLID_instance = new DecorationLineStyle('SOLID', 0);
    DecorationLineStyle_DOUBLE_instance = new DecorationLineStyle('DOUBLE', 1);
    DecorationLineStyle_DOTTED_instance = new DecorationLineStyle('DOTTED', 2);
    DecorationLineStyle_DASHED_instance = new DecorationLineStyle('DASHED', 3);
    DecorationLineStyle_WAVY_instance = new DecorationLineStyle('WAVY', 4);
  }
  function DecorationLineStyle(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function DecorationLineStyle_SOLID_getInstance() {
    DecorationLineStyle_initEntries();
    return DecorationLineStyle_SOLID_instance;
  }
  function DecorationLineStyle_DOUBLE_getInstance() {
    DecorationLineStyle_initEntries();
    return DecorationLineStyle_DOUBLE_instance;
  }
  function DecorationLineStyle_DOTTED_getInstance() {
    DecorationLineStyle_initEntries();
    return DecorationLineStyle_DOTTED_instance;
  }
  function DecorationLineStyle_DASHED_getInstance() {
    DecorationLineStyle_initEntries();
    return DecorationLineStyle_DASHED_instance;
  }
  function DecorationLineStyle_WAVY_getInstance() {
    DecorationLineStyle_initEntries();
    return DecorationLineStyle_WAVY_instance;
  }
  function DecorationStyle_init_$Init$(underline, overline, lineThrough, gaps, color, lineStyle, thicknessMultiplier, $this) {
    DecorationStyle.call($this, underline, overline, lineThrough, gaps, color, values_29()[lineStyle], thicknessMultiplier);
    return $this;
  }
  function DecorationStyle_init_$Create$(underline, overline, lineThrough, gaps, color, lineStyle, thicknessMultiplier) {
    return DecorationStyle_init_$Init$(underline, overline, lineThrough, gaps, color, lineStyle, thicknessMultiplier, objectCreate(protoOf(DecorationStyle)));
  }
  function Companion_55() {
    Companion_instance_55 = this;
    this.NONE_1 = new DecorationStyle(false, false, false, true, -16777216, DecorationLineStyle_SOLID_getInstance(), 1.0);
  }
  protoOf(Companion_55).get_NONE_wo64xt_k$ = function () {
    return this.NONE_1;
  };
  var Companion_instance_55;
  function Companion_getInstance_56() {
    if (Companion_instance_55 == null)
      new Companion_55();
    return Companion_instance_55;
  }
  function DecorationStyle(_underline, _overline, _lineThrough, _gaps, color, lineStyle, thicknessMultiplier) {
    Companion_getInstance_56();
    this._underline_1 = _underline;
    this._overline_1 = _overline;
    this._lineThrough_1 = _lineThrough;
    this._gaps_1 = _gaps;
    this.color_1 = color;
    this._lineStyle_1 = lineStyle;
    this.thicknessMultiplier_1 = thicknessMultiplier;
  }
  protoOf(DecorationStyle).get__underline_98yzti_k$ = function () {
    return this._underline_1;
  };
  protoOf(DecorationStyle).get__overline_irurni_k$ = function () {
    return this._overline_1;
  };
  protoOf(DecorationStyle).get__lineThrough_lgqf5x_k$ = function () {
    return this._lineThrough_1;
  };
  protoOf(DecorationStyle).get__gaps_inhqfn_k$ = function () {
    return this._gaps_1;
  };
  protoOf(DecorationStyle).get_color_ipu8u2_k$ = function () {
    return this.color_1;
  };
  protoOf(DecorationStyle).get__lineStyle_3niqqh_k$ = function () {
    return this._lineStyle_1;
  };
  protoOf(DecorationStyle).get_thicknessMultiplier_gmd0k4_k$ = function () {
    return this.thicknessMultiplier_1;
  };
  protoOf(DecorationStyle).hasUnderline_yy33ji_k$ = function () {
    return this._underline_1;
  };
  protoOf(DecorationStyle).hasOverline_eqam4e_k$ = function () {
    return this._overline_1;
  };
  protoOf(DecorationStyle).hasLineThrough_he9byh_k$ = function () {
    return this._lineThrough_1;
  };
  protoOf(DecorationStyle).hasGaps_bipezb_k$ = function () {
    return this._gaps_1;
  };
  protoOf(DecorationStyle).get_lineStyle_ldebnw_k$ = function () {
    return this._lineStyle_1;
  };
  protoOf(DecorationStyle).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof DecorationStyle))
      return false;
    if (!(this._underline_1 === other._underline_1))
      return false;
    if (!(this._overline_1 === other._overline_1))
      return false;
    if (!(this._lineThrough_1 === other._lineThrough_1))
      return false;
    if (!(this._gaps_1 === other._gaps_1))
      return false;
    if (!(this.color_1 === other.color_1))
      return false;
    if (!(compareTo(this.thicknessMultiplier_1, other.thicknessMultiplier_1) === 0))
      return false;
    return this.get_lineStyle_ldebnw_k$().equals(other.get_lineStyle_ldebnw_k$());
  };
  protoOf(DecorationStyle).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + (this._underline_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + (this._overline_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + (this._lineThrough_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + (this._gaps_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + this.color_1 | 0;
    result = imul(result, PRIME) + toBits(this.thicknessMultiplier_1) | 0;
    result = imul(result, PRIME) + this.get_lineStyle_ldebnw_k$().hashCode() | 0;
    return result;
  };
  protoOf(DecorationStyle).toString = function () {
    return 'DecorationStyle(_underline=' + this._underline_1 + ', _overline=' + this._overline_1 + ', _lineThrough=' + this._lineThrough_1 + ', _gaps=' + this._gaps_1 + ', _color=' + this.color_1 + ', _lineStyle=' + this.get_lineStyle_ldebnw_k$() + ', _thicknessMultiplier=' + this.thicknessMultiplier_1 + ')';
  };
  protoOf(DecorationStyle).withUnderline_rq7lj3_k$ = function (_underline) {
    return this._underline_1 === _underline ? this : new DecorationStyle(_underline, this._overline_1, this._lineThrough_1, this._gaps_1, this.color_1, this._lineStyle_1, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withOverline_dxcw53_k$ = function (_overline) {
    return this._overline_1 === _overline ? this : new DecorationStyle(this._underline_1, _overline, this._lineThrough_1, this._gaps_1, this.color_1, this._lineStyle_1, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withLineThrough_nox3zu_k$ = function (_lineThrough) {
    return this._lineThrough_1 === _lineThrough ? this : new DecorationStyle(this._underline_1, this._overline_1, _lineThrough, this._gaps_1, this.color_1, this._lineStyle_1, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withGaps_ob5f42_k$ = function (_gaps) {
    return this._gaps_1 === _gaps ? this : new DecorationStyle(this._underline_1, this._overline_1, this._lineThrough_1, _gaps, this.color_1, this._lineStyle_1, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withColor_ud15rv_k$ = function (_color) {
    return this.color_1 === _color ? this : new DecorationStyle(this._underline_1, this._overline_1, this._lineThrough_1, this._gaps_1, _color, this._lineStyle_1, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withLineStyle_fczwvp_k$ = function (_lineStyle) {
    return this._lineStyle_1 === _lineStyle ? this : new DecorationStyle(this._underline_1, this._overline_1, this._lineThrough_1, this._gaps_1, this.color_1, _lineStyle, this.thicknessMultiplier_1);
  };
  protoOf(DecorationStyle).withThicknessMultiplier_al4mfr_k$ = function (_thicknessMultiplier) {
    return this.thicknessMultiplier_1 === _thicknessMultiplier ? this : new DecorationStyle(this._underline_1, this._overline_1, this._lineThrough_1, this._gaps_1, this.color_1, this._lineStyle_1, _thicknessMultiplier);
  };
  function fromInteropPointer_1(_this__u8e3s4, block) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(4);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return fromRawData_0(_this__u8e3s4, result);
  }
  function fromRawData_0(_this__u8e3s4, rawData) {
    var decorationStyleFlags = rawData[0];
    var tmp = (decorationStyleFlags >> 0 & 1) === 1;
    var tmp_0 = (decorationStyleFlags >> 1 & 1) === 1;
    var tmp_1 = (decorationStyleFlags >> 2 & 1) === 1;
    var tmp_2 = (decorationStyleFlags >> 3 & 1) === 1;
    var tmp_3 = rawData[1];
    var tmp_4 = rawData[2];
    // Inline function 'kotlin.fromBits' call
    FloatCompanionObject_getInstance();
    var bits = rawData[3];
    var tmp$ret$0 = floatFromBits(bits);
    return DecorationStyle_init_$Create$(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp$ret$0);
  }
  var Direction_RTL_instance;
  var Direction_LTR_instance;
  function values_30() {
    return [Direction_RTL_getInstance(), Direction_LTR_getInstance()];
  }
  function valueOf_30(value) {
    switch (value) {
      case 'RTL':
        return Direction_RTL_getInstance();
      case 'LTR':
        return Direction_LTR_getInstance();
      default:
        Direction_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Direction_entriesInitialized;
  function Direction_initEntries() {
    if (Direction_entriesInitialized)
      return Unit_getInstance();
    Direction_entriesInitialized = true;
    Direction_RTL_instance = new Direction('RTL', 0);
    Direction_LTR_instance = new Direction('LTR', 1);
  }
  function Direction(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function Direction_RTL_getInstance() {
    Direction_initEntries();
    return Direction_RTL_instance;
  }
  function Direction_LTR_getInstance() {
    Direction_initEntries();
    return Direction_LTR_instance;
  }
  function Companion_56() {
    Companion_instance_56 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_56;
  function Companion_getInstance_57() {
    if (Companion_instance_56 == null)
      new Companion_56();
    return Companion_instance_56;
  }
  function FontCollection_init_$Init$($this) {
    FontCollection.call($this, org_jetbrains_skia_paragraph_FontCollection__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function FontCollection_init_$Create$() {
    return FontCollection_init_$Init$(objectCreate(protoOf(FontCollection)));
  }
  function FontCollection(ptr) {
    Companion_getInstance_57();
    RefCnt_init_$Init$(ptr, this);
  }
  protoOf(FontCollection).get_fontManagersCount_ns6lin_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_FontCollection__1nGetFontManagersCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontCollection).setAssetFontManager_9z4eus_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_FontCollection__1nSetAssetFontManager(this.get__ptr_wohp4o_k$(), getPtr(fontMgr), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(FontCollection).setDynamicFontManager_d1lumz_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_FontCollection__1nSetDynamicFontManager(this.get__ptr_wohp4o_k$(), getPtr(fontMgr), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(FontCollection).setTestFontManager_9e1036_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_FontCollection__1nSetTestFontManager(this.get__ptr_wohp4o_k$(), getPtr(fontMgr), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(FontCollection).setDefaultFontManager_gweqxp_k$ = function (fontMgr) {
    return this.setDefaultFontManager_ds6cba_k$(fontMgr, null);
  };
  protoOf(FontCollection).setDefaultFontManager_ds6cba_k$ = function (fontMgr, defaultFamilyName) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_paragraph_FontCollection__1nSetDefaultFontManager(this.get__ptr_wohp4o_k$(), getPtr(fontMgr), $this$interopScope.toInterop_ok8jph_k$(defaultFamilyName));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(FontCollection).get_fallbackManager_kkmum6_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_paragraph_FontCollection__1nGetFallbackManager(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : FontMgr_init_$Create$(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontCollection).findTypefaces_448rqd_k$ = function (familyNames, style) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.arrayDecoderScope' call
      var arrayDecoder = null;
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.paragraph.FontCollection.findTypefaces.<anonymous>' call
        var tmp$ret$1;
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.paragraph.FontCollection.findTypefaces.<anonymous>.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var tmp_1 = this.get__ptr_wohp4o_k$();
            var tmp_2 = $this$interopScope.toInterop_2ejn5p_k$(familyNames);
            var tmp1_elvis_lhs = familyNames == null ? null : familyNames.length;
            tmp$ret$1 = org_jetbrains_skia_paragraph_FontCollection__1nFindTypefaces(tmp_1, tmp_2, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, style.get__value_a7m5q3_k$());
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        arrayDecoder = new ArrayDecoder(tmp$ret$1, org_jetbrains_skia_impl_RefCnt__getFinalizer());
        // Inline function 'org.jetbrains.skia.paragraph.FontCollection.findTypefaces.<anonymous>' call
        var arrayDecoder_0 = arrayDecoder;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, arrayDecoder_0.get_size_woubt6_k$());
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.paragraph.FontCollection.findTypefaces.<anonymous>.<anonymous>' call
          var tmp$ret$3 = new Typeface(arrayDecoder_0.release_fo34vl_k$(item));
          destination.add_utx5q5_k$(tmp$ret$3);
        }
        tmp_0 = copyToArray(destination);
      }finally {
        var tmp0_safe_receiver = arrayDecoder;
        if (tmp0_safe_receiver == null)
          null;
        else {
          tmp0_safe_receiver.dispose_3nnxhr_k$();
        }
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontCollection).defaultFallback_cwm3d7_k$ = function (unicode, style, locale) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp$ret$1;
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.paragraph.FontCollection.defaultFallback.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          tmp$ret$1 = org_jetbrains_skia_paragraph_FontCollection__1nDefaultFallbackChar(this.get__ptr_wohp4o_k$(), unicode, style.get__value_a7m5q3_k$(), $this$interopScope.toInterop_ok8jph_k$(locale));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var ptr = tmp$ret$1;
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontCollection).defaultFallback_pe9zul_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_paragraph_FontCollection__1nDefaultFallback(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontCollection).setEnableFallback_j70bgi_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_FontCollection__1nSetEnableFallback(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(FontCollection).get_paragraphCache_1ypj25_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new ParagraphCache(this, org_jetbrains_skia_paragraph_FontCollection__1nGetParagraphCache(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function FontRastrSettings(edging, hinting, subpixel) {
    this.edging_1 = edging;
    this.hinting_1 = hinting;
    this.subpixel_1 = subpixel;
  }
  protoOf(FontRastrSettings).get_edging_cs3cxv_k$ = function () {
    return this.edging_1;
  };
  protoOf(FontRastrSettings).get_hinting_gio9hu_k$ = function () {
    return this.hinting_1;
  };
  protoOf(FontRastrSettings).get_subpixel_537le7_k$ = function () {
    return this.subpixel_1;
  };
  protoOf(FontRastrSettings).component1_7eebsc_k$ = function () {
    return this.edging_1;
  };
  protoOf(FontRastrSettings).component2_7eebsb_k$ = function () {
    return this.hinting_1;
  };
  protoOf(FontRastrSettings).component3_7eebsa_k$ = function () {
    return this.subpixel_1;
  };
  protoOf(FontRastrSettings).copy_afs7km_k$ = function (edging, hinting, subpixel) {
    return new FontRastrSettings(edging, hinting, subpixel);
  };
  protoOf(FontRastrSettings).copy$default_1vdn9h_k$ = function (edging, hinting, subpixel, $super) {
    edging = edging === VOID ? this.edging_1 : edging;
    hinting = hinting === VOID ? this.hinting_1 : hinting;
    subpixel = subpixel === VOID ? this.subpixel_1 : subpixel;
    return $super === VOID ? this.copy_afs7km_k$(edging, hinting, subpixel) : $super.copy_afs7km_k$.call(this, edging, hinting, subpixel);
  };
  protoOf(FontRastrSettings).toString = function () {
    return 'FontRastrSettings(edging=' + this.edging_1 + ', hinting=' + this.hinting_1 + ', subpixel=' + this.subpixel_1 + ')';
  };
  protoOf(FontRastrSettings).hashCode = function () {
    var result = this.edging_1.hashCode();
    result = imul(result, 31) + this.hinting_1.hashCode() | 0;
    result = imul(result, 31) + getBooleanHashCode(this.subpixel_1) | 0;
    return result;
  };
  protoOf(FontRastrSettings).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof FontRastrSettings))
      return false;
    var tmp0_other_with_cast = other instanceof FontRastrSettings ? other : THROW_CCE();
    if (!this.edging_1.equals(tmp0_other_with_cast.edging_1))
      return false;
    if (!this.hinting_1.equals(tmp0_other_with_cast.hinting_1))
      return false;
    if (!(this.subpixel_1 === tmp0_other_with_cast.subpixel_1))
      return false;
    return true;
  };
  var HeightMode_ALL_instance;
  var HeightMode_DISABLE_FIRST_ASCENT_instance;
  var HeightMode_DISABLE_LAST_DESCENT_instance;
  var HeightMode_DISABLE_ALL_instance;
  function values_31() {
    return [HeightMode_ALL_getInstance(), HeightMode_DISABLE_FIRST_ASCENT_getInstance(), HeightMode_DISABLE_LAST_DESCENT_getInstance(), HeightMode_DISABLE_ALL_getInstance()];
  }
  function valueOf_31(value) {
    switch (value) {
      case 'ALL':
        return HeightMode_ALL_getInstance();
      case 'DISABLE_FIRST_ASCENT':
        return HeightMode_DISABLE_FIRST_ASCENT_getInstance();
      case 'DISABLE_LAST_DESCENT':
        return HeightMode_DISABLE_LAST_DESCENT_getInstance();
      case 'DISABLE_ALL':
        return HeightMode_DISABLE_ALL_getInstance();
      default:
        HeightMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var HeightMode_entriesInitialized;
  function HeightMode_initEntries() {
    if (HeightMode_entriesInitialized)
      return Unit_getInstance();
    HeightMode_entriesInitialized = true;
    HeightMode_ALL_instance = new HeightMode('ALL', 0);
    HeightMode_DISABLE_FIRST_ASCENT_instance = new HeightMode('DISABLE_FIRST_ASCENT', 1);
    HeightMode_DISABLE_LAST_DESCENT_instance = new HeightMode('DISABLE_LAST_DESCENT', 2);
    HeightMode_DISABLE_ALL_instance = new HeightMode('DISABLE_ALL', 3);
  }
  function HeightMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function HeightMode_ALL_getInstance() {
    HeightMode_initEntries();
    return HeightMode_ALL_instance;
  }
  function HeightMode_DISABLE_FIRST_ASCENT_getInstance() {
    HeightMode_initEntries();
    return HeightMode_DISABLE_FIRST_ASCENT_instance;
  }
  function HeightMode_DISABLE_LAST_DESCENT_getInstance() {
    HeightMode_initEntries();
    return HeightMode_DISABLE_LAST_DESCENT_instance;
  }
  function HeightMode_DISABLE_ALL_getInstance() {
    HeightMode_initEntries();
    return HeightMode_DISABLE_ALL_instance;
  }
  function Companion_57() {
    Companion_instance_57 = this;
  }
  protoOf(Companion_57).getArraySize_2xuquk_k$ = function (array) {
    return org_jetbrains_skia_paragraph_LineMetrics__1nGetArraySize(array);
  };
  protoOf(Companion_57).disposeArray_hrrl5a_k$ = function (array) {
    return org_jetbrains_skia_paragraph_LineMetrics__1nDisposeArray(array);
  };
  protoOf(Companion_57).getArrayElement_o9x1bb_k$ = function (array, index) {
    var intArray = new Int32Array(6);
    var doubleArray = new Float64Array(7);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_paragraph_LineMetrics__1nGetArrayElement(array, index, $this$interopScope.toInterop_i7skn2_k$(intArray), $this$interopScope.toInterop_5vegas_k$(doubleArray));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return new LineMetrics(intArray[0], intArray[1], intArray[2], intArray[3], !(intArray[4] === 0), doubleArray[0], doubleArray[1], doubleArray[2], doubleArray[3], doubleArray[4], doubleArray[5], doubleArray[6], intArray[5]);
  };
  var Companion_instance_57;
  function Companion_getInstance_58() {
    if (Companion_instance_57 == null)
      new Companion_57();
    return Companion_instance_57;
  }
  function LineMetrics(startIndex, endIndex, endExcludingWhitespaces, endIncludingNewline, isHardBreak, ascent, descent, unscaledAscent, height, width, left, baseline, lineNumber) {
    Companion_getInstance_58();
    this.startIndex_1 = startIndex;
    this.endIndex_1 = endIndex;
    this.endExcludingWhitespaces_1 = endExcludingWhitespaces;
    this.endIncludingNewline_1 = endIncludingNewline;
    this.isHardBreak_1 = isHardBreak;
    this.ascent_1 = ascent;
    this.descent_1 = descent;
    this.unscaledAscent_1 = unscaledAscent;
    this.height_1 = height;
    this.width_1 = width;
    this.left_1 = left;
    this.baseline_1 = baseline;
    this.lineNumber_1 = lineNumber;
  }
  protoOf(LineMetrics).get_startIndex_oi1lp5_k$ = function () {
    return this.startIndex_1;
  };
  protoOf(LineMetrics).get_endIndex_3lslfk_k$ = function () {
    return this.endIndex_1;
  };
  protoOf(LineMetrics).get_endExcludingWhitespaces_7y3blb_k$ = function () {
    return this.endExcludingWhitespaces_1;
  };
  protoOf(LineMetrics).get_endIncludingNewline_e3twjj_k$ = function () {
    return this.endIncludingNewline_1;
  };
  protoOf(LineMetrics).get_isHardBreak_lhleg1_k$ = function () {
    return this.isHardBreak_1;
  };
  protoOf(LineMetrics).get_ascent_b435cz_k$ = function () {
    return this.ascent_1;
  };
  protoOf(LineMetrics).get_descent_r0gq8h_k$ = function () {
    return this.descent_1;
  };
  protoOf(LineMetrics).get_unscaledAscent_v35b7a_k$ = function () {
    return this.unscaledAscent_1;
  };
  protoOf(LineMetrics).get_height_e7t92o_k$ = function () {
    return this.height_1;
  };
  protoOf(LineMetrics).get_width_j0q4yl_k$ = function () {
    return this.width_1;
  };
  protoOf(LineMetrics).get_left_woprgw_k$ = function () {
    return this.left_1;
  };
  protoOf(LineMetrics).get_baseline_arnwum_k$ = function () {
    return this.baseline_1;
  };
  protoOf(LineMetrics).get_lineNumber_pm7qca_k$ = function () {
    return this.lineNumber_1;
  };
  protoOf(LineMetrics).get_lineHeight_spcmd8_k$ = function () {
    return this.ascent_1 + this.descent_1;
  };
  protoOf(LineMetrics).get_right_ixz7xv_k$ = function () {
    return this.left_1 + this.width_1;
  };
  protoOf(LineMetrics).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof LineMetrics))
      return false;
    if (!(this.startIndex_1 === other.startIndex_1))
      return false;
    if (!(this.endIndex_1 === other.endIndex_1))
      return false;
    if (!(this.endExcludingWhitespaces_1 === other.endExcludingWhitespaces_1))
      return false;
    if (!(this.endIncludingNewline_1 === other.endIncludingNewline_1))
      return false;
    if (!(this.isHardBreak_1 === other.isHardBreak_1))
      return false;
    if (!(compareTo(this.ascent_1, other.ascent_1) === 0))
      return false;
    if (!(compareTo(this.descent_1, other.descent_1) === 0))
      return false;
    if (!(compareTo(this.unscaledAscent_1, other.unscaledAscent_1) === 0))
      return false;
    if (!(compareTo(this.height_1, other.height_1) === 0))
      return false;
    if (!(compareTo(this.width_1, other.width_1) === 0))
      return false;
    if (!(compareTo(this.left_1, other.left_1) === 0))
      return false;
    if (!(compareTo(this.baseline_1, other.baseline_1) === 0))
      return false;
    return this.lineNumber_1 === other.lineNumber_1;
  };
  protoOf(LineMetrics).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.startIndex_1 | 0;
    result = imul(result, PRIME) + this.endIndex_1 | 0;
    result = imul(result, PRIME) + this.endExcludingWhitespaces_1 | 0;
    result = imul(result, PRIME) + this.endIncludingNewline_1 | 0;
    result = imul(result, PRIME) + (this.isHardBreak_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + toBits_0(this.ascent_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.descent_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.unscaledAscent_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.height_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.width_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.left_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + toBits_0(this.baseline_1).toInt_1tsl84_k$() | 0;
    result = imul(result, PRIME) + this.lineNumber_1 | 0;
    return result;
  };
  protoOf(LineMetrics).toString = function () {
    return 'LineMetrics(_startIndex=' + this.startIndex_1 + ', _endIndex=' + this.endIndex_1 + ', _endExcludingWhitespaces=' + this.endExcludingWhitespaces_1 + ', _endIncludingNewline=' + this.endIncludingNewline_1 + ', _hardBreak=' + this.isHardBreak_1 + ', _ascent=' + this.ascent_1 + ', _descent=' + this.descent_1 + ', _unscaledAscent=' + this.unscaledAscent_1 + ', _height=' + this.height_1 + ', _width=' + this.width_1 + ', _left=' + this.left_1 + ', _baseline=' + this.baseline_1 + ', _lineNumber=' + this.lineNumber_1 + ')';
  };
  function Companion_58() {
    Companion_instance_58 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_58;
  function Companion_getInstance_59() {
    if (Companion_instance_58 == null)
      new Companion_58();
    return Companion_instance_58;
  }
  function _set__text__bbbb95($this, _set____db54di) {
    $this._text_1 = _set____db54di;
  }
  function _get__text__kpt58b($this) {
    return $this._text_1;
  }
  function toIRange($this, p) {
    return new IRange(p.ushr_z7nmq8_k$(32).toInt_1tsl84_k$(), p.and_4spn93_k$(new Long(-1, -1)).toInt_1tsl84_k$());
  }
  function _FinalizerHolder_17() {
    _FinalizerHolder_instance_17 = this;
    this.PTR_1 = org_jetbrains_skia_paragraph_Paragraph__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_17).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_17;
  function _FinalizerHolder_getInstance_17() {
    if (_FinalizerHolder_instance_17 == null)
      new _FinalizerHolder_17();
    return _FinalizerHolder_instance_17;
  }
  function Paragraph$getWordBoundary$lambda(this$0, $offset) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_paragraph_Paragraph__1nGetWordBoundary(this$0.get__ptr_wohp4o_k$(), $offset, it);
      return Unit_getInstance();
    };
  }
  function Paragraph(ptr, text) {
    Companion_getInstance_59();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_17().PTR_1);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    this._text_1 = text;
  }
  protoOf(Paragraph).close_yn9xrc_k$ = function () {
    if (!(this._text_1 == null)) {
      ensureNotNull(this._text_1).close_yn9xrc_k$();
      this._text_1 = null;
    }
    protoOf(Managed).close_yn9xrc_k$.call(this);
  };
  protoOf(Paragraph).get_maxWidth_p6k67p_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetMaxWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_height_e7t92o_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_minIntrinsicWidth_lmc1rq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetMinIntrinsicWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_maxIntrinsicWidth_b4gk2k_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetMaxIntrinsicWidth(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_alphabeticBaseline_rczsqt_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetAlphabeticBaseline(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_ideographicBaseline_xeqlhb_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetIdeographicBaseline(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_longestLine_6xrodx_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetLongestLine(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).didExceedMaxLines_51frgy_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nDidExceedMaxLines(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).layout_x0f0tu_k$ = function (width) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_Paragraph__1nLayout(this.get__ptr_wohp4o_k$(), width);
    return this;
  };
  protoOf(Paragraph).paint_utwq50_k$ = function (canvas, x, y) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_Paragraph__1nPaint(this.get__ptr_wohp4o_k$(), getPtr(canvas), x, y);
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(canvas);
    }
    return tmp;
  };
  protoOf(Paragraph).getRectsForRange_leji5d_k$ = function (start, end, rectHeightMode, rectWidthMode) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.paragraph.Paragraph.getRectsForRange.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.InteropScope.fromInterop' call
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var this_0 = org_jetbrains_skia_paragraph_Paragraph__1nGetRectsForRange(this.get__ptr_wohp4o_k$(), start, end, rectHeightMode.get_ordinal_ip24qg_k$(), rectWidthMode.get_ordinal_ip24qg_k$());
          var decoder = Companion_getInstance_65();
          var size = decoder.getArraySize_2xuquk_k$(this_0);
          var tmp_0 = 0;
          // Inline function 'kotlin.arrayOfNulls' call
          var tmp_1 = fillArrayVal(Array(size), null);
          while (tmp_0 < size) {
            var tmp_2 = tmp_0;
            tmp_1[tmp_2] = decoder.getArrayElement_o9x1bb_k$(this_0, tmp_2);
            tmp_0 = tmp_0 + 1 | 0;
          }
          var result = tmp_1;
          decoder.disposeArray_hrrl5a_k$(this_0);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_rectsForPlaceholders_vi296l_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.paragraph.Paragraph.<get-rectsForPlaceholders>.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.InteropScope.fromInterop' call
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var this_0 = org_jetbrains_skia_paragraph_Paragraph__1nGetRectsForPlaceholders(this.get__ptr_wohp4o_k$());
          var decoder = Companion_getInstance_65();
          var size = decoder.getArraySize_2xuquk_k$(this_0);
          var tmp_0 = 0;
          // Inline function 'kotlin.arrayOfNulls' call
          var tmp_1 = fillArrayVal(Array(size), null);
          while (tmp_0 < size) {
            var tmp_2 = tmp_0;
            tmp_1[tmp_2] = decoder.getArrayElement_o9x1bb_k$(this_0, tmp_2);
            tmp_0 = tmp_0 + 1 | 0;
          }
          var result = tmp_1;
          decoder.disposeArray_hrrl5a_k$(this_0);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = result;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).getGlyphPositionAtCoordinate_djajfu_k$ = function (dx, dy) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var res = org_jetbrains_skia_paragraph_Paragraph__1nGetGlyphPositionAtCoordinate(this.get__ptr_wohp4o_k$(), dx, dy);
      tmp = res >= 0 ? new PositionWithAffinity(res, Affinity_DOWNSTREAM_getInstance()) : new PositionWithAffinity((-res | 0) - 1 | 0, Affinity_UPSTREAM_getInstance());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).getWordBoundary_w7r0s2_k$ = function (offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_23();
      tmp = fromInteropPointer_0(tmp_0, Paragraph$getWordBoundary$lambda(this, offset));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).get_lineMetrics_yxegqi_k$ = function () {
    var tmp;
    try {
      var tmp_0;
      if (this._text_1 == null) {
        // Inline function 'kotlin.arrayOf' call
        // Inline function 'kotlin.js.unsafeCast' call
        // Inline function 'kotlin.js.asDynamic' call
        tmp_0 = [];
      } else {
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.paragraph.Paragraph.<get-lineMetrics>.<anonymous>' call
            // Inline function 'org.jetbrains.skia.impl.InteropScope.fromInterop' call
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var this_0 = org_jetbrains_skia_paragraph_Paragraph__1nGetLineMetrics(this.get__ptr_wohp4o_k$(), getPtr(this._text_1));
            var decoder = Companion_getInstance_58();
            var size = decoder.getArraySize_2xuquk_k$(this_0);
            var tmp_1 = 0;
            // Inline function 'kotlin.arrayOfNulls' call
            var tmp_2 = fillArrayVal(Array(size), null);
            while (tmp_1 < size) {
              var tmp_3 = tmp_1;
              tmp_2[tmp_3] = decoder.getArrayElement_o9x1bb_k$(this_0, tmp_3);
              tmp_1 = tmp_1 + 1 | 0;
            }
            var result = tmp_2;
            decoder.disposeArray_hrrl5a_k$(this_0);
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = result;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(this._text_1);
    }
    return tmp;
  };
  protoOf(Paragraph).get_lineNumber_pm7qca_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetLineNumber(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).markDirty_fy9zp7_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_Paragraph__1nMarkDirty(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(Paragraph).get_unresolvedGlyphsCount_7nqlf6_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_Paragraph__1nGetUnresolvedGlyphsCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(Paragraph).updateAlignment_w9xlhq_k$ = function (alignment) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_Paragraph__1nUpdateAlignment(this.get__ptr_wohp4o_k$(), alignment.get_ordinal_ip24qg_k$());
    return this;
  };
  protoOf(Paragraph).updateFontSize_a7pe0x_k$ = function (from, to, size) {
    var tmp;
    try {
      if (!(this._text_1 == null)) {
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_paragraph_Paragraph__1nUpdateFontSize(this.get__ptr_wohp4o_k$(), from, to, size, getPtr(this._text_1));
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(this._text_1);
    }
    return tmp;
  };
  protoOf(Paragraph).updateForegroundPaint_3gdzpm_k$ = function (from, to, paint) {
    var tmp;
    try {
      if (!(this._text_1 == null)) {
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_paragraph_Paragraph__1nUpdateForegroundPaint(this.get__ptr_wohp4o_k$(), from, to, getPtr(paint), getPtr(this._text_1));
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
      reachabilityBarrier(this._text_1);
    }
    return tmp;
  };
  protoOf(Paragraph).updateBackgroundPaint_qarr3f_k$ = function (from, to, paint) {
    var tmp;
    try {
      if (!(this._text_1 == null)) {
        Stats_getInstance().onNativeCall_s2f4hw_k$();
        org_jetbrains_skia_paragraph_Paragraph__1nUpdateBackgroundPaint(this.get__ptr_wohp4o_k$(), from, to, getPtr(paint), getPtr(this._text_1));
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
      reachabilityBarrier(this._text_1);
    }
    return tmp;
  };
  protoOf(Paragraph).getText_18q731_k$ = function () {
    var tmp;
    try {
      return toString_0(this._text_1);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(this._text_1);
    }
  };
  function Companion_59() {
    Companion_instance_59 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_59;
  function Companion_getInstance_60() {
    if (Companion_instance_59 == null)
      new Companion_59();
    return Companion_instance_59;
  }
  function _set__text__bbbb95_0($this, _set____db54di) {
    $this._text_1 = _set____db54di;
  }
  function _get__text__kpt58b_0($this) {
    return $this._text_1;
  }
  function _FinalizerHolder_18() {
    _FinalizerHolder_instance_18 = this;
    this.PTR_1 = org_jetbrains_skia_paragraph_ParagraphBuilder__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_18).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_18;
  function _FinalizerHolder_getInstance_18() {
    if (_FinalizerHolder_instance_18 == null)
      new _FinalizerHolder_18();
    return _FinalizerHolder_instance_18;
  }
  function ParagraphBuilder(style, fc) {
    Companion_getInstance_60();
    Managed.call(this, makeParagraphBuilder(style, fc), _FinalizerHolder_getInstance_18().PTR_1);
    this._text_1 = null;
  }
  protoOf(ParagraphBuilder).pushStyle_psv2ye_k$ = function (style) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphBuilder__1nPushStyle(this.get__ptr_wohp4o_k$(), getPtr(style));
      tmp = this;
    }finally {
      reachabilityBarrier(style);
    }
    return tmp;
  };
  protoOf(ParagraphBuilder).popStyle_am01k0_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      org_jetbrains_skia_paragraph_ParagraphBuilder__1nPopStyle(this.get__ptr_wohp4o_k$(), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return this;
  };
  protoOf(ParagraphBuilder).addText_gwm184_k$ = function (text) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_paragraph_ParagraphBuilder__1nAddText(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(text));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(this);
    }
    if (this._text_1 == null)
      this._text_1 = ManagedString_init_$Create$(text);
    else {
      ensureNotNull(this._text_1).append_bgzq5c_k$(text);
    }
    return this;
  };
  protoOf(ParagraphBuilder).addPlaceholder_rs6avq_k$ = function (style) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_ParagraphBuilder__1nAddPlaceholder(this.get__ptr_wohp4o_k$(), style.get_width_j0q4yl_k$(), style.get_height_e7t92o_k$(), style.get_alignment_xa1jnq_k$().get_ordinal_ip24qg_k$(), style.get_baselineMode_4h6ucv_k$().get_ordinal_ip24qg_k$(), style.get_baseline_arnwum_k$());
    return this;
  };
  protoOf(ParagraphBuilder).build_1k0s4u_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var paragraph = new Paragraph(org_jetbrains_skia_paragraph_ParagraphBuilder__1nBuild(this.get__ptr_wohp4o_k$()), this._text_1);
      this._text_1 = null;
      tmp = paragraph;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function makeParagraphBuilder(style, fc) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_paragraph_ParagraphBuilder__1nMake(getPtr(style), getPtr(fc));
    }finally {
      reachabilityBarrier(style);
      reachabilityBarrier(fc);
    }
    return tmp;
  }
  function Companion_60() {
    Companion_instance_60 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_60;
  function Companion_getInstance_61() {
    if (Companion_instance_60 == null)
      new Companion_60();
    return Companion_instance_60;
  }
  function ParagraphCache(owner, ptr) {
    Companion_getInstance_61();
    Native.call(this, ptr);
    this._owner_1 = owner;
  }
  protoOf(ParagraphCache).abandon_isa44b_k$ = function () {
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphCache__1nAbandon(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(ParagraphCache).reset_5u6xz3_k$ = function () {
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphCache__1nReset(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(ParagraphCache).updateParagraph_k1hame_k$ = function (paragraph) {
    var tmp;
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphCache__1nUpdateParagraph(this.get__ptr_wohp4o_k$(), getPtr(paragraph));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paragraph);
    }
    return tmp;
  };
  protoOf(ParagraphCache).findParagraph_moa9sa_k$ = function (paragraph) {
    var tmp;
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphCache__1nFindParagraph(this.get__ptr_wohp4o_k$(), getPtr(paragraph));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paragraph);
    }
    return tmp;
  };
  protoOf(ParagraphCache).printStatistics_v2ivvk_k$ = function () {
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphCache__1nPrintStatistics(this.get__ptr_wohp4o_k$(), Companion_getInstance_77().get_NullPointer_8qbg7n_k$());
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(ParagraphCache).setEnabled_3habzq_k$ = function (value) {
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphCache__1nSetEnabled(this.get__ptr_wohp4o_k$(), value);
    }finally {
      reachabilityBarrier(this);
    }
  };
  protoOf(ParagraphCache).get_count_ipufhi_k$ = function () {
    var tmp;
    try {
      this._validate_a4ldph_k$();
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphCache__1nGetCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphCache).get__owner_a45oe5_k$ = function () {
    return this._owner_1;
  };
  protoOf(ParagraphCache)._validate_a4ldph_k$ = function () {
    try {
      // Inline function 'kotlin.check' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(getPtr(this._owner_1) === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
        // Inline function 'org.jetbrains.skia.paragraph.ParagraphCache._validate.<anonymous>' call
        var message = 'ParagraphCache needs owning FontCollection to be alive';
        throw IllegalStateException_init_$Create$(toString(message));
      }
    }finally {
      reachabilityBarrier(this._owner_1);
    }
  };
  function Companion_61() {
    Companion_instance_61 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_61;
  function Companion_getInstance_62() {
    if (Companion_instance_61 == null)
      new Companion_61();
    return Companion_instance_61;
  }
  function _FinalizerHolder_19() {
    _FinalizerHolder_instance_19 = this;
    this.PTR_1 = org_jetbrains_skia_paragraph_ParagraphStyle__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_19).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_19;
  function _FinalizerHolder_getInstance_19() {
    if (_FinalizerHolder_instance_19 == null)
      new _FinalizerHolder_19();
    return _FinalizerHolder_instance_19;
  }
  function ParagraphStyle() {
    Companion_getInstance_62();
    Managed.call(this, org_jetbrains_skia_paragraph_ParagraphStyle__1nMake(), _FinalizerHolder_getInstance_19().PTR_1);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
  }
  protoOf(ParagraphStyle).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphStyle__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_strutStyle_4sjo5p_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetStrutStyle(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(value);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_strutStyle_9kfpti_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new StrutStyle(org_jetbrains_skia_paragraph_ParagraphStyle__1nGetStrutStyle(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_textStyle_unmu3t_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetTextStyle(this.get__ptr_wohp4o_k$(), getPtr(value));
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(value);
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_textStyle_8tt25h_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new TextStyle(org_jetbrains_skia_paragraph_ParagraphStyle__1nGetTextStyle(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_direction_nipmfu_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetDirection(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_direction_7ekune_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_30()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetDirection(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_alignment_z9alxm_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetAlignment(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_alignment_xa1jnq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_27()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetAlignment(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_maxLinesCount_v5fbw1_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetMaxLinesCount(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_maxLinesCount_9ahh79_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphStyle__1nGetMaxLinesCount(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_ellipsis_7c9ky1_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_paragraph_ParagraphStyle__1nSetEllipsis(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(value));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_ellipsis_sol6jq_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ellipsis = org_jetbrains_skia_paragraph_ParagraphStyle__1nGetEllipsis(this.get__ptr_wohp4o_k$());
      var tmp_0;
      if (ellipsis === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
        tmp_0 = null;
      } else {
        // Inline function 'org.jetbrains.skia.impl.withStringResult' call
        // Inline function 'org.jetbrains.skia.impl.use' call
        // Inline function 'org.jetbrains.skia.paragraph.ParagraphStyle.<get-ellipsis>.<anonymous>' call
        var this_0 = new ManagedString(ellipsis);
        var tmp_1;
        try {
          // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
          tmp_1 = this_0.toString();
        }finally {
          this_0.close_yn9xrc_k$();
        }
        tmp_0 = tmp_1;
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_height_w1sw3g_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetHeight(this.get__ptr_wohp4o_k$(), value);
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_height_e7t92o_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphStyle__1nGetHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_heightMode_w43b63_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetHeightMode(this.get__ptr_wohp4o_k$(), value.get_ordinal_ip24qg_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_heightMode_4gymsz_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_31()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetHeightMode(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_effectiveAlignment_a14ccb_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_27()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetEffectiveAlignment(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_isHintingEnabled_4jdheh_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_ParagraphStyle__1nIsHintingEnabled(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).disableHinting_tq9mh9_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_ParagraphStyle__1nDisableHinting(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(ParagraphStyle).set_fontRastrSettings_84513n_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetFontRastrSettings(this.get__ptr_wohp4o_k$(), value.get_edging_cs3cxv_k$().get_ordinal_ip24qg_k$(), value.get_hinting_gio9hu_k$().get_ordinal_ip24qg_k$(), value.get_subpixel_537le7_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_fontRastrSettings_h1lm8j_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var edging = values_8()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetEdging(this.get__ptr_wohp4o_k$())];
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var hinting = values_9()[org_jetbrains_skia_paragraph_ParagraphStyle__1nGetHinting(this.get__ptr_wohp4o_k$())];
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var subpixel = !!org_jetbrains_skia_paragraph_ParagraphStyle__1nGetSubpixel(this.get__ptr_wohp4o_k$());
      tmp = new FontRastrSettings(edging, hinting, subpixel);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).set_textIndent_g4aksn_k$ = function (value) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_ParagraphStyle__1nSetTextIndent(this.get__ptr_wohp4o_k$(), value.get_firstLine_apktuj_k$(), value.get_restLine_xn4q7l_k$());
      tmp = Unit_getInstance();
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(ParagraphStyle).get_textIndent_5mau2q_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Float32Array(2);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
          // Inline function 'org.jetbrains.skia.paragraph.ParagraphStyle.<get-textIndent>.<anonymous>' call
          org_jetbrains_skia_paragraph_ParagraphStyle__1nGetTextIndent(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var indents = result;
      tmp = new TextIndent(indents[0], indents[1]);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  var PlaceholderAlignment_BASELINE_instance;
  var PlaceholderAlignment_ABOVE_BASELINE_instance;
  var PlaceholderAlignment_BELOW_BASELINE_instance;
  var PlaceholderAlignment_TOP_instance;
  var PlaceholderAlignment_BOTTOM_instance;
  var PlaceholderAlignment_MIDDLE_instance;
  function values_32() {
    return [PlaceholderAlignment_BASELINE_getInstance(), PlaceholderAlignment_ABOVE_BASELINE_getInstance(), PlaceholderAlignment_BELOW_BASELINE_getInstance(), PlaceholderAlignment_TOP_getInstance(), PlaceholderAlignment_BOTTOM_getInstance(), PlaceholderAlignment_MIDDLE_getInstance()];
  }
  function valueOf_32(value) {
    switch (value) {
      case 'BASELINE':
        return PlaceholderAlignment_BASELINE_getInstance();
      case 'ABOVE_BASELINE':
        return PlaceholderAlignment_ABOVE_BASELINE_getInstance();
      case 'BELOW_BASELINE':
        return PlaceholderAlignment_BELOW_BASELINE_getInstance();
      case 'TOP':
        return PlaceholderAlignment_TOP_getInstance();
      case 'BOTTOM':
        return PlaceholderAlignment_BOTTOM_getInstance();
      case 'MIDDLE':
        return PlaceholderAlignment_MIDDLE_getInstance();
      default:
        PlaceholderAlignment_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var PlaceholderAlignment_entriesInitialized;
  function PlaceholderAlignment_initEntries() {
    if (PlaceholderAlignment_entriesInitialized)
      return Unit_getInstance();
    PlaceholderAlignment_entriesInitialized = true;
    PlaceholderAlignment_BASELINE_instance = new PlaceholderAlignment('BASELINE', 0);
    PlaceholderAlignment_ABOVE_BASELINE_instance = new PlaceholderAlignment('ABOVE_BASELINE', 1);
    PlaceholderAlignment_BELOW_BASELINE_instance = new PlaceholderAlignment('BELOW_BASELINE', 2);
    PlaceholderAlignment_TOP_instance = new PlaceholderAlignment('TOP', 3);
    PlaceholderAlignment_BOTTOM_instance = new PlaceholderAlignment('BOTTOM', 4);
    PlaceholderAlignment_MIDDLE_instance = new PlaceholderAlignment('MIDDLE', 5);
  }
  function PlaceholderAlignment(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function PlaceholderAlignment_BASELINE_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_BASELINE_instance;
  }
  function PlaceholderAlignment_ABOVE_BASELINE_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_ABOVE_BASELINE_instance;
  }
  function PlaceholderAlignment_BELOW_BASELINE_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_BELOW_BASELINE_instance;
  }
  function PlaceholderAlignment_TOP_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_TOP_instance;
  }
  function PlaceholderAlignment_BOTTOM_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_BOTTOM_instance;
  }
  function PlaceholderAlignment_MIDDLE_getInstance() {
    PlaceholderAlignment_initEntries();
    return PlaceholderAlignment_MIDDLE_instance;
  }
  function PlaceholderStyle(width, height, alignment, baselineMode, baseline) {
    this.width_1 = width;
    this.height_1 = height;
    this._alignment_1 = alignment;
    this._baselineMode_1 = baselineMode;
    this.baseline_1 = baseline;
  }
  protoOf(PlaceholderStyle).get_width_j0q4yl_k$ = function () {
    return this.width_1;
  };
  protoOf(PlaceholderStyle).get_height_e7t92o_k$ = function () {
    return this.height_1;
  };
  protoOf(PlaceholderStyle).get__alignment_fk5yqb_k$ = function () {
    return this._alignment_1;
  };
  protoOf(PlaceholderStyle).get__baselineMode_q094ce_k$ = function () {
    return this._baselineMode_1;
  };
  protoOf(PlaceholderStyle).get_baseline_arnwum_k$ = function () {
    return this.baseline_1;
  };
  protoOf(PlaceholderStyle).get_alignment_xa1jnq_k$ = function () {
    return this._alignment_1;
  };
  protoOf(PlaceholderStyle).get_baselineMode_4h6ucv_k$ = function () {
    return this._baselineMode_1;
  };
  protoOf(PlaceholderStyle).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof PlaceholderStyle))
      return false;
    if (!(compareTo(this.width_1, other.width_1) === 0))
      return false;
    if (!(compareTo(this.height_1, other.height_1) === 0))
      return false;
    if (!(compareTo(this.baseline_1, other.baseline_1) === 0))
      return false;
    if (!this.get_alignment_xa1jnq_k$().equals(other.get_alignment_xa1jnq_k$()))
      return false;
    return this.get_baselineMode_4h6ucv_k$().equals(other.get_baselineMode_4h6ucv_k$());
  };
  protoOf(PlaceholderStyle).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + toBits(this.width_1) | 0;
    result = imul(result, PRIME) + toBits(this.height_1) | 0;
    result = imul(result, PRIME) + toBits(this.baseline_1) | 0;
    result = imul(result, PRIME) + this.get_alignment_xa1jnq_k$().hashCode() | 0;
    result = imul(result, PRIME) + this.get_baselineMode_4h6ucv_k$().hashCode() | 0;
    return result;
  };
  protoOf(PlaceholderStyle).toString = function () {
    return 'PlaceholderStyle(_width=' + this.width_1 + ', _height=' + this.height_1 + ', _alignment=' + this.get_alignment_xa1jnq_k$() + ', _baselineMode=' + this.get_baselineMode_4h6ucv_k$() + ', _baseline=' + this.baseline_1 + ')';
  };
  function PositionWithAffinity(position, affinity) {
    this.position_1 = position;
    this._affinity_1 = affinity;
  }
  protoOf(PositionWithAffinity).get_position_jfponi_k$ = function () {
    return this.position_1;
  };
  protoOf(PositionWithAffinity).get__affinity_k0wu72_k$ = function () {
    return this._affinity_1;
  };
  protoOf(PositionWithAffinity).get_affinity_lsftov_k$ = function () {
    return this._affinity_1;
  };
  protoOf(PositionWithAffinity).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof PositionWithAffinity))
      return false;
    if (!(this.position_1 === other.position_1))
      return false;
    return this.get_affinity_lsftov_k$().equals(other.get_affinity_lsftov_k$());
  };
  protoOf(PositionWithAffinity).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.position_1 | 0;
    result = imul(result, PRIME) + this.get_affinity_lsftov_k$().hashCode() | 0;
    return result;
  };
  protoOf(PositionWithAffinity).toString = function () {
    return 'PositionWithAffinity(_position=' + this.position_1 + ', _affinity=' + this.get_affinity_lsftov_k$() + ')';
  };
  var RectHeightMode_TIGHT_instance;
  var RectHeightMode_MAX_instance;
  var RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_instance;
  var RectHeightMode_INCLUDE_LINE_SPACING_TOP_instance;
  var RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_instance;
  var RectHeightMode_STRUT_instance;
  function values_33() {
    return [RectHeightMode_TIGHT_getInstance(), RectHeightMode_MAX_getInstance(), RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_getInstance(), RectHeightMode_INCLUDE_LINE_SPACING_TOP_getInstance(), RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_getInstance(), RectHeightMode_STRUT_getInstance()];
  }
  function valueOf_33(value) {
    switch (value) {
      case 'TIGHT':
        return RectHeightMode_TIGHT_getInstance();
      case 'MAX':
        return RectHeightMode_MAX_getInstance();
      case 'INCLUDE_LINE_SPACING_MIDDLE':
        return RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_getInstance();
      case 'INCLUDE_LINE_SPACING_TOP':
        return RectHeightMode_INCLUDE_LINE_SPACING_TOP_getInstance();
      case 'INCLUDE_LINE_SPACING_BOTTOM':
        return RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_getInstance();
      case 'STRUT':
        return RectHeightMode_STRUT_getInstance();
      default:
        RectHeightMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var RectHeightMode_entriesInitialized;
  function RectHeightMode_initEntries() {
    if (RectHeightMode_entriesInitialized)
      return Unit_getInstance();
    RectHeightMode_entriesInitialized = true;
    RectHeightMode_TIGHT_instance = new RectHeightMode('TIGHT', 0);
    RectHeightMode_MAX_instance = new RectHeightMode('MAX', 1);
    RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_instance = new RectHeightMode('INCLUDE_LINE_SPACING_MIDDLE', 2);
    RectHeightMode_INCLUDE_LINE_SPACING_TOP_instance = new RectHeightMode('INCLUDE_LINE_SPACING_TOP', 3);
    RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_instance = new RectHeightMode('INCLUDE_LINE_SPACING_BOTTOM', 4);
    RectHeightMode_STRUT_instance = new RectHeightMode('STRUT', 5);
  }
  function RectHeightMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function RectHeightMode_TIGHT_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_TIGHT_instance;
  }
  function RectHeightMode_MAX_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_MAX_instance;
  }
  function RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_INCLUDE_LINE_SPACING_MIDDLE_instance;
  }
  function RectHeightMode_INCLUDE_LINE_SPACING_TOP_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_INCLUDE_LINE_SPACING_TOP_instance;
  }
  function RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_INCLUDE_LINE_SPACING_BOTTOM_instance;
  }
  function RectHeightMode_STRUT_getInstance() {
    RectHeightMode_initEntries();
    return RectHeightMode_STRUT_instance;
  }
  var RectWidthMode_TIGHT_instance;
  var RectWidthMode_MAX_instance;
  function values_34() {
    return [RectWidthMode_TIGHT_getInstance(), RectWidthMode_MAX_getInstance()];
  }
  function valueOf_34(value) {
    switch (value) {
      case 'TIGHT':
        return RectWidthMode_TIGHT_getInstance();
      case 'MAX':
        return RectWidthMode_MAX_getInstance();
      default:
        RectWidthMode_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var RectWidthMode_entriesInitialized;
  function RectWidthMode_initEntries() {
    if (RectWidthMode_entriesInitialized)
      return Unit_getInstance();
    RectWidthMode_entriesInitialized = true;
    RectWidthMode_TIGHT_instance = new RectWidthMode('TIGHT', 0);
    RectWidthMode_MAX_instance = new RectWidthMode('MAX', 1);
  }
  function RectWidthMode(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function RectWidthMode_TIGHT_getInstance() {
    RectWidthMode_initEntries();
    return RectWidthMode_TIGHT_instance;
  }
  function RectWidthMode_MAX_getInstance() {
    RectWidthMode_initEntries();
    return RectWidthMode_MAX_instance;
  }
  function Shadow_init_$Init$(color, offset, blurSigma, $this) {
    Shadow.call($this, color, offset.get_x_1mhr67_k$(), offset.get_y_1mhr68_k$(), blurSigma);
    return $this;
  }
  function Shadow_init_$Create$(color, offset, blurSigma) {
    return Shadow_init_$Init$(color, offset, blurSigma, objectCreate(protoOf(Shadow)));
  }
  function Companion_62() {
    Companion_instance_62 = this;
  }
  var Companion_instance_62;
  function Companion_getInstance_63() {
    if (Companion_instance_62 == null)
      new Companion_62();
    return Companion_instance_62;
  }
  function Shadow(color, offsetX, offsetY, blurSigma) {
    Companion_getInstance_63();
    this.color_1 = color;
    this.offsetX_1 = offsetX;
    this.offsetY_1 = offsetY;
    this.blurSigma_1 = blurSigma;
  }
  protoOf(Shadow).get_color_ipu8u2_k$ = function () {
    return this.color_1;
  };
  protoOf(Shadow).get_offsetX_ocbsn8_k$ = function () {
    return this.offsetX_1;
  };
  protoOf(Shadow).get_offsetY_ocbsn7_k$ = function () {
    return this.offsetY_1;
  };
  protoOf(Shadow).get_blurSigma_ob1dwr_k$ = function () {
    return this.blurSigma_1;
  };
  protoOf(Shadow).get_offset_hjmqak_k$ = function () {
    return new Point(this.offsetX_1, this.offsetY_1);
  };
  protoOf(Shadow).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof Shadow))
      return false;
    if (!(this.color_1 === other.color_1))
      return false;
    if (!(compareTo(this.offsetX_1, other.offsetX_1) === 0))
      return false;
    if (!(compareTo(this.offsetY_1, other.offsetY_1) === 0))
      return false;
    return compareTo(this.blurSigma_1, other.blurSigma_1) === 0;
  };
  protoOf(Shadow).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.color_1 | 0;
    result = imul(result, PRIME) + toBits(this.offsetX_1) | 0;
    result = imul(result, PRIME) + toBits(this.offsetY_1) | 0;
    var blurSigma = toBits_0(this.blurSigma_1);
    result = imul(result, PRIME) + blurSigma.ushr_z7nmq8_k$(32).xor_qzz94j_k$(blurSigma).toInt_1tsl84_k$() | 0;
    return result;
  };
  protoOf(Shadow).toString = function () {
    return 'Shadow(_color=' + this.color_1 + ', _offsetX=' + this.offsetX_1 + ', _offsetY=' + this.offsetY_1 + ', _blurSigma=' + this.blurSigma_1 + ')';
  };
  protoOf(Shadow).withColor_ud15rv_k$ = function (_color) {
    return this.color_1 === _color ? this : new Shadow(_color, this.offsetX_1, this.offsetY_1, this.blurSigma_1);
  };
  protoOf(Shadow).withOffsetX_pmsztz_k$ = function (_offsetX) {
    return this.offsetX_1 === _offsetX ? this : new Shadow(this.color_1, _offsetX, this.offsetY_1, this.blurSigma_1);
  };
  protoOf(Shadow).withOffsetY_nyq3ns_k$ = function (_offsetY) {
    return this.offsetY_1 === _offsetY ? this : new Shadow(this.color_1, this.offsetX_1, _offsetY, this.blurSigma_1);
  };
  protoOf(Shadow).withBlurSigma_gyyjzi_k$ = function (_blurSigma) {
    return this.blurSigma_1 === _blurSigma ? this : new Shadow(this.color_1, this.offsetX_1, this.offsetY_1, _blurSigma);
  };
  function fromInteropPointer_2(_this__u8e3s4, shadowsCount, block) {
    // Inline function 'kotlin.collections.toTypedArray' call
    // Inline function 'kotlin.collections.map' call
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(imul(shadowsCount, 5));
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        block($this$interopScope, handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var this_0 = chunked(toList_1(result), 5);
    // Inline function 'kotlin.collections.mapTo' call
    var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
    var tmp0_iterator = this_0.iterator_jk1svi_k$();
    while (tmp0_iterator.hasNext_bitz1p_k$()) {
      var item = tmp0_iterator.next_20eer_k$();
      // Inline function 'org.jetbrains.skia.paragraph.fromInteropPointer.<anonymous>' call
      // Inline function 'kotlin.collections.component1' call
      var color = item.get_c1px32_k$(0);
      // Inline function 'kotlin.collections.component2' call
      var offsetX = item.get_c1px32_k$(1);
      // Inline function 'kotlin.collections.component3' call
      var offsetY = item.get_c1px32_k$(2);
      // Inline function 'kotlin.collections.component4' call
      var blurSigmaA = item.get_c1px32_k$(3);
      // Inline function 'kotlin.collections.component5' call
      var blurSigmaB = item.get_c1px32_k$(4);
      var blurSigma = toLong(blurSigmaA).shl_bg8if3_k$(32).or_v7fvkl_k$(toLong(blurSigmaB).and_4spn93_k$(new Long(-1, 0)));
      // Inline function 'kotlin.fromBits' call
      FloatCompanionObject_getInstance();
      var tmp = floatFromBits(offsetX);
      // Inline function 'kotlin.fromBits' call
      FloatCompanionObject_getInstance();
      var tmp_0 = floatFromBits(offsetY);
      // Inline function 'kotlin.fromBits' call
      DoubleCompanionObject_getInstance();
      var tmp$ret$10 = doubleFromBits(blurSigma);
      var tmp$ret$11 = new Shadow(color, tmp, tmp_0, tmp$ret$10);
      destination.add_utx5q5_k$(tmp$ret$11);
    }
    return copyToArray(destination);
  }
  function Companion_63() {
    Companion_instance_63 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_63;
  function Companion_getInstance_64() {
    if (Companion_instance_63 == null)
      new Companion_63();
    return Companion_instance_63;
  }
  function StrutStyle_init_$Init$($this) {
    StrutStyle.call($this, org_jetbrains_skia_paragraph_StrutStyle__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function StrutStyle_init_$Create$() {
    return StrutStyle_init_$Init$(objectCreate(protoOf(StrutStyle)));
  }
  function _FinalizerHolder_20() {
    _FinalizerHolder_instance_20 = this;
    this.PTR_1 = org_jetbrains_skia_paragraph_StrutStyle__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_20).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_20;
  function _FinalizerHolder_getInstance_20() {
    if (_FinalizerHolder_instance_20 == null)
      new _FinalizerHolder_20();
    return _FinalizerHolder_instance_20;
  }
  function StrutStyle(ptr) {
    Companion_getInstance_64();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_20().PTR_1);
  }
  protoOf(StrutStyle).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(StrutStyle).get_fontFamilies_2olayi_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.arrayDecoderScope' call
      var arrayDecoder = null;
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.paragraph.StrutStyle.<get-fontFamilies>.<anonymous>' call
        arrayDecoder = new ArrayDecoder(org_jetbrains_skia_paragraph_StrutStyle__1nGetFontFamilies(this.get__ptr_wohp4o_k$()), org_jetbrains_skia_ManagedString__1nGetFinalizer());
        // Inline function 'org.jetbrains.skia.paragraph.StrutStyle.<get-fontFamilies>.<anonymous>' call
        var arrayDecoder_0 = arrayDecoder;
        // Inline function 'kotlin.collections.toTypedArray' call
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, arrayDecoder_0.get_size_woubt6_k$());
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.paragraph.StrutStyle.<get-fontFamilies>.<anonymous>.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.withStringResult' call
          var pointer = arrayDecoder_0.release_fo34vl_k$(item);
          // Inline function 'org.jetbrains.skia.impl.use' call
          var this_1 = new ManagedString(pointer);
          var tmp_1;
          try {
            // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
            tmp_1 = this_1.toString();
          }finally {
            this_1.close_yn9xrc_k$();
          }
          destination.add_utx5q5_k$(tmp_1);
        }
        tmp_0 = copyToArray(destination);
      }finally {
        var tmp0_safe_receiver = arrayDecoder;
        if (tmp0_safe_receiver == null)
          null;
        else {
          tmp0_safe_receiver.dispose_3nnxhr_k$();
        }
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setFontFamilies_krn7hd_k$ = function (families) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_paragraph_StrutStyle__1nSetFontFamilies(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_2ejn5p_k$(families), families.length);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(StrutStyle).set_fontStyle_vxzafm_k$ = function (value) {
    this.setFontStyle_jsp60t_k$(value);
  };
  protoOf(StrutStyle).get_fontStyle_h4vaiv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int32Array(3);
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          // Inline function 'org.jetbrains.skia.paragraph.StrutStyle.<get-fontStyle>.<anonymous>' call
          org_jetbrains_skia_paragraph_StrutStyle__1nGetFontStyle(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      var fontStyleData = result;
      tmp = FontStyle_init_$Create$(fontStyleData[0], fontStyleData[1], values_10()[fontStyleData[2]]);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setFontStyle_jsp60t_k$ = function (style) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetFontStyle(this.get__ptr_wohp4o_k$(), style.get__value_a7m5q3_k$());
    return this;
  };
  protoOf(StrutStyle).set_fontSize_ywm6aj_k$ = function (value) {
    this.setFontSize_38bvay_k$(value);
  };
  protoOf(StrutStyle).get_fontSize_pr9n47_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nGetFontSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setFontSize_38bvay_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetFontSize(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_height_w1sw3g_k$ = function (value) {
    this.setHeight_o514fj_k$(value);
  };
  protoOf(StrutStyle).get_height_e7t92o_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nGetHeight(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setHeight_o514fj_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetHeight(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_leading_h1xskf_k$ = function (value) {
    this.setLeading_g3rl8s_k$(value);
  };
  protoOf(StrutStyle).get_leading_23jbbx_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nGetLeading(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setLeading_g3rl8s_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetLeading(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_isEnabled_abraij_k$ = function (value) {
    this.setEnabled_2yw92y_k$(value);
  };
  protoOf(StrutStyle).get_isEnabled_roz1ma_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nIsEnabled(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setEnabled_2yw92y_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetEnabled(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_isHeightForced_gn0yry_k$ = function (value) {
    this.setHeightForced_6scprx_k$(value);
  };
  protoOf(StrutStyle).get_isHeightForced_n6afgt_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nIsHeightForced(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setHeightForced_6scprx_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetHeightForced(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_isHeightOverridden_52ioib_k$ = function (value) {
    this.setHeightOverridden_r4bq88_k$(value);
  };
  protoOf(StrutStyle).get_isHeightOverridden_qmvgge_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nIsHeightOverridden(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setHeightOverridden_r4bq88_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetHeightOverridden(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(StrutStyle).set_isHalfLeading_cjht1z_k$ = function (value) {
    this.setHalfLeading_10vvhw_k$(value);
  };
  protoOf(StrutStyle).get_isHalfLeading_333yxs_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_StrutStyle__1nIsHalfLeading(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(StrutStyle).setHalfLeading_10vvhw_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_StrutStyle__1nSetHalfLeading(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  function TextBox_init_$Init$(l, t, r, b, direction, $this) {
    TextBox.call($this, Companion_getInstance_45().makeLTRB_2wvuxm_k$(l, t, r, b), values_30()[direction]);
    return $this;
  }
  function TextBox_init_$Create$(l, t, r, b, direction) {
    return TextBox_init_$Init$(l, t, r, b, direction, objectCreate(protoOf(TextBox)));
  }
  function Companion_64() {
    Companion_instance_64 = this;
  }
  protoOf(Companion_64).getArrayElement_o9x1bb_k$ = function (array, index) {
    var rect = new Float32Array(4);
    var direction = new Int32Array(1);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var rectPtr = $this$interopScope.toInterop_uum1m9_k$(rect);
        var directionPtr = $this$interopScope.toInterop_i7skn2_k$(direction);
        org_jetbrains_skia_paragraph_TextBox__1nGetArrayElement(array, index, rectPtr, directionPtr);
        $this$interopScope.fromInterop_s0mjrj_k$(rectPtr, rect);
        $this$interopScope.fromInterop_1rw4p0_k$(directionPtr, direction);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return TextBox_init_$Create$(rect[0], rect[1], rect[2], rect[3], direction[0]);
  };
  protoOf(Companion_64).getArraySize_2xuquk_k$ = function (array) {
    return org_jetbrains_skia_paragraph_TextBox__1nGetArraySize(array);
  };
  protoOf(Companion_64).disposeArray_hrrl5a_k$ = function (array) {
    return org_jetbrains_skia_paragraph_TextBox__1nDisposeArray(array);
  };
  var Companion_instance_64;
  function Companion_getInstance_65() {
    if (Companion_instance_64 == null)
      new Companion_64();
    return Companion_instance_64;
  }
  function TextBox(rect, direction) {
    Companion_getInstance_65();
    this.rect_1 = rect;
    this._direction_1 = direction;
  }
  protoOf(TextBox).get_rect_wotlbh_k$ = function () {
    return this.rect_1;
  };
  protoOf(TextBox).get__direction_abaqa1_k$ = function () {
    return this._direction_1;
  };
  protoOf(TextBox).get_direction_7ekune_k$ = function () {
    return this._direction_1;
  };
  protoOf(TextBox).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof TextBox))
      return false;
    if (!this.rect_1.equals(other.rect_1))
      return false;
    return this.get_direction_7ekune_k$().equals(other.get_direction_7ekune_k$());
  };
  protoOf(TextBox).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.rect_1.hashCode() | 0;
    result = imul(result, PRIME) + this.get_direction_7ekune_k$().hashCode() | 0;
    return result;
  };
  protoOf(TextBox).toString = function () {
    return 'TextBox(_rect=' + this.rect_1 + ', _direction=' + this.get_direction_7ekune_k$() + ')';
  };
  function TextIndent(firstLine, restLine) {
    firstLine = firstLine === VOID ? 0.0 : firstLine;
    restLine = restLine === VOID ? 0.0 : restLine;
    this.firstLine_1 = firstLine;
    this.restLine_1 = restLine;
  }
  protoOf(TextIndent).set_firstLine_hw17vl_k$ = function (_set____db54di) {
    this.firstLine_1 = _set____db54di;
  };
  protoOf(TextIndent).get_firstLine_apktuj_k$ = function () {
    return this.firstLine_1;
  };
  protoOf(TextIndent).set_restLine_nij53x_k$ = function (_set____db54di) {
    this.restLine_1 = _set____db54di;
  };
  protoOf(TextIndent).get_restLine_xn4q7l_k$ = function () {
    return this.restLine_1;
  };
  protoOf(TextIndent).component1_7eebsc_k$ = function () {
    return this.firstLine_1;
  };
  protoOf(TextIndent).component2_7eebsb_k$ = function () {
    return this.restLine_1;
  };
  protoOf(TextIndent).copy_4tzoad_k$ = function (firstLine, restLine) {
    return new TextIndent(firstLine, restLine);
  };
  protoOf(TextIndent).copy$default_m2pc5i_k$ = function (firstLine, restLine, $super) {
    firstLine = firstLine === VOID ? this.firstLine_1 : firstLine;
    restLine = restLine === VOID ? this.restLine_1 : restLine;
    return $super === VOID ? this.copy_4tzoad_k$(firstLine, restLine) : $super.copy_4tzoad_k$.call(this, firstLine, restLine);
  };
  protoOf(TextIndent).toString = function () {
    return 'TextIndent(firstLine=' + this.firstLine_1 + ', restLine=' + this.restLine_1 + ')';
  };
  protoOf(TextIndent).hashCode = function () {
    var result = getNumberHashCode(this.firstLine_1);
    result = imul(result, 31) + getNumberHashCode(this.restLine_1) | 0;
    return result;
  };
  protoOf(TextIndent).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof TextIndent))
      return false;
    var tmp0_other_with_cast = other instanceof TextIndent ? other : THROW_CCE();
    if (!equals(this.firstLine_1, tmp0_other_with_cast.firstLine_1))
      return false;
    if (!equals(this.restLine_1, tmp0_other_with_cast.restLine_1))
      return false;
    return true;
  };
  function Companion_65() {
    Companion_instance_65 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_65;
  function Companion_getInstance_66() {
    if (Companion_instance_65 == null)
      new Companion_65();
    return Companion_instance_65;
  }
  function TextStyle_init_$Init$($this) {
    TextStyle.call($this, org_jetbrains_skia_paragraph_TextStyle__1nMake());
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return $this;
  }
  function TextStyle_init_$Create$() {
    return TextStyle_init_$Init$(objectCreate(protoOf(TextStyle)));
  }
  function _FinalizerHolder_21() {
    _FinalizerHolder_instance_21 = this;
    this.PTR_1 = org_jetbrains_skia_paragraph_TextStyle__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_21).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_21;
  function _FinalizerHolder_getInstance_21() {
    if (_FinalizerHolder_instance_21 == null)
      new _FinalizerHolder_21();
    return _FinalizerHolder_instance_21;
  }
  function TextStyle$_get_decorationStyle_$lambda_66biud(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_paragraph_TextStyle__1nGetDecorationStyle(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function TextStyle$_get_shadows_$lambda_y7qsel(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_paragraph_TextStyle__1nGetShadows(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function TextStyle$_get_fontMetrics_$lambda_9osnwy(this$0) {
    return function ($this$fromInteropPointer, it) {
      org_jetbrains_skia_paragraph_TextStyle__1nGetFontMetrics(this$0.get__ptr_wohp4o_k$(), it);
      return Unit_getInstance();
    };
  }
  function TextStyle(ptr) {
    Companion_getInstance_66();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_21().PTR_1);
  }
  protoOf(TextStyle).nativeEquals_mxr6i0_k$ = function (other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nEquals(this.get__ptr_wohp4o_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(TextStyle).equals_rqztne_k$ = function (attribute, other) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nAttributeEquals(this.get__ptr_wohp4o_k$(), attribute.get_ordinal_ip24qg_k$(), getPtr(other));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(other);
    }
    return tmp;
  };
  protoOf(TextStyle).set_color_7ztbpe_k$ = function (value) {
    this.setColor_hp6yon_k$(value);
  };
  protoOf(TextStyle).get_color_ipu8u2_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetColor(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setColor_hp6yon_k$ = function (color) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetColor(this.get__ptr_wohp4o_k$(), color);
    return this;
  };
  protoOf(TextStyle).set_foreground_im42hg_k$ = function (value) {
    this.setForeground_q7otlj_k$(value);
  };
  protoOf(TextStyle).get_foreground_cn8q8c_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_paragraph_TextStyle__1nGetForeground(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : Paint_init_$Create$(ptr, true);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setForeground_q7otlj_k$ = function (paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_TextStyle__1nSetForeground(this.get__ptr_wohp4o_k$(), getPtr(paint));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(TextStyle).set_background_zaucsh_k$ = function (value) {
    this.setBackground_ge26cs_k$(value);
  };
  protoOf(TextStyle).get_background_stpfw7_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_paragraph_TextStyle__1nGetBackground(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : Paint_init_$Create$(ptr, true);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setBackground_ge26cs_k$ = function (paint) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_TextStyle__1nSetBackground(this.get__ptr_wohp4o_k$(), getPtr(paint));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(paint);
    }
    return tmp;
  };
  protoOf(TextStyle).set_decorationStyle_6iapf7_k$ = function (value) {
    this.setDecorationStyle_obsxr6_k$(value);
  };
  protoOf(TextStyle).get_decorationStyle_m2f5l4_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_56();
      tmp = fromInteropPointer_1(tmp_0, TextStyle$_get_decorationStyle_$lambda_66biud(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setDecorationStyle_obsxr6_k$ = function (d) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetDecorationStyle(this.get__ptr_wohp4o_k$(), d.get__underline_98yzti_k$(), d.get__overline_irurni_k$(), d.get__lineThrough_lgqf5x_k$(), d.get__gaps_inhqfn_k$(), d.get_color_ipu8u2_k$(), d.get__lineStyle_3niqqh_k$().get_ordinal_ip24qg_k$(), d.get_thicknessMultiplier_gmd0k4_k$());
    return this;
  };
  protoOf(TextStyle).set_fontStyle_vxzafm_k$ = function (value) {
    this.setFontStyle_jsp60t_k$(value);
  };
  protoOf(TextStyle).get_fontStyle_h4vaiv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = FontStyle_init_$Create$_0(org_jetbrains_skia_paragraph_TextStyle__1nGetFontStyle(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setFontStyle_jsp60t_k$ = function (s) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetFontStyle(this.get__ptr_wohp4o_k$(), s.get__value_a7m5q3_k$());
    return this;
  };
  protoOf(TextStyle).get_shadows_z8c8ru_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_63();
      var tmp_1 = org_jetbrains_skia_paragraph_TextStyle__1nGetShadowsCount(this.get__ptr_wohp4o_k$());
      tmp = fromInteropPointer_2(tmp_0, tmp_1, TextStyle$_get_shadows_$lambda_y7qsel(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).addShadow_pe2457_k$ = function (s) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nAddShadow(this.get__ptr_wohp4o_k$(), s.get_color_ipu8u2_k$(), s.get_offsetX_ocbsn8_k$(), s.get_offsetY_ocbsn7_k$(), s.get_blurSigma_ob1dwr_k$());
    return this;
  };
  protoOf(TextStyle).addShadows_ljdo2q_k$ = function (shadows) {
    var inductionVariable = 0;
    var last = shadows.length;
    while (inductionVariable < last) {
      var s = shadows[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      this.addShadow_pe2457_k$(s);
    }
    return this;
  };
  protoOf(TextStyle).clearShadows_xklvt2_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nClearShadows(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(TextStyle).get_fontFeatures_f59erv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var size = org_jetbrains_skia_paragraph_TextStyle__1nGetFontFeaturesSize(this.get__ptr_wohp4o_k$());
      // Inline function 'kotlin.let' call
      // Inline function 'org.jetbrains.skia.impl.withResult' call
      var result = new Int32Array(imul(size, 2));
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
          // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-fontFeatures>.<anonymous>' call
          org_jetbrains_skia_paragraph_TextStyle__1nGetFontFeatures(this.get__ptr_wohp4o_k$(), handle);
          $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      // Inline function 'kotlin.contracts.contract' call
      // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-fontFeatures>.<anonymous>' call
      tmp = Companion_getInstance_12().fromInteropEncodedBy2Ints_rkgp1j_k$(result);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).addFontFeature_7exvm_k$ = function (f) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_paragraph_TextStyle__1nAddFontFeature(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(f.get_tag_18ivnz_k$()), f.get_value_j01efc_k$());
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(TextStyle).addFontFeatures_lx2w9d_k$ = function (FontFeatures) {
    var inductionVariable = 0;
    var last = FontFeatures.length;
    while (inductionVariable < last) {
      var s = FontFeatures[inductionVariable];
      inductionVariable = inductionVariable + 1 | 0;
      this.addFontFeature_7exvm_k$(s);
    }
    return this;
  };
  protoOf(TextStyle).clearFontFeatures_pt1v2x_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nClearFontFeatures(this.get__ptr_wohp4o_k$());
    return this;
  };
  protoOf(TextStyle).set_fontSize_ywm6aj_k$ = function (value) {
    this.setFontSize_38bvay_k$(value);
  };
  protoOf(TextStyle).get_fontSize_pr9n47_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetFontSize(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setFontSize_38bvay_k$ = function (size) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetFontSize(this.get__ptr_wohp4o_k$(), size);
    return this;
  };
  protoOf(TextStyle).set_fontFamilies_1qji0k_k$ = function (value) {
    this.setFontFamilies_u7b6qa_k$(value);
  };
  protoOf(TextStyle).get_fontFamilies_2olayi_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'kotlin.collections.toTypedArray' call
      // Inline function 'org.jetbrains.skia.arrayDecoderScope' call
      var arrayDecoder = null;
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-fontFamilies>.<anonymous>' call
        arrayDecoder = new ArrayDecoder(org_jetbrains_skia_paragraph_TextStyle__1nGetFontFamilies(this.get__ptr_wohp4o_k$()), org_jetbrains_skia_ManagedString__1nGetFinalizer());
        // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-fontFamilies>.<anonymous>' call
        var arrayDecoder_0 = arrayDecoder;
        // Inline function 'kotlin.collections.map' call
        var this_0 = until(0, arrayDecoder_0.get_size_woubt6_k$());
        // Inline function 'kotlin.collections.mapTo' call
        var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
        var tmp0_iterator = this_0.iterator_jk1svi_k$();
        while (tmp0_iterator.hasNext_bitz1p_k$()) {
          var item = tmp0_iterator.next_20eer_k$();
          // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-fontFamilies>.<anonymous>.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.withStringResult' call
          var pointer = arrayDecoder_0.release_fo34vl_k$(item);
          // Inline function 'org.jetbrains.skia.impl.use' call
          var this_1 = new ManagedString(pointer);
          var tmp_1;
          try {
            // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
            tmp_1 = this_1.toString();
          }finally {
            this_1.close_yn9xrc_k$();
          }
          destination.add_utx5q5_k$(tmp_1);
        }
        tmp_0 = destination;
      }finally {
        var tmp0_safe_receiver = arrayDecoder;
        if (tmp0_safe_receiver == null)
          null;
        else {
          tmp0_safe_receiver.dispose_3nnxhr_k$();
        }
      }
      tmp = copyToArray(tmp_0);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setFontFamily_q5xum3_k$ = function (family) {
    // Inline function 'kotlin.arrayOf' call
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp$ret$2 = [family];
    return this.setFontFamilies_u7b6qa_k$(tmp$ret$2);
  };
  protoOf(TextStyle).setFontFamilies_u7b6qa_k$ = function (families) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var tmp = this.get__ptr_wohp4o_k$();
        var tmp_0 = $this$interopScope.toInterop_2ejn5p_k$(families);
        var tmp1_elvis_lhs = families == null ? null : families.length;
        org_jetbrains_skia_paragraph_TextStyle__1nSetFontFamilies(tmp, tmp_0, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(TextStyle).set_height_rov7zj_k$ = function (value) {
    this.setHeight_4xoohw_k$(value);
  };
  protoOf(TextStyle).get_height_e7t92o_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var height = org_jetbrains_skia_paragraph_TextStyle__1nGetHeight(this.get__ptr_wohp4o_k$());
      tmp = isNaN_0(height) ? null : height;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setHeight_4xoohw_k$ = function (height) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    if (height == null) {
      org_jetbrains_skia_paragraph_TextStyle__1nSetHeight(this.get__ptr_wohp4o_k$(), false, 0.0);
    } else {
      org_jetbrains_skia_paragraph_TextStyle__1nSetHeight(this.get__ptr_wohp4o_k$(), true, height);
    }
    return this;
  };
  protoOf(TextStyle).set_isHalfLeading_cjht1z_k$ = function (value) {
    this.setHalfLeading_10vvhw_k$(value);
  };
  protoOf(TextStyle).get_isHalfLeading_333yxs_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetHalfLeading(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setHalfLeading_10vvhw_k$ = function (value) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetHalfLeading(this.get__ptr_wohp4o_k$(), value);
    return this;
  };
  protoOf(TextStyle).set_letterSpacing_k6mf0o_k$ = function (value) {
    this.setLetterSpacing_ezn9gd_k$(value);
  };
  protoOf(TextStyle).get_letterSpacing_xp4v84_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetLetterSpacing(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setLetterSpacing_ezn9gd_k$ = function (letterSpacing) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetLetterSpacing(this.get__ptr_wohp4o_k$(), letterSpacing);
    return this;
  };
  protoOf(TextStyle).set_baselineShift_pi9thk_k$ = function (value) {
    this.setBaselineShift_3y3bz7_k$(value);
  };
  protoOf(TextStyle).get_baselineShift_3cidck_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetBaselineShift(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setBaselineShift_3y3bz7_k$ = function (baselineShift) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetBaselineShift(this.get__ptr_wohp4o_k$(), baselineShift);
    return this;
  };
  protoOf(TextStyle).set_wordSpacing_4zhr9w_k$ = function (value) {
    this.setWordSpacing_t4mvwf_k$(value);
  };
  protoOf(TextStyle).get_wordSpacing_ak2jyo_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nGetWordSpacing(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setWordSpacing_t4mvwf_k$ = function (wordSpacing) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetWordSpacing(this.get__ptr_wohp4o_k$(), wordSpacing);
    return this;
  };
  protoOf(TextStyle).set_typeface_94v5d2_k$ = function (value) {
    this.setTypeface_25b4vv_k$(value);
  };
  protoOf(TextStyle).get_typeface_s1tqao_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var ptr = org_jetbrains_skia_paragraph_TextStyle__1nGetTypeface(this.get__ptr_wohp4o_k$());
      tmp = ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$() ? null : new Typeface(ptr);
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setTypeface_25b4vv_k$ = function (typeface) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      org_jetbrains_skia_paragraph_TextStyle__1nSetTypeface(this.get__ptr_wohp4o_k$(), getPtr(typeface));
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(typeface);
    }
    return tmp;
  };
  protoOf(TextStyle).set_locale_w9f5al_k$ = function (value) {
    this.setLocale_f10lhx_k$(value);
  };
  protoOf(TextStyle).get_locale_g9dqar_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.withStringResult' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      // Inline function 'org.jetbrains.skia.paragraph.TextStyle.<get-locale>.<anonymous>' call
      var tmp$ret$0 = org_jetbrains_skia_paragraph_TextStyle__1nGetLocale(this.get__ptr_wohp4o_k$());
      var this_0 = new ManagedString(tmp$ret$0);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.impl.withStringResult.<anonymous>' call
        tmp_0 = this_0.toString();
      }finally {
        this_0.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setLocale_f10lhx_k$ = function (locale) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        org_jetbrains_skia_paragraph_TextStyle__1nSetLocale(this.get__ptr_wohp4o_k$(), $this$interopScope.toInterop_ok8jph_k$(locale));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return this;
  };
  protoOf(TextStyle).set_baselineMode_mbrvw1_k$ = function (value) {
    this.setBaselineMode_yl482k_k$(value);
  };
  protoOf(TextStyle).get_baselineMode_4h6ucv_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = values_28()[org_jetbrains_skia_paragraph_TextStyle__1nGetBaselineMode(this.get__ptr_wohp4o_k$())];
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setBaselineMode_yl482k_k$ = function (baseline) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetBaselineMode(this.get__ptr_wohp4o_k$(), baseline.get_ordinal_ip24qg_k$());
    return this;
  };
  protoOf(TextStyle).get_fontMetrics_c0s645_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      var tmp_0 = Companion_getInstance_13();
      tmp = fromInteropPointer(tmp_0, TextStyle$_get_fontMetrics_$lambda_9osnwy(this));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).get_isPlaceholder_en29fk_k$ = function () {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = org_jetbrains_skia_paragraph_TextStyle__1nIsPlaceholder(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(TextStyle).setPlaceholder_tzv4nj_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    org_jetbrains_skia_paragraph_TextStyle__1nSetPlaceholder(this.get__ptr_wohp4o_k$());
    return this;
  };
  var TextStyleAttribute_NONE_instance;
  var TextStyleAttribute_ALL_ATTRIBUTES_instance;
  var TextStyleAttribute_FONT_instance;
  var TextStyleAttribute_FOREGROUND_instance;
  var TextStyleAttribute_BACKGROUND_instance;
  var TextStyleAttribute_SHADOW_instance;
  var TextStyleAttribute_DECORATIONS_instance;
  var TextStyleAttribute_LETTER_SPACING_instance;
  var TextStyleAttribute_WORD_SPACING_instance;
  var TextStyleAttribute_FONT_EXACT_instance;
  function values_35() {
    return [TextStyleAttribute_NONE_getInstance(), TextStyleAttribute_ALL_ATTRIBUTES_getInstance(), TextStyleAttribute_FONT_getInstance(), TextStyleAttribute_FOREGROUND_getInstance(), TextStyleAttribute_BACKGROUND_getInstance(), TextStyleAttribute_SHADOW_getInstance(), TextStyleAttribute_DECORATIONS_getInstance(), TextStyleAttribute_LETTER_SPACING_getInstance(), TextStyleAttribute_WORD_SPACING_getInstance(), TextStyleAttribute_FONT_EXACT_getInstance()];
  }
  function valueOf_35(value) {
    switch (value) {
      case 'NONE':
        return TextStyleAttribute_NONE_getInstance();
      case 'ALL_ATTRIBUTES':
        return TextStyleAttribute_ALL_ATTRIBUTES_getInstance();
      case 'FONT':
        return TextStyleAttribute_FONT_getInstance();
      case 'FOREGROUND':
        return TextStyleAttribute_FOREGROUND_getInstance();
      case 'BACKGROUND':
        return TextStyleAttribute_BACKGROUND_getInstance();
      case 'SHADOW':
        return TextStyleAttribute_SHADOW_getInstance();
      case 'DECORATIONS':
        return TextStyleAttribute_DECORATIONS_getInstance();
      case 'LETTER_SPACING':
        return TextStyleAttribute_LETTER_SPACING_getInstance();
      case 'WORD_SPACING':
        return TextStyleAttribute_WORD_SPACING_getInstance();
      case 'FONT_EXACT':
        return TextStyleAttribute_FONT_EXACT_getInstance();
      default:
        TextStyleAttribute_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var TextStyleAttribute_entriesInitialized;
  function TextStyleAttribute_initEntries() {
    if (TextStyleAttribute_entriesInitialized)
      return Unit_getInstance();
    TextStyleAttribute_entriesInitialized = true;
    TextStyleAttribute_NONE_instance = new TextStyleAttribute('NONE', 0);
    TextStyleAttribute_ALL_ATTRIBUTES_instance = new TextStyleAttribute('ALL_ATTRIBUTES', 1);
    TextStyleAttribute_FONT_instance = new TextStyleAttribute('FONT', 2);
    TextStyleAttribute_FOREGROUND_instance = new TextStyleAttribute('FOREGROUND', 3);
    TextStyleAttribute_BACKGROUND_instance = new TextStyleAttribute('BACKGROUND', 4);
    TextStyleAttribute_SHADOW_instance = new TextStyleAttribute('SHADOW', 5);
    TextStyleAttribute_DECORATIONS_instance = new TextStyleAttribute('DECORATIONS', 6);
    TextStyleAttribute_LETTER_SPACING_instance = new TextStyleAttribute('LETTER_SPACING', 7);
    TextStyleAttribute_WORD_SPACING_instance = new TextStyleAttribute('WORD_SPACING', 8);
    TextStyleAttribute_FONT_EXACT_instance = new TextStyleAttribute('FONT_EXACT', 9);
  }
  function TextStyleAttribute(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function TextStyleAttribute_NONE_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_NONE_instance;
  }
  function TextStyleAttribute_ALL_ATTRIBUTES_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_ALL_ATTRIBUTES_instance;
  }
  function TextStyleAttribute_FONT_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_FONT_instance;
  }
  function TextStyleAttribute_FOREGROUND_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_FOREGROUND_instance;
  }
  function TextStyleAttribute_BACKGROUND_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_BACKGROUND_instance;
  }
  function TextStyleAttribute_SHADOW_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_SHADOW_instance;
  }
  function TextStyleAttribute_DECORATIONS_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_DECORATIONS_instance;
  }
  function TextStyleAttribute_LETTER_SPACING_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_LETTER_SPACING_instance;
  }
  function TextStyleAttribute_WORD_SPACING_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_WORD_SPACING_instance;
  }
  function TextStyleAttribute_FONT_EXACT_getInstance() {
    TextStyleAttribute_initEntries();
    return TextStyleAttribute_FONT_EXACT_instance;
  }
  function Companion_66() {
    Companion_instance_66 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_66;
  function Companion_getInstance_67() {
    if (Companion_instance_66 == null)
      new Companion_66();
    return Companion_instance_66;
  }
  function TypefaceFontProvider() {
    Companion_getInstance_67();
    FontMgr_init_$Init$(org_jetbrains_skia_paragraph_TypefaceFontProvider__1nMake(), this);
    Stats_getInstance().onNativeCall_s2f4hw_k$();
  }
  protoOf(TypefaceFontProvider).registerTypeface_y1keh7_k$ = function (typeface, alias) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          org_jetbrains_skia_paragraph_TypefaceFontProvider__1nRegisterTypeface(this.get__ptr_wohp4o_k$(), getPtr(typeface), $this$interopScope.toInterop_ok8jph_k$(alias));
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
      tmp = this;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(typeface);
    }
    return tmp;
  };
  protoOf(TypefaceFontProvider).registerTypeface$default_ugxiks_k$ = function (typeface, alias, $super) {
    alias = alias === VOID ? null : alias;
    return $super === VOID ? this.registerTypeface_y1keh7_k$(typeface, alias) : $super.registerTypeface_y1keh7_k$.call(this, typeface, alias);
  };
  function BidiRun(end, level) {
    this.end_1 = end;
    this.level_1 = level;
  }
  protoOf(BidiRun).get_end_18j6ha_k$ = function () {
    return this.end_1;
  };
  protoOf(BidiRun).get_level_ium7h7_k$ = function () {
    return this.level_1;
  };
  protoOf(BidiRun).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof BidiRun))
      return false;
    if (!(this.end_1 === other.end_1))
      return false;
    return this.level_1 === other.level_1;
  };
  protoOf(BidiRun).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.end_1 | 0;
    result = imul(result, PRIME) + this.level_1 | 0;
    return result;
  };
  protoOf(BidiRun).toString = function () {
    return 'BidiRun(_end=' + this.end_1 + ', _level=' + this.level_1 + ')';
  };
  function Companion_67() {
    Companion_instance_67 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_67;
  function Companion_getInstance_68() {
    if (Companion_instance_67 == null)
      new Companion_67();
    return Companion_instance_67;
  }
  function _get__font__kxc331($this) {
    return $this._font_1;
  }
  function _get__fontMgr__w1p6o1($this) {
    return $this._fontMgr_1;
  }
  function FontMgrRunIterator_init_$Init$(text, font, opts, $this) {
    FontMgrRunIterator.call($this, ManagedString_init_$Create$(text), true, font, opts);
    return $this;
  }
  function FontMgrRunIterator_init_$Create$(text, font, opts) {
    return FontMgrRunIterator_init_$Init$(text, font, opts, objectCreate(protoOf(FontMgrRunIterator)));
  }
  function FontMgrRunIterator_init_$Init$_0(text, font, $this) {
    FontMgrRunIterator.call($this, ManagedString_init_$Create$(text), true, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$());
    return $this;
  }
  function FontMgrRunIterator_init_$Create$_0(text, font) {
    return FontMgrRunIterator_init_$Init$_0(text, font, objectCreate(protoOf(FontMgrRunIterator)));
  }
  function FontMgrRunIterator(text, manageText, font, opts) {
    Companion_getInstance_68();
    ManagedRunIterator.call(this, makeHbIcuScriptRunIterator(text, font, opts), text, manageText);
    this._font_1 = font;
    this._fontMgr_1 = opts.get_fontMgr_9zv5i8_k$();
  }
  protoOf(FontMgrRunIterator).next_20eer_k$ = function () {
    var tmp;
    try {
      org_jetbrains_skia_shaper_ManagedRunIterator__1nConsume(this.get__ptr_wohp4o_k$());
      tmp = new FontRun(this._getEndOfCurrentRun_ekavtf_k$(), Font_init_$Create$(org_jetbrains_skia_shaper_FontMgrRunIterator__1nGetCurrentFont(this.get__ptr_wohp4o_k$())));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(FontMgrRunIterator).remove_ldkf9o_k$ = function () {
    // Inline function 'kotlin.TODO' call
    var reason = 'Not yet implemented';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  function makeHbIcuScriptRunIterator(text, font, opts) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_shaper_FontMgrRunIterator__1nMake(getPtr(text), getPtr(font), getPtr(opts.get_fontMgr_9zv5i8_k$()), opts._booleanPropsToInt_ers7fx_k$());
    }finally {
      reachabilityBarrier(text);
      reachabilityBarrier(font);
      reachabilityBarrier(opts.get_fontMgr_9zv5i8_k$());
    }
    return tmp;
  }
  function _getFontPtr($this) {
    var tmp;
    try {
      tmp = getPtr($this.font_1);
    }finally {
      reachabilityBarrier($this.font_1);
    }
    return tmp;
  }
  function FontRun(end, font) {
    this.end_1 = end;
    this.font_1 = font;
  }
  protoOf(FontRun).get_end_18j6ha_k$ = function () {
    return this.end_1;
  };
  protoOf(FontRun).get_font_wom55k_k$ = function () {
    return this.font_1;
  };
  protoOf(FontRun).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof FontRun))
      return false;
    if (!(this.end_1 === other.end_1))
      return false;
    return this.font_1.equals(other.font_1);
  };
  protoOf(FontRun).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.end_1 | 0;
    result = imul(result, PRIME) + this.font_1.hashCode() | 0;
    return result;
  };
  protoOf(FontRun).toString = function () {
    return 'FontRun(_end=' + this.end_1 + ', _font=' + this.font_1 + ')';
  };
  function Companion_68() {
    Companion_instance_68 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_68;
  function Companion_getInstance_69() {
    if (Companion_instance_68 == null)
      new Companion_68();
    return Companion_instance_68;
  }
  function HbIcuScriptRunIterator_init_$Init$(text, $this) {
    HbIcuScriptRunIterator.call($this, ManagedString_init_$Create$(text), true);
    return $this;
  }
  function HbIcuScriptRunIterator_init_$Create$(text) {
    return HbIcuScriptRunIterator_init_$Init$(text, objectCreate(protoOf(HbIcuScriptRunIterator)));
  }
  function HbIcuScriptRunIterator(text, manageText) {
    Companion_getInstance_69();
    ManagedRunIterator.call(this, makeHbIcuScriptRunIterator_0(text), text, manageText);
  }
  protoOf(HbIcuScriptRunIterator).next_20eer_k$ = function () {
    var tmp;
    try {
      org_jetbrains_skia_shaper_ManagedRunIterator__1nConsume(this.get__ptr_wohp4o_k$());
      tmp = new ScriptRun(this._getEndOfCurrentRun_ekavtf_k$(), org_jetbrains_skia_shaper_HbIcuScriptRunIterator__1nGetCurrentScriptTag(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(HbIcuScriptRunIterator).remove_ldkf9o_k$ = function () {
    // Inline function 'kotlin.TODO' call
    var reason = 'Not yet implemented';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  function makeHbIcuScriptRunIterator_0(text) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_shaper_HbIcuScriptRunIterator__1nMake(getPtr(text));
    }finally {
      reachabilityBarrier(text);
    }
    return tmp;
  }
  function Companion_69() {
    Companion_instance_69 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_69;
  function Companion_getInstance_70() {
    if (Companion_instance_69 == null)
      new Companion_69();
    return Companion_instance_69;
  }
  function IcuBidiRunIterator_init_$Init$(text, bidiLevel, $this) {
    IcuBidiRunIterator.call($this, ManagedString_init_$Create$(text), true, bidiLevel);
    return $this;
  }
  function IcuBidiRunIterator_init_$Create$(text, bidiLevel) {
    return IcuBidiRunIterator_init_$Init$(text, bidiLevel, objectCreate(protoOf(IcuBidiRunIterator)));
  }
  function IcuBidiRunIterator(text, manageText, bidiLevel) {
    Companion_getInstance_70();
    ManagedRunIterator.call(this, makeIcuBidiRunIterator(text, bidiLevel), text, manageText);
  }
  protoOf(IcuBidiRunIterator).next_20eer_k$ = function () {
    var tmp;
    try {
      org_jetbrains_skia_shaper_ManagedRunIterator__1nConsume(this.get__ptr_wohp4o_k$());
      tmp = new BidiRun(this._getEndOfCurrentRun_ekavtf_k$(), org_jetbrains_skia_shaper_IcuBidiRunIterator__1nGetCurrentLevel(this.get__ptr_wohp4o_k$()));
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  protoOf(IcuBidiRunIterator).remove_ldkf9o_k$ = function () {
    // Inline function 'kotlin.TODO' call
    var reason = 'Not yet implemented';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  function makeIcuBidiRunIterator(text, bidiLevel) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var tmp;
    try {
      tmp = org_jetbrains_skia_shaper_IcuBidiRunIterator__1nMake(getPtr(text), bidiLevel);
    }finally {
      reachabilityBarrier(text);
    }
    return tmp;
  }
  function LanguageRun(end, language) {
    this.end_1 = end;
    this.language_1 = language;
  }
  protoOf(LanguageRun).get_end_18j6ha_k$ = function () {
    return this.end_1;
  };
  protoOf(LanguageRun).get_language_cjhhk1_k$ = function () {
    return this.language_1;
  };
  protoOf(LanguageRun).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof LanguageRun))
      return false;
    if (!(this.end_1 === other.end_1))
      return false;
    return this.language_1 === other.language_1;
  };
  protoOf(LanguageRun).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.end_1 | 0;
    result = imul(result, PRIME) + getStringHashCode(this.language_1) | 0;
    return result;
  };
  protoOf(LanguageRun).toString = function () {
    return 'LanguageRun(_end=' + this.end_1 + ', _language=' + this.language_1 + ')';
  };
  function Companion_70() {
    Companion_instance_70 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  var Companion_instance_70;
  function Companion_getInstance_71() {
    if (Companion_instance_70 == null)
      new Companion_70();
    return Companion_instance_70;
  }
  function _FinalizerHolder_22() {
    _FinalizerHolder_instance_22 = this;
    this.PTR_1 = org_jetbrains_skia_shaper_ManagedRunIterator__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_22).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_22;
  function _FinalizerHolder_getInstance_22() {
    if (_FinalizerHolder_instance_22 == null)
      new _FinalizerHolder_22();
    return _FinalizerHolder_instance_22;
  }
  function ManagedRunIterator(ptr, text, manageText) {
    Companion_getInstance_71();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_22().PTR_1);
    this._text_1 = manageText ? text : null;
  }
  protoOf(ManagedRunIterator).get__text_inq4f7_k$ = function () {
    return this._text_1;
  };
  protoOf(ManagedRunIterator).close_yn9xrc_k$ = function () {
    protoOf(Managed).close_yn9xrc_k$.call(this);
    var tmp0_safe_receiver = this._text_1;
    if (tmp0_safe_receiver == null)
      null;
    else {
      tmp0_safe_receiver.close_yn9xrc_k$();
    }
  };
  protoOf(ManagedRunIterator)._getEndOfCurrentRun_ekavtf_k$ = function () {
    var tmp;
    try {
      tmp = org_jetbrains_skia_shaper_ManagedRunIterator__1nGetEndOfCurrentRun(this.get__ptr_wohp4o_k$(), getPtr(this._text_1));
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(this._text_1);
    }
    return tmp;
  };
  protoOf(ManagedRunIterator).hasNext_bitz1p_k$ = function () {
    var tmp;
    try {
      tmp = !org_jetbrains_skia_shaper_ManagedRunIterator__1nIsAtEnd(this.get__ptr_wohp4o_k$());
    }finally {
      reachabilityBarrier(this);
    }
    return tmp;
  };
  function RunHandler() {
  }
  function RunInfo(_fontPtr, bidiLevel, advanceX, advanceY, glyphCount, rangeBegin, rangeSize) {
    this._fontPtr_1 = _fontPtr;
    this.bidiLevel_1 = bidiLevel;
    this.advanceX_1 = advanceX;
    this.advanceY_1 = advanceY;
    this.glyphCount_1 = glyphCount;
    this.rangeBegin_1 = rangeBegin;
    this.rangeSize_1 = rangeSize;
  }
  protoOf(RunInfo).set__fontPtr_z2z779_k$ = function (_set____db54di) {
    this._fontPtr_1 = _set____db54di;
  };
  protoOf(RunInfo).get__fontPtr_42btxz_k$ = function () {
    return this._fontPtr_1;
  };
  protoOf(RunInfo).get_bidiLevel_9ierpt_k$ = function () {
    return this.bidiLevel_1;
  };
  protoOf(RunInfo).get_advanceX_rc74kf_k$ = function () {
    return this.advanceX_1;
  };
  protoOf(RunInfo).get_advanceY_rc74kg_k$ = function () {
    return this.advanceY_1;
  };
  protoOf(RunInfo).get_glyphCount_z69tmc_k$ = function () {
    return this.glyphCount_1;
  };
  protoOf(RunInfo).get_rangeBegin_kdzugl_k$ = function () {
    return this.rangeBegin_1;
  };
  protoOf(RunInfo).get_rangeSize_3wzrnv_k$ = function () {
    return this.rangeSize_1;
  };
  protoOf(RunInfo).get_advance_hg5gmf_k$ = function () {
    return new Point(this.advanceX_1, this.advanceY_1);
  };
  protoOf(RunInfo).get_rangeEnd_rmeme1_k$ = function () {
    return this.rangeBegin_1 + this.rangeSize_1 | 0;
  };
  protoOf(RunInfo).get_font_wom55k_k$ = function () {
    // Inline function 'kotlin.check' call
    // Inline function 'kotlin.contracts.contract' call
    if (!!(this._fontPtr_1 === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())) {
      // Inline function 'org.jetbrains.skia.shaper.RunInfo.<get-font>.<anonymous>' call
      var message = 'getFont() is only valid inside RunHandler callbacks';
      throw IllegalStateException_init_$Create$(toString(message));
    }
    return Companion_getInstance_11().makeClone_j6bnh3_k$(this._fontPtr_1);
  };
  protoOf(RunInfo).setFontPtr_3l4zff_k$ = function (_fontPtr) {
    this._fontPtr_1 = _fontPtr;
    return this;
  };
  protoOf(RunInfo).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof RunInfo))
      return false;
    if (!(this._fontPtr_1 === other._fontPtr_1))
      return false;
    if (!(this.bidiLevel_1 === other.bidiLevel_1))
      return false;
    if (!(compareTo(this.advanceX_1, other.advanceX_1) === 0))
      return false;
    if (!(compareTo(this.advanceY_1, other.advanceY_1) === 0))
      return false;
    if (!(this.glyphCount_1 === other.glyphCount_1))
      return false;
    if (!(this.rangeBegin_1 === other.rangeBegin_1))
      return false;
    return this.rangeSize_1 === other.rangeSize_1;
  };
  protoOf(RunInfo).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.bidiLevel_1 | 0;
    result = imul(result, PRIME) + toBits(this.advanceX_1) | 0;
    result = imul(result, PRIME) + toBits(this.advanceY_1) | 0;
    result = imul(result, PRIME) + this.rangeBegin_1 | 0;
    result = imul(result, PRIME) + this.rangeSize_1 | 0;
    return result;
  };
  protoOf(RunInfo).toString = function () {
    return 'RunInfo(_fontPtr=' + this._fontPtr_1 + ', _bidiLevel=' + this.bidiLevel_1 + ', _advanceX=' + this.advanceX_1 + ', _advanceY=' + this.advanceY_1 + ', _glyphCount=' + this.glyphCount_1 + ', _rangeBegin=' + this.rangeBegin_1 + ', _rangeSize=' + this.rangeSize_1 + ')';
  };
  function ScriptRun_init_$Init$(end, script, $this) {
    ScriptRun.call($this, end, Companion_getInstance_20().fromString_g5hge7_k$(script));
    return $this;
  }
  function ScriptRun_init_$Create$(end, script) {
    return ScriptRun_init_$Init$(end, script, objectCreate(protoOf(ScriptRun)));
  }
  function ScriptRun(end, scriptTag) {
    this.end_1 = end;
    this.scriptTag_1 = scriptTag;
  }
  protoOf(ScriptRun).get_end_18j6ha_k$ = function () {
    return this.end_1;
  };
  protoOf(ScriptRun).get_scriptTag_cnbuau_k$ = function () {
    return this.scriptTag_1;
  };
  protoOf(ScriptRun).get_script_jedas4_k$ = function () {
    return Companion_getInstance_20().toString_w4mr8s_k$(this.scriptTag_1);
  };
  protoOf(ScriptRun).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ScriptRun))
      return false;
    if (!(this.end_1 === other.end_1))
      return false;
    return this.scriptTag_1 === other.scriptTag_1;
  };
  protoOf(ScriptRun).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + this.end_1 | 0;
    result = imul(result, PRIME) + this.scriptTag_1 | 0;
    return result;
  };
  protoOf(ScriptRun).toString = function () {
    return 'ScriptRun(_end=' + this.end_1 + ', _scriptTag=' + this.scriptTag_1 + ')';
  };
  function Companion_71() {
    Companion_instance_71 = this;
    Companion_getInstance_75().staticLoad_sw9wh0_k$();
  }
  protoOf(Companion_71).makePrimitive_8j41ax_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return new Shaper(org_jetbrains_skia_shaper_Shaper__1nMakePrimitive());
  };
  protoOf(Companion_71).makeShaperDrivenWrapper_qp7csw_k$ = function () {
    return this.makeShaperDrivenWrapper_bigtfw_k$(null);
  };
  protoOf(Companion_71).makeShaperDrivenWrapper_bigtfw_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shaper(org_jetbrains_skia_shaper_Shaper__1nMakeShaperDrivenWrapper(getPtr(fontMgr)));
    }finally {
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(Companion_71).makeShapeThenWrap_28qre_k$ = function () {
    return this.makeShapeThenWrap_jrc2zi_k$(null);
  };
  protoOf(Companion_71).makeShapeThenWrap_jrc2zi_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shaper(org_jetbrains_skia_shaper_Shaper__1nMakeShapeThenWrap(getPtr(fontMgr)));
    }finally {
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(Companion_71).makeShapeDontWrapOrReorder_8z25ai_k$ = function () {
    return this.makeShapeDontWrapOrReorder_4jkdq_k$(null);
  };
  protoOf(Companion_71).makeShapeDontWrapOrReorder_4jkdq_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shaper(org_jetbrains_skia_shaper_Shaper__1nMakeShapeDontWrapOrReorder(getPtr(fontMgr)));
    }finally {
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  protoOf(Companion_71).makeCoreText_e5e1ru_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    var ptr = org_jetbrains_skia_shaper_Shaper__1nMakeCoreText();
    if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
      throw UnsupportedOperationException_init_$Create$('CoreText not available');
    return new Shaper(ptr);
  };
  protoOf(Companion_71).make_1zo4u_k$ = function () {
    return this.make_4ufeaa_k$(null);
  };
  protoOf(Companion_71).make_4ufeaa_k$ = function (fontMgr) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      tmp = new Shaper(org_jetbrains_skia_shaper_Shaper__1nMake(getPtr(fontMgr)));
    }finally {
      reachabilityBarrier(fontMgr);
    }
    return tmp;
  };
  var Companion_instance_71;
  function Companion_getInstance_72() {
    if (Companion_instance_71 == null)
      new Companion_71();
    return Companion_instance_71;
  }
  function _FinalizerHolder_23() {
    _FinalizerHolder_instance_23 = this;
    this.PTR_1 = org_jetbrains_skia_shaper_Shaper__1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_23).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_23;
  function _FinalizerHolder_getInstance_23() {
    if (_FinalizerHolder_instance_23 == null)
      new _FinalizerHolder_23();
    return _FinalizerHolder_instance_23;
  }
  function Shaper(ptr) {
    Companion_getInstance_72();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_23().PTR_1);
  }
  protoOf(Shaper).shape_8wojcl_k$ = function (text, font) {
    return this.shape_cpcgx1_k$(text, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$(), FloatCompanionObject_getInstance().get_POSITIVE_INFINITY_yq30fv_k$(), Companion_getInstance_42().get_ZERO_wodlgx_k$());
  };
  protoOf(Shaper).shape_yu4jub_k$ = function (text, font, width) {
    return this.shape_cpcgx1_k$(text, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$(), width, Companion_getInstance_42().get_ZERO_wodlgx_k$());
  };
  protoOf(Shaper).shape_nbntqc_k$ = function (text, font, width, offset) {
    return this.shape_cpcgx1_k$(text, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$(), width, offset);
  };
  protoOf(Shaper).shape_cpcgx1_k$ = function (text, font, opts, width, offset) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.use' call
      var this_0 = ManagedString_init_$Create$(text);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.shaper.Shaper.shape.<anonymous>' call
        var tmp$ret$1;
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.shaper.Shaper.shape.<anonymous>.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var tmp_1 = this.get__ptr_wohp4o_k$();
            var tmp_2 = this_0.get__ptr_wohp4o_k$();
            var tmp_3 = getPtr(font);
            var tmp0_safe_receiver = opts.get_features_yf4h6u_k$();
            var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.length;
            tmp$ret$1 = org_jetbrains_skia_shaper_Shaper__1nShapeBlob(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, Companion_getInstance_12().arrayOfFontFeaturesToInterop_2tlmgk_k$($this$interopScope, opts.get_features_yf4h6u_k$()), opts._booleanPropsToInt_ers7fx_k$(), width, offset.get_x_1mhr67_k$(), offset.get_y_1mhr68_k$());
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = tmp$ret$1;
      }finally {
        this_0.close_yn9xrc_k$();
      }
      var ptr = tmp_0;
      tmp = Companion_getInstance_77().get_NullPointer_8qbg7n_k$() === ptr ? null : new TextBlob(ptr);
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(font);
    }
    return tmp;
  };
  protoOf(Shaper).shape_uu8jv6_k$ = function (text, font, opts, width, runHandler) {
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = ManagedString_init_$Create$(text);
    var tmp;
    try {
      // Inline function 'org.jetbrains.skia.shaper.Shaper.shape.<anonymous>' call
      // Inline function 'org.jetbrains.skia.impl.use' call
      var this_1 = new FontMgrRunIterator(this_0, false, font, opts);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.shaper.Shaper.shape.<anonymous>.<anonymous>' call
        // Inline function 'org.jetbrains.skia.impl.use' call
        var this_2 = new IcuBidiRunIterator(this_0, false, opts.get_isLeftToRight_7rnjjb_k$() ? -2 : -1);
        var tmp_1;
        try {
          // Inline function 'org.jetbrains.skia.shaper.Shaper.shape.<anonymous>.<anonymous>.<anonymous>' call
          // Inline function 'org.jetbrains.skia.impl.use' call
          var this_3 = new HbIcuScriptRunIterator(this_0, false);
          var tmp_2;
          try {
            var langIter = new TrivialLanguageRunIterator(text, defaultLanguageTag());
            return this.shape_xdhkad_k$(this_0, this_1, this_2, this_3, langIter, opts, width, runHandler);
          }finally {
            this_3.close_yn9xrc_k$();
          }
        }finally {
          this_2.close_yn9xrc_k$();
        }
      }finally {
        this_1.close_yn9xrc_k$();
      }
    }finally {
      this_0.close_yn9xrc_k$();
    }
  };
  protoOf(Shaper).shape_ozbeie_k$ = function (text, fontIter, bidiIter, scriptIter, langIter, opts, width, runHandler) {
    // Inline function 'org.jetbrains.skia.impl.use' call
    var this_0 = ManagedString_init_$Create$(text);
    var tmp;
    try {
      return this.shape_xdhkad_k$(this_0, fontIter, bidiIter, scriptIter, langIter, opts, width, runHandler);
    }finally {
      this_0.close_yn9xrc_k$();
    }
  };
  protoOf(Shaper).shape_xdhkad_k$ = function (textUtf8, fontIter, bidiIter, scriptIter, langIter, opts, width, runHandler) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    doShape(this, textUtf8, fontIter, bidiIter, scriptIter, langIter, opts, width, runHandler);
    return this;
  };
  protoOf(Shaper).shapeLine_obeq7i_k$ = function (text, font, opts) {
    var tmp;
    try {
      Stats_getInstance().onNativeCall_s2f4hw_k$();
      // Inline function 'org.jetbrains.skia.impl.use' call
      var this_0 = ManagedString_init_$Create$(text);
      var tmp_0;
      try {
        // Inline function 'org.jetbrains.skia.shaper.Shaper.shapeLine.<anonymous>' call
        var tmp$ret$1;
        $l$block: {
          // Inline function 'org.jetbrains.skia.impl.interopScope' call
          try {
            var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
            // Inline function 'org.jetbrains.skia.shaper.Shaper.shapeLine.<anonymous>.<anonymous>' call
            var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
            var tmp_1 = this.get__ptr_wohp4o_k$();
            var tmp_2 = this_0.get__ptr_wohp4o_k$();
            var tmp_3 = getPtr(font);
            var tmp0_safe_receiver = opts.get_features_yf4h6u_k$();
            var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.length;
            tmp$ret$1 = new TextLine(org_jetbrains_skia_shaper_Shaper__1nShapeLine(tmp_1, tmp_2, tmp_3, tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, Companion_getInstance_12().arrayOfFontFeaturesToInterop_2tlmgk_k$($this$interopScope, opts.get_features_yf4h6u_k$()), opts._booleanPropsToInt_ers7fx_k$()));
            break $l$block;
          }finally {
            var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
            _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
            if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
              _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
            }
          }
        }
        tmp_0 = tmp$ret$1;
      }finally {
        this_0.close_yn9xrc_k$();
      }
      tmp = tmp_0;
    }finally {
      reachabilityBarrier(this);
      reachabilityBarrier(font);
    }
    return tmp;
  };
  protoOf(Shaper).shapeLine_hb87ot_k$ = function (text, font) {
    return this.shapeLine_obeq7i_k$(text, font, Companion_getInstance_73().get_DEFAULT_wccqmg_k$());
  };
  function Companion_72() {
    Companion_instance_72 = this;
    this.DEFAULT_1 = new ShapingOptions(null, null, true, true, true);
  }
  protoOf(Companion_72).get_DEFAULT_wccqmg_k$ = function () {
    return this.DEFAULT_1;
  };
  var Companion_instance_72;
  function Companion_getInstance_73() {
    if (Companion_instance_72 == null)
      new Companion_72();
    return Companion_instance_72;
  }
  function ShapingOptions(fontMgr, features, isLeftToRight, isApproximateSpaces, isApproximatePunctuation) {
    Companion_getInstance_73();
    this.fontMgr_1 = fontMgr;
    this.features_1 = features;
    this.isLeftToRight_1 = isLeftToRight;
    this.isApproximateSpaces_1 = isApproximateSpaces;
    this.isApproximatePunctuation_1 = isApproximatePunctuation;
  }
  protoOf(ShapingOptions).get_fontMgr_9zv5i8_k$ = function () {
    return this.fontMgr_1;
  };
  protoOf(ShapingOptions).get_features_yf4h6u_k$ = function () {
    return this.features_1;
  };
  protoOf(ShapingOptions).get_isLeftToRight_7rnjjb_k$ = function () {
    return this.isLeftToRight_1;
  };
  protoOf(ShapingOptions).get_isApproximateSpaces_8307ou_k$ = function () {
    return this.isApproximateSpaces_1;
  };
  protoOf(ShapingOptions).get_isApproximatePunctuation_1k6ptl_k$ = function () {
    return this.isApproximatePunctuation_1;
  };
  protoOf(ShapingOptions)._booleanPropsToInt_ers7fx_k$ = function () {
    var i = 0;
    if (this.isLeftToRight_1)
      i = i | 4;
    if (this.isApproximateSpaces_1)
      i = i | 2;
    if (this.isApproximatePunctuation_1)
      i = i | 1;
    return i;
  };
  protoOf(ShapingOptions).withFeatures_ctr5yi_k$ = function (features) {
    return new ShapingOptions(this.fontMgr_1, features, this.isLeftToRight_1, this.isApproximateSpaces_1, this.isApproximatePunctuation_1);
  };
  protoOf(ShapingOptions).withFeatures_xczcv8_k$ = function (featuresString) {
    var tmp;
    if (featuresString == null) {
      tmp = this.withFeatures_ctr5yi_k$((null == null ? true : isArray(null)) ? null : THROW_CCE());
    } else {
      tmp = this.withFeatures_ctr5yi_k$(Companion_getInstance_12().parse_pc1q8p_k$(featuresString));
    }
    return tmp;
  };
  protoOf(ShapingOptions).equals = function (other) {
    if (other === this)
      return true;
    if (!(other instanceof ShapingOptions))
      return false;
    if (!(this.isLeftToRight_1 === other.isLeftToRight_1))
      return false;
    if (!(this.isApproximateSpaces_1 === other.isApproximateSpaces_1))
      return false;
    if (!(this.isApproximatePunctuation_1 === other.isApproximatePunctuation_1))
      return false;
    if (this.fontMgr_1 == null ? !(other.fontMgr_1 == null) : !equals(this.fontMgr_1, other.fontMgr_1))
      return false;
    return contentDeepEquals(this.features_1, other.features_1);
  };
  protoOf(ShapingOptions).hashCode = function () {
    var PRIME = 59;
    var result = 1;
    result = imul(result, PRIME) + (this.isLeftToRight_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + (this.isApproximateSpaces_1 ? 79 : 97) | 0;
    result = imul(result, PRIME) + (this.isApproximatePunctuation_1 ? 79 : 97) | 0;
    var tmp = imul(result, PRIME);
    // Inline function 'kotlin.hashCode' call
    var tmp0_safe_receiver = this.fontMgr_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
    result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
    result = imul(result, PRIME) + contentDeepHashCode(this.features_1) | 0;
    return result;
  };
  protoOf(ShapingOptions).toString = function () {
    return 'ShapingOptions(_fontMgr=' + this.fontMgr_1 + ', _features=' + contentDeepToString(this.features_1) + ', _leftToRight=' + this.isLeftToRight_1 + ', _approximateSpaces=' + this.isApproximateSpaces_1 + ', _approximatePunctuation=' + this.isApproximatePunctuation_1 + ')';
  };
  protoOf(ShapingOptions).withFontMgr_1w9nvd_k$ = function (_fontMgr) {
    return this.fontMgr_1 === _fontMgr ? this : new ShapingOptions(_fontMgr, this.features_1, this.isLeftToRight_1, this.isApproximateSpaces_1, this.isApproximatePunctuation_1);
  };
  protoOf(ShapingOptions).withLeftToRight_yp0yof_k$ = function (_leftToRight) {
    return this.isLeftToRight_1 === _leftToRight ? this : new ShapingOptions(this.fontMgr_1, this.features_1, _leftToRight, this.isApproximateSpaces_1, this.isApproximatePunctuation_1);
  };
  protoOf(ShapingOptions).withApproximateSpaces_9ggp8q_k$ = function (_approximateSpaces) {
    return this.isApproximateSpaces_1 === _approximateSpaces ? this : new ShapingOptions(this.fontMgr_1, this.features_1, this.isLeftToRight_1, _approximateSpaces, this.isApproximatePunctuation_1);
  };
  protoOf(ShapingOptions).withApproximatePunctuation_cdl3hj_k$ = function (_approximatePunctuation) {
    return this.isApproximatePunctuation_1 === _approximatePunctuation ? this : new ShapingOptions(this.fontMgr_1, this.features_1, this.isLeftToRight_1, this.isApproximateSpaces_1, _approximatePunctuation);
  };
  function TrivialLanguageRunIterator(text, language) {
    this._length_1 = text.length;
    this._language_1 = language;
    this._atEnd_1 = this._length_1 === 0;
  }
  protoOf(TrivialLanguageRunIterator).get__length_rreo0s_k$ = function () {
    return this._length_1;
  };
  protoOf(TrivialLanguageRunIterator).get__language_go9wj6_k$ = function () {
    return this._language_1;
  };
  protoOf(TrivialLanguageRunIterator).set__atEnd_bu0cy9_k$ = function (_set____db54di) {
    this._atEnd_1 = _set____db54di;
  };
  protoOf(TrivialLanguageRunIterator).get__atEnd_9wdsxe_k$ = function () {
    return this._atEnd_1;
  };
  protoOf(TrivialLanguageRunIterator).next_20eer_k$ = function () {
    this._atEnd_1 = true;
    return new LanguageRun(this._length_1, this._language_1);
  };
  protoOf(TrivialLanguageRunIterator).hasNext_bitz1p_k$ = function () {
    return !this._atEnd_1;
  };
  protoOf(TrivialLanguageRunIterator).remove_ldkf9o_k$ = function () {
    // Inline function 'kotlin.TODO' call
    var reason = 'Not yet implemented';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  function SkikoKeyboardEvent(key, modifiers, kind, timestamp, platform) {
    modifiers = modifiers === VOID ? Companion_getInstance_74().EMPTY_1 : modifiers;
    timestamp = timestamp === VOID ? new Long(0, 0) : timestamp;
    this.key_1 = key;
    this.modifiers_1 = modifiers;
    this.kind_1 = kind;
    this.timestamp_1 = timestamp;
    this.platform_1 = platform;
  }
  protoOf(SkikoKeyboardEvent).get_key_18j28a_k$ = function () {
    return this.key_1;
  };
  protoOf(SkikoKeyboardEvent).get_modifiers_tf2p2_k$ = function () {
    return this.modifiers_1;
  };
  protoOf(SkikoKeyboardEvent).get_kind_wop7ml_k$ = function () {
    return this.kind_1;
  };
  protoOf(SkikoKeyboardEvent).get_timestamp_9fccx9_k$ = function () {
    return this.timestamp_1;
  };
  protoOf(SkikoKeyboardEvent).get_platform_ssr7o_k$ = function () {
    return this.platform_1;
  };
  protoOf(SkikoKeyboardEvent).component1_7eebsc_k$ = function () {
    return this.key_1;
  };
  protoOf(SkikoKeyboardEvent).component2_3cpuvw_k$ = function () {
    return this.modifiers_1;
  };
  protoOf(SkikoKeyboardEvent).component3_7eebsa_k$ = function () {
    return this.kind_1;
  };
  protoOf(SkikoKeyboardEvent).component4_7eebs9_k$ = function () {
    return this.timestamp_1;
  };
  protoOf(SkikoKeyboardEvent).component5_7eebs8_k$ = function () {
    return this.platform_1;
  };
  protoOf(SkikoKeyboardEvent).copy_ui9cdl_k$ = function (key, modifiers, kind, timestamp, platform) {
    return new SkikoKeyboardEvent(key, modifiers, kind, timestamp, platform);
  };
  protoOf(SkikoKeyboardEvent).copy$default_98in6q_k$ = function (key, modifiers, kind, timestamp, platform, $super) {
    key = key === VOID ? this.key_1 : key;
    modifiers = modifiers === VOID ? this.modifiers_1 : modifiers;
    kind = kind === VOID ? this.kind_1 : kind;
    timestamp = timestamp === VOID ? this.timestamp_1 : timestamp;
    platform = platform === VOID ? this.platform_1 : platform;
    return $super === VOID ? this.copy_ui9cdl_k$(key, modifiers, kind, timestamp, platform) : $super.copy_ui9cdl_k$.call(this, key, new SkikoInputModifiers(modifiers), kind, timestamp, platform);
  };
  protoOf(SkikoKeyboardEvent).toString = function () {
    return 'SkikoKeyboardEvent(key=' + this.key_1 + ', modifiers=' + new SkikoInputModifiers(this.modifiers_1) + ', kind=' + this.kind_1 + ', timestamp=' + this.timestamp_1.toString() + ', platform=' + this.platform_1 + ')';
  };
  protoOf(SkikoKeyboardEvent).hashCode = function () {
    var result = this.key_1.hashCode();
    result = imul(result, 31) + SkikoInputModifiers__hashCode_impl_dkoeid(this.modifiers_1) | 0;
    result = imul(result, 31) + this.kind_1.hashCode() | 0;
    result = imul(result, 31) + this.timestamp_1.hashCode() | 0;
    result = imul(result, 31) + (this.platform_1 == null ? 0 : hashCode(this.platform_1)) | 0;
    return result;
  };
  protoOf(SkikoKeyboardEvent).equals = function (other) {
    if (this === other)
      return true;
    if (!(other instanceof SkikoKeyboardEvent))
      return false;
    var tmp0_other_with_cast = other instanceof SkikoKeyboardEvent ? other : THROW_CCE();
    if (!this.key_1.equals(tmp0_other_with_cast.key_1))
      return false;
    if (!(this.modifiers_1 === tmp0_other_with_cast.modifiers_1))
      return false;
    if (!this.kind_1.equals(tmp0_other_with_cast.kind_1))
      return false;
    if (!this.timestamp_1.equals(tmp0_other_with_cast.timestamp_1))
      return false;
    if (!equals(this.platform_1, tmp0_other_with_cast.platform_1))
      return false;
    return true;
  };
  function _SkikoInputModifiers___init__impl__z8g2zy(value) {
    return value;
  }
  function _SkikoInputModifiers___get_value__impl__13eq4a($this) {
    return $this;
  }
  function Companion_73() {
    Companion_instance_73 = this;
    this.EMPTY_1 = _SkikoInputModifiers___init__impl__z8g2zy(0);
    this.META_1 = _SkikoInputModifiers___init__impl__z8g2zy(1);
    this.CONTROL_1 = _SkikoInputModifiers___init__impl__z8g2zy(2);
    this.ALT_1 = _SkikoInputModifiers___init__impl__z8g2zy(4);
    this.SHIFT_1 = _SkikoInputModifiers___init__impl__z8g2zy(8);
  }
  protoOf(Companion_73).get_EMPTY_mn9d8r_k$ = function () {
    return this.EMPTY_1;
  };
  protoOf(Companion_73).get_META_96s9lh_k$ = function () {
    return this.META_1;
  };
  protoOf(Companion_73).get_CONTROL_mq40bf_k$ = function () {
    return this.CONTROL_1;
  };
  protoOf(Companion_73).get_ALT_5kf34p_k$ = function () {
    return this.ALT_1;
  };
  protoOf(Companion_73).get_SHIFT_exptds_k$ = function () {
    return this.SHIFT_1;
  };
  var Companion_instance_73;
  function Companion_getInstance_74() {
    if (Companion_instance_73 == null)
      new Companion_73();
    return Companion_instance_73;
  }
  function SkikoInputModifiers__has_impl_qg30o6($this, value) {
    if (!((_SkikoInputModifiers___get_value__impl__13eq4a(value) & _SkikoInputModifiers___get_value__impl__13eq4a($this)) === 0)) {
      return true;
    }
    return false;
  }
  function SkikoInputModifiers__toString_impl_86hiai($this) {
    // Inline function 'kotlin.apply' call
    // Inline function 'kotlin.collections.mutableListOf' call
    var this_0 = ArrayList_init_$Create$_0();
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'org.jetbrains.skiko.SkikoInputModifiers.toString.<anonymous>' call
    if (SkikoInputModifiers__has_impl_qg30o6($this, Companion_getInstance_74().META_1)) {
      this_0.add_utx5q5_k$('META');
    }
    if (SkikoInputModifiers__has_impl_qg30o6($this, Companion_getInstance_74().CONTROL_1)) {
      this_0.add_utx5q5_k$('CONTROL');
    }
    if (SkikoInputModifiers__has_impl_qg30o6($this, Companion_getInstance_74().ALT_1)) {
      this_0.add_utx5q5_k$('ALT');
    }
    if (SkikoInputModifiers__has_impl_qg30o6($this, Companion_getInstance_74().SHIFT_1)) {
      this_0.add_utx5q5_k$('SHIFT');
    }
    var result = this_0;
    return !result.isEmpty_y1axqb_k$() ? toString(result) : '';
  }
  function SkikoInputModifiers__hashCode_impl_dkoeid($this) {
    return $this;
  }
  function SkikoInputModifiers__equals_impl_tcfkiv($this, other) {
    if (!(other instanceof SkikoInputModifiers))
      return false;
    if (!($this === (other instanceof SkikoInputModifiers ? other.value_1 : THROW_CCE())))
      return false;
    return true;
  }
  function SkikoInputModifiers(value) {
    Companion_getInstance_74();
    this.value_1 = value;
  }
  protoOf(SkikoInputModifiers).toString = function () {
    return SkikoInputModifiers__toString_impl_86hiai(this.value_1);
  };
  protoOf(SkikoInputModifiers).hashCode = function () {
    return SkikoInputModifiers__hashCode_impl_dkoeid(this.value_1);
  };
  protoOf(SkikoInputModifiers).equals = function (other) {
    return SkikoInputModifiers__equals_impl_tcfkiv(this.value_1, other);
  };
  var SkikoKeyboardEventKind_UNKNOWN_instance;
  var SkikoKeyboardEventKind_UP_instance;
  var SkikoKeyboardEventKind_DOWN_instance;
  var SkikoKeyboardEventKind_TYPE_instance;
  function values_36() {
    return [SkikoKeyboardEventKind_UNKNOWN_getInstance(), SkikoKeyboardEventKind_UP_getInstance(), SkikoKeyboardEventKind_DOWN_getInstance(), SkikoKeyboardEventKind_TYPE_getInstance()];
  }
  function valueOf_36(value) {
    switch (value) {
      case 'UNKNOWN':
        return SkikoKeyboardEventKind_UNKNOWN_getInstance();
      case 'UP':
        return SkikoKeyboardEventKind_UP_getInstance();
      case 'DOWN':
        return SkikoKeyboardEventKind_DOWN_getInstance();
      case 'TYPE':
        return SkikoKeyboardEventKind_TYPE_getInstance();
      default:
        SkikoKeyboardEventKind_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var SkikoKeyboardEventKind_entriesInitialized;
  function SkikoKeyboardEventKind_initEntries() {
    if (SkikoKeyboardEventKind_entriesInitialized)
      return Unit_getInstance();
    SkikoKeyboardEventKind_entriesInitialized = true;
    SkikoKeyboardEventKind_UNKNOWN_instance = new SkikoKeyboardEventKind('UNKNOWN', 0);
    SkikoKeyboardEventKind_UP_instance = new SkikoKeyboardEventKind('UP', 1);
    SkikoKeyboardEventKind_DOWN_instance = new SkikoKeyboardEventKind('DOWN', 2);
    SkikoKeyboardEventKind_TYPE_instance = new SkikoKeyboardEventKind('TYPE', 3);
  }
  function SkikoKeyboardEventKind(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function SkikoKeyboardEventKind_UNKNOWN_getInstance() {
    SkikoKeyboardEventKind_initEntries();
    return SkikoKeyboardEventKind_UNKNOWN_instance;
  }
  function SkikoKeyboardEventKind_UP_getInstance() {
    SkikoKeyboardEventKind_initEntries();
    return SkikoKeyboardEventKind_UP_instance;
  }
  function SkikoKeyboardEventKind_DOWN_getInstance() {
    SkikoKeyboardEventKind_initEntries();
    return SkikoKeyboardEventKind_DOWN_instance;
  }
  function SkikoKeyboardEventKind_TYPE_getInstance() {
    SkikoKeyboardEventKind_initEntries();
    return SkikoKeyboardEventKind_TYPE_instance;
  }
  var OS_Android_instance;
  var OS_Linux_instance;
  var OS_Windows_instance;
  var OS_MacOS_instance;
  var OS_Ios_instance;
  var OS_JS_instance;
  var OS_Unknown_instance;
  function values_37() {
    return [OS_Android_getInstance(), OS_Linux_getInstance(), OS_Windows_getInstance(), OS_MacOS_getInstance(), OS_Ios_getInstance(), OS_JS_getInstance(), OS_Unknown_getInstance()];
  }
  function valueOf_37(value) {
    switch (value) {
      case 'Android':
        return OS_Android_getInstance();
      case 'Linux':
        return OS_Linux_getInstance();
      case 'Windows':
        return OS_Windows_getInstance();
      case 'MacOS':
        return OS_MacOS_getInstance();
      case 'Ios':
        return OS_Ios_getInstance();
      case 'JS':
        return OS_JS_getInstance();
      case 'Unknown':
        return OS_Unknown_getInstance();
      default:
        OS_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var OS_entriesInitialized;
  function OS_initEntries() {
    if (OS_entriesInitialized)
      return Unit_getInstance();
    OS_entriesInitialized = true;
    OS_Android_instance = new OS('Android', 0, 'android');
    OS_Linux_instance = new OS('Linux', 1, 'linux');
    OS_Windows_instance = new OS('Windows', 2, 'windows');
    OS_MacOS_instance = new OS('MacOS', 3, 'macos');
    OS_Ios_instance = new OS('Ios', 4, 'ios');
    OS_JS_instance = new OS('JS', 5, 'js');
    OS_Unknown_instance = new OS('Unknown', 6, 'unknown');
  }
  function OS(name, ordinal, id) {
    Enum.call(this, name, ordinal);
    this.id_1 = id;
  }
  protoOf(OS).get_id_kntnx8_k$ = function () {
    return this.id_1;
  };
  protoOf(OS).get_isLinux_zemuip_k$ = function () {
    return this.equals(OS_Linux_getInstance());
  };
  protoOf(OS).get_isWindows_l8sguo_k$ = function () {
    return this.equals(OS_Windows_getInstance());
  };
  protoOf(OS).get_isMacOS_zf1a4g_k$ = function () {
    return this.equals(OS_MacOS_getInstance());
  };
  var Arch_X64_instance;
  var Arch_Arm64_instance;
  var Arch_JS_instance;
  var Arch_WASM_instance;
  var Arch_Unknown_instance;
  function values_38() {
    return [Arch_X64_getInstance(), Arch_Arm64_getInstance(), Arch_JS_getInstance(), Arch_WASM_getInstance(), Arch_Unknown_getInstance()];
  }
  function valueOf_38(value) {
    switch (value) {
      case 'X64':
        return Arch_X64_getInstance();
      case 'Arm64':
        return Arch_Arm64_getInstance();
      case 'JS':
        return Arch_JS_getInstance();
      case 'WASM':
        return Arch_WASM_getInstance();
      case 'Unknown':
        return Arch_Unknown_getInstance();
      default:
        Arch_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var Arch_entriesInitialized;
  function Arch_initEntries() {
    if (Arch_entriesInitialized)
      return Unit_getInstance();
    Arch_entriesInitialized = true;
    Arch_X64_instance = new Arch('X64', 0, 'x64');
    Arch_Arm64_instance = new Arch('Arm64', 1, 'arm64');
    Arch_JS_instance = new Arch('JS', 2, 'js');
    Arch_WASM_instance = new Arch('WASM', 3, 'wasm');
    Arch_Unknown_instance = new Arch('Unknown', 4, 'unknown');
  }
  function Arch(name, ordinal, id) {
    Enum.call(this, name, ordinal);
    this.id_1 = id;
  }
  protoOf(Arch).get_id_kntnx8_k$ = function () {
    return this.id_1;
  };
  function OS_Android_getInstance() {
    OS_initEntries();
    return OS_Android_instance;
  }
  function OS_Linux_getInstance() {
    OS_initEntries();
    return OS_Linux_instance;
  }
  function OS_Windows_getInstance() {
    OS_initEntries();
    return OS_Windows_instance;
  }
  function OS_MacOS_getInstance() {
    OS_initEntries();
    return OS_MacOS_instance;
  }
  function OS_Ios_getInstance() {
    OS_initEntries();
    return OS_Ios_instance;
  }
  function OS_JS_getInstance() {
    OS_initEntries();
    return OS_JS_instance;
  }
  function OS_Unknown_getInstance() {
    OS_initEntries();
    return OS_Unknown_instance;
  }
  function Arch_X64_getInstance() {
    Arch_initEntries();
    return Arch_X64_instance;
  }
  function Arch_Arm64_getInstance() {
    Arch_initEntries();
    return Arch_Arm64_instance;
  }
  function Arch_JS_getInstance() {
    Arch_initEntries();
    return Arch_JS_instance;
  }
  function Arch_WASM_getInstance() {
    Arch_initEntries();
    return Arch_WASM_instance;
  }
  function Arch_Unknown_getInstance() {
    Arch_initEntries();
    return Arch_Unknown_instance;
  }
  function ClipboardManager() {
  }
  protoOf(ClipboardManager).setText_kc4w4b_k$ = function (text) {
    return ClipboardManager_setText(text);
  };
  protoOf(ClipboardManager).getText_18q731_k$ = function () {
    return ClipboardManager_getText();
  };
  protoOf(ClipboardManager).hasText_bixsyv_k$ = function () {
    return ClipboardManager_hasText();
  };
  function URIManager() {
  }
  protoOf(URIManager).openUri_9c5wa0_k$ = function (uri) {
    return URIHandler_openUri(uri);
  };
  var SystemTheme_DARK_instance;
  var SystemTheme_LIGHT_instance;
  var SystemTheme_UNKNOWN_instance;
  function values_39() {
    return [SystemTheme_DARK_getInstance(), SystemTheme_LIGHT_getInstance(), SystemTheme_UNKNOWN_getInstance()];
  }
  function valueOf_39(value) {
    switch (value) {
      case 'DARK':
        return SystemTheme_DARK_getInstance();
      case 'LIGHT':
        return SystemTheme_LIGHT_getInstance();
      case 'UNKNOWN':
        return SystemTheme_UNKNOWN_getInstance();
      default:
        SystemTheme_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var SystemTheme_entriesInitialized;
  function SystemTheme_initEntries() {
    if (SystemTheme_entriesInitialized)
      return Unit_getInstance();
    SystemTheme_entriesInitialized = true;
    SystemTheme_DARK_instance = new SystemTheme('DARK', 0);
    SystemTheme_LIGHT_instance = new SystemTheme('LIGHT', 1);
    SystemTheme_UNKNOWN_instance = new SystemTheme('UNKNOWN', 2);
  }
  function SystemTheme(name, ordinal) {
    Enum.call(this, name, ordinal);
  }
  function SystemTheme_DARK_getInstance() {
    SystemTheme_initEntries();
    return SystemTheme_DARK_instance;
  }
  function SystemTheme_LIGHT_getInstance() {
    SystemTheme_initEntries();
    return SystemTheme_LIGHT_instance;
  }
  function SystemTheme_UNKNOWN_getInstance() {
    SystemTheme_initEntries();
    return SystemTheme_UNKNOWN_instance;
  }
  function get_LANG() {
    _init_properties_Actuals_js_kt__v403ki();
    // Inline function 'kotlin.getValue' call
    var this_0 = LANG$delegate;
    LANG$factory();
    return this_0.get_value_j01efc_k$();
  }
  var LANG$delegate;
  function _get__regex__3whdml($this) {
    return $this._regex_1;
  }
  function Pattern(regex) {
    this._regex_1 = Regex_init_$Create$(regex);
  }
  protoOf(Pattern).split_w9zaf1_k$ = function (input) {
    // Inline function 'kotlin.collections.toTypedArray' call
    var this_0 = this._regex_1.split$default_op2g7v_k$(input);
    return copyToArray(this_0);
  };
  protoOf(Pattern).matcher_mwr1qt_k$ = function (input) {
    return new Matcher(this._regex_1, input);
  };
  function compilePattern(regex) {
    _init_properties_Actuals_js_kt__v403ki();
    return new Pattern(regex);
  }
  function _get_regex__by6cnq($this) {
    return $this.regex_1;
  }
  function _get_input__g2gq7t($this) {
    return $this.input_1;
  }
  function _get_matches__uyk9mq($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.matches$delegate_1;
    matches$factory();
    return this_0.get_value_j01efc_k$();
  }
  function _get_groups__sds409($this) {
    // Inline function 'kotlin.getValue' call
    var this_0 = $this.groups$delegate_1;
    groups$factory();
    return this_0.get_value_j01efc_k$();
  }
  function Matcher$matches$delegate$lambda(this$0) {
    return function () {
      return this$0.regex_1.matches_evli6i_k$(this$0.input_1);
    };
  }
  function Matcher$groups$delegate$lambda(this$0) {
    return function () {
      var tmp0_safe_receiver = this$0.regex_1.matchEntire_6100vb_k$(this$0.input_1);
      return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_groups_dy12vx_k$();
    };
  }
  function Matcher(regex, input) {
    this.regex_1 = regex;
    this.input_1 = input;
    var tmp = this;
    tmp.matches$delegate_1 = lazy(Matcher$matches$delegate$lambda(this));
    var tmp_0 = this;
    tmp_0.groups$delegate_1 = lazy(Matcher$groups$delegate$lambda(this));
  }
  protoOf(Matcher).group_u7j3zt_k$ = function (ix) {
    var tmp0_safe_receiver = _get_groups__sds409(this);
    var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_c1px32_k$(ix);
    return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get_value_j01efc_k$();
  };
  protoOf(Matcher).matches_dwml9v_k$ = function () {
    return _get_matches__uyk9mq(this);
  };
  function intCodePoints(_this__u8e3s4) {
    _init_properties_Actuals_js_kt__v403ki();
    var tmp = 0;
    var tmp_0 = _this__u8e3s4.length;
    var tmp_1 = new Int32Array(tmp_0);
    while (tmp < tmp_0) {
      var tmp_2 = tmp;
      // Inline function 'kotlin.code' call
      var this_0 = charSequenceGet(_this__u8e3s4, tmp_2);
      tmp_1[tmp_2] = Char__toInt_impl_vasixd(this_0);
      tmp = tmp + 1 | 0;
    }
    return tmp_1;
  }
  function commonSynchronized(lock, block) {
    _init_properties_Actuals_js_kt__v403ki();
    block();
  }
  function defaultLanguageTag() {
    _init_properties_Actuals_js_kt__v403ki();
    return get_LANG();
  }
  function LANG$delegate$lambda() {
    _init_properties_Actuals_js_kt__v403ki();
    var lang = window.navigator.language;
    var tmp;
    var tmp_0;
    if (lang == null) {
      tmp_0 = true;
    } else {
      // Inline function 'kotlin.text.isEmpty' call
      tmp_0 = charSequenceLength(lang) === 0;
    }
    if (tmp_0) {
      tmp = 'en-US';
    } else {
      tmp = lang;
    }
    return tmp;
  }
  function LANG$factory() {
    return getPropertyCallableRef('LANG', 0, KProperty0, function () {
      return get_LANG();
    }, null);
  }
  function matches$factory() {
    return getPropertyCallableRef('matches', 1, KProperty1, function (receiver) {
      return _get_matches__uyk9mq(receiver);
    }, null);
  }
  function groups$factory() {
    return getPropertyCallableRef('groups', 1, KProperty1, function (receiver) {
      return _get_groups__sds409(receiver);
    }, null);
  }
  var properties_initialized_Actuals_js_kt_fw1oy4;
  function _init_properties_Actuals_js_kt__v403ki() {
    if (!properties_initialized_Actuals_js_kt_fw1oy4) {
      properties_initialized_Actuals_js_kt_fw1oy4 = true;
      LANG$delegate = lazy(LANG$delegate$lambda);
    }
  }
  function Companion_74() {
    Companion_instance_74 = this;
  }
  protoOf(Companion_74).staticLoad_sw9wh0_k$ = function () {
  };
  var Companion_instance_74;
  function Companion_getInstance_75() {
    if (Companion_instance_74 == null)
      new Companion_74();
    return Companion_instance_74;
  }
  function Library() {
    Companion_getInstance_75();
  }
  function get_registry() {
    _init_properties_Managed_js_kt__4ok5rc();
    return registry;
  }
  var registry;
  function _get_finalizer__irxewt($this) {
    return $this.finalizer_1;
  }
  function _set_obj__4wbdgu($this, _set____db54di) {
    $this.obj_1 = _set____db54di;
  }
  function _get_obj__e6dym2($this) {
    return $this.obj_1;
  }
  function FinalizationThunk(finalizer, obj) {
    this.finalizer_1 = finalizer;
    this.obj_1 = obj;
  }
  protoOf(FinalizationThunk).clean_x9x5rt_k$ = function () {
    if (!(this.obj_1 === 0)) {
      org_jetbrains_skia_impl_Managed__invokeFinalizer(this.finalizer_1, this.obj_1);
    }
    this.obj_1 = 0;
  };
  function _set_cleaner__2tcfbj($this, _set____db54di) {
    $this.cleaner_1 = _set____db54di;
  }
  function _get_cleaner__msvv1h($this) {
    return $this.cleaner_1;
  }
  function Managed(ptr, finalizer, managed) {
    managed = managed === VOID ? true : managed;
    Native.call(this, ptr);
    this.cleaner_1 = null;
    if (managed) {
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(ptr === 0)) {
        // Inline function 'org.jetbrains.skia.impl.Managed.<anonymous>' call
        var message = 'Managed ptr is 0';
        throw IllegalArgumentException_init_$Create$(toString(message));
      }
      // Inline function 'kotlin.require' call
      // Inline function 'kotlin.contracts.contract' call
      if (!!(finalizer === 0)) {
        // Inline function 'org.jetbrains.skia.impl.Managed.<anonymous>' call
        var message_0 = 'Managed finalizer is 0';
        throw IllegalArgumentException_init_$Create$(toString(message_0));
      }
      var thunk = new FinalizationThunk(finalizer, ptr);
      register(this, thunk);
      this.cleaner_1 = thunk;
    }
  }
  protoOf(Managed).close_yn9xrc_k$ = function () {
    if (Companion_getInstance_77().get_NullPointer_8qbg7n_k$() === this.get__ptr_wohp4o_k$())
      throw RuntimeException_init_$Create$('Object already closed: ' + getKClassFromExpression(this).get_simpleName_r6f8py_k$() + ', _ptr=' + this.get__ptr_wohp4o_k$());
    else if (null == this.cleaner_1)
      throw RuntimeException_init_$Create$("Object is not managed, can't close(): " + getKClassFromExpression(this).get_simpleName_r6f8py_k$() + ', _ptr=' + this.get__ptr_wohp4o_k$());
    else {
      unregister(this);
      ensureNotNull(this.cleaner_1).clean_x9x5rt_k$();
      this.cleaner_1 = null;
      this.set__ptr_v5yjvg_k$(0);
    }
  };
  protoOf(Managed).get_isClosed_rx8ttr_k$ = function () {
    return this.get__ptr_wohp4o_k$() === Companion_getInstance_77().get_NullPointer_8qbg7n_k$();
  };
  function unregister(managed) {
    _init_properties_Managed_js_kt__4ok5rc();
    get_registry().unregister(managed);
  }
  function register(managed, thunk) {
    _init_properties_Managed_js_kt__4ok5rc();
    get_registry().register(managed, thunk);
  }
  function registry$lambda(it) {
    _init_properties_Managed_js_kt__4ok5rc();
    var thunk = it instanceof FinalizationThunk ? it : THROW_CCE();
    thunk.clean_x9x5rt_k$();
    return Unit_getInstance();
  }
  var properties_initialized_Managed_js_kt_llxy4m;
  function _init_properties_Managed_js_kt__4ok5rc() {
    if (!properties_initialized_Managed_js_kt_llxy4m) {
      properties_initialized_Managed_js_kt_llxy4m = true;
      registry = new FinalizationRegistry(registry$lambda);
    }
  }
  function get_INTEROP_SCOPE() {
    _init_properties_Native_js_kt__80argu();
    return INTEROP_SCOPE;
  }
  var INTEROP_SCOPE;
  function set_interopScopeCounter(_set____db54di) {
    _init_properties_Native_js_kt__80argu();
    interopScopeCounter = _set____db54di;
  }
  function get_interopScopeCounter() {
    _init_properties_Native_js_kt__80argu();
    return interopScopeCounter;
  }
  var interopScopeCounter;
  function _get_elements__k8byyc($this) {
    return $this.elements_1;
  }
  function _set_callbacksInitialized__ugl6gh($this, _set____db54di) {
    $this.callbacksInitialized_1 = _set____db54di;
  }
  function _get_callbacksInitialized__giiig5($this) {
    return $this.callbacksInitialized_1;
  }
  function toInterop($this, array, copyArrayToWasm) {
    var tmp;
    var tmp_0;
    if (!(array == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(array.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      var data = _malloc(array.length);
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm(data, array);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function toInterop_0($this, array, copyArrayToWasm) {
    var tmp;
    var tmp_0;
    if (!(array == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(array.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      var data = _malloc(imul(array.length, 2));
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm_0(data, array);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function toInterop_1($this, array, copyArrayToWasm) {
    var tmp;
    var tmp_0;
    if (!(array == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(array.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      var data = _malloc(imul(array.length, 4));
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm_1(data, array);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function toInterop_2($this, array, copyArrayToWasm) {
    var tmp;
    var tmp_0;
    if (!(array == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(array.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      var data = _malloc(imul(array.length, 4));
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm_2(data, array);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function toInterop_3($this, array, copyArrayToWasm) {
    var tmp;
    var tmp_0;
    if (!(array == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(array.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      var data = _malloc(imul(array.length, 8));
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm_3(data, array);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function toInterop_4($this, array, copyArrayToWasm) {
    var tmp;
    if (!(array == null) ? array.get_size_woubt6_k$() > 0 : false) {
      var data = _malloc(imul(array.get_size_woubt6_k$(), 4));
      $this.elements_1.add_utx5q5_k$(data);
      if (copyArrayToWasm) {
        toWasm_1(data, array.backing_1);
      }
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  }
  function callbackImpl($this, callback) {
    if (callback == null) {
      return 0;
    }
    // Inline function 'org.jetbrains.skia.impl.InteropScope.initCallbacks' call
    if (!$this.callbacksInitialized_1) {
      _createLocalCallbackScope$accessor$wmqves();
      $this.callbacksInitialized_1 = true;
    }
    var data = new CallbackData(null);
    return _registerCallback(InteropScope$callbackImpl$lambda(data, callback), data, false);
  }
  function virtualImpl($this, method) {
    var data = new CallbackData(null);
    return _registerCallback(InteropScope$virtualImpl$lambda(data, method), data, true);
  }
  function initCallbacks($this) {
    if (!$this.callbacksInitialized_1) {
      _createLocalCallbackScope$accessor$wmqves();
      $this.callbacksInitialized_1 = true;
    }
  }
  function releaseCallbacks($this) {
    if ($this.callbacksInitialized_1) {
      _releaseLocalCallbackScope$accessor$wmqves();
      $this.callbacksInitialized_1 = false;
    }
  }
  function InteropScope$callbackImpl$lambda($data, $callback) {
    return function () {
      $data.value = $callback();
      return Unit_getInstance();
    };
  }
  function InteropScope$callback$lambda($callback) {
    return function () {
      $callback();
      return Unit_getInstance();
    };
  }
  function InteropScope$virtualImpl$lambda($data, $method) {
    return function () {
      $data.value = $method();
      return Unit_getInstance();
    };
  }
  function InteropScope$virtual$lambda($method) {
    return function () {
      $method();
      return Unit_getInstance();
    };
  }
  function InteropScope() {
    var tmp = this;
    // Inline function 'kotlin.collections.mutableListOf' call
    tmp.elements_1 = ArrayList_init_$Create$_0();
    this.callbacksInitialized_1 = false;
  }
  protoOf(InteropScope).toInterop_ok8jph_k$ = function (string) {
    var tmp;
    if (!(string == null)) {
      var data = _malloc(imul(string.length, 4));
      stringToUTF8(string, data, imul(string.length, 4));
      this.elements_1.add_utx5q5_k$(data);
      tmp = data;
    } else {
      tmp = 0;
    }
    return tmp;
  };
  protoOf(InteropScope).toInterop_h7cpet_k$ = function (array) {
    return toInterop(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_toi1ab_k$ = function (array) {
    return toInterop(this, array, false);
  };
  protoOf(InteropScope).fromInterop_awvpm7_k$ = function (_this__u8e3s4, result) {
    fromWasm(_this__u8e3s4, result);
  };
  protoOf(InteropScope).toInterop_jg6tf3_k$ = function (array) {
    return toInterop_0(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_c5u4tv_k$ = function (array) {
    return toInterop_0(this, array, false);
  };
  protoOf(InteropScope).fromInterop_1rw4p0_k$ = function (_this__u8e3s4, result) {
    fromWasm_0(_this__u8e3s4, result);
  };
  protoOf(InteropScope).toInterop_i7skn2_k$ = function (array) {
    return toInterop_1(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_adrhc_k$ = function (array) {
    return toInterop_1(this, array, false);
  };
  protoOf(InteropScope).fromInterop_99m56j_k$ = function (_this__u8e3s4, result) {
    // Inline function 'kotlin.TODO' call
    var reason = 'implement wasm fromInterop(LongArray)';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  protoOf(InteropScope).toInterop_sivzjl_k$ = function (array) {
    // Inline function 'kotlin.TODO' call
    var reason = 'implement wasm toInterop(LongArray)';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  protoOf(InteropScope).fromInterop_s0mjrj_k$ = function (_this__u8e3s4, result) {
    fromWasm_1(_this__u8e3s4, result);
  };
  protoOf(InteropScope).toInterop_uum1m9_k$ = function (array) {
    return toInterop_2(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_8kh23x_k$ = function (array) {
    return toInterop_2(this, array, false);
  };
  protoOf(InteropScope).fromInterop_zi7geo_k$ = function (_this__u8e3s4, result) {
    fromWasm_2(_this__u8e3s4, result);
  };
  protoOf(InteropScope).toInterop_5vegas_k$ = function (array) {
    return toInterop_3(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_kc5q92_k$ = function (array) {
    return toInterop_3(this, array, false);
  };
  protoOf(InteropScope).fromInterop_40e3wn_k$ = function (_this__u8e3s4, result) {
    fromWasm_3(_this__u8e3s4, result);
  };
  protoOf(InteropScope).toInterop_1ghudk_k$ = function (array) {
    return toInterop_4(this, array, true);
  };
  protoOf(InteropScope).toInteropForResult_nw6uau_k$ = function (array) {
    return toInterop_4(this, array, false);
  };
  protoOf(InteropScope).fromInterop_phusho_k$ = function (_this__u8e3s4, result) {
    return fromWasm_0(_this__u8e3s4, result.backing_1);
  };
  protoOf(InteropScope).toInterop_2ejn5p_k$ = function (stringArray) {
    var tmp;
    var tmp_0;
    if (!(stringArray == null)) {
      // Inline function 'kotlin.collections.isNotEmpty' call
      // Inline function 'kotlin.collections.isEmpty' call
      tmp_0 = !(stringArray.length === 0);
    } else {
      tmp_0 = false;
    }
    if (tmp_0) {
      // Inline function 'kotlin.collections.map' call
      // Inline function 'kotlin.collections.mapTo' call
      var destination = ArrayList_init_$Create$(stringArray.length);
      var inductionVariable = 0;
      var last = stringArray.length;
      while (inductionVariable < last) {
        var item = stringArray[inductionVariable];
        inductionVariable = inductionVariable + 1 | 0;
        // Inline function 'org.jetbrains.skia.impl.InteropScope.toInterop.<anonymous>' call
        var tmp$ret$2 = this.toInterop_ok8jph_k$(item);
        destination.add_utx5q5_k$(tmp$ret$2);
      }
      var ptrs = toIntArray(destination);
      tmp = this.toInterop_i7skn2_k$(ptrs);
    } else {
      tmp = 0;
    }
    return tmp;
  };
  protoOf(InteropScope).fromInteropNativePointerArray_axg8bg_k$ = function (_this__u8e3s4) {
    // Inline function 'kotlin.TODO' call
    var reason = 'implement wasm fromInteropNativePointerArray';
    throw new NotImplementedError('An operation is not implemented: ' + reason);
  };
  protoOf(InteropScope).toInteropForArraysOfPointers_hg281y_k$ = function (interopPointers) {
    return this.toInterop_i7skn2_k$(toIntArray_0(interopPointers));
  };
  protoOf(InteropScope).booleanCallback_o0l8jn_k$ = function (callback) {
    return callbackImpl(this, callback);
  };
  protoOf(InteropScope).intCallback_j98vrx_k$ = function (callback) {
    return callbackImpl(this, callback);
  };
  protoOf(InteropScope).nativePointerCallback_qmpvgm_k$ = function (callback) {
    return callbackImpl(this, callback);
  };
  protoOf(InteropScope).interopPointerCallback_wj3p64_k$ = function (callback) {
    return callbackImpl(this, callback);
  };
  protoOf(InteropScope).callback_5j7rne_k$ = function (callback) {
    if (callback == null) {
      return 0;
    }
    // Inline function 'org.jetbrains.skia.impl.InteropScope.initCallbacks' call
    if (!this.callbacksInitialized_1) {
      _createLocalCallbackScope$accessor$wmqves();
      this.callbacksInitialized_1 = true;
    }
    return _registerCallback(InteropScope$callback$lambda(callback), null, false);
  };
  protoOf(InteropScope).virtual_41wz7n_k$ = function (method) {
    return _registerCallback(InteropScope$virtual$lambda(method), null, true);
  };
  protoOf(InteropScope).virtualBoolean_rsq0lo_k$ = function (method) {
    return virtualImpl(this, method);
  };
  protoOf(InteropScope).virtualInt_lh3blu_k$ = function (method) {
    return virtualImpl(this, method);
  };
  protoOf(InteropScope).virtualNativePointer_dx1gu1_k$ = function (method) {
    return virtualImpl(this, method);
  };
  protoOf(InteropScope).virtualInteropPointer_tzqwqx_k$ = function (method) {
    return virtualImpl(this, method);
  };
  protoOf(InteropScope).release_wu5yyf_k$ = function () {
    // Inline function 'kotlin.collections.forEach' call
    var tmp0_iterator = this.elements_1.iterator_jk1svi_k$();
    while (tmp0_iterator.hasNext_bitz1p_k$()) {
      var element = tmp0_iterator.next_20eer_k$();
      // Inline function 'org.jetbrains.skia.impl.InteropScope.release.<anonymous>' call
      _free(element);
    }
    this.elements_1.clear_j9egeb_k$();
    // Inline function 'org.jetbrains.skia.impl.InteropScope.releaseCallbacks' call
    if (this.callbacksInitialized_1) {
      _releaseLocalCallbackScope$accessor$wmqves();
      this.callbacksInitialized_1 = false;
    }
  };
  function toWasm(dest, src) {
    _init_properties_Native_js_kt__80argu();
    return HEAPU8.set(src, dest);
  }
  function fromWasm(src, result) {
    _init_properties_Native_js_kt__80argu();
    var startIndex = src / 2 | 0;
    // Inline function 'kotlin.js.asDynamic' call
    result.set(HEAPU16.subarray(startIndex, startIndex + result.length | 0));
  }
  function toWasm_0(dest, src) {
    _init_properties_Native_js_kt__80argu();
    return HEAPU16.set(src, dest / 2 | 0);
  }
  function fromWasm_0(src, result) {
    _init_properties_Native_js_kt__80argu();
    var startIndex = src / 4 | 0;
    // Inline function 'kotlin.js.asDynamic' call
    result.set(HEAPU32.subarray(startIndex, startIndex + result.length | 0));
  }
  function toWasm_1(dest, src) {
    _init_properties_Native_js_kt__80argu();
    return HEAPU32.set(src, dest / 4 | 0);
  }
  function fromWasm_1(src, result) {
    _init_properties_Native_js_kt__80argu();
    var startIndex = src / 4 | 0;
    // Inline function 'kotlin.js.asDynamic' call
    result.set(HEAPF32.subarray(startIndex, startIndex + result.length | 0));
  }
  function toWasm_2(dest, src) {
    _init_properties_Native_js_kt__80argu();
    return HEAPF32.set(src, dest / 4 | 0);
  }
  function fromWasm_2(src, result) {
    _init_properties_Native_js_kt__80argu();
    var startIndex = src / 8 | 0;
    // Inline function 'kotlin.js.asDynamic' call
    result.set(HEAPF64.subarray(startIndex, startIndex + result.length | 0));
  }
  function toWasm_3(dest, src) {
    _init_properties_Native_js_kt__80argu();
    return HEAPF64.set(src, dest / 8 | 0);
  }
  function fromWasm_3(src, result) {
    _init_properties_Native_js_kt__80argu();
    // Inline function 'kotlin.js.asDynamic' call
    result.set(HEAPU8.subarray(src, src + result.length | 0));
  }
  function Companion_75() {
    Companion_instance_75 = this;
  }
  protoOf(Companion_75).fromIntArray_giq9u1_k$ = function (intArray) {
    // Inline function 'kotlin.apply' call
    var this_0 = new NativePointerArray(intArray.length);
    // Inline function 'kotlin.contracts.contract' call
    // Inline function 'org.jetbrains.skia.impl.Companion.fromIntArray.<anonymous>' call
    // Inline function 'kotlin.collections.copyInto' call
    var destination = this_0.backing_1;
    var endIndex = intArray.length;
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    var tmp = intArray;
    // Inline function 'kotlin.js.unsafeCast' call
    // Inline function 'kotlin.js.asDynamic' call
    arrayCopy(tmp, destination, 0, 0, endIndex);
    return this_0;
  };
  var Companion_instance_75;
  function Companion_getInstance_76() {
    if (Companion_instance_75 == null)
      new Companion_75();
    return Companion_instance_75;
  }
  function NativePointerArray(size) {
    Companion_getInstance_76();
    this.backing_1 = new Int32Array(size);
  }
  protoOf(NativePointerArray).get_backing_4h5ufi_k$ = function () {
    return this.backing_1;
  };
  protoOf(NativePointerArray).get_c1px32_k$ = function (index) {
    return this.backing_1[index];
  };
  protoOf(NativePointerArray).set_g707pu_k$ = function (index, value) {
    this.backing_1[index] = value;
  };
  protoOf(NativePointerArray).get_size_woubt6_k$ = function () {
    return this.backing_1.length;
  };
  function CallbackData(value) {
    this.value = value;
  }
  protoOf(CallbackData).set_value_usdbpe_k$ = function (_set____db54di) {
    this.value = _set____db54di;
  };
  protoOf(CallbackData).get_value_j01efc_k$ = function () {
    return this.value;
  };
  function interopScope(block) {
    _init_properties_Native_js_kt__80argu();
    try {
      var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_1();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq_0(tmp0 + 1 | 0);
      return block(_get_INTEROP_SCOPE_$accessor$wmqves_peku9r_0());
    }finally {
      var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_1();
      _set_interopScopeCounter_$accessor$wmqves_ygusxq_0(tmp1 - 1 | 0);
      if (_get_interopScopeCounter_$accessor$wmqves_umgosu_1() === 0) {
        _get_INTEROP_SCOPE_$accessor$wmqves_peku9r_0().release_wu5yyf_k$();
      }
    }
  }
  function Companion_76() {
    Companion_instance_76 = this;
  }
  protoOf(Companion_76).get_NullPointer_8qbg7n_k$ = function () {
    return 0;
  };
  var Companion_instance_76;
  function Companion_getInstance_77() {
    if (Companion_instance_76 == null)
      new Companion_76();
    return Companion_instance_76;
  }
  function Native(ptr) {
    Companion_getInstance_77();
    if (ptr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$())
      throw RuntimeException_init_$Create$("Can't wrap nullptr");
    this._ptr_1 = ptr;
  }
  protoOf(Native).set__ptr_v5yjvg_k$ = function (_set____db54di) {
    this._ptr_1 = _set____db54di;
  };
  protoOf(Native).get__ptr_wohp4o_k$ = function () {
    return this._ptr_1;
  };
  protoOf(Native).equals = function (other) {
    if (this === other)
      return true;
    if (null == other)
      return false;
    if (!(other instanceof Native))
      return false;
    return this._ptr_1 === other._ptr_1 ? true : this.nativeEquals_mxr6i0_k$(other);
  };
  protoOf(Native).hashCode = function () {
    return this._ptr_1;
  };
  protoOf(Native).nativeEquals_mxr6i0_k$ = function (other) {
    return false;
  };
  protoOf(Native).toString = function () {
    return plus(getKClassFromExpression(this).get_simpleName_r6f8py_k$(), '(_ptr=0x') + toString_1(this._ptr_1, 16) + ')';
  };
  function reachabilityBarrier(obj) {
    _init_properties_Native_js_kt__80argu();
  }
  function _createLocalCallbackScope$accessor$wmqves() {
    _init_properties_Native_js_kt__80argu();
    return _createLocalCallbackScope();
  }
  function _releaseLocalCallbackScope$accessor$wmqves() {
    _init_properties_Native_js_kt__80argu();
    return _releaseLocalCallbackScope();
  }
  function _get_interopScopeCounter_$accessor$wmqves_umgosu() {
    _init_properties_Native_js_kt__80argu();
    return get_interopScopeCounter();
  }
  function _set_interopScopeCounter_$accessor$wmqves_ygusxq(_set____db54di) {
    _init_properties_Native_js_kt__80argu();
    return set_interopScopeCounter(_set____db54di);
  }
  function _get_INTEROP_SCOPE_$accessor$wmqves_peku9r() {
    _init_properties_Native_js_kt__80argu();
    return get_INTEROP_SCOPE();
  }
  function _get_interopScopeCounter_$accessor$wmqves_umgosu_0() {
    _init_properties_Native_js_kt__80argu();
    return get_interopScopeCounter();
  }
  function _set_interopScopeCounter_$accessor$wmqves_ygusxq_0(_set____db54di) {
    _init_properties_Native_js_kt__80argu();
    return set_interopScopeCounter(_set____db54di);
  }
  function _get_interopScopeCounter_$accessor$wmqves_umgosu_1() {
    _init_properties_Native_js_kt__80argu();
    return get_interopScopeCounter();
  }
  function _get_INTEROP_SCOPE_$accessor$wmqves_peku9r_0() {
    _init_properties_Native_js_kt__80argu();
    return get_INTEROP_SCOPE();
  }
  var properties_initialized_Native_js_kt_fdhhkg;
  function _init_properties_Native_js_kt__80argu() {
    if (!properties_initialized_Native_js_kt_fdhhkg) {
      properties_initialized_Native_js_kt_fdhhkg = true;
      INTEROP_SCOPE = new InteropScope();
      interopScopeCounter = 0;
    }
  }
  function RefCnt_init_$Init$(ptr, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_24().PTR_1, true);
    RefCnt.call($this);
    return $this;
  }
  function RefCnt_init_$Create$(ptr) {
    return RefCnt_init_$Init$(ptr, objectCreate(protoOf(RefCnt)));
  }
  function RefCnt_init_$Init$_0(ptr, allowClose, $this) {
    Managed.call($this, ptr, _FinalizerHolder_getInstance_24().PTR_1, allowClose);
    RefCnt.call($this);
    return $this;
  }
  function RefCnt_init_$Create$_0(ptr, allowClose) {
    return RefCnt_init_$Init$_0(ptr, allowClose, objectCreate(protoOf(RefCnt)));
  }
  protoOf(RefCnt).get_refCount_qr8bgl_k$ = function () {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    return org_jetbrains_skia_impl_RefCnt__getRefCount(this.get__ptr_wohp4o_k$());
  };
  protoOf(RefCnt).toString = function () {
    var s = protoOf(Managed).toString.call(this);
    // Inline function 'kotlin.text.substring' call
    var endIndex = s.length - 1 | 0;
    // Inline function 'kotlin.js.asDynamic' call
    return s.substring(0, endIndex) + ', refCount=' + this.get_refCount_qr8bgl_k$() + ')';
  };
  function RefCnt() {
  }
  function _FinalizerHolder_24() {
    _FinalizerHolder_instance_24 = this;
    this.PTR_1 = org_jetbrains_skia_impl_RefCnt__getFinalizer();
  }
  protoOf(_FinalizerHolder_24).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_24;
  function _FinalizerHolder_getInstance_24() {
    if (_FinalizerHolder_instance_24 == null)
      new _FinalizerHolder_24();
    return _FinalizerHolder_instance_24;
  }
  function Stats() {
    Stats_instance = this;
  }
  protoOf(Stats).onNativeCall_s2f4hw_k$ = function () {
  };
  protoOf(Stats).onAllocated_1imjgi_k$ = function (className) {
  };
  protoOf(Stats).onDeallocated_sqg24d_k$ = function (className) {
  };
  var Stats_instance;
  function Stats_getInstance() {
    if (Stats_instance == null)
      new Stats();
    return Stats_instance;
  }
  function currentNanoTime() {
    return numberToLong(window.performance.now() * 1000000);
  }
  function ClipboardManager_setText(text) {
    window.navigator.clipboard.writeText(text);
  }
  function ClipboardManager_getText() {
    return null;
  }
  function ClipboardManager_hasText() {
    // Inline function 'kotlin.text.isNullOrEmpty' call
    var this_0 = ClipboardManager_getText();
    // Inline function 'kotlin.contracts.contract' call
    return !(this_0 == null ? true : charSequenceLength(this_0) === 0);
  }
  function URIHandler_openUri(uri) {
    window.open(uri, '_blank');
  }
  function maybeSynchronized(lock, block) {
    return block();
  }
  function get_SPECIAL_KEYS() {
    _init_properties_Convertors_js_kt__upzh8o();
    return SPECIAL_KEYS;
  }
  var SPECIAL_KEYS;
  function set_buttonsFlags(_set____db54di) {
    _init_properties_Convertors_js_kt__upzh8o();
    buttonsFlags = _set____db54di;
  }
  function get_buttonsFlags() {
    _init_properties_Convertors_js_kt__upzh8o();
    return buttonsFlags;
  }
  var buttonsFlags;
  var properties_initialized_Convertors_js_kt_vbq0oa;
  function _init_properties_Convertors_js_kt__upzh8o() {
    if (!properties_initialized_Convertors_js_kt_vbq0oa) {
      properties_initialized_Convertors_js_kt_vbq0oa = true;
      SPECIAL_KEYS = setOf(['Unidentified', 'Alt', 'AltGraph', 'Backspace', 'CapsLock', 'Control', 'Fn', 'FnLock', 'Hyper', 'Meta', 'NumLock', 'ScrollLock', 'Shift', 'Super', 'Symbol', 'SymbolLock', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'F10', 'F11', 'F12', 'F13', 'F14', 'F15', 'F16', 'F17', 'F18', 'F19', 'F20', 'F21', 'F22', 'ArrowLeft', 'ArrowUp', 'ArrowRight', 'ArrowDown', 'Help', 'Home', 'Delete', 'End', 'PageUp', 'PageDown', 'Escape', 'Clear', 'Clear']);
      buttonsFlags = 0;
    }
  }
  function get_hostOs() {
    _init_properties_OsArch_js_kt__jkqwph();
    return hostOs;
  }
  var hostOs;
  function get_hostArch() {
    _init_properties_OsArch_js_kt__jkqwph();
    return hostArch;
  }
  var hostArch;
  function get_hostId() {
    _init_properties_OsArch_js_kt__jkqwph();
    // Inline function 'kotlin.getValue' call
    var this_0 = hostId$delegate;
    hostId$factory();
    return this_0.get_value_j01efc_k$();
  }
  var hostId$delegate;
  function detectHostOs() {
    _init_properties_OsArch_js_kt__jkqwph();
    // Inline function 'kotlin.takeIf' call
    var this_0 = getNavigatorInfo();
    // Inline function 'kotlin.contracts.contract' call
    var tmp;
    // Inline function 'org.jetbrains.skiko.detectHostOs.<anonymous>' call
    // Inline function 'kotlin.text.isNotEmpty' call
    if (charSequenceLength(this_0) > 0) {
      tmp = this_0;
    } else {
      tmp = null;
    }
    var tmp0_elvis_lhs = tmp;
    var platformInfo = tmp0_elvis_lhs == null ? window.navigator.userAgent : tmp0_elvis_lhs;
    return contains(platformInfo, 'Android', true) ? OS_Android_getInstance() : contains(platformInfo, 'iPhone', true) ? OS_Ios_getInstance() : contains(platformInfo, 'iOS', true) ? OS_Ios_getInstance() : contains(platformInfo, 'iPad', true) ? OS_Ios_getInstance() : contains(platformInfo, 'Linux', true) ? OS_Linux_getInstance() : contains(platformInfo, 'Mac', true) ? OS_MacOS_getInstance() : contains(platformInfo, 'Win', true) ? OS_Windows_getInstance() : OS_Unknown_getInstance();
  }
  function getNavigatorInfo() {
    _init_properties_OsArch_js_kt__jkqwph();
    var tmp = navigator.userAgentData ? navigator.userAgentData.platform : navigator.platform;
    return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
  }
  function hostId$delegate$lambda() {
    _init_properties_OsArch_js_kt__jkqwph();
    return get_hostOs().get_id_kntnx8_k$() + '-' + get_hostArch().get_id_kntnx8_k$();
  }
  function hostId$factory() {
    return getPropertyCallableRef('hostId', 0, KProperty0, function () {
      return get_hostId();
    }, null);
  }
  var properties_initialized_OsArch_js_kt_ik094d;
  function _init_properties_OsArch_js_kt__jkqwph() {
    if (!properties_initialized_OsArch_js_kt_ik094d) {
      properties_initialized_OsArch_js_kt_ik094d = true;
      hostOs = detectHostOs();
      hostArch = Arch_Unknown_getInstance();
      hostId$delegate = lazy(hostId$delegate$lambda);
    }
  }
  function set_onContentScaleChanged(_set____db54di) {
    onContentScaleChanged = _set____db54di;
  }
  function get_onContentScaleChanged() {
    return onContentScaleChanged;
  }
  var onContentScaleChanged;
  var SkikoKey_KEY_UNKNOWN_instance;
  var SkikoKey_KEY_A_instance;
  var SkikoKey_KEY_S_instance;
  var SkikoKey_KEY_D_instance;
  var SkikoKey_KEY_F_instance;
  var SkikoKey_KEY_H_instance;
  var SkikoKey_KEY_G_instance;
  var SkikoKey_KEY_Z_instance;
  var SkikoKey_KEY_X_instance;
  var SkikoKey_KEY_C_instance;
  var SkikoKey_KEY_V_instance;
  var SkikoKey_KEY_B_instance;
  var SkikoKey_KEY_Q_instance;
  var SkikoKey_KEY_W_instance;
  var SkikoKey_KEY_E_instance;
  var SkikoKey_KEY_R_instance;
  var SkikoKey_KEY_Y_instance;
  var SkikoKey_KEY_T_instance;
  var SkikoKey_KEY_U_instance;
  var SkikoKey_KEY_I_instance;
  var SkikoKey_KEY_P_instance;
  var SkikoKey_KEY_L_instance;
  var SkikoKey_KEY_J_instance;
  var SkikoKey_KEY_K_instance;
  var SkikoKey_KEY_N_instance;
  var SkikoKey_KEY_M_instance;
  var SkikoKey_KEY_O_instance;
  var SkikoKey_KEY_1_instance;
  var SkikoKey_KEY_2_instance;
  var SkikoKey_KEY_3_instance;
  var SkikoKey_KEY_4_instance;
  var SkikoKey_KEY_5_instance;
  var SkikoKey_KEY_6_instance;
  var SkikoKey_KEY_7_instance;
  var SkikoKey_KEY_8_instance;
  var SkikoKey_KEY_9_instance;
  var SkikoKey_KEY_0_instance;
  var SkikoKey_KEY_CLOSE_BRACKET_instance;
  var SkikoKey_KEY_OPEN_BRACKET_instance;
  var SkikoKey_KEY_QUOTE_instance;
  var SkikoKey_KEY_SEMICOLON_instance;
  var SkikoKey_KEY_SLASH_instance;
  var SkikoKey_KEY_COMMA_instance;
  var SkikoKey_KEY_BACKSLASH_instance;
  var SkikoKey_KEY_PERIOD_instance;
  var SkikoKey_KEY_BACK_QUOTE_instance;
  var SkikoKey_KEY_EQUALS_instance;
  var SkikoKey_KEY_MINUS_instance;
  var SkikoKey_KEY_ENTER_instance;
  var SkikoKey_KEY_ESCAPE_instance;
  var SkikoKey_KEY_TAB_instance;
  var SkikoKey_KEY_BACKSPACE_instance;
  var SkikoKey_KEY_SPACE_instance;
  var SkikoKey_KEY_CAPSLOCK_instance;
  var SkikoKey_KEY_LEFT_META_instance;
  var SkikoKey_KEY_LEFT_SHIFT_instance;
  var SkikoKey_KEY_LEFT_ALT_instance;
  var SkikoKey_KEY_LEFT_CONTROL_instance;
  var SkikoKey_KEY_RIGHT_META_instance;
  var SkikoKey_KEY_RIGHT_SHIFT_instance;
  var SkikoKey_KEY_RIGHT_ALT_instance;
  var SkikoKey_KEY_RIGHT_CONTROL_instance;
  var SkikoKey_KEY_MENU_instance;
  var SkikoKey_KEY_UP_instance;
  var SkikoKey_KEY_DOWN_instance;
  var SkikoKey_KEY_LEFT_instance;
  var SkikoKey_KEY_RIGHT_instance;
  var SkikoKey_KEY_F1_instance;
  var SkikoKey_KEY_F2_instance;
  var SkikoKey_KEY_F3_instance;
  var SkikoKey_KEY_F4_instance;
  var SkikoKey_KEY_F5_instance;
  var SkikoKey_KEY_F6_instance;
  var SkikoKey_KEY_F7_instance;
  var SkikoKey_KEY_F8_instance;
  var SkikoKey_KEY_F9_instance;
  var SkikoKey_KEY_F10_instance;
  var SkikoKey_KEY_F11_instance;
  var SkikoKey_KEY_F12_instance;
  var SkikoKey_KEY_PRINTSCEEN_instance;
  var SkikoKey_KEY_SCROLL_LOCK_instance;
  var SkikoKey_KEY_PAUSE_instance;
  var SkikoKey_KEY_INSERT_instance;
  var SkikoKey_KEY_HOME_instance;
  var SkikoKey_KEY_PGUP_instance;
  var SkikoKey_KEY_DELETE_instance;
  var SkikoKey_KEY_END_instance;
  var SkikoKey_KEY_PGDOWN_instance;
  var SkikoKey_KEY_NUM_LOCK_instance;
  var SkikoKey_KEY_NUMPAD_0_instance;
  var SkikoKey_KEY_NUMPAD_1_instance;
  var SkikoKey_KEY_NUMPAD_2_instance;
  var SkikoKey_KEY_NUMPAD_3_instance;
  var SkikoKey_KEY_NUMPAD_4_instance;
  var SkikoKey_KEY_NUMPAD_5_instance;
  var SkikoKey_KEY_NUMPAD_6_instance;
  var SkikoKey_KEY_NUMPAD_7_instance;
  var SkikoKey_KEY_NUMPAD_8_instance;
  var SkikoKey_KEY_NUMPAD_9_instance;
  var SkikoKey_KEY_NUMPAD_ENTER_instance;
  var SkikoKey_KEY_NUMPAD_ADD_instance;
  var SkikoKey_KEY_NUMPAD_SUBTRACT_instance;
  var SkikoKey_KEY_NUMPAD_MULTIPLY_instance;
  var SkikoKey_KEY_NUMPAD_DIVIDE_instance;
  var SkikoKey_KEY_NUMPAD_DECIMAL_instance;
  function Companion_77() {
    Companion_instance_77 = this;
  }
  protoOf(Companion_77).valueOf_t43jdc_k$ = function (platformKeyCode) {
    var tmp$ret$1;
    $l$block: {
      // Inline function 'kotlin.collections.firstOrNull' call
      var indexedObject = values_40();
      var inductionVariable = 0;
      var last = indexedObject.length;
      while (inductionVariable < last) {
        var element = indexedObject[inductionVariable];
        inductionVariable = inductionVariable + 1 | 0;
        // Inline function 'org.jetbrains.skiko.Companion.valueOf.<anonymous>' call
        if (element.platformKeyCode_1 === platformKeyCode) {
          tmp$ret$1 = element;
          break $l$block;
        }
      }
      tmp$ret$1 = null;
    }
    var tmp0_elvis_lhs = tmp$ret$1;
    return tmp0_elvis_lhs == null ? SkikoKey_KEY_UNKNOWN_getInstance() : tmp0_elvis_lhs;
  };
  var Companion_instance_77;
  function Companion_getInstance_78() {
    SkikoKey_initEntries();
    if (Companion_instance_77 == null)
      new Companion_77();
    return Companion_instance_77;
  }
  function values_40() {
    return [SkikoKey_KEY_UNKNOWN_getInstance(), SkikoKey_KEY_A_getInstance(), SkikoKey_KEY_S_getInstance(), SkikoKey_KEY_D_getInstance(), SkikoKey_KEY_F_getInstance(), SkikoKey_KEY_H_getInstance(), SkikoKey_KEY_G_getInstance(), SkikoKey_KEY_Z_getInstance(), SkikoKey_KEY_X_getInstance(), SkikoKey_KEY_C_getInstance(), SkikoKey_KEY_V_getInstance(), SkikoKey_KEY_B_getInstance(), SkikoKey_KEY_Q_getInstance(), SkikoKey_KEY_W_getInstance(), SkikoKey_KEY_E_getInstance(), SkikoKey_KEY_R_getInstance(), SkikoKey_KEY_Y_getInstance(), SkikoKey_KEY_T_getInstance(), SkikoKey_KEY_U_getInstance(), SkikoKey_KEY_I_getInstance(), SkikoKey_KEY_P_getInstance(), SkikoKey_KEY_L_getInstance(), SkikoKey_KEY_J_getInstance(), SkikoKey_KEY_K_getInstance(), SkikoKey_KEY_N_getInstance(), SkikoKey_KEY_M_getInstance(), SkikoKey_KEY_O_getInstance(), SkikoKey_KEY_1_getInstance(), SkikoKey_KEY_2_getInstance(), SkikoKey_KEY_3_getInstance(), SkikoKey_KEY_4_getInstance(), SkikoKey_KEY_5_getInstance(), SkikoKey_KEY_6_getInstance(), SkikoKey_KEY_7_getInstance(), SkikoKey_KEY_8_getInstance(), SkikoKey_KEY_9_getInstance(), SkikoKey_KEY_0_getInstance(), SkikoKey_KEY_CLOSE_BRACKET_getInstance(), SkikoKey_KEY_OPEN_BRACKET_getInstance(), SkikoKey_KEY_QUOTE_getInstance(), SkikoKey_KEY_SEMICOLON_getInstance(), SkikoKey_KEY_SLASH_getInstance(), SkikoKey_KEY_COMMA_getInstance(), SkikoKey_KEY_BACKSLASH_getInstance(), SkikoKey_KEY_PERIOD_getInstance(), SkikoKey_KEY_BACK_QUOTE_getInstance(), SkikoKey_KEY_EQUALS_getInstance(), SkikoKey_KEY_MINUS_getInstance(), SkikoKey_KEY_ENTER_getInstance(), SkikoKey_KEY_ESCAPE_getInstance(), SkikoKey_KEY_TAB_getInstance(), SkikoKey_KEY_BACKSPACE_getInstance(), SkikoKey_KEY_SPACE_getInstance(), SkikoKey_KEY_CAPSLOCK_getInstance(), SkikoKey_KEY_LEFT_META_getInstance(), SkikoKey_KEY_LEFT_SHIFT_getInstance(), SkikoKey_KEY_LEFT_ALT_getInstance(), SkikoKey_KEY_LEFT_CONTROL_getInstance(), SkikoKey_KEY_RIGHT_META_getInstance(), SkikoKey_KEY_RIGHT_SHIFT_getInstance(), SkikoKey_KEY_RIGHT_ALT_getInstance(), SkikoKey_KEY_RIGHT_CONTROL_getInstance(), SkikoKey_KEY_MENU_getInstance(), SkikoKey_KEY_UP_getInstance(), SkikoKey_KEY_DOWN_getInstance(), SkikoKey_KEY_LEFT_getInstance(), SkikoKey_KEY_RIGHT_getInstance(), SkikoKey_KEY_F1_getInstance(), SkikoKey_KEY_F2_getInstance(), SkikoKey_KEY_F3_getInstance(), SkikoKey_KEY_F4_getInstance(), SkikoKey_KEY_F5_getInstance(), SkikoKey_KEY_F6_getInstance(), SkikoKey_KEY_F7_getInstance(), SkikoKey_KEY_F8_getInstance(), SkikoKey_KEY_F9_getInstance(), SkikoKey_KEY_F10_getInstance(), SkikoKey_KEY_F11_getInstance(), SkikoKey_KEY_F12_getInstance(), SkikoKey_KEY_PRINTSCEEN_getInstance(), SkikoKey_KEY_SCROLL_LOCK_getInstance(), SkikoKey_KEY_PAUSE_getInstance(), SkikoKey_KEY_INSERT_getInstance(), SkikoKey_KEY_HOME_getInstance(), SkikoKey_KEY_PGUP_getInstance(), SkikoKey_KEY_DELETE_getInstance(), SkikoKey_KEY_END_getInstance(), SkikoKey_KEY_PGDOWN_getInstance(), SkikoKey_KEY_NUM_LOCK_getInstance(), SkikoKey_KEY_NUMPAD_0_getInstance(), SkikoKey_KEY_NUMPAD_1_getInstance(), SkikoKey_KEY_NUMPAD_2_getInstance(), SkikoKey_KEY_NUMPAD_3_getInstance(), SkikoKey_KEY_NUMPAD_4_getInstance(), SkikoKey_KEY_NUMPAD_5_getInstance(), SkikoKey_KEY_NUMPAD_6_getInstance(), SkikoKey_KEY_NUMPAD_7_getInstance(), SkikoKey_KEY_NUMPAD_8_getInstance(), SkikoKey_KEY_NUMPAD_9_getInstance(), SkikoKey_KEY_NUMPAD_ENTER_getInstance(), SkikoKey_KEY_NUMPAD_ADD_getInstance(), SkikoKey_KEY_NUMPAD_SUBTRACT_getInstance(), SkikoKey_KEY_NUMPAD_MULTIPLY_getInstance(), SkikoKey_KEY_NUMPAD_DIVIDE_getInstance(), SkikoKey_KEY_NUMPAD_DECIMAL_getInstance()];
  }
  function valueOf_40(value) {
    switch (value) {
      case 'KEY_UNKNOWN':
        return SkikoKey_KEY_UNKNOWN_getInstance();
      case 'KEY_A':
        return SkikoKey_KEY_A_getInstance();
      case 'KEY_S':
        return SkikoKey_KEY_S_getInstance();
      case 'KEY_D':
        return SkikoKey_KEY_D_getInstance();
      case 'KEY_F':
        return SkikoKey_KEY_F_getInstance();
      case 'KEY_H':
        return SkikoKey_KEY_H_getInstance();
      case 'KEY_G':
        return SkikoKey_KEY_G_getInstance();
      case 'KEY_Z':
        return SkikoKey_KEY_Z_getInstance();
      case 'KEY_X':
        return SkikoKey_KEY_X_getInstance();
      case 'KEY_C':
        return SkikoKey_KEY_C_getInstance();
      case 'KEY_V':
        return SkikoKey_KEY_V_getInstance();
      case 'KEY_B':
        return SkikoKey_KEY_B_getInstance();
      case 'KEY_Q':
        return SkikoKey_KEY_Q_getInstance();
      case 'KEY_W':
        return SkikoKey_KEY_W_getInstance();
      case 'KEY_E':
        return SkikoKey_KEY_E_getInstance();
      case 'KEY_R':
        return SkikoKey_KEY_R_getInstance();
      case 'KEY_Y':
        return SkikoKey_KEY_Y_getInstance();
      case 'KEY_T':
        return SkikoKey_KEY_T_getInstance();
      case 'KEY_U':
        return SkikoKey_KEY_U_getInstance();
      case 'KEY_I':
        return SkikoKey_KEY_I_getInstance();
      case 'KEY_P':
        return SkikoKey_KEY_P_getInstance();
      case 'KEY_L':
        return SkikoKey_KEY_L_getInstance();
      case 'KEY_J':
        return SkikoKey_KEY_J_getInstance();
      case 'KEY_K':
        return SkikoKey_KEY_K_getInstance();
      case 'KEY_N':
        return SkikoKey_KEY_N_getInstance();
      case 'KEY_M':
        return SkikoKey_KEY_M_getInstance();
      case 'KEY_O':
        return SkikoKey_KEY_O_getInstance();
      case 'KEY_1':
        return SkikoKey_KEY_1_getInstance();
      case 'KEY_2':
        return SkikoKey_KEY_2_getInstance();
      case 'KEY_3':
        return SkikoKey_KEY_3_getInstance();
      case 'KEY_4':
        return SkikoKey_KEY_4_getInstance();
      case 'KEY_5':
        return SkikoKey_KEY_5_getInstance();
      case 'KEY_6':
        return SkikoKey_KEY_6_getInstance();
      case 'KEY_7':
        return SkikoKey_KEY_7_getInstance();
      case 'KEY_8':
        return SkikoKey_KEY_8_getInstance();
      case 'KEY_9':
        return SkikoKey_KEY_9_getInstance();
      case 'KEY_0':
        return SkikoKey_KEY_0_getInstance();
      case 'KEY_CLOSE_BRACKET':
        return SkikoKey_KEY_CLOSE_BRACKET_getInstance();
      case 'KEY_OPEN_BRACKET':
        return SkikoKey_KEY_OPEN_BRACKET_getInstance();
      case 'KEY_QUOTE':
        return SkikoKey_KEY_QUOTE_getInstance();
      case 'KEY_SEMICOLON':
        return SkikoKey_KEY_SEMICOLON_getInstance();
      case 'KEY_SLASH':
        return SkikoKey_KEY_SLASH_getInstance();
      case 'KEY_COMMA':
        return SkikoKey_KEY_COMMA_getInstance();
      case 'KEY_BACKSLASH':
        return SkikoKey_KEY_BACKSLASH_getInstance();
      case 'KEY_PERIOD':
        return SkikoKey_KEY_PERIOD_getInstance();
      case 'KEY_BACK_QUOTE':
        return SkikoKey_KEY_BACK_QUOTE_getInstance();
      case 'KEY_EQUALS':
        return SkikoKey_KEY_EQUALS_getInstance();
      case 'KEY_MINUS':
        return SkikoKey_KEY_MINUS_getInstance();
      case 'KEY_ENTER':
        return SkikoKey_KEY_ENTER_getInstance();
      case 'KEY_ESCAPE':
        return SkikoKey_KEY_ESCAPE_getInstance();
      case 'KEY_TAB':
        return SkikoKey_KEY_TAB_getInstance();
      case 'KEY_BACKSPACE':
        return SkikoKey_KEY_BACKSPACE_getInstance();
      case 'KEY_SPACE':
        return SkikoKey_KEY_SPACE_getInstance();
      case 'KEY_CAPSLOCK':
        return SkikoKey_KEY_CAPSLOCK_getInstance();
      case 'KEY_LEFT_META':
        return SkikoKey_KEY_LEFT_META_getInstance();
      case 'KEY_LEFT_SHIFT':
        return SkikoKey_KEY_LEFT_SHIFT_getInstance();
      case 'KEY_LEFT_ALT':
        return SkikoKey_KEY_LEFT_ALT_getInstance();
      case 'KEY_LEFT_CONTROL':
        return SkikoKey_KEY_LEFT_CONTROL_getInstance();
      case 'KEY_RIGHT_META':
        return SkikoKey_KEY_RIGHT_META_getInstance();
      case 'KEY_RIGHT_SHIFT':
        return SkikoKey_KEY_RIGHT_SHIFT_getInstance();
      case 'KEY_RIGHT_ALT':
        return SkikoKey_KEY_RIGHT_ALT_getInstance();
      case 'KEY_RIGHT_CONTROL':
        return SkikoKey_KEY_RIGHT_CONTROL_getInstance();
      case 'KEY_MENU':
        return SkikoKey_KEY_MENU_getInstance();
      case 'KEY_UP':
        return SkikoKey_KEY_UP_getInstance();
      case 'KEY_DOWN':
        return SkikoKey_KEY_DOWN_getInstance();
      case 'KEY_LEFT':
        return SkikoKey_KEY_LEFT_getInstance();
      case 'KEY_RIGHT':
        return SkikoKey_KEY_RIGHT_getInstance();
      case 'KEY_F1':
        return SkikoKey_KEY_F1_getInstance();
      case 'KEY_F2':
        return SkikoKey_KEY_F2_getInstance();
      case 'KEY_F3':
        return SkikoKey_KEY_F3_getInstance();
      case 'KEY_F4':
        return SkikoKey_KEY_F4_getInstance();
      case 'KEY_F5':
        return SkikoKey_KEY_F5_getInstance();
      case 'KEY_F6':
        return SkikoKey_KEY_F6_getInstance();
      case 'KEY_F7':
        return SkikoKey_KEY_F7_getInstance();
      case 'KEY_F8':
        return SkikoKey_KEY_F8_getInstance();
      case 'KEY_F9':
        return SkikoKey_KEY_F9_getInstance();
      case 'KEY_F10':
        return SkikoKey_KEY_F10_getInstance();
      case 'KEY_F11':
        return SkikoKey_KEY_F11_getInstance();
      case 'KEY_F12':
        return SkikoKey_KEY_F12_getInstance();
      case 'KEY_PRINTSCEEN':
        return SkikoKey_KEY_PRINTSCEEN_getInstance();
      case 'KEY_SCROLL_LOCK':
        return SkikoKey_KEY_SCROLL_LOCK_getInstance();
      case 'KEY_PAUSE':
        return SkikoKey_KEY_PAUSE_getInstance();
      case 'KEY_INSERT':
        return SkikoKey_KEY_INSERT_getInstance();
      case 'KEY_HOME':
        return SkikoKey_KEY_HOME_getInstance();
      case 'KEY_PGUP':
        return SkikoKey_KEY_PGUP_getInstance();
      case 'KEY_DELETE':
        return SkikoKey_KEY_DELETE_getInstance();
      case 'KEY_END':
        return SkikoKey_KEY_END_getInstance();
      case 'KEY_PGDOWN':
        return SkikoKey_KEY_PGDOWN_getInstance();
      case 'KEY_NUM_LOCK':
        return SkikoKey_KEY_NUM_LOCK_getInstance();
      case 'KEY_NUMPAD_0':
        return SkikoKey_KEY_NUMPAD_0_getInstance();
      case 'KEY_NUMPAD_1':
        return SkikoKey_KEY_NUMPAD_1_getInstance();
      case 'KEY_NUMPAD_2':
        return SkikoKey_KEY_NUMPAD_2_getInstance();
      case 'KEY_NUMPAD_3':
        return SkikoKey_KEY_NUMPAD_3_getInstance();
      case 'KEY_NUMPAD_4':
        return SkikoKey_KEY_NUMPAD_4_getInstance();
      case 'KEY_NUMPAD_5':
        return SkikoKey_KEY_NUMPAD_5_getInstance();
      case 'KEY_NUMPAD_6':
        return SkikoKey_KEY_NUMPAD_6_getInstance();
      case 'KEY_NUMPAD_7':
        return SkikoKey_KEY_NUMPAD_7_getInstance();
      case 'KEY_NUMPAD_8':
        return SkikoKey_KEY_NUMPAD_8_getInstance();
      case 'KEY_NUMPAD_9':
        return SkikoKey_KEY_NUMPAD_9_getInstance();
      case 'KEY_NUMPAD_ENTER':
        return SkikoKey_KEY_NUMPAD_ENTER_getInstance();
      case 'KEY_NUMPAD_ADD':
        return SkikoKey_KEY_NUMPAD_ADD_getInstance();
      case 'KEY_NUMPAD_SUBTRACT':
        return SkikoKey_KEY_NUMPAD_SUBTRACT_getInstance();
      case 'KEY_NUMPAD_MULTIPLY':
        return SkikoKey_KEY_NUMPAD_MULTIPLY_getInstance();
      case 'KEY_NUMPAD_DIVIDE':
        return SkikoKey_KEY_NUMPAD_DIVIDE_getInstance();
      case 'KEY_NUMPAD_DECIMAL':
        return SkikoKey_KEY_NUMPAD_DECIMAL_getInstance();
      default:
        SkikoKey_initEntries();
        THROW_IAE('No enum constant value.');
        break;
    }
  }
  var SkikoKey_entriesInitialized;
  function SkikoKey_initEntries() {
    if (SkikoKey_entriesInitialized)
      return Unit_getInstance();
    SkikoKey_entriesInitialized = true;
    SkikoKey_KEY_UNKNOWN_instance = new SkikoKey('KEY_UNKNOWN', 0, -1);
    SkikoKey_KEY_A_instance = new SkikoKey('KEY_A', 1, 65);
    SkikoKey_KEY_S_instance = new SkikoKey('KEY_S', 2, 83);
    SkikoKey_KEY_D_instance = new SkikoKey('KEY_D', 3, 68);
    SkikoKey_KEY_F_instance = new SkikoKey('KEY_F', 4, 70);
    SkikoKey_KEY_H_instance = new SkikoKey('KEY_H', 5, 72);
    SkikoKey_KEY_G_instance = new SkikoKey('KEY_G', 6, 71);
    SkikoKey_KEY_Z_instance = new SkikoKey('KEY_Z', 7, 90);
    SkikoKey_KEY_X_instance = new SkikoKey('KEY_X', 8, 88);
    SkikoKey_KEY_C_instance = new SkikoKey('KEY_C', 9, 67);
    SkikoKey_KEY_V_instance = new SkikoKey('KEY_V', 10, 86);
    SkikoKey_KEY_B_instance = new SkikoKey('KEY_B', 11, 66);
    SkikoKey_KEY_Q_instance = new SkikoKey('KEY_Q', 12, 81);
    SkikoKey_KEY_W_instance = new SkikoKey('KEY_W', 13, 87);
    SkikoKey_KEY_E_instance = new SkikoKey('KEY_E', 14, 69);
    SkikoKey_KEY_R_instance = new SkikoKey('KEY_R', 15, 82);
    SkikoKey_KEY_Y_instance = new SkikoKey('KEY_Y', 16, 89);
    SkikoKey_KEY_T_instance = new SkikoKey('KEY_T', 17, 54);
    SkikoKey_KEY_U_instance = new SkikoKey('KEY_U', 18, 85);
    SkikoKey_KEY_I_instance = new SkikoKey('KEY_I', 19, 73);
    SkikoKey_KEY_P_instance = new SkikoKey('KEY_P', 20, 80);
    SkikoKey_KEY_L_instance = new SkikoKey('KEY_L', 21, 76);
    SkikoKey_KEY_J_instance = new SkikoKey('KEY_J', 22, 74);
    SkikoKey_KEY_K_instance = new SkikoKey('KEY_K', 23, 75);
    SkikoKey_KEY_N_instance = new SkikoKey('KEY_N', 24, 78);
    SkikoKey_KEY_M_instance = new SkikoKey('KEY_M', 25, 77);
    SkikoKey_KEY_O_instance = new SkikoKey('KEY_O', 26, 79);
    SkikoKey_KEY_1_instance = new SkikoKey('KEY_1', 27, 49);
    SkikoKey_KEY_2_instance = new SkikoKey('KEY_2', 28, 50);
    SkikoKey_KEY_3_instance = new SkikoKey('KEY_3', 29, 51);
    SkikoKey_KEY_4_instance = new SkikoKey('KEY_4', 30, 52);
    SkikoKey_KEY_5_instance = new SkikoKey('KEY_5', 31, 53);
    SkikoKey_KEY_6_instance = new SkikoKey('KEY_6', 32, 54);
    SkikoKey_KEY_7_instance = new SkikoKey('KEY_7', 33, 55);
    SkikoKey_KEY_8_instance = new SkikoKey('KEY_8', 34, 56);
    SkikoKey_KEY_9_instance = new SkikoKey('KEY_9', 35, 57);
    SkikoKey_KEY_0_instance = new SkikoKey('KEY_0', 36, 48);
    SkikoKey_KEY_CLOSE_BRACKET_instance = new SkikoKey('KEY_CLOSE_BRACKET', 37, 221);
    SkikoKey_KEY_OPEN_BRACKET_instance = new SkikoKey('KEY_OPEN_BRACKET', 38, 219);
    SkikoKey_KEY_QUOTE_instance = new SkikoKey('KEY_QUOTE', 39, 222);
    SkikoKey_KEY_SEMICOLON_instance = new SkikoKey('KEY_SEMICOLON', 40, 59);
    SkikoKey_KEY_SLASH_instance = new SkikoKey('KEY_SLASH', 41, 191);
    SkikoKey_KEY_COMMA_instance = new SkikoKey('KEY_COMMA', 42, 188);
    SkikoKey_KEY_BACKSLASH_instance = new SkikoKey('KEY_BACKSLASH', 43, 220);
    SkikoKey_KEY_PERIOD_instance = new SkikoKey('KEY_PERIOD', 44, 190);
    SkikoKey_KEY_BACK_QUOTE_instance = new SkikoKey('KEY_BACK_QUOTE', 45, 192);
    SkikoKey_KEY_EQUALS_instance = new SkikoKey('KEY_EQUALS', 46, 61);
    SkikoKey_KEY_MINUS_instance = new SkikoKey('KEY_MINUS', 47, 173);
    SkikoKey_KEY_ENTER_instance = new SkikoKey('KEY_ENTER', 48, 13);
    SkikoKey_KEY_ESCAPE_instance = new SkikoKey('KEY_ESCAPE', 49, 27);
    SkikoKey_KEY_TAB_instance = new SkikoKey('KEY_TAB', 50, 9);
    SkikoKey_KEY_BACKSPACE_instance = new SkikoKey('KEY_BACKSPACE', 51, 8);
    SkikoKey_KEY_SPACE_instance = new SkikoKey('KEY_SPACE', 52, 32);
    SkikoKey_KEY_CAPSLOCK_instance = new SkikoKey('KEY_CAPSLOCK', 53, 20);
    SkikoKey_KEY_LEFT_META_instance = new SkikoKey('KEY_LEFT_META', 54, 224);
    SkikoKey_KEY_LEFT_SHIFT_instance = new SkikoKey('KEY_LEFT_SHIFT', 55, 16);
    SkikoKey_KEY_LEFT_ALT_instance = new SkikoKey('KEY_LEFT_ALT', 56, 18);
    SkikoKey_KEY_LEFT_CONTROL_instance = new SkikoKey('KEY_LEFT_CONTROL', 57, 17);
    SkikoKey_KEY_RIGHT_META_instance = new SkikoKey('KEY_RIGHT_META', 58, -2147483424);
    SkikoKey_KEY_RIGHT_SHIFT_instance = new SkikoKey('KEY_RIGHT_SHIFT', 59, -2147483632);
    SkikoKey_KEY_RIGHT_ALT_instance = new SkikoKey('KEY_RIGHT_ALT', 60, 225);
    SkikoKey_KEY_RIGHT_CONTROL_instance = new SkikoKey('KEY_RIGHT_CONTROL', 61, -2147483631);
    SkikoKey_KEY_MENU_instance = new SkikoKey('KEY_MENU', 62, 93);
    SkikoKey_KEY_UP_instance = new SkikoKey('KEY_UP', 63, 38);
    SkikoKey_KEY_DOWN_instance = new SkikoKey('KEY_DOWN', 64, 40);
    SkikoKey_KEY_LEFT_instance = new SkikoKey('KEY_LEFT', 65, 37);
    SkikoKey_KEY_RIGHT_instance = new SkikoKey('KEY_RIGHT', 66, 39);
    SkikoKey_KEY_F1_instance = new SkikoKey('KEY_F1', 67, 112);
    SkikoKey_KEY_F2_instance = new SkikoKey('KEY_F2', 68, 113);
    SkikoKey_KEY_F3_instance = new SkikoKey('KEY_F3', 69, 114);
    SkikoKey_KEY_F4_instance = new SkikoKey('KEY_F4', 70, 115);
    SkikoKey_KEY_F5_instance = new SkikoKey('KEY_F5', 71, 116);
    SkikoKey_KEY_F6_instance = new SkikoKey('KEY_F6', 72, 117);
    SkikoKey_KEY_F7_instance = new SkikoKey('KEY_F7', 73, 118);
    SkikoKey_KEY_F8_instance = new SkikoKey('KEY_F8', 74, 119);
    SkikoKey_KEY_F9_instance = new SkikoKey('KEY_F9', 75, 120);
    SkikoKey_KEY_F10_instance = new SkikoKey('KEY_F10', 76, 121);
    SkikoKey_KEY_F11_instance = new SkikoKey('KEY_F11', 77, 122);
    SkikoKey_KEY_F12_instance = new SkikoKey('KEY_F12', 78, 123);
    SkikoKey_KEY_PRINTSCEEN_instance = new SkikoKey('KEY_PRINTSCEEN', 79, 44);
    SkikoKey_KEY_SCROLL_LOCK_instance = new SkikoKey('KEY_SCROLL_LOCK', 80, 145);
    SkikoKey_KEY_PAUSE_instance = new SkikoKey('KEY_PAUSE', 81, 19);
    SkikoKey_KEY_INSERT_instance = new SkikoKey('KEY_INSERT', 82, 45);
    SkikoKey_KEY_HOME_instance = new SkikoKey('KEY_HOME', 83, 36);
    SkikoKey_KEY_PGUP_instance = new SkikoKey('KEY_PGUP', 84, 33);
    SkikoKey_KEY_DELETE_instance = new SkikoKey('KEY_DELETE', 85, 46);
    SkikoKey_KEY_END_instance = new SkikoKey('KEY_END', 86, 35);
    SkikoKey_KEY_PGDOWN_instance = new SkikoKey('KEY_PGDOWN', 87, 34);
    SkikoKey_KEY_NUM_LOCK_instance = new SkikoKey('KEY_NUM_LOCK', 88, 144);
    SkikoKey_KEY_NUMPAD_0_instance = new SkikoKey('KEY_NUMPAD_0', 89, 96);
    SkikoKey_KEY_NUMPAD_1_instance = new SkikoKey('KEY_NUMPAD_1', 90, 97);
    SkikoKey_KEY_NUMPAD_2_instance = new SkikoKey('KEY_NUMPAD_2', 91, 98);
    SkikoKey_KEY_NUMPAD_3_instance = new SkikoKey('KEY_NUMPAD_3', 92, 99);
    SkikoKey_KEY_NUMPAD_4_instance = new SkikoKey('KEY_NUMPAD_4', 93, 100);
    SkikoKey_KEY_NUMPAD_5_instance = new SkikoKey('KEY_NUMPAD_5', 94, 101);
    SkikoKey_KEY_NUMPAD_6_instance = new SkikoKey('KEY_NUMPAD_6', 95, 102);
    SkikoKey_KEY_NUMPAD_7_instance = new SkikoKey('KEY_NUMPAD_7', 96, 103);
    SkikoKey_KEY_NUMPAD_8_instance = new SkikoKey('KEY_NUMPAD_8', 97, 104);
    SkikoKey_KEY_NUMPAD_9_instance = new SkikoKey('KEY_NUMPAD_9', 98, 105);
    SkikoKey_KEY_NUMPAD_ENTER_instance = new SkikoKey('KEY_NUMPAD_ENTER', 99, 14);
    SkikoKey_KEY_NUMPAD_ADD_instance = new SkikoKey('KEY_NUMPAD_ADD', 100, 107);
    SkikoKey_KEY_NUMPAD_SUBTRACT_instance = new SkikoKey('KEY_NUMPAD_SUBTRACT', 101, 109);
    SkikoKey_KEY_NUMPAD_MULTIPLY_instance = new SkikoKey('KEY_NUMPAD_MULTIPLY', 102, 106);
    SkikoKey_KEY_NUMPAD_DIVIDE_instance = new SkikoKey('KEY_NUMPAD_DIVIDE', 103, 111);
    SkikoKey_KEY_NUMPAD_DECIMAL_instance = new SkikoKey('KEY_NUMPAD_DECIMAL', 104, 110);
    Companion_getInstance_78();
  }
  function SkikoKey(name, ordinal, platformKeyCode) {
    Enum.call(this, name, ordinal);
    this.platformKeyCode_1 = platformKeyCode;
  }
  protoOf(SkikoKey).get_platformKeyCode_k11s6o_k$ = function () {
    return this.platformKeyCode_1;
  };
  function SkikoKey_KEY_UNKNOWN_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_UNKNOWN_instance;
  }
  function SkikoKey_KEY_A_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_A_instance;
  }
  function SkikoKey_KEY_S_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_S_instance;
  }
  function SkikoKey_KEY_D_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_D_instance;
  }
  function SkikoKey_KEY_F_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F_instance;
  }
  function SkikoKey_KEY_H_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_H_instance;
  }
  function SkikoKey_KEY_G_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_G_instance;
  }
  function SkikoKey_KEY_Z_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_Z_instance;
  }
  function SkikoKey_KEY_X_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_X_instance;
  }
  function SkikoKey_KEY_C_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_C_instance;
  }
  function SkikoKey_KEY_V_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_V_instance;
  }
  function SkikoKey_KEY_B_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_B_instance;
  }
  function SkikoKey_KEY_Q_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_Q_instance;
  }
  function SkikoKey_KEY_W_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_W_instance;
  }
  function SkikoKey_KEY_E_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_E_instance;
  }
  function SkikoKey_KEY_R_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_R_instance;
  }
  function SkikoKey_KEY_Y_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_Y_instance;
  }
  function SkikoKey_KEY_T_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_T_instance;
  }
  function SkikoKey_KEY_U_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_U_instance;
  }
  function SkikoKey_KEY_I_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_I_instance;
  }
  function SkikoKey_KEY_P_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_P_instance;
  }
  function SkikoKey_KEY_L_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_L_instance;
  }
  function SkikoKey_KEY_J_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_J_instance;
  }
  function SkikoKey_KEY_K_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_K_instance;
  }
  function SkikoKey_KEY_N_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_N_instance;
  }
  function SkikoKey_KEY_M_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_M_instance;
  }
  function SkikoKey_KEY_O_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_O_instance;
  }
  function SkikoKey_KEY_1_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_1_instance;
  }
  function SkikoKey_KEY_2_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_2_instance;
  }
  function SkikoKey_KEY_3_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_3_instance;
  }
  function SkikoKey_KEY_4_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_4_instance;
  }
  function SkikoKey_KEY_5_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_5_instance;
  }
  function SkikoKey_KEY_6_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_6_instance;
  }
  function SkikoKey_KEY_7_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_7_instance;
  }
  function SkikoKey_KEY_8_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_8_instance;
  }
  function SkikoKey_KEY_9_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_9_instance;
  }
  function SkikoKey_KEY_0_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_0_instance;
  }
  function SkikoKey_KEY_CLOSE_BRACKET_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_CLOSE_BRACKET_instance;
  }
  function SkikoKey_KEY_OPEN_BRACKET_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_OPEN_BRACKET_instance;
  }
  function SkikoKey_KEY_QUOTE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_QUOTE_instance;
  }
  function SkikoKey_KEY_SEMICOLON_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_SEMICOLON_instance;
  }
  function SkikoKey_KEY_SLASH_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_SLASH_instance;
  }
  function SkikoKey_KEY_COMMA_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_COMMA_instance;
  }
  function SkikoKey_KEY_BACKSLASH_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_BACKSLASH_instance;
  }
  function SkikoKey_KEY_PERIOD_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_PERIOD_instance;
  }
  function SkikoKey_KEY_BACK_QUOTE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_BACK_QUOTE_instance;
  }
  function SkikoKey_KEY_EQUALS_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_EQUALS_instance;
  }
  function SkikoKey_KEY_MINUS_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_MINUS_instance;
  }
  function SkikoKey_KEY_ENTER_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_ENTER_instance;
  }
  function SkikoKey_KEY_ESCAPE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_ESCAPE_instance;
  }
  function SkikoKey_KEY_TAB_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_TAB_instance;
  }
  function SkikoKey_KEY_BACKSPACE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_BACKSPACE_instance;
  }
  function SkikoKey_KEY_SPACE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_SPACE_instance;
  }
  function SkikoKey_KEY_CAPSLOCK_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_CAPSLOCK_instance;
  }
  function SkikoKey_KEY_LEFT_META_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_LEFT_META_instance;
  }
  function SkikoKey_KEY_LEFT_SHIFT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_LEFT_SHIFT_instance;
  }
  function SkikoKey_KEY_LEFT_ALT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_LEFT_ALT_instance;
  }
  function SkikoKey_KEY_LEFT_CONTROL_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_LEFT_CONTROL_instance;
  }
  function SkikoKey_KEY_RIGHT_META_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_RIGHT_META_instance;
  }
  function SkikoKey_KEY_RIGHT_SHIFT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_RIGHT_SHIFT_instance;
  }
  function SkikoKey_KEY_RIGHT_ALT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_RIGHT_ALT_instance;
  }
  function SkikoKey_KEY_RIGHT_CONTROL_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_RIGHT_CONTROL_instance;
  }
  function SkikoKey_KEY_MENU_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_MENU_instance;
  }
  function SkikoKey_KEY_UP_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_UP_instance;
  }
  function SkikoKey_KEY_DOWN_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_DOWN_instance;
  }
  function SkikoKey_KEY_LEFT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_LEFT_instance;
  }
  function SkikoKey_KEY_RIGHT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_RIGHT_instance;
  }
  function SkikoKey_KEY_F1_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F1_instance;
  }
  function SkikoKey_KEY_F2_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F2_instance;
  }
  function SkikoKey_KEY_F3_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F3_instance;
  }
  function SkikoKey_KEY_F4_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F4_instance;
  }
  function SkikoKey_KEY_F5_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F5_instance;
  }
  function SkikoKey_KEY_F6_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F6_instance;
  }
  function SkikoKey_KEY_F7_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F7_instance;
  }
  function SkikoKey_KEY_F8_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F8_instance;
  }
  function SkikoKey_KEY_F9_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F9_instance;
  }
  function SkikoKey_KEY_F10_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F10_instance;
  }
  function SkikoKey_KEY_F11_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F11_instance;
  }
  function SkikoKey_KEY_F12_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_F12_instance;
  }
  function SkikoKey_KEY_PRINTSCEEN_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_PRINTSCEEN_instance;
  }
  function SkikoKey_KEY_SCROLL_LOCK_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_SCROLL_LOCK_instance;
  }
  function SkikoKey_KEY_PAUSE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_PAUSE_instance;
  }
  function SkikoKey_KEY_INSERT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_INSERT_instance;
  }
  function SkikoKey_KEY_HOME_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_HOME_instance;
  }
  function SkikoKey_KEY_PGUP_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_PGUP_instance;
  }
  function SkikoKey_KEY_DELETE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_DELETE_instance;
  }
  function SkikoKey_KEY_END_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_END_instance;
  }
  function SkikoKey_KEY_PGDOWN_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_PGDOWN_instance;
  }
  function SkikoKey_KEY_NUM_LOCK_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUM_LOCK_instance;
  }
  function SkikoKey_KEY_NUMPAD_0_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_0_instance;
  }
  function SkikoKey_KEY_NUMPAD_1_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_1_instance;
  }
  function SkikoKey_KEY_NUMPAD_2_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_2_instance;
  }
  function SkikoKey_KEY_NUMPAD_3_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_3_instance;
  }
  function SkikoKey_KEY_NUMPAD_4_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_4_instance;
  }
  function SkikoKey_KEY_NUMPAD_5_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_5_instance;
  }
  function SkikoKey_KEY_NUMPAD_6_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_6_instance;
  }
  function SkikoKey_KEY_NUMPAD_7_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_7_instance;
  }
  function SkikoKey_KEY_NUMPAD_8_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_8_instance;
  }
  function SkikoKey_KEY_NUMPAD_9_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_9_instance;
  }
  function SkikoKey_KEY_NUMPAD_ENTER_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_ENTER_instance;
  }
  function SkikoKey_KEY_NUMPAD_ADD_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_ADD_instance;
  }
  function SkikoKey_KEY_NUMPAD_SUBTRACT_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_SUBTRACT_instance;
  }
  function SkikoKey_KEY_NUMPAD_MULTIPLY_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_MULTIPLY_instance;
  }
  function SkikoKey_KEY_NUMPAD_DIVIDE_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_DIVIDE_instance;
  }
  function SkikoKey_KEY_NUMPAD_DECIMAL_getInstance() {
    SkikoKey_initEntries();
    return SkikoKey_KEY_NUMPAD_DECIMAL_instance;
  }
  function get_currentSystemTheme() {
    return SystemTheme_UNKNOWN_getInstance();
  }
  function doInit(_this__u8e3s4, ptr) {
    Stats_getInstance().onNativeCall_s2f4hw_k$();
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var onDrawCallback = $this$interopScope.virtual_41wz7n_k$(doInit$lambda(_this__u8e3s4, $this$interopScope));
        var onGetBoundsCallback = $this$interopScope.virtual_41wz7n_k$(doInit$lambda_0(_this__u8e3s4));
        org_jetbrains_skia_Drawable__1nInit(_this__u8e3s4.get__ptr_wohp4o_k$(), onGetBoundsCallback, onDrawCallback);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  }
  function doInit$lambda($this_doInit, $$this$interopScope) {
    return function () {
      $this_doInit.onDraw_nrst1d_k$(new Canvas(org_jetbrains_skia_Drawable__1nGetOnDrawCanvas($this_doInit.get__ptr_wohp4o_k$()), false, $$this$interopScope));
      return Unit_getInstance();
    };
  }
  function doInit$lambda_0($this_doInit) {
    return function () {
      var bounds = $this_doInit.onGetBounds_4nwqrw_k$();
      org_jetbrains_skia_Drawable__1nSetBounds($this_doInit.get__ptr_wohp4o_k$(), bounds.get_left_woprgw_k$(), bounds.get_top_18ivbo_k$(), bounds.get_right_ixz7xv_k$(), bounds.get_bottom_bj8ras_k$());
      return Unit_getInstance();
    };
  }
  function makeFromResultPtr(_this__u8e3s4, ptr) {
    var errorPtr = org_jetbrains_skia_RuntimeEffect__1Result_nGetError(ptr);
    if (errorPtr === Companion_getInstance_77().get_NullPointer_8qbg7n_k$()) {
      var effectPtr = org_jetbrains_skia_RuntimeEffect__1Result_nGetPtr(ptr);
      org_jetbrains_skia_RuntimeEffect__1Result_nDestroy(ptr);
      return new RuntimeEffect(effectPtr);
    } else {
      // Inline function 'org.jetbrains.skia.impl.withStringReferenceResult' call
      // Inline function 'org.jetbrains.skia.makeFromResultPtr.<anonymous>' call
      var string = new ManagedString(errorPtr, false);
      var error = string.toString();
      org_jetbrains_skia_RuntimeEffect__1Result_nDestroy(ptr);
      throw Error_init_$Create$(error);
    }
  }
  function doShape(_this__u8e3s4, textUtf8, fontIter, bidiIter, scriptIter, langIter, opts, width, runHandler) {
    var managedFontIter = toManaged(fontIter, textUtf8);
    var managedBidiIter = toManaged_0(bidiIter, textUtf8);
    var managedScriptIter = toManaged_1(scriptIter, textUtf8);
    var managedLangIter = toManaged_2(langIter, textUtf8);
    var managedRunHandler = new RunHandlerImpl(runHandler);
    try {
      $l$block: {
        // Inline function 'org.jetbrains.skia.impl.interopScope' call
        try {
          var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
          var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
          var tmp = _this__u8e3s4.get__ptr_wohp4o_k$();
          var tmp_0 = getPtr(textUtf8);
          var tmp_1 = getPtr(managedFontIter);
          var tmp_2 = typeof tmp_1 === 'number' ? tmp_1 : THROW_CCE();
          var tmp_3 = getPtr(managedBidiIter);
          var tmp_4 = typeof tmp_3 === 'number' ? tmp_3 : THROW_CCE();
          var tmp_5 = getPtr(managedScriptIter);
          var tmp_6 = typeof tmp_5 === 'number' ? tmp_5 : THROW_CCE();
          var tmp_7 = getPtr(managedLangIter);
          var tmp_8 = typeof tmp_7 === 'number' ? tmp_7 : THROW_CCE();
          var tmp0_safe_receiver = opts.get_features_yf4h6u_k$();
          var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.length;
          var tmp_9 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
          var tmp_10 = Companion_getInstance_12().arrayOfFontFeaturesToInterop_2tlmgk_k$($this$interopScope, opts.get_features_yf4h6u_k$());
          var tmp_11 = opts._booleanPropsToInt_ers7fx_k$();
          var tmp_12 = getPtr(managedRunHandler);
          org_jetbrains_skia_shaper_Shaper__1nShape(tmp, tmp_0, tmp_2, tmp_4, tmp_6, tmp_8, tmp_9, tmp_10, tmp_11, width, typeof tmp_12 === 'number' ? tmp_12 : THROW_CCE());
          break $l$block;
        }finally {
          var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
          _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
          if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
            _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
          }
        }
      }
    }finally {
      reachabilityBarrier(managedFontIter);
      reachabilityBarrier(managedBidiIter);
      reachabilityBarrier(managedScriptIter);
      reachabilityBarrier(managedLangIter);
      reachabilityBarrier(managedRunHandler);
      reachabilityBarrier(textUtf8);
    }
  }
  function toManaged(iter, text) {
    var tmp;
    if (iter instanceof ManagedRunIterator) {
      tmp = iter;
    } else {
      tmp = Companion_getInstance_79().fromIterator_9oq519_k$(iter, text);
    }
    return tmp;
  }
  function toManaged_0(iter, text) {
    var tmp;
    if (iter instanceof ManagedRunIterator) {
      tmp = iter;
    } else {
      tmp = Companion_getInstance_79().fromIterator_hhtbmi_k$(iter, text);
    }
    return tmp;
  }
  function toManaged_1(iter, text) {
    var tmp;
    if (iter instanceof ManagedRunIterator) {
      tmp = iter;
    } else {
      tmp = Companion_getInstance_79().fromIterator_b66haf_k$(iter, text);
    }
    return tmp;
  }
  function toManaged_2(iter, text) {
    var tmp;
    if (iter instanceof ManagedRunIterator) {
      tmp = iter;
    } else {
      tmp = Companion_getInstance_79().fromIterator_vgy0pm_k$(iter, text);
    }
    return tmp;
  }
  function getGlyphs($this, count) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int16Array(count);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_c5u4tv_k$(result);
        // Inline function 'org.jetbrains.skia.shaper.RunHandlerImpl.getGlyphs.<anonymous>' call
        org_jetbrains_skia_shaper_Shaper_RunHandler_1nGetGlyphs($this.get__ptr_wohp4o_k$(), handle);
        $this$interopScope.fromInterop_awvpm7_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function getClusters($this, count) {
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(count);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        // Inline function 'org.jetbrains.skia.shaper.RunHandlerImpl.getClusters.<anonymous>' call
        org_jetbrains_skia_shaper_Shaper_RunHandler_1nGetClusters($this.get__ptr_wohp4o_k$(), handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return result;
  }
  function getPositions($this, count) {
    var tmp = Companion_getInstance_42();
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Float32Array(imul(count, 2));
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_8kh23x_k$(result);
        // Inline function 'org.jetbrains.skia.shaper.RunHandlerImpl.getPositions.<anonymous>' call
        org_jetbrains_skia_shaper_Shaper_RunHandler_1nGetPositions($this.get__ptr_wohp4o_k$(), handle);
        $this$interopScope.fromInterop_s0mjrj_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    return tmp.fromArray_3oemf6_k$(result);
  }
  function setOffset($this, point) {
    org_jetbrains_skia_shaper_Shaper_RunHandler_1nSetOffset($this.get__ptr_wohp4o_k$(), point.get_x_1mhr67_k$(), point.get_y_1mhr68_k$());
  }
  function _get_runInfo__mpn2y0($this) {
    var fontPtr = Companion_getInstance_77().get_NullPointer_8qbg7n_k$();
    // Inline function 'org.jetbrains.skia.impl.withResult' call
    var result = new Int32Array(6);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.impl.withResult.<anonymous>' call
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var handle = $this$interopScope.toInteropForResult_adrhc_k$(result);
        // Inline function 'org.jetbrains.skia.shaper.RunHandlerImpl.<get-runInfo>.<anonymous>' call
        fontPtr = org_jetbrains_skia_shaper_Shaper_RunHandler_1nGetRunInfo($this.get__ptr_wohp4o_k$(), handle);
        $this$interopScope.fromInterop_1rw4p0_k$(handle, result);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    var repr = result;
    var tmp = fontPtr;
    var tmp_0 = repr[0];
    // Inline function 'kotlin.fromBits' call
    FloatCompanionObject_getInstance();
    var bits = repr[1];
    var tmp_1 = floatFromBits(bits);
    // Inline function 'kotlin.fromBits' call
    FloatCompanionObject_getInstance();
    var bits_0 = repr[2];
    var tmp$ret$4 = floatFromBits(bits_0);
    return new RunInfo(tmp, tmp_0, tmp_1, tmp$ret$4, repr[3], repr[4], repr[5]);
  }
  function _FinalizerHolder_25() {
    _FinalizerHolder_instance_25 = this;
    this.PTR_1 = org_jetbrains_skia_shaper_Shaper_RunHandler_1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_25).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_25;
  function _FinalizerHolder_getInstance_25() {
    if (_FinalizerHolder_instance_25 == null)
      new _FinalizerHolder_25();
    return _FinalizerHolder_instance_25;
  }
  function RunHandlerImpl$lambda(this$0) {
    return function () {
      this$0.runHandler_1.beginLine_xdfl9p_k$();
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl$lambda_0(this$0) {
    return function () {
      this$0.runHandler_1.commitRunInfo_2i4jse_k$();
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl$lambda_1(this$0) {
    return function () {
      this$0.runHandler_1.commitLine_dpq805_k$();
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl$lambda_2($impl, this$0) {
    return function () {
      var info = _get_runInfo__mpn2y0($impl);
      var glyphs = getGlyphs($impl, info.get_glyphCount_z69tmc_k$());
      var clusters = getClusters($impl, info.get_glyphCount_z69tmc_k$());
      var positions = getPositions($impl, info.get_glyphCount_z69tmc_k$());
      this$0.runHandler_1.commitRun_bi0627_k$(info, glyphs, positions, clusters);
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl$lambda_3(this$0, $impl) {
    return function () {
      this$0.runHandler_1.runInfo_avwj50_k$(_get_runInfo__mpn2y0($impl));
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl$lambda_4(this$0, $impl) {
    return function () {
      var tmp0_safe_receiver = this$0.runHandler_1.runOffset_m27k7t_k$(_get_runInfo__mpn2y0($impl));
      if (tmp0_safe_receiver == null)
        null;
      else {
        // Inline function 'kotlin.let' call
        // Inline function 'kotlin.contracts.contract' call
        setOffset($impl, tmp0_safe_receiver);
      }
      return Unit_getInstance();
    };
  }
  function RunHandlerImpl(runHandler) {
    Managed.call(this, org_jetbrains_skia_shaper_Shaper_RunHandler_1nCreate(), _FinalizerHolder_getInstance_25().PTR_1);
    this.runHandler_1 = runHandler;
    var impl = this;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var tmp0_ptr = this.get__ptr_wohp4o_k$();
        var tmp1_onBeginLine = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda(this));
        var tmp2_onCommitRunInfo = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda_0(this));
        var tmp3_onCommitLine = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda_1(this));
        var tmp4_onCommitRun = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda_2(impl, this));
        var tmp5_onRunInfo = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda_3(this, impl));
        var tmp6_onRunOffset = $this$interopScope.virtual_41wz7n_k$(RunHandlerImpl$lambda_4(this, impl));
        org_jetbrains_skia_shaper_Shaper_RunHandler_1nInit(tmp0_ptr, tmp1_onBeginLine, tmp5_onRunInfo, tmp2_onCommitRunInfo, tmp6_onRunOffset, tmp4_onCommitRun, tmp3_onCommitLine);
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  }
  protoOf(RunHandlerImpl).get_runHandler_vs5cjs_k$ = function () {
    return this.runHandler_1;
  };
  function _FinalizerHolder_26() {
    _FinalizerHolder_instance_26 = this;
    this.PTR_1 = org_jetbrains_skia_shaper_Shaper_RunIterator_1nGetFinalizer();
  }
  protoOf(_FinalizerHolder_26).get_PTR_18jmor_k$ = function () {
    return this.PTR_1;
  };
  var _FinalizerHolder_instance_26;
  function _FinalizerHolder_getInstance_26() {
    if (_FinalizerHolder_instance_26 == null)
      new _FinalizerHolder_26();
    return _FinalizerHolder_instance_26;
  }
  function Companion_78() {
    Companion_instance_78 = this;
  }
  protoOf(Companion_78).fromIterator_hhtbmi_k$ = function (iterator, text) {
    return new IteratorBasedBidiRunIterator(org_jetbrains_skia_shaper_Shaper_RunIterator_1nCreateRunIterator(2, getPtr(text)), iterator);
  };
  protoOf(Companion_78).fromIterator_9oq519_k$ = function (iterator, text) {
    return new IteratorBasedFontRunIterator(org_jetbrains_skia_shaper_Shaper_RunIterator_1nCreateRunIterator(1, getPtr(text)), iterator);
  };
  protoOf(Companion_78).fromIterator_b66haf_k$ = function (iterator, text) {
    return new IteratorBasedScriptRunIterator(org_jetbrains_skia_shaper_Shaper_RunIterator_1nCreateRunIterator(3, getPtr(text)), iterator);
  };
  protoOf(Companion_78).fromIterator_vgy0pm_k$ = function (iterator, text) {
    return new IteratorBasedLanguageRunIterator(org_jetbrains_skia_shaper_Shaper_RunIterator_1nCreateRunIterator(4, getPtr(text)), iterator);
  };
  var Companion_instance_78;
  function Companion_getInstance_79() {
    if (Companion_instance_78 == null)
      new Companion_78();
    return Companion_instance_78;
  }
  function RunIteratorBase$lambda(this$0) {
    return function () {
      this$0.consume_sos6hg_k$();
      return Unit_getInstance();
    };
  }
  function RunIteratorBase$lambda_0(this$0) {
    return function () {
      return this$0.endOfCurrentRun_tps7wc_k$();
    };
  }
  function RunIteratorBase$lambda_1(this$0) {
    return function () {
      return this$0.atEnd_1jflwo_k$();
    };
  }
  function RunIteratorBase(type, ptr) {
    Companion_getInstance_79();
    Managed.call(this, ptr, _FinalizerHolder_getInstance_26().PTR_1);
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        var $this$interopScope = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r();
        var tmp = this.get__ptr_wohp4o_k$();
        var tmp_0 = $this$interopScope.virtual_41wz7n_k$(RunIteratorBase$lambda(this));
        var tmp_1 = $this$interopScope.virtualInt_lh3blu_k$(RunIteratorBase$lambda_0(this));
        org_jetbrains_skia_shaper_Shaper_RunIterator_1nInitRunIterator(tmp, type, tmp_0, tmp_1, $this$interopScope.virtualBoolean_rsq0lo_k$(RunIteratorBase$lambda_1(this)), this.getOnCurrentCallback_dcg8cw_k$($this$interopScope));
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
  }
  function _set_current__qj3kk($this, _set____db54di) {
    $this.current_1 = _set____db54di;
  }
  function _get_current__qcrdxk($this) {
    return $this.current_1;
  }
  function IteratorBasedBidiRunIterator(ptr, iterator) {
    BiDiRunIterator.call(this, ptr);
    this.iterator_1 = iterator;
    this.current_1 = null;
  }
  protoOf(IteratorBasedBidiRunIterator).get_iterator_c8vxs9_k$ = function () {
    return this.iterator_1;
  };
  protoOf(IteratorBasedBidiRunIterator).currentLevel_nzuh6z_k$ = function () {
    return this.current_1;
  };
  protoOf(IteratorBasedBidiRunIterator).consume_sos6hg_k$ = function () {
    this.current_1 = this.iterator_1.next_20eer_k$();
  };
  protoOf(IteratorBasedBidiRunIterator).endOfCurrentRun_tps7wc_k$ = function () {
    var tmp0_safe_receiver = this.current_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_end_18j6ha_k$();
    return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
  };
  protoOf(IteratorBasedBidiRunIterator).atEnd_1jflwo_k$ = function () {
    return !this.iterator_1.hasNext_bitz1p_k$();
  };
  function get_BIDI_RUN_ITERATOR_TYPE() {
    return BIDI_RUN_ITERATOR_TYPE;
  }
  var BIDI_RUN_ITERATOR_TYPE;
  function _set_current__qj3kk_0($this, _set____db54di) {
    $this.current_1 = _set____db54di;
  }
  function _get_current__qcrdxk_0($this) {
    return $this.current_1;
  }
  function IteratorBasedFontRunIterator(ptr, iterator) {
    FontRunIterator.call(this, ptr);
    this.iterator_1 = iterator;
    this.current_1 = null;
  }
  protoOf(IteratorBasedFontRunIterator).get_iterator_c8vxs9_k$ = function () {
    return this.iterator_1;
  };
  protoOf(IteratorBasedFontRunIterator).currentFont_9xpqw8_k$ = function () {
    return this.current_1;
  };
  protoOf(IteratorBasedFontRunIterator).consume_sos6hg_k$ = function () {
    this.current_1 = this.iterator_1.next_20eer_k$();
  };
  protoOf(IteratorBasedFontRunIterator).endOfCurrentRun_tps7wc_k$ = function () {
    var tmp0_safe_receiver = this.current_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_end_18j6ha_k$();
    return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
  };
  protoOf(IteratorBasedFontRunIterator).atEnd_1jflwo_k$ = function () {
    return !this.iterator_1.hasNext_bitz1p_k$();
  };
  function get_FONT_RUN_ITERATOR_TYPE() {
    return FONT_RUN_ITERATOR_TYPE;
  }
  var FONT_RUN_ITERATOR_TYPE;
  function _set_current__qj3kk_1($this, _set____db54di) {
    $this.current_1 = _set____db54di;
  }
  function _get_current__qcrdxk_1($this) {
    return $this.current_1;
  }
  function IteratorBasedScriptRunIterator(ptr, iterator) {
    ScriptRunIterator.call(this, ptr);
    this.iterator_1 = iterator;
    this.current_1 = null;
  }
  protoOf(IteratorBasedScriptRunIterator).get_iterator_c8vxs9_k$ = function () {
    return this.iterator_1;
  };
  protoOf(IteratorBasedScriptRunIterator).currentScript_y6uhy4_k$ = function () {
    return this.current_1;
  };
  protoOf(IteratorBasedScriptRunIterator).consume_sos6hg_k$ = function () {
    this.current_1 = this.iterator_1.next_20eer_k$();
  };
  protoOf(IteratorBasedScriptRunIterator).endOfCurrentRun_tps7wc_k$ = function () {
    var tmp0_safe_receiver = this.current_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_end_18j6ha_k$();
    return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
  };
  protoOf(IteratorBasedScriptRunIterator).atEnd_1jflwo_k$ = function () {
    return !this.iterator_1.hasNext_bitz1p_k$();
  };
  function get_SCRIPT_RUN_ITERATOR_TYPE() {
    return SCRIPT_RUN_ITERATOR_TYPE;
  }
  var SCRIPT_RUN_ITERATOR_TYPE;
  function _set_current__qj3kk_2($this, _set____db54di) {
    $this.current_1 = _set____db54di;
  }
  function _get_current__qcrdxk_2($this) {
    return $this.current_1;
  }
  function _set_interopScope__yh5msg($this, _set____db54di) {
    $this.interopScope_1 = _set____db54di;
  }
  function _get_interopScope__l07omk($this) {
    return $this.interopScope_1;
  }
  function _set_currentInterop__6dab2r($this, _set____db54di) {
    $this.currentInterop_1 = _set____db54di;
  }
  function _get_currentInterop__vwdr47($this) {
    return $this.currentInterop_1;
  }
  function langToInterop($this) {
    if (!($this.interopScope_1 == null)) {
      ensureNotNull($this.interopScope_1).release_wu5yyf_k$();
    }
    $this.interopScope_1 = new InteropScope();
    var tmp = ensureNotNull($this.interopScope_1);
    var tmp0_safe_receiver = $this.currentLanguage_akzdo1_k$();
    return tmp.toInterop_ok8jph_k$(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_language_cjhhk1_k$());
  }
  function IteratorBasedLanguageRunIterator(ptr, iterator) {
    LanguageRunIterator.call(this, ptr);
    this.iterator_1 = iterator;
    this.current_1 = null;
    this.interopScope_1 = null;
    var tmp = this;
    var tmp$ret$1;
    $l$block: {
      // Inline function 'org.jetbrains.skia.impl.interopScope' call
      try {
        var tmp0 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp0 + 1 | 0);
        // Inline function 'org.jetbrains.skia.shaper.IteratorBasedLanguageRunIterator.currentInterop.<anonymous>' call
        tmp$ret$1 = _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().toInterop_h7cpet_k$((null == null ? true : isByteArray(null)) ? null : THROW_CCE());
        break $l$block;
      }finally {
        var tmp1 = _get_interopScopeCounter_$accessor$wmqves_umgosu_0();
        _set_interopScopeCounter_$accessor$wmqves_ygusxq(tmp1 - 1 | 0);
        if (_get_interopScopeCounter_$accessor$wmqves_umgosu_0() === 0) {
          _get_INTEROP_SCOPE_$accessor$wmqves_peku9r().release_wu5yyf_k$();
        }
      }
    }
    tmp.currentInterop_1 = tmp$ret$1;
  }
  protoOf(IteratorBasedLanguageRunIterator).get_iterator_c8vxs9_k$ = function () {
    return this.iterator_1;
  };
  protoOf(IteratorBasedLanguageRunIterator).currentLanguage_akzdo1_k$ = function () {
    return this.current_1;
  };
  protoOf(IteratorBasedLanguageRunIterator).currentLanguageInterop_97jhbo_k$ = function () {
    return this.currentInterop_1;
  };
  protoOf(IteratorBasedLanguageRunIterator).endOfCurrentRun_tps7wc_k$ = function () {
    var tmp0_safe_receiver = this.current_1;
    var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_end_18j6ha_k$();
    return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
  };
  protoOf(IteratorBasedLanguageRunIterator).atEnd_1jflwo_k$ = function () {
    return !this.iterator_1.hasNext_bitz1p_k$();
  };
  protoOf(IteratorBasedLanguageRunIterator).consume_sos6hg_k$ = function () {
    this.current_1 = this.iterator_1.next_20eer_k$();
    this.currentInterop_1 = langToInterop(this);
  };
  function get_LANGUAGE_RUN_ITERATOR_TYPE() {
    return LANGUAGE_RUN_ITERATOR_TYPE;
  }
  var LANGUAGE_RUN_ITERATOR_TYPE;
  function BiDiRunIterator$getOnCurrentCallback$lambda(this$0) {
    return function () {
      var tmp0_safe_receiver = this$0.currentLevel_nzuh6z_k$();
      var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_level_ium7h7_k$();
      return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
    };
  }
  function BiDiRunIterator(ptr) {
    RunIteratorBase.call(this, 2, ptr);
  }
  protoOf(BiDiRunIterator).getOnCurrentCallback_dcg8cw_k$ = function (_this__u8e3s4) {
    return _this__u8e3s4.virtualInt_lh3blu_k$(BiDiRunIterator$getOnCurrentCallback$lambda(this));
  };
  function FontRunIterator$getOnCurrentCallback$lambda(this$0) {
    return function () {
      var tmp0_safe_receiver = this$0.currentFont_9xpqw8_k$();
      return getPtr(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_font_wom55k_k$());
    };
  }
  function FontRunIterator(ptr) {
    RunIteratorBase.call(this, 1, ptr);
  }
  protoOf(FontRunIterator).getOnCurrentCallback_dcg8cw_k$ = function (_this__u8e3s4) {
    return _this__u8e3s4.virtualNativePointer_dx1gu1_k$(FontRunIterator$getOnCurrentCallback$lambda(this));
  };
  function ScriptRunIterator$getOnCurrentCallback$lambda(this$0) {
    return function () {
      var tmp0_safe_receiver = this$0.currentScript_y6uhy4_k$();
      var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_scriptTag_cnbuau_k$();
      return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
    };
  }
  function ScriptRunIterator(ptr) {
    RunIteratorBase.call(this, 3, ptr);
  }
  protoOf(ScriptRunIterator).getOnCurrentCallback_dcg8cw_k$ = function (_this__u8e3s4) {
    return _this__u8e3s4.virtualInt_lh3blu_k$(ScriptRunIterator$getOnCurrentCallback$lambda(this));
  };
  function LanguageRunIterator$getOnCurrentCallback$lambda(this$0) {
    return function () {
      return this$0.currentLanguageInterop_97jhbo_k$();
    };
  }
  function LanguageRunIterator(ptr) {
    RunIteratorBase.call(this, 4, ptr);
  }
  protoOf(LanguageRunIterator).getOnCurrentCallback_dcg8cw_k$ = function (_this__u8e3s4) {
    return _this__u8e3s4.virtualInteropPointer_tzqwqx_k$(LanguageRunIterator$getOnCurrentCallback$lambda(this));
  };
  //region block: post-declaration
  protoOf(Bitmap).get_width_j0q4yl_k$ = get_width;
  protoOf(Bitmap).get_height_e7t92o_k$ = get_height;
  protoOf(Bitmap).get_colorInfo_tre0vs_k$ = get_colorInfo;
  protoOf(Bitmap).get_colorType_tr6rn0_k$ = get_colorType;
  protoOf(Bitmap).get_alphaType_1awv75_k$ = get_alphaType;
  protoOf(Bitmap).get_colorSpace_yx2b0_k$ = get_colorSpace;
  protoOf(Bitmap).get_bytesPerPixel_yisyiz_k$ = get_bytesPerPixel;
  protoOf(Bitmap).get_shiftPerPixel_3lby8u_k$ = get_shiftPerPixel;
  protoOf(Bitmap).get_isEmpty_zauvru_k$ = get_isEmpty;
  protoOf(Bitmap).get_isOpaque_xnqi0k_k$ = get_isOpaque;
  protoOf(Image).get_width_j0q4yl_k$ = get_width;
  protoOf(Image).get_height_e7t92o_k$ = get_height;
  protoOf(Image).get_colorInfo_tre0vs_k$ = get_colorInfo;
  protoOf(Image).get_colorType_tr6rn0_k$ = get_colorType;
  protoOf(Image).get_alphaType_1awv75_k$ = get_alphaType;
  protoOf(Image).get_colorSpace_yx2b0_k$ = get_colorSpace;
  protoOf(Image).get_bytesPerPixel_yisyiz_k$ = get_bytesPerPixel;
  protoOf(Image).get_shiftPerPixel_3lby8u_k$ = get_shiftPerPixel;
  protoOf(Image).get_isEmpty_zauvru_k$ = get_isEmpty;
  protoOf(Image).get_isOpaque_xnqi0k_k$ = get_isOpaque;
  //endregion
  //region block: init
  onContentScaleChanged = null;
  BIDI_RUN_ITERATOR_TYPE = 2;
  FONT_RUN_ITERATOR_TYPE = 1;
  SCRIPT_RUN_ITERATOR_TYPE = 3;
  LANGUAGE_RUN_ITERATOR_TYPE = 4;
  //endregion
  //region block: exports
  _.$_$ = _.$_$ || {};
  _.$_$.a = Alignment_CENTER_getInstance;
  _.$_$.b = Alignment_END_getInstance;
  _.$_$.c = Alignment_JUSTIFY_getInstance;
  _.$_$.d = Alignment_LEFT_getInstance;
  _.$_$.e = Alignment_RIGHT_getInstance;
  _.$_$.f = Alignment_START_getInstance;
  _.$_$.g = BaselineMode_ALPHABETIC_getInstance;
  _.$_$.h = DecorationLineStyle_SOLID_getInstance;
  _.$_$.i = Direction_LTR_getInstance;
  _.$_$.j = Direction_RTL_getInstance;
  _.$_$.k = PlaceholderAlignment_ABOVE_BASELINE_getInstance;
  _.$_$.l = PlaceholderAlignment_BOTTOM_getInstance;
  _.$_$.m = PlaceholderAlignment_MIDDLE_getInstance;
  _.$_$.n = PlaceholderAlignment_TOP_getInstance;
  _.$_$.o = RectHeightMode_MAX_getInstance;
  _.$_$.p = RectHeightMode_STRUT_getInstance;
  _.$_$.q = RectWidthMode_TIGHT_getInstance;
  _.$_$.r = BlendMode_CLEAR_getInstance;
  _.$_$.s = BlendMode_COLOR_BURN_getInstance;
  _.$_$.t = BlendMode_COLOR_DODGE_getInstance;
  _.$_$.u = BlendMode_COLOR_getInstance;
  _.$_$.v = BlendMode_DARKEN_getInstance;
  _.$_$.w = BlendMode_DIFFERENCE_getInstance;
  _.$_$.x = BlendMode_DST_ATOP_getInstance;
  _.$_$.y = BlendMode_DST_IN_getInstance;
  _.$_$.z = BlendMode_DST_OUT_getInstance;
  _.$_$.a1 = BlendMode_DST_OVER_getInstance;
  _.$_$.b1 = BlendMode_DST_getInstance;
  _.$_$.c1 = BlendMode_EXCLUSION_getInstance;
  _.$_$.d1 = BlendMode_HARD_LIGHT_getInstance;
  _.$_$.e1 = BlendMode_HUE_getInstance;
  _.$_$.f1 = BlendMode_LIGHTEN_getInstance;
  _.$_$.g1 = BlendMode_LUMINOSITY_getInstance;
  _.$_$.h1 = BlendMode_MODULATE_getInstance;
  _.$_$.i1 = BlendMode_MULTIPLY_getInstance;
  _.$_$.j1 = BlendMode_OVERLAY_getInstance;
  _.$_$.k1 = BlendMode_PLUS_getInstance;
  _.$_$.l1 = BlendMode_SATURATION_getInstance;
  _.$_$.m1 = BlendMode_SCREEN_getInstance;
  _.$_$.n1 = BlendMode_SOFT_LIGHT_getInstance;
  _.$_$.o1 = BlendMode_SRC_ATOP_getInstance;
  _.$_$.p1 = BlendMode_SRC_IN_getInstance;
  _.$_$.q1 = BlendMode_SRC_OUT_getInstance;
  _.$_$.r1 = BlendMode_SRC_OVER_getInstance;
  _.$_$.s1 = BlendMode_SRC_getInstance;
  _.$_$.t1 = BlendMode_XOR_getInstance;
  _.$_$.u1 = ClipMode_DIFFERENCE_getInstance;
  _.$_$.v1 = ClipMode_INTERSECT_getInstance;
  _.$_$.w1 = ColorAlphaType_UNPREMUL_getInstance;
  _.$_$.x1 = ColorType_ALPHA_8_getInstance;
  _.$_$.y1 = ColorType_BGRA_8888_getInstance;
  _.$_$.z1 = ColorType_RGBA_F16_getInstance;
  _.$_$.a2 = ColorType_RGB_565_getInstance;
  _.$_$.b2 = FilterMode_LINEAR_getInstance;
  _.$_$.c2 = FilterMode_NEAREST_getInstance;
  _.$_$.d2 = FilterTileMode_CLAMP_getInstance;
  _.$_$.e2 = FilterTileMode_DECAL_getInstance;
  _.$_$.f2 = FilterTileMode_MIRROR_getInstance;
  _.$_$.g2 = FilterTileMode_REPEAT_getInstance;
  _.$_$.h2 = MipmapMode_NEAREST_getInstance;
  _.$_$.i2 = MipmapMode_NONE_getInstance;
  _.$_$.j2 = PaintMode_FILL_getInstance;
  _.$_$.k2 = PaintMode_STROKE_getInstance;
  _.$_$.l2 = PaintStrokeCap_BUTT_getInstance;
  _.$_$.m2 = PaintStrokeCap_ROUND_getInstance;
  _.$_$.n2 = PaintStrokeCap_SQUARE_getInstance;
  _.$_$.o2 = PaintStrokeJoin_BEVEL_getInstance;
  _.$_$.p2 = PaintStrokeJoin_MITER_getInstance;
  _.$_$.q2 = PaintStrokeJoin_ROUND_getInstance;
  _.$_$.r2 = PathDirection_COUNTER_CLOCKWISE_getInstance;
  _.$_$.s2 = Style_MORPH_getInstance;
  _.$_$.t2 = Style_ROTATE_getInstance;
  _.$_$.u2 = Style_TRANSLATE_getInstance;
  _.$_$.v2 = PathFillMode_EVEN_ODD_getInstance;
  _.$_$.w2 = PathFillMode_WINDING_getInstance;
  _.$_$.x2 = PathOp_DIFFERENCE_getInstance;
  _.$_$.y2 = PathOp_INTERSECT_getInstance;
  _.$_$.z2 = PathOp_REVERSE_DIFFERENCE_getInstance;
  _.$_$.a3 = PathOp_UNION_getInstance;
  _.$_$.b3 = PathOp_XOR_getInstance;
  _.$_$.c3 = VertexMode_TRIANGLES_getInstance;
  _.$_$.d3 = VertexMode_TRIANGLE_FAN_getInstance;
  _.$_$.e3 = VertexMode_TRIANGLE_STRIP_getInstance;
  _.$_$.f3 = SkikoKey_KEY_0_getInstance;
  _.$_$.g3 = SkikoKey_KEY_1_getInstance;
  _.$_$.h3 = SkikoKey_KEY_2_getInstance;
  _.$_$.i3 = SkikoKey_KEY_3_getInstance;
  _.$_$.j3 = SkikoKey_KEY_4_getInstance;
  _.$_$.k3 = SkikoKey_KEY_5_getInstance;
  _.$_$.l3 = SkikoKey_KEY_6_getInstance;
  _.$_$.m3 = SkikoKey_KEY_7_getInstance;
  _.$_$.n3 = SkikoKey_KEY_8_getInstance;
  _.$_$.o3 = SkikoKey_KEY_9_getInstance;
  _.$_$.p3 = SkikoKey_KEY_A_getInstance;
  _.$_$.q3 = SkikoKey_KEY_BACKSLASH_getInstance;
  _.$_$.r3 = SkikoKey_KEY_BACKSPACE_getInstance;
  _.$_$.s3 = SkikoKey_KEY_BACK_QUOTE_getInstance;
  _.$_$.t3 = SkikoKey_KEY_B_getInstance;
  _.$_$.u3 = SkikoKey_KEY_CAPSLOCK_getInstance;
  _.$_$.v3 = SkikoKey_KEY_CLOSE_BRACKET_getInstance;
  _.$_$.w3 = SkikoKey_KEY_COMMA_getInstance;
  _.$_$.x3 = SkikoKey_KEY_C_getInstance;
  _.$_$.y3 = SkikoKey_KEY_DELETE_getInstance;
  _.$_$.z3 = SkikoKey_KEY_DOWN_getInstance;
  _.$_$.a4 = SkikoKey_KEY_D_getInstance;
  _.$_$.b4 = SkikoKey_KEY_END_getInstance;
  _.$_$.c4 = SkikoKey_KEY_ENTER_getInstance;
  _.$_$.d4 = SkikoKey_KEY_EQUALS_getInstance;
  _.$_$.e4 = SkikoKey_KEY_ESCAPE_getInstance;
  _.$_$.f4 = SkikoKey_KEY_E_getInstance;
  _.$_$.g4 = SkikoKey_KEY_F10_getInstance;
  _.$_$.h4 = SkikoKey_KEY_F11_getInstance;
  _.$_$.i4 = SkikoKey_KEY_F12_getInstance;
  _.$_$.j4 = SkikoKey_KEY_F1_getInstance;
  _.$_$.k4 = SkikoKey_KEY_F2_getInstance;
  _.$_$.l4 = SkikoKey_KEY_F3_getInstance;
  _.$_$.m4 = SkikoKey_KEY_F4_getInstance;
  _.$_$.n4 = SkikoKey_KEY_F5_getInstance;
  _.$_$.o4 = SkikoKey_KEY_F6_getInstance;
  _.$_$.p4 = SkikoKey_KEY_F7_getInstance;
  _.$_$.q4 = SkikoKey_KEY_F8_getInstance;
  _.$_$.r4 = SkikoKey_KEY_F9_getInstance;
  _.$_$.s4 = SkikoKey_KEY_F_getInstance;
  _.$_$.t4 = SkikoKey_KEY_G_getInstance;
  _.$_$.u4 = SkikoKey_KEY_HOME_getInstance;
  _.$_$.v4 = SkikoKey_KEY_H_getInstance;
  _.$_$.w4 = SkikoKey_KEY_INSERT_getInstance;
  _.$_$.x4 = SkikoKey_KEY_I_getInstance;
  _.$_$.y4 = SkikoKey_KEY_J_getInstance;
  _.$_$.z4 = SkikoKey_KEY_K_getInstance;
  _.$_$.a5 = SkikoKey_KEY_LEFT_ALT_getInstance;
  _.$_$.b5 = SkikoKey_KEY_LEFT_CONTROL_getInstance;
  _.$_$.c5 = SkikoKey_KEY_LEFT_META_getInstance;
  _.$_$.d5 = SkikoKey_KEY_LEFT_SHIFT_getInstance;
  _.$_$.e5 = SkikoKey_KEY_LEFT_getInstance;
  _.$_$.f5 = SkikoKey_KEY_L_getInstance;
  _.$_$.g5 = SkikoKey_KEY_MINUS_getInstance;
  _.$_$.h5 = SkikoKey_KEY_M_getInstance;
  _.$_$.i5 = SkikoKey_KEY_NUMPAD_0_getInstance;
  _.$_$.j5 = SkikoKey_KEY_NUMPAD_1_getInstance;
  _.$_$.k5 = SkikoKey_KEY_NUMPAD_2_getInstance;
  _.$_$.l5 = SkikoKey_KEY_NUMPAD_3_getInstance;
  _.$_$.m5 = SkikoKey_KEY_NUMPAD_4_getInstance;
  _.$_$.n5 = SkikoKey_KEY_NUMPAD_5_getInstance;
  _.$_$.o5 = SkikoKey_KEY_NUMPAD_6_getInstance;
  _.$_$.p5 = SkikoKey_KEY_NUMPAD_7_getInstance;
  _.$_$.q5 = SkikoKey_KEY_NUMPAD_8_getInstance;
  _.$_$.r5 = SkikoKey_KEY_NUMPAD_9_getInstance;
  _.$_$.s5 = SkikoKey_KEY_NUMPAD_ADD_getInstance;
  _.$_$.t5 = SkikoKey_KEY_NUMPAD_DIVIDE_getInstance;
  _.$_$.u5 = SkikoKey_KEY_NUMPAD_ENTER_getInstance;
  _.$_$.v5 = SkikoKey_KEY_NUMPAD_MULTIPLY_getInstance;
  _.$_$.w5 = SkikoKey_KEY_NUMPAD_SUBTRACT_getInstance;
  _.$_$.x5 = SkikoKey_KEY_NUM_LOCK_getInstance;
  _.$_$.y5 = SkikoKey_KEY_N_getInstance;
  _.$_$.z5 = SkikoKey_KEY_OPEN_BRACKET_getInstance;
  _.$_$.a6 = SkikoKey_KEY_O_getInstance;
  _.$_$.b6 = SkikoKey_KEY_PERIOD_getInstance;
  _.$_$.c6 = SkikoKey_KEY_PGDOWN_getInstance;
  _.$_$.d6 = SkikoKey_KEY_PGUP_getInstance;
  _.$_$.e6 = SkikoKey_KEY_PRINTSCEEN_getInstance;
  _.$_$.f6 = SkikoKey_KEY_P_getInstance;
  _.$_$.g6 = SkikoKey_KEY_Q_getInstance;
  _.$_$.h6 = SkikoKey_KEY_RIGHT_ALT_getInstance;
  _.$_$.i6 = SkikoKey_KEY_RIGHT_CONTROL_getInstance;
  _.$_$.j6 = SkikoKey_KEY_RIGHT_META_getInstance;
  _.$_$.k6 = SkikoKey_KEY_RIGHT_SHIFT_getInstance;
  _.$_$.l6 = SkikoKey_KEY_RIGHT_getInstance;
  _.$_$.m6 = SkikoKey_KEY_R_getInstance;
  _.$_$.n6 = SkikoKey_KEY_SCROLL_LOCK_getInstance;
  _.$_$.o6 = SkikoKey_KEY_SEMICOLON_getInstance;
  _.$_$.p6 = SkikoKey_KEY_SLASH_getInstance;
  _.$_$.q6 = SkikoKey_KEY_SPACE_getInstance;
  _.$_$.r6 = SkikoKey_KEY_S_getInstance;
  _.$_$.s6 = SkikoKey_KEY_TAB_getInstance;
  _.$_$.t6 = SkikoKey_KEY_T_getInstance;
  _.$_$.u6 = SkikoKey_KEY_UNKNOWN_getInstance;
  _.$_$.v6 = SkikoKey_KEY_UP_getInstance;
  _.$_$.w6 = SkikoKey_KEY_U_getInstance;
  _.$_$.x6 = SkikoKey_KEY_V_getInstance;
  _.$_$.y6 = SkikoKey_KEY_W_getInstance;
  _.$_$.z6 = SkikoKey_KEY_X_getInstance;
  _.$_$.a7 = SkikoKey_KEY_Y_getInstance;
  _.$_$.b7 = SkikoKey_KEY_Z_getInstance;
  _.$_$.c7 = FontCollection_init_$Create$;
  _.$_$.d7 = StrutStyle_init_$Create$;
  _.$_$.e7 = TextStyle_init_$Create$;
  _.$_$.f7 = Font_init_$Create$_3;
  _.$_$.g7 = Paint_init_$Create$_0;
  _.$_$.h7 = Path_init_$Create$;
  _.$_$.i7 = PictureRecorder_init_$Create$;
  _.$_$.j7 = SkikoInputModifiers__has_impl_qg30o6;
  _.$_$.k7 = CharDirection_getInstance;
  _.$_$.l7 = Companion_getInstance_1;
  _.$_$.m7 = Companion_getInstance_4;
  _.$_$.n7 = Companion_getInstance_6;
  _.$_$.o7 = Companion_getInstance_7;
  _.$_$.p7 = Companion_getInstance_8;
  _.$_$.q7 = Companion_getInstance_12;
  _.$_$.r7 = Companion_getInstance_14;
  _.$_$.s7 = Companion_getInstance_15;
  _.$_$.t7 = Companion_getInstance_26;
  _.$_$.u7 = Companion_getInstance_32;
  _.$_$.v7 = Companion_getInstance_35;
  _.$_$.w7 = Companion_getInstance_36;
  _.$_$.x7 = Companion_getInstance_43;
  _.$_$.y7 = Companion_getInstance_45;
  _.$_$.z7 = Companion_getInstance_51;
  _.$_$.a8 = ShadowUtils_getInstance;
  _.$_$.b8 = Companion_getInstance_54;
  _.$_$.c8 = Companion_getInstance_74;
  _.$_$.d8 = DecorationStyle;
  _.$_$.e8 = LineMetrics;
  _.$_$.f8 = ParagraphBuilder;
  _.$_$.g8 = ParagraphStyle;
  _.$_$.h8 = PlaceholderStyle;
  _.$_$.i8 = Shadow;
  _.$_$.j8 = TextBox;
  _.$_$.k8 = TextIndent;
  _.$_$.l8 = TypefaceFontProvider;
  _.$_$.m8 = ColorInfo;
  _.$_$.n8 = ColorMatrix;
  _.$_$.o8 = CubicResampler;
  _.$_$.p8 = FilterMipmap;
  _.$_$.q8 = GradientStyle;
  _.$_$.r8 = ImageInfo;
  _.$_$.s8 = Matrix33;
  _.$_$.t8 = Matrix44;
  _.$_$.u8 = Point3;
  _.$_$.v8 = Rect;
  _.$_$.w8 = ClipboardManager;
  _.$_$.x8 = URIManager;
  _.$_$.y8 = currentNanoTime;
  _.$_$.z8 = get_currentSystemTheme;
  _.$_$.a9 = get_hostOs;
  //endregion
  return _;
}(module.exports, require('./kotlin-kotlin-stdlib.js')));

//# sourceMappingURL=skiko-kjs.js.map
