/*! venus 09-08-2019 */ if(function(t,e){"function"==typeof define&&define.amd?define("kotlin",["exports"],e):"object"==typeof exports?e(module.exports):(t.kotlin={},e(t.kotlin))}(this,function(ro){var n,io=ro;function t(t,e){return(4294901760&t)*(65535&e)+(65535&t)*(0|e)|0}if(ro.defineInlineFunction=function(t,e){return e},void 0===String.prototype.startsWith&&(String.prototype.startsWith=function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}),void 0===String.prototype.endsWith&&(String.prototype.endsWith=function(t,e){var n=this.toString();(void 0===e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return null!=t&&null!=t.__proto__&&t.__proto__.__proto__===Int8Array.prototype.__proto__}),ro.compareTo=function(t,e){var n=typeof t,r=typeof t;return ro.isChar(t)&&"number"===r?ro.primitiveCompareTo(t.charCodeAt(0),e):"number"===n&&ro.isChar(e)?ro.primitiveCompareTo(t,e.charCodeAt(0)):"number"===n||"string"===n||"boolean"===n?ro.primitiveCompareTo(t,e):t.compareTo_11rb$(e)},ro.primitiveCompareTo=function(t,e){return t=ro.Long.TWO_PWR_63_DBL_?ro.Long.MAX_VALUE:t<0?ro.Long.fromNumber(-t).negate():new ro.Long(t%ro.Long.TWO_PWR_32_DBL_|0,t/ro.Long.TWO_PWR_32_DBL_|0)},ro.Long.fromBits=function(t,e){return new ro.Long(t,e)},ro.Long.fromString=function(t,e){if(0==t.length)throw Error("number format error: empty string");var n=e||10;if(n<2||36>>16,n=65535&this.high_,r=this.low_>>>16,i=65535&this.low_,o=t.high_>>>16,a=65535&t.high_,s=t.low_>>>16,u=0,l=0,c=0,p=0;return c+=(p+=i+(65535&t.low_))>>>16,p&=65535,l+=(c+=r+s)>>>16,c&=65535,u+=(l+=n+a)>>>16,l&=65535,u+=e+o,u&=65535,ro.Long.fromBits(c<<16|p,u<<16|l)},ro.Long.prototype.subtract=function(t){return this.add(t.negate())},ro.Long.prototype.multiply=function(t){if(this.isZero())return ro.Long.ZERO;if(t.isZero())return ro.Long.ZERO;if(this.equalsLong(ro.Long.MIN_VALUE))return t.isOdd()?ro.Long.MIN_VALUE:ro.Long.ZERO;if(t.equalsLong(ro.Long.MIN_VALUE))return this.isOdd()?ro.Long.MIN_VALUE:ro.Long.ZERO;if(this.isNegative())return t.isNegative()?this.negate().multiply(t.negate()):this.negate().multiply(t).negate();if(t.isNegative())return this.multiply(t.negate()).negate();if(this.lessThan(ro.Long.TWO_PWR_24_)&&t.lessThan(ro.Long.TWO_PWR_24_))return ro.Long.fromNumber(this.toNumber()*t.toNumber());var e=this.high_>>>16,n=65535&this.high_,r=this.low_>>>16,i=65535&this.low_,o=t.high_>>>16,a=65535&t.high_,s=t.low_>>>16,u=65535&t.low_,l=0,c=0,p=0,f=0;return p+=(f+=i*u)>>>16,f&=65535,c+=(p+=r*u)>>>16,p&=65535,c+=(p+=i*s)>>>16,p&=65535,l+=(c+=n*u)>>>16,c&=65535,l+=(c+=r*s)>>>16,c&=65535,l+=(c+=i*a)>>>16,c&=65535,l+=e*u+n*s+r*a+i*o,l&=65535,ro.Long.fromBits(p<<16|f,l<<16|c)},ro.Long.prototype.div=function(t){if(t.isZero())throw Error("division by zero");if(this.isZero())return ro.Long.ZERO;if(this.equalsLong(ro.Long.MIN_VALUE)){if(t.equalsLong(ro.Long.ONE)||t.equalsLong(ro.Long.NEG_ONE))return ro.Long.MIN_VALUE;if(t.equalsLong(ro.Long.MIN_VALUE))return ro.Long.ONE;if((r=this.shiftRight(1).div(t).shiftLeft(1)).equalsLong(ro.Long.ZERO))return t.isNegative()?ro.Long.ONE:ro.Long.NEG_ONE;var e=this.subtract(t.multiply(r));return r.add(e.div(t))}if(t.equalsLong(ro.Long.MIN_VALUE))return ro.Long.ZERO;if(this.isNegative())return t.isNegative()?this.negate().div(t.negate()):this.negate().div(t).negate();if(t.isNegative())return this.div(t.negate()).negate();var n=ro.Long.ZERO;for(e=this;e.greaterThanOrEqual(t);){for(var r=Math.max(1,Math.floor(e.toNumber()/t.toNumber())),i=Math.ceil(Math.log(r)/Math.LN2),o=i<=48?1:Math.pow(2,i-48),a=ro.Long.fromNumber(r),s=a.multiply(t);s.isNegative()||s.greaterThan(e);)r-=o,s=(a=ro.Long.fromNumber(r)).multiply(t);a.isZero()&&(a=ro.Long.ONE),n=n.add(a),e=e.subtract(s)}return n},ro.Long.prototype.modulo=function(t){return this.subtract(this.div(t).multiply(t))},ro.Long.prototype.not=function(){return ro.Long.fromBits(~this.low_,~this.high_)},ro.Long.prototype.and=function(t){return ro.Long.fromBits(this.low_&t.low_,this.high_&t.high_)},ro.Long.prototype.or=function(t){return ro.Long.fromBits(this.low_|t.low_,this.high_|t.high_)},ro.Long.prototype.xor=function(t){return ro.Long.fromBits(this.low_^t.low_,this.high_^t.high_)},ro.Long.prototype.shiftLeft=function(t){if(0==(t&=63))return this;var e=this.low_;if(t<32){var n=this.high_;return ro.Long.fromBits(e<>>32-t)}return ro.Long.fromBits(0,e<>>t|e<<32-t,e>>t)}return ro.Long.fromBits(e>>t-32,0<=e?0:-1)},ro.Long.prototype.shiftRightUnsigned=function(t){if(0==(t&=63))return this;var e=this.high_;if(t<32){var n=this.low_;return ro.Long.fromBits(n>>>t|e<<32-t,e>>>t)}return 32==t?ro.Long.fromBits(e,0):ro.Long.fromBits(e>>>t-32,0)},ro.Long.prototype.equals=function(t){return t instanceof ro.Long&&this.equalsLong(t)},ro.Long.prototype.compareTo_11rb$=ro.Long.prototype.compare,ro.Long.prototype.inc=function(){return this.add(ro.Long.ONE)},ro.Long.prototype.dec=function(){return this.add(ro.Long.NEG_ONE)},ro.Long.prototype.valueOf=function(){return this.toNumber()},ro.Long.prototype.unaryPlus=function(){return this},ro.Long.prototype.unaryMinus=ro.Long.prototype.negate,ro.Long.prototype.inv=ro.Long.prototype.not,ro.Long.prototype.rangeTo=function(t){return new ro.kotlin.ranges.LongRange(this,t)},ro.Kind={CLASS:"class",INTERFACE:"interface",OBJECT:"object"},ro.isType=function(t,e){if(e===Object)switch(typeof t){case"string":case"number":case"boolean":case"function":return!0;default:return t instanceof Object}if(null==t||null==e||"object"!=typeof t&&"function"!=typeof t)return!1;if("function"==typeof e&&t instanceof e)return!0;var n=Object.getPrototypeOf(e),r=null!=n?n.constructor:null;if(null!=r&&"$metadata$"in r){var i=r.$metadata$;if(i.kind===ro.Kind.OBJECT)return t===e}var o=e.$metadata$;return null==o?t instanceof e:o.kind===ro.Kind.INTERFACE&&null!=t.constructor&&null!=(i=t.constructor.$metadata$)&&function t(e,n){if(null==e)return!1;var r,i=e.interfaces;for(r=0;r>24},ro.toChar=function(t){return 65535&t},ro.numberToLong=function(t){return t instanceof ro.Long?t:ro.Long.fromNumber(t)},ro.numberToInt=function(t){return t instanceof ro.Long?t.toInt():0|t},ro.toBoxedChar=function(t){return null==t?t:t instanceof ro.BoxedChar?t:new ro.BoxedChar(t)},ro.unboxChar=function(t){return null==t?t:ro.toChar(t)},ro.isArrayish=function(t){return Array.isArray(t)||ArrayBuffer.isView(t)},ro.arrayToString=function(t){return"["+t.map(ro.toString).join(", ")+"]"},function(){"use strict";function t(){r(),this.name$="",this.ordinal$=0}function e(){n=this}Object.defineProperty(t.prototype,"name",{get:function(){return this.name$}}),Object.defineProperty(t.prototype,"ordinal",{get:function(){return this.ordinal$}}),t.prototype.compareTo_11rb$=function(t){return ro.primitiveCompareTo(this.ordinal,t.ordinal)},t.prototype.equals=function(t){return this===t},t.prototype.hashCode=function(){return ro.identityHashCode(this)},t.prototype.toString=function(){return this.name},e.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var n=null;function r(){return null===n&&new e,n}function i(){(o=this).MIN_VALUE=Number.MIN_VALUE,this.MAX_VALUE=Number.MAX_VALUE,this.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,this.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,this.NaN=Number.NaN}t.$metadata$={kind:ro.Kind.CLASS,simpleName:"Enum",interfaces:[u]},i.$metadata$={kind:ro.Kind.OBJECT,simpleName:"DoubleCompanionObject",interfaces:[]};var o=null;function a(){(s=this).MIN_VALUE=-2147483648,this.MAX_VALUE=2147483647}a.$metadata$={kind:ro.Kind.OBJECT,simpleName:"IntCompanionObject",interfaces:[]};var s=null;function u(){}u.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"Comparable",interfaces:[]},Object.defineProperty(t,"Companion",{get:r});var l=io.kotlin||(io.kotlin={});l.Enum=t,io.newArray=function(t,e){return function(t,e){var n;n=t.length-1|0;for(var r=0;r<=n;r++)t[r]=e;return t}(Array(t),e)};var c=l.js||(l.js={}),p=c.internal||(c.internal={});Object.defineProperty(p,"DoubleCompanionObject",{get:function(){return null===o&&new i,o}}),Object.defineProperty(p,"IntCompanionObject",{get:function(){return null===s&&new a,s}}),l.Comparable=u}(),function(){"use strict";var t=ro.kotlin.Comparable,i=Object,e=ro.arrayToString,n=Error,r=ro.kotlin.js.internal.DoubleCompanionObject,f=ro.kotlin.js.internal.IntCompanionObject;ro.kotlin.Enum;function o(t){this.closure$arr=t,this.index=0}function a(t){this.closure$array=t,fn.call(this),this.index=0}function s(t){return new a(t)}function u(t){this.closure$array=t,on.call(this),this.index=0}function l(t){return new u(t)}function c(t){this.closure$array=t,sn.call(this),this.index=0}function p(t){return new c(t)}function h(t){this.closure$array=t,an.call(this),this.index=0}function d(t){return new h(t)}function _(t){this.closure$array=t,un.call(this),this.index=0}function m(t){return new _(t)}function $(t){this.closure$array=t,cn.call(this),this.index=0}function y(t){return new $(t)}function g(t){this.closure$array=t,pn.call(this),this.index=0}function v(t){return new g(t)}function b(t){this.closure$array=t,ln.call(this),this.index=0}function x(t){return new b(t)}function w(t){this.c=t}function C(t){for(var e=[],n=t.iterator();n.hasNext();)e.push(n.next());return e}function S(t,e){var n;if(e.lengththis.last:this.firstthis.last},Cn.prototype.equals=function(t){return ro.isType(t,Cn)&&(this.isEmpty()&&t.isEmpty()||this.first===t.first&&this.last===t.last)},Cn.prototype.hashCode=function(){return this.isEmpty()?-1:(31*this.first|0)+this.last|0},Cn.prototype.toString=function(){return this.first.toString()+".."+this.last},Sn.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var kn=null;function Nn(){return null===kn&&new Sn,kn}function In(t,e){zn(),gn.call(this,t,e,ro.Long.ONE)}function En(){(On=this).EMPTY=new In(ro.Long.ONE,ro.Long.ZERO)}Cn.$metadata$={kind:ro.Kind.CLASS,simpleName:"IntRange",interfaces:[wn,_n]},Object.defineProperty(In.prototype,"start",{get:function(){return this.first}}),Object.defineProperty(In.prototype,"endInclusive",{get:function(){return this.last}}),In.prototype.contains_mef7kx$=function(t){return this.first.compareTo_11rb$(t)<=0&&t.compareTo_11rb$(this.last)<=0},In.prototype.isEmpty=function(){return 0 toIndex: "+e)},cr.prototype.orderedHashCode_nykoif$=function(t){var e,n,r=1;for(e=t.iterator();e.hasNext();){var i=e.next();r=(31*r|0)+(null!=(n=null!=i?ro.hashCode(i):null)?n:0)|0}return r},cr.prototype.orderedEquals_e92ka7$=function(t,e){var n;if(t.size!==e.size)return!1;var r=e.iterator();for(n=t.iterator();n.hasNext();){var i=n.next(),o=r.next();if(!ro.equals(i,o))return!1}return!0},cr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var pr=null;function fr(){return null===pr&&new cr,pr}function hr(){vr(),this._keys_gfqcsa$_0=null,this._values_gfqcsa$_0=null}function dr(t){this.this$AbstractMap=t,br.call(this)}function _r(t){this.closure$entryIterator=t}function mr(t){this.this$AbstractMap=t,or.call(this)}function $r(t){this.closure$entryIterator=t}function yr(){gr=this}ar.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractList",interfaces:[Ue,or]},hr.prototype.containsKey_11rb$=function(t){return null!=this.implFindEntry_cbwyw1$_0(t)},hr.prototype.containsValue_11rc$=function(t){var e,n=this.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(ro.equals(i.value,t)){e=!0;break t}}e=!1}while(0);return e},hr.prototype.containsEntry_8hxqw4$=function(t){if(!ro.isType(t,Ze))return!1;var e=t.key,n=t.value,r=(ro.isType(this,io.kotlin.collections.Map)?this:ro.throwCCE()).get_11rb$(e);if(!ro.equals(n,r))return!1;var i=null==r;i&&(i=!(ro.isType(this,io.kotlin.collections.Map)?this:ro.throwCCE()).containsKey_11rb$(e));return!i},hr.prototype.equals=function(t){if(t===this)return!0;if(!ro.isType(t,Ge))return!1;if(this.size!==t.size)return!1;var e,n=t.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(!this.containsEntry_8hxqw4$(i)){e=!1;break t}}e=!0}while(0);return e},hr.prototype.get_11rb$=function(t){var e;return null!=(e=this.implFindEntry_cbwyw1$_0(t))?e.value:null},hr.prototype.hashCode=function(){return ro.hashCode(this.entries)},hr.prototype.isEmpty=function(){return 0===this.size},Object.defineProperty(hr.prototype,"size",{get:function(){return this.entries.size}}),dr.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsKey_11rb$(t)},_r.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},_r.prototype.next=function(){return this.closure$entryIterator.next().key},_r.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},dr.prototype.iterator=function(){return new _r(this.this$AbstractMap.entries.iterator())},Object.defineProperty(dr.prototype,"size",{get:function(){return this.this$AbstractMap.size}}),dr.$metadata$={kind:ro.Kind.CLASS,interfaces:[br]},Object.defineProperty(hr.prototype,"keys",{get:function(){var t;return null==this._keys_gfqcsa$_0&&(this._keys_gfqcsa$_0=new dr(this)),null!=(t=this._keys_gfqcsa$_0)?t:ro.throwNPE()}}),hr.prototype.toString=function(){return re(this.entries,", ","{","}",void 0,void 0,(e=this,function(t){return e.toString_pmt6ib$_0(t)}));var e},hr.prototype.toString_pmt6ib$_0=function(t){return this.toString_w3q7ga$_0(t.key)+"="+this.toString_w3q7ga$_0(t.value)},hr.prototype.toString_w3q7ga$_0=function(t){return t===this?"(this Map)":ro.toString(t)},mr.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsValue_11rc$(t)},$r.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},$r.prototype.next=function(){return this.closure$entryIterator.next().value},$r.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},mr.prototype.iterator=function(){return new $r(this.this$AbstractMap.entries.iterator())},Object.defineProperty(mr.prototype,"size",{get:function(){return this.this$AbstractMap.size}}),mr.$metadata$={kind:ro.Kind.CLASS,interfaces:[or]},Object.defineProperty(hr.prototype,"values",{get:function(){var t;return null==this._values_gfqcsa$_0&&(this._values_gfqcsa$_0=new mr(this)),null!=(t=this._values_gfqcsa$_0)?t:ro.throwNPE()}}),hr.prototype.implFindEntry_cbwyw1$_0=function(t){var e,n=this.entries;t:do{var r;for(r=n.iterator();r.hasNext();){var i=r.next();if(ro.equals(i.key,t)){e=i;break t}}e=null}while(0);return e},yr.prototype.entryHashCode_9fthdn$=function(t){var e,n,r,i;return(null!=(n=null!=(e=t.key)?ro.hashCode(e):null)?n:0)^(null!=(i=null!=(r=t.value)?ro.hashCode(r):null)?i:0)},yr.prototype.entryToString_9fthdn$=function(t){return ro.toString(t.key)+"="+ro.toString(t.value)},yr.prototype.entryEquals_js7fox$=function(t,e){return!!ro.isType(e,Ze)&&(ro.equals(t.key,e.key)&&ro.equals(t.value,e.value))},yr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var gr=null;function vr(){return null===gr&&new yr,gr}function br(){Cr(),or.call(this)}function xr(){wr=this}hr.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractMap",interfaces:[Ge]},br.prototype.equals=function(t){return t===this||!!ro.isType(t,We)&&Cr().setEquals_y8f7en$(this,t)},br.prototype.hashCode=function(){return Cr().unorderedHashCode_nykoif$(this)},xr.prototype.unorderedHashCode_nykoif$=function(t){var e,n=0;for(e=t.iterator();e.hasNext();){var r,i=e.next();n=n+(null!=(r=null!=i?ro.hashCode(i):null)?r:0)|0}return n},xr.prototype.setEquals_y8f7en$=function(t,e){return t.size===e.size&&t.containsAll_brywnq$(e)},xr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"Companion",interfaces:[]};var wr=null;function Cr(){return null===wr&&new xr,wr}function Sr(){kr=this}br.$metadata$={kind:ro.Kind.CLASS,simpleName:"AbstractSet",interfaces:[We,or]},Sr.prototype.hasNext=function(){return!1},Sr.prototype.hasPrevious=function(){return!1},Sr.prototype.nextIndex=function(){return 0},Sr.prototype.previousIndex=function(){return-1},Sr.prototype.next=function(){throw new Ot},Sr.prototype.previous=function(){throw new Ot},Sr.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptyIterator",interfaces:[nn]};var kr=null;function Nr(){return null===kr&&new Sr,kr}function Ir(){(Er=this).serialVersionUID_0=new ro.Long(-1478467534,-1720727600)}Ir.prototype.equals=function(t){return ro.isType(t,Ue)&&t.isEmpty()},Ir.prototype.hashCode=function(){return 1},Ir.prototype.toString=function(){return"[]"},Object.defineProperty(Ir.prototype,"size",{get:function(){return 0}}),Ir.prototype.isEmpty=function(){return!0},Ir.prototype.contains_11rb$=function(t){return!1},Ir.prototype.containsAll_brywnq$=function(t){return t.isEmpty()},Ir.prototype.get_za3lpa$=function(t){throw new St("Empty list doesn't contain element at index "+t+".")},Ir.prototype.indexOf_11rb$=function(t){return-1},Ir.prototype.lastIndexOf_11rb$=function(t){return-1},Ir.prototype.iterator=function(){return Nr()},Ir.prototype.listIterator=function(){return Nr()},Ir.prototype.listIterator_za3lpa$=function(t){if(0!==t)throw new St("Index: "+t);return Nr()},Ir.prototype.subList_vux9f0$=function(t,e){if(0===t&&0===e)return this;throw new St("fromIndex: "+t+", toIndex: "+e)},Ir.prototype.readResolve_0=function(){return Or()},Ir.$metadata$={kind:ro.Kind.OBJECT,simpleName:"EmptyList",interfaces:[_t,_e,Ue]};var Er=null;function Or(){return null===Er&&new Ir,Er}function zr(t,e){this.values=t,this.isVarargs=e}function Lr(){return Or()}function Tr(t){return 0===t.length?B():D(new zr(t,!0))}function Ar(t){return new Cn(0,t.size-1|0)}function jr(t){return t.size-1|0}function Pr(t){var e;return 0===(e=t.size)?Lr():1===e?k(t.get_za3lpa$(0)):t}function qr(t,e){return ro.isType(t,Fe)?t.size:e}function Mr(t,e){return ro.isType(t,We)?t:ro.isType(t,Fe)?ro.isType(e,Fe)&&e.size<2?t:2<(n=t).size&&ro.isType(n,K)?Zt(t):t:Zt(t);var n}Object.defineProperty(zr.prototype,"size",{get:function(){return this.values.length}}),zr.prototype.isEmpty=function(){return 0===this.values.length},zr.prototype.contains_11rb$=function(t){return zt(this.values,t)},zr.prototype.containsAll_brywnq$=function(t){var e;t:do{var n;for(n=t.iterator();n.hasNext();){var r=n.next();if(!this.contains_11rb$(r)){e=!1;break t}}e=!0}while(0);return e},zr.prototype.iterator=function(){return ro.arrayIterator(this.values)},zr.prototype.toArray=function(){var t=this.values;return this.isVarargs?t:t.slice()},zr.$metadata$={kind:ro.Kind.CLASS,simpleName:"ArrayAsCollection",interfaces:[Fe]};var Rr;function Kr(t){return t<3?t+1|0:t=this.startIndex_0)){var o="endIndex should be not less than startIndex, but was "+this.endIndex_0+" < "+this.startIndex_0;throw new io.kotlin.IllegalArgumentException(o.toString())}}function ri(t){this.this$SubSequence=t,this.iterator=t.sequence_0.iterator(),this.position=0}function ii(t,e){if(this.sequence_0=t,this.count_0=e,!(0<=this.count_0)){var n="count must be non-negative, but was "+this.count_0+".";throw new io.kotlin.IllegalArgumentException(n.toString())}}function oi(t){this.left=t.count_0,this.iterator=t.sequence_0.iterator()}function ai(t,e){this.getInitialValue_0=t,this.getNextValue_0=e}function si(t){this.this$GeneratorSequence=t,this.nextItem=null,this.nextState=-2}function ui(t,e){return new ai(t,e)}function li(){(ci=this).serialVersionUID_0=new ro.Long(1993859828,793161749)}Xr.prototype.next=function(){return this.this$TransformingSequence.transformer_0(this.iterator.next())},Xr.prototype.hasNext=function(){return this.iterator.hasNext()},Xr.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},Yr.prototype.iterator=function(){return new Xr(this)},Yr.prototype.flatten_1tglza$=function(t){return new Qr(this.sequence_0,this.transformer_0,t)},Yr.$metadata$={kind:ro.Kind.CLASS,simpleName:"TransformingSequence",interfaces:[Ur]},ti.prototype.next=function(){var t;if(!this.ensureItemIterator_0())throw new Ot;return(null!=(t=this.itemIterator)?t:ro.throwNPE()).next()},ti.prototype.hasNext=function(){return this.ensureItemIterator_0()},ti.prototype.ensureItemIterator_0=function(){var t;for(!1===(null!=(t=this.itemIterator)?t.hasNext():null)&&(this.itemIterator=null);null==this.itemIterator;){if(!this.iterator.hasNext())return!1;var e=this.iterator.next(),n=this.this$FlatteningSequence.iterator_0(this.this$FlatteningSequence.transformer_0(e));if(n.hasNext())return this.itemIterator=n,!0}return!0},ti.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},Qr.prototype.iterator=function(){return new ti(this)},Qr.$metadata$={kind:ro.Kind.CLASS,simpleName:"FlatteningSequence",interfaces:[Ur]},ei.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"DropTakeSequence",interfaces:[Ur]},Object.defineProperty(ni.prototype,"count_0",{get:function(){return this.endIndex_0-this.startIndex_0|0}}),ni.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Wr():new ni(this.sequence_0,this.startIndex_0+t|0,this.endIndex_0)},ni.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new ni(this.sequence_0,this.startIndex_0,this.startIndex_0+t|0)},ri.prototype.drop_0=function(){for(;this.position=this.this$SubSequence.endIndex_0)throw new Ot;return this.position=this.position+1|0,this.iterator.next()},ri.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ni.prototype.iterator=function(){return new ri(this)},ni.$metadata$={kind:ro.Kind.CLASS,simpleName:"SubSequence",interfaces:[ei,Ur]},ii.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Wr():new ni(this.sequence_0,t,this.count_0)},ii.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new ii(this.sequence_0,t)},oi.prototype.next=function(){if(0===this.left)throw new Ot;return this.left=this.left-1|0,this.iterator.next()},oi.prototype.hasNext=function(){return 0(t.length-i|0)||r>(n.length-i|0))return!1;a=i-1|0;for(var s=0;s<=a;s++)if(!_i(ro.unboxChar(t.charCodeAt(e+s|0)),ro.unboxChar(n.charCodeAt(r+s|0)),o))return!1;return!0}function Ni(t,e,n){return void 0===n&&(n=!1),0=this.this$DelimitedRangesSequence.limit_0)||this.nextSearchIndex>this.this$DelimitedRangesSequence.input_0.length)this.nextItem=new Cn(this.currentStartIndex,Ci(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var t=this.this$DelimitedRangesSequence.getNextMatch_0(this.this$DelimitedRangesSequence.input_0,this.nextSearchIndex);if(null==t)this.nextItem=new Cn(this.currentStartIndex,Ci(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var e=t,n=e.component1(),r=e.component2();this.nextItem=new Cn(this.currentStartIndex,n-1|0),this.currentStartIndex=n+r|0,this.nextSearchIndex=this.currentStartIndex+(0===r?1:0)|0}}this.nextState=1}},Pi.prototype.next=function(){var t;if(-1===this.nextState&&this.calcNext_0(),0===this.nextState)throw new Ot;var e=ro.isType(t=this.nextItem,Cn)?t:ro.throwCCE();return this.nextItem=null,this.nextState=-1,e},Pi.prototype.hasNext=function(){return-1===this.nextState&&this.calcNext_0(),1===this.nextState},Pi.$metadata$={kind:ro.Kind.CLASS,interfaces:[tn]},ji.prototype.iterator=function(){return new Pi(this)},ji.$metadata$={kind:ro.Kind.CLASS,simpleName:"DelimitedRangesSequence",interfaces:[Ur]};function Ki(){}function Bi(){}function Di(t){this.match=t}Ki.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MatchGroupCollection",interfaces:[Fe]},Object.defineProperty(Bi.prototype,"destructured",{get:function(){return new Di(this)}}),Di.prototype.component1=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component1",function(){return this.match.groupValues.get_za3lpa$(1)}),Di.prototype.component2=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component2",function(){return this.match.groupValues.get_za3lpa$(2)}),Di.prototype.component3=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component3",function(){return this.match.groupValues.get_za3lpa$(3)}),Di.prototype.component4=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component4",function(){return this.match.groupValues.get_za3lpa$(4)}),Di.prototype.component5=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component5",function(){return this.match.groupValues.get_za3lpa$(5)}),Di.prototype.component6=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component6",function(){return this.match.groupValues.get_za3lpa$(6)}),Di.prototype.component7=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component7",function(){return this.match.groupValues.get_za3lpa$(7)}),Di.prototype.component8=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component8",function(){return this.match.groupValues.get_za3lpa$(8)}),Di.prototype.component9=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component9",function(){return this.match.groupValues.get_za3lpa$(9)}),Di.prototype.component10=ro.defineInlineFunction("kotlin.kotlin.text.MatchResult.Destructured.component10",function(){return this.match.groupValues.get_za3lpa$(10)}),Di.prototype.toList=function(){return this.match.groupValues.subList_vux9f0$(1,this.match.groupValues.size)},Di.$metadata$={kind:ro.Kind.CLASS,simpleName:"Destructured",interfaces:[]},Bi.$metadata$={kind:ro.Kind.INTERFACE,simpleName:"MatchResult",interfaces:[]};function Fi(t){void 0===t&&(t="An operation is not implemented."),vt.call(this,t),this.name="NotImplementedError"}function Hi(t,e){this.first=t,this.second=e}function Ui(t,e){return new Hi(t,e)}Fi.$metadata$={kind:ro.Kind.CLASS,simpleName:"NotImplementedError",interfaces:[vt]},Hi.prototype.toString=function(){return"("+this.first+", "+this.second+")"},Hi.$metadata$={kind:ro.Kind.CLASS,simpleName:"Pair",interfaces:[_e]},Hi.prototype.component1=function(){return this.first},Hi.prototype.component2=function(){return this.second},Hi.prototype.copy_xwzc9p$=function(t,e){return new Hi(void 0===t?this.first:t,void 0===e?this.second:e)},Hi.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+ro.hashCode(this.first)|0)+ro.hashCode(this.second)|0},Hi.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&ro.equals(this.first,t.first)&&ro.equals(this.second,t.second)};var Ji=io.kotlin||(io.kotlin={}),Wi=Ji.js||(Ji.js={});io.arrayIterator=function(t,e){if(null==e)return new o(t);if(ro.equals(e,"BooleanArray"))return s(t);if(ro.equals(e,"ByteArray"))return l(t);if(ro.equals(e,"ShortArray"))return p(t);if(ro.equals(e,"CharArray"))return d(t);if(ro.equals(e,"IntArray"))return m(t);if(ro.equals(e,"LongArray"))return x(t);if(ro.equals(e,"FloatArray"))return y(t);if(ro.equals(e,"DoubleArray"))return v(t);throw new Ct("Unsupported type argument for arrayIterator: "+ro.toString(e))},io.booleanArrayIterator=s,io.byteArrayIterator=l,io.shortArrayIterator=p,io.charArrayIterator=d,io.intArrayIterator=m,io.floatArrayIterator=y,io.doubleArrayIterator=v,io.longArrayIterator=x,io.subSequence=function(t,e,n){return"string"==typeof t?t.substring(e,n):t.subSequence_vux9f0$(e,n)},io.captureStack=function(t,e){Error.captureStackTrace?Error.captureStackTrace(e,Me(ro.getKClassFromExpression(e))):e.stack=(new Error).stack},io.BoxedChar=w;var Vi=Ji.text||(Ji.text={}),Gi=Ji.collections||(Ji.collections={});Gi.copyToArray=function(t){return void 0!==t.toArray?t.toArray():C(t)},Gi.copyToArrayImpl=C,Gi.copyToExistingArrayImpl=S,Gi.listOf_mh5how$=k,Gi.setOf_mh5how$=N,Gi.AbstractMutableCollection=I,Gi.AbstractMutableList=E,T.SimpleEntry_init_trwmqg$=function(t,e){return e=e||Object.create(A.prototype),A.call(e,t.key,t.value),e},T.SimpleEntry=A,Gi.AbstractMutableMap=T,Gi.AbstractMutableSet=R,Gi.ArrayList_init_ww73n8$=B,Gi.ArrayList_init_mqih57$=D,Gi.ArrayList=K,Object.defineProperty(F,"HashCode",{get:W}),Gi.EqualityComparator=F,Gi.HashMap_init_va96d4$=Z,Gi.HashMap_init_q3lmfv$=Y,Gi.HashMap_init_xf5xz2$=X,Gi.HashMap=V,Gi.HashSet_init_287e2$=function(t){return t=t||Object.create(Q.prototype),R.call(t),Q.call(t),t.map_biaydw$_0=Y(),t},Gi.HashSet_init_2wofer$=tt,Gi.HashSet_init_nn01ho$=et,Gi.HashSet=Q,Gi.InternalHashCodeMap=nt,Gi.InternalMap=it,Gi.LinkedHashMap_init_q3lmfv$=lt,Gi.LinkedHashMap_init_xf5xz2$=ct,Gi.LinkedHashMap=ot,Gi.LinkedHashSet_init_287e2$=ft,Gi.LinkedHashSet_init_mqih57$=ht,Gi.LinkedHashSet_init_2wofer$=dt,Gi.LinkedHashSet=pt,Gi.RandomAccess=_t;var Zi=Ji.io||(Ji.io={});Zi.NodeJsOutput=$t,Zi.BufferedOutput=yt,Zi.BufferedOutputToConsoleLog=gt,Zi.println_s8jyv4$=function(t){U.println_s8jyv4$(t)},io.throwNPE=function(t){throw new It(t)},io.throwCCE=function(){throw new Et("Illegal cast")},io.throwISE=function(t){throw new Ct(t)},Ji.Error=vt,Ji.Exception=bt,Ji.RuntimeException=xt,Ji.IllegalArgumentException=wt,Ji.IllegalStateException=Ct,Ji.IndexOutOfBoundsException=St,Ji.UnsupportedOperationException=kt,Ji.NumberFormatException=Nt,Ji.NullPointerException=It,Ji.ClassCastException=Et,Ji.NoSuchElementException=Ot,Gi.contains_mjy6jw$=zt,Gi.contains_o2f9me$=Lt,Gi.get_lastIndex_m7z4lg$=Rt,Gi.get_lastIndex_355ntz$=Kt,Gi.indexOf_mjy6jw$=Tt,Gi.indexOf_o2f9me$=At,Gi.get_indices_m7z4lg$=qt,Gi.get_indices_355ntz$=Mt,Gi.reversed_7wnvza$=Vt,Gi.lastIndexOf_mjy6jw$=jt,Gi.single_355ntz$=Pt;var Yi=Ji.ranges||(Ji.ranges={});Yi.downTo_dqglrj$=oe,Gi.emptyList_287e2$=Lr,Gi.mapCapacity_za3lpa$=Kr,Yi.coerceAtLeast_dqglrj$=ae,Gi.toCollection_5n4o2z$=Bt,Gi.collectionSizeOrDefault_ba2ldo$=qr,Gi.asList_us0mfu$=Dt,Gi.get_lastIndex_55thoc$=jr,Gi.first_2p1efm$=function(t){if(t.isEmpty())throw new Ot("List is empty.");return t.get_za3lpa$(0)},Gi.last_7wnvza$=Ft,Gi.last_2p1efm$=Ht,Gi.single_7wnvza$=Ut,Gi.single_2p1efm$=Jt,Gi.drop_ba2ldo$=function(t,e){var n,r,i,o,a;if(!(0<=e)){var s="Requested element count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(s.toString())}if(0===e)return Yt(t);if(ro.isType(t,Fe)){var u=t.size-e|0;if(u<=0)return Lr();if(1===u)return k(Ft(t));if(a=B(u),ro.isType(t,Ue)){if(ro.isType(t,_t)){n=t.size-1|0;for(var l=e;l<=n;l++)a.add_11rb$(t.get_za3lpa$(l))}else for(r=t.listIterator_za3lpa$(e);r.hasNext();){var c=r.next();a.add_11rb$(c)}return a}}else a=B();var p=0;for(i=t.iterator();i.hasNext();){var f=i.next();p=(o=p)+1|0,e<=o&&a.add_11rb$(f)}return Pr(a)},Gi.toList_7wnvza$=Yt,Gi.reverse_vvxzk3$=Wt,Gi.toCollection_5cfyqp$=Gt,Gi.toHashSet_7wnvza$=Zt,Gi.toMutableList_7wnvza$=Xt,Gi.toMutableList_4c7yge$=Qt,Gi.toSet_7wnvza$=te,Gi.intersect_q4559j$=function(t,e){var n=ee(t);return Hr(n,e),n},Gi.toMutableSet_7wnvza$=ee,Gi.joinTo_gcc71v$=ne,Gi.joinToString_fmv235$=re,Gi.asSequence_7wnvza$=ie,Yi.reversed_zf1xzc$=function(t){return yn().fromClosedRange_qt1dr2$(t.last,t.first,-t.step)},Yi.until_dqglrj$=function(t,e){return e<=f.MIN_VALUE?Nn().EMPTY:new Cn(t,e-1|0)},Yi.coerceAtMost_dqglrj$=se,Yi.coerceIn_e4yvb3$=ue;var Xi=Ji.sequences||(Ji.sequences={});Xi.Sequence=Ur,Xi.take_wuwhe2$=le,Xi.toCollection_gtszxp$=ce,Xi.toList_veqyi0$=pe,Xi.toMutableList_veqyi0$=fe,Xi.map_z5avom$=he,Vi.get_lastIndex_gw00vp$=Ci,Vi.first_gw00vp$=function(t){if(0===t.length)throw new Ot("Char sequence is empty.");return ro.unboxChar(t.charCodeAt(0))},Vi.iterator_gw00vp$=function(t){return new wi(t)},Vi.get_indices_gw00vp$=function(t){return new Cn(0,t.length-1|0)},Vi.last_gw00vp$=function(t){if(0===t.length)throw new Ot("Char sequence is empty.");return ro.unboxChar(t.charCodeAt(Ci(t)))},Vi.drop_6ic1pp$=function(t,e){if(0<=e)return t.substring(se(e,t.length));var n="Requested character count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())},Vi.dropLast_6ic1pp$=function(t,e){if(0<=e)return de(t,ae(t.length-e|0,0));var n="Requested character count "+e+" is less than zero.";throw new io.kotlin.IllegalArgumentException(n.toString())},Vi.take_6ic1pp$=de,Ji.Serializable=_e,Vi.toInt_pdl1vz$=function(t){var e;return null!=(e=$i(t))?e:ye(t)},Vi.toLong_pdl1vz$=function(t){var e;return null!=(e=gi(t))?e:ye(t)},Vi.toLong_6ic1pp$=function(t,e){var n;return null!=(n=vi(t,e))?n:ye(t)},Vi.checkRadix_za3lpa$=me,Vi.digitOf_xvg9q0$=$e,Ji.isNaN_yrwdxr$=ge,Ji.isInfinite_yrwdxr$=ve,Ji.isFinite_yrwdxr$=function(t){return!ve(t)&&!ge(t)},Vi.MatchGroup=be,Vi.StringBuilder_init_za3lpa$=function(t,e){return e=e||Object.create(Pe.prototype),Pe.call(e),e},Object.defineProperty(xe,"Companion",{get:ke}),Vi.Regex=xe,Vi.Regex_61zpoe$=Ne,Wi.reset_xjqeni$=Le,Vi.startsWith_7epoxm$=Te,Vi.endsWith_7epoxm$=function(t,e,n){return void 0===n&&(n=!1),n?Ae(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)},Vi.regionMatches_h3ii2q$=Ae,Vi.Appendable=je,Vi.StringBuilder=Pe,Wi.get_jsClass_irb06o$=qe,Wi.get_js_1yb8b7$=Me;var Qi=Ji.reflect||(Ji.reflect={}),to=Qi.js||(Qi.js={});(to.internal||(to.internal={})).KClassImpl=Re,io.getKClassFromExpression=function(t){return function(t){var e,n=t.$metadata$;if(null!=n)if(null==n.$kClass$){var r=new Re(t);n.$kClass$=r,e=r}else e=n.$kClass$;else e=new Re(t);return e}(qe(t))},Ji.CharSequence=Ke,Gi.Iterable=Be,Gi.MutableIterable=De,Gi.Collection=Fe,Gi.MutableCollection=He,Gi.List=Ue,Gi.MutableList=Je,Gi.Set=We,Gi.MutableSet=Ve,Ge.Entry=Ze,Gi.Map=Ge,Ye.MutableEntry=Xe,Gi.MutableMap=Ye,Ji.Function=Qe,Gi.Iterator=tn,Gi.MutableIterator=en,Gi.ListIterator=nn,Gi.MutableListIterator=rn,Gi.ByteIterator=on,Gi.CharIterator=an,Gi.ShortIterator=sn,Gi.IntIterator=un,Gi.LongIterator=ln,Gi.FloatIterator=cn,Gi.DoubleIterator=pn,Gi.BooleanIterator=fn,Yi.IntProgressionIterator=hn,Yi.LongProgressionIterator=dn,Object.defineProperty(_n,"Companion",{get:yn}),Yi.IntProgression=_n,Object.defineProperty(gn,"Companion",{get:xn}),Yi.LongProgression=gn,Yi.ClosedRange=wn,Object.defineProperty(Cn,"Companion",{get:Nn}),Yi.IntRange=Cn,Object.defineProperty(In,"Companion",{get:zn}),Yi.LongRange=In,Object.defineProperty(Ji,"Unit",{get:function(){return null===Tn&&new Ln,Tn}});var eo=Ji.internal||(Ji.internal={});eo.getProgressionLastElement_cub51b$=Mn,eo.getProgressionLastElement_e84ct6$=Rn,Qi.KAnnotatedElement=Kn,Qi.KCallable=Bn,Qi.KClass=Dn,Qi.KClassifier=Fn,Qi.KDeclarationContainer=Hn,Qi.KFunction=Un,Jn.Accessor=Wn,Jn.Getter=Vn,Qi.KProperty=Jn,Gn.Setter=Zn,Qi.KMutableProperty=Gn,Yn.Getter=Xn,Qi.KProperty0=Yn,Qn.Setter=tr,Qi.KMutableProperty0=Qn,er.Getter=nr,Qi.KProperty1=er,rr.Setter=ir,Qi.KMutableProperty1=rr,Gi.AbstractCollection=or,Object.defineProperty(ar,"Companion",{get:fr}),Gi.AbstractList=ar,Object.defineProperty(hr,"Companion",{get:vr}),Gi.AbstractMap=hr,Object.defineProperty(br,"Companion",{get:Cr}),Gi.AbstractSet=br,Object.defineProperty(Gi,"EmptyIterator",{get:Nr}),Object.defineProperty(Gi,"EmptyList",{get:Or}),Gi.listOf_i5x0yv$=function(t){return 0>8)),this.prog_0.addToData_s8j3t7$(Q.toByte(l>>16)),this.prog_0.addToData_s8j3t7$(Q.toByte(l>>24))}catch(t){if(!Q.isType(t,v))throw t;this.prog_0.addDataRelocation_3m52m6$(this.prog_0.symbolPart_61zpoe$(u),this.prog_0.labelOffsetPart_61zpoe$(u),this.currentDataOffset_0-Ki().STATIC_BEGIN|0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0),this.prog_0.addToData_s8j3t7$(0)}this.currentDataOffset_0=this.currentDataOffset_0+4|0}else if(Q.equals(t,".space")){Ar(e,1);try{for(var c=as(e.get_za3lpa$(0)),p=1;p<=c;p++)this.prog_0.addToData_s8j3t7$(0);this.currentDataOffset_0=this.currentDataOffset_0+c|0}catch(t){throw Q.isType(t,v)?nt(e.get_za3lpa$(0)+" not a valid argument"):t}}else if(Q.equals(t,".globl")){var f,h=Q.getCallableRef("makeLabelGlobal",function(t,e){return t.makeLabelGlobal_61zpoe$(e)}.bind(null,this.prog_0));for(f=e.iterator();f.hasNext();){h(f.next())}}else if(Q.equals(t,".align")){Ar(e,1);var d=as(e.get_za3lpa$(0));if(d<0||8>>12,o=r-(i<<12)|0,a=_(["lui",t.get_za3lpa$(1),i.toString()]),s=_(["addi",t.get_za3lpa$(1),t.get_za3lpa$(1),o.toString()]);return _([a,s])},An.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LI",interfaces:[Me]};var jn=null;function Pn(){return null===jn&&new An,jn}function qn(){Me.call(Mn=this)}qn.prototype.invoke_qa4inh$=function(t,e){if(4===t.size){if(m(t.get_za3lpa$(3),40)){var n=t.get_za3lpa$(0),r=t.get_za3lpa$(1),i=t.get_za3lpa$(2),o=t.get_za3lpa$(3),a=t.get_za3lpa$(3).length-1|0;return c(_([n,r,i,o.substring(1,a)]))}return c(t)}Ar(t,3);var s=_(["auipc",t.get_za3lpa$(1),"0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(2));var u=_([t.get_za3lpa$(0),t.get_za3lpa$(1),"0",t.get_za3lpa$(1)]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(2)),_([s,u])},qn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Load",interfaces:[Me]};var Mn=null;function Rn(){return null===Mn&&new qn,Mn}function Kn(){Me.call(Bn=this)}Kn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["addi",t.get_za3lpa$(1),t.get_za3lpa$(2),"0"]))},Kn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"MV",interfaces:[Me]};var Bn=null;function Dn(){return null===Bn&&new Kn,Bn}function Fn(){Me.call(Hn=this)}Fn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sub",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},Fn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NEG",interfaces:[Me]};var Hn=null;function Un(){return null===Hn&&new Fn,Hn}function Jn(){Me.call(Wn=this)}Jn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,1),c(_(["addi","x0","x0","0"]))},Jn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NOP",interfaces:[Me]};var Wn=null;function Vn(){return null===Wn&&new Jn,Wn}function Gn(){Me.call(Zn=this)}Gn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(2),"-1"]))},Gn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NOT",interfaces:[Me]};var Zn=null;function Yn(){return null===Zn&&new Gn,Zn}function Xn(){Me.call(Qn=this)}Xn.prototype.invoke_qa4inh$=function(t,e){return Ar(t,1),c(_(["jalr","x0","x1","0"]))},Xn.$metadata$={kind:Q.Kind.OBJECT,simpleName:"RET",interfaces:[Me]};var Qn=null;function tr(){return null===Qn&&new Xn,Qn}function er(){Me.call(nr=this)}er.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=_(["sub",t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),r=_(["sltiu",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([n,r])},er.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SEQ",interfaces:[Me]};var nr=null;function rr(){return null===nr&&new er,nr}function ir(){Me.call(or=this)}ir.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sltiu",t.get_za3lpa$(1),t.get_za3lpa$(2),"1"]))},ir.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SEQZ",interfaces:[Me]};var or=null;function ar(){return null===or&&new ir,or}function sr(){Me.call(ur=this)}sr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"",r=_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),i=_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([r,i])},sr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGE",interfaces:[Me]};var ur=null;function lr(){return null===ur&&new sr,ur}function cr(){Me.call(pr=this)}cr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"";return c(_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(3),t.get_za3lpa$(2)]))},cr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGT",interfaces:[Me]};var pr=null;function fr(){return null===pr&&new cr,pr}function hr(){Me.call(dr=this)}hr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["slt",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},hr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SGTZ",interfaces:[Me]};var dr=null;function _r(){return null===dr&&new hr,dr}function mr(){Me.call($r=this)}mr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=o(t.get_za3lpa$(0),"u")?"u":"",r=_(["slt"+n,t.get_za3lpa$(1),t.get_za3lpa$(3),t.get_za3lpa$(2)]),i=_(["xori",t.get_za3lpa$(1),t.get_za3lpa$(1),"1"]);return _([r,i])},mr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SLE",interfaces:[Me]};var $r=null;function yr(){return null===$r&&new mr,$r}function gr(){Me.call(vr=this)}gr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["slt",t.get_za3lpa$(1),t.get_za3lpa$(2),"x0"]))},gr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SLTZ",interfaces:[Me]};var vr=null;function br(){return null===vr&&new gr,vr}function xr(){Me.call(wr=this)}xr.prototype.invoke_qa4inh$=function(t,e){Ar(t,4),jr();var n=_(["sub",t.get_za3lpa$(1),t.get_za3lpa$(2),t.get_za3lpa$(3)]),r=_(["sltu",t.get_za3lpa$(1),"x0",t.get_za3lpa$(1)]);return _([n,r])},xr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SNE",interfaces:[Me]};var wr=null;function Cr(){return null===wr&&new xr,wr}function Sr(){Me.call(kr=this)}Sr.prototype.invoke_qa4inh$=function(t,e){return Ar(t,3),c(_(["sltu",t.get_za3lpa$(1),"x0",t.get_za3lpa$(2)]))},Sr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"SNEZ",interfaces:[Me]};var kr=null;function Nr(){return null===kr&&new Sr,kr}function Ir(){Me.call(Er=this)}Ir.prototype.invoke_qa4inh$=function(e,n){Ar(e,4);var t,r=m(e.get_za3lpa$(3),40),i=e.get_za3lpa$(2);if(r){var o=e.get_za3lpa$(3),a=e.get_za3lpa$(3).length-1|0;t=o.substring(1,a)}else t=e.get_za3lpa$(3);var s=t;try{return as(i),c(_([e.get_za3lpa$(0),e.get_za3lpa$(1),i,s]))}catch(t){if(!Q.isType(t,v))throw t;if(r)return n.addRelocation_j8eou1$(qa,n.getOffset(),i),c(_([e.get_za3lpa$(0),e.get_za3lpa$(1),"0",s]))}var u=_(["auipc",s,"0"]);n.addRelocation_j8eou1$(Ja,n.getOffset(),i);var l=_([e.get_za3lpa$(0),e.get_za3lpa$(1),"0",s]);return n.addRelocation_j8eou1$(Xa,n.getOffset()+4|0,i),_([u,l])},Ir.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Store",interfaces:[Me]};var Er=null;function Or(){return null===Er&&new Ir,Er}function zr(){Me.call(Lr=this)}zr.prototype.invoke_qa4inh$=function(t,e){Ar(t,2);var n=_(["auipc","x6","0"]);e.addRelocation_j8eou1$(Ja,e.getOffset(),t.get_za3lpa$(1));var r=_(["jalr","x0","x6","0"]);return e.addRelocation_j8eou1$(Ga,e.getOffset()+4|0,t.get_za3lpa$(1)),_([n,r])},zr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"TAIL",interfaces:[Me]};var Lr=null;function Tr(){return null===Lr&&new zr,Lr}function Ar(t,e){if(t.size!==e)throw nt("wrong # of arguments")}function jr(){if(Hi().strict)throw nt("can't use this instruction in strict mode")}function Pr(){(qr=this).sim=this.sim,this.timer_0=null,this.TIMEOUT_CYCLES_8be2vx$=100,this.TIMEOUT_TIME_8be2vx$=10}Pr.prototype.openSimulator=function(){this.assemble_y4putb$(this.getText_8be2vx$())&&Br().renderSimulator_vo69o7$(this.sim)},Pr.prototype.openEditor=function(){this.runEnd_8be2vx$(),Br().renderEditor()},Pr.prototype.getText_8be2vx$=function(){var t;return(Q.isType(t=document.getElementById("asm-editor"),HTMLTextAreaElement)?t:Q.throwCCE()).value},Pr.prototype.assemble_y4putb$=function(t){var e=q().assemble_61zpoe$(t),n=e.component1(),r=e.component2();if(!r.isEmpty())return Br().displayError_k2a3eh$(a(r)),!1;try{var i=di().link_1l4nab$(c(n));return this.sim=new ps(i),!0}catch(t){if(Q.isType(t,U))return Br().displayError_k2a3eh$(t),!1;throw t}},Pr.prototype.run=function(){this.currentlyRunning_8be2vx$()?this.runEnd_8be2vx$():(Br().setRunButtonSpinning_6taknv$(!0),this.timer_0=window.setTimeout(Q.getCallableRef("runStart",function(t){return t.runStart_8be2vx$()}.bind(null,Mr())),this.TIMEOUT_TIME_8be2vx$),this.sim.step())},Pr.prototype.reset=function(){this.openSimulator()},Pr.prototype.toggleBreakpoint=function(t){var e=this.sim.toggleBreakpointAt_za3lpa$(t);Br().renderBreakpointAt_fzusl$(t,e)},Pr.prototype.runStart_8be2vx$=function(){for(var t=0;t>2<<2;this.mustMoveMemoryDisplay_0(n)&&(this.activeMemoryAddress_0=n),e=this.MEMORY_CONTEXT;for(var r=-6;r<=e;r++){var i=this.getElement_61zpoe$("mem-row-"+r),o=this.activeMemoryAddress_0+(4*r|0)|0;this.renderMemoryRow_0(i,o)}},Rr.prototype.mustMoveMemoryDisplay_0=function(t){return!new y(-6,this.MEMORY_CONTEXT).contains_mef7kx$(this.activeMemoryAddress_0-t>>2)},Rr.prototype.renderMemoryRow_0=function(t,e){var n,r,i,o,a,s=Q.isType(n=t.childNodes[0],HTMLTableCellElement)?n:Q.throwCCE();if(0<=e){s.innerText=this.toHex_za3lpa$(e);for(var u=1;u<=4;u++){var l=Q.isType(r=t.childNodes[u],HTMLTableCellElement)?r:Q.throwCCE(),c=this.sim_0.loadByte_za3lpa$(e+u-1|0);i=this.displayType_0,o=Q.equals(i,"Hex")?this.byteToHex_0(c):Q.equals(i,"Decimal")?this.byteToDec_0(c):Q.equals(i,"Unsigned")?this.byteToUnsign_0(c):Q.equals(i,"ASCII")?this.toAscii_0(c):this.byteToHex_0(c),l.innerText=o}}else{s.innerText="----------";for(var p=1;p<=4;p++){(Q.isType(a=t.childNodes[p],HTMLTableCellElement)?a:Q.throwCCE()).innerText="--"}}},Rr.prototype.byteToHex_0=function(t){var e=Q.unboxChar(this.hexMap_0.get_za3lpa$(t>>>4)),n=Q.unboxChar(this.hexMap_0.get_za3lpa$(15&t));return String.fromCharCode(Q.unboxChar(e))+String.fromCharCode(Q.unboxChar(n))},Rr.prototype.byteToDec_0=function(t){return Q.toByte(t).toString()},Rr.prototype.byteToUnsign_0=function(t){return t.toString()},Rr.prototype.toHex_za3lpa$=function(t){var e={v:Q.Long.fromInt(t)},n={v:""};for(var r=0;r<=7;r++){var i=Q.unboxChar(this.hexMap_0.get_za3lpa$(e.v.and(Q.Long.fromInt(15)).toInt())),o=Q.unboxChar(i);n.v=String.fromCharCode(Q.toBoxedChar(o))+n.v,e.v=e.v.shiftRightUnsigned(4)}return"0x"+n.v},Rr.prototype.toUnsigned_0=function(t){return 0<=t?t.toString():Q.Long.fromInt(t).add(new Q.Long(0,1)).toString()},Rr.prototype.toAscii_0=function(t){return t<0||255=Ki().STATIC_BEGIN?d:h)+y|0;if(_.isGlobalLabel_61zpoe$($)){if(null!=c.put_xwzc9p$($,g))throw nt("label "+$+" defined global in two different files");Q.equals($,"main")&&(l.startPC=g)}}var v,b,x=_.insts,w=Q.getCallableRef("add",function(t,e){return t.add_4vgyas$(e)}.bind(null,l.prog));for(v=x.iterator();v.hasNext();){w(v.next())}for(b=_.debugInfo.iterator();b.hasNext();){var C=b.next();l.dbg.add_11rb$(new Dr(_.name,C))}var S,k=_.dataSegment,N=Q.getCallableRef("addToData",function(t,e){return t.addToData_s8j3t7$(e)}.bind(null,l.prog));for(S=k.iterator();S.hasNext();){N(S.next())}for(r=_.relocationTable.iterator();r.hasNext();){var I=r.next(),E=I.component1(),O=I.component2(),z=I.component3(),L=I.component4(),T=h+O|0,A=l.prog.insts.get_za3lpa$(T/4|0);if(Q.equals(z,""))E.invoke_6r4k1d$(A,T,L);else{var j=_.labels.get_11rb$(z);null!=j?E.invoke_6r4k1d$(A,T,j+L|0):p.add_11rb$(new Hr(E,T,z,L))}}for(i=_.dataRelocationTable.iterator();i.hasNext();){var P=i.next(),q=P.component1(),M=P.component2(),R=P.component3(),K=_.labels.get_11rb$(M),B=d+q|0;if(null!=K){var D=K+R|0;l.prog.overwriteData_6t1wet$(B,Q.toByte(D)),l.prog.overwriteData_6t1wet$(B+1|0,Q.toByte(D>>8)),l.prog.overwriteData_6t1wet$(B+2|0,Q.toByte(D>>16)),l.prog.overwriteData_6t1wet$(B+3|0,Q.toByte(D>>24))}else f.add_11rb$(new Ur(B,M,R))}h=h+_.textSize|0,d=d+_.dataSize|0}for(o=p.iterator();o.hasNext();){var F=o.next(),H=F.component1(),U=F.component2(),J=F.component3();if(null==(a=c.get_11rb$(J)))throw nt("label "+J+" used but not defined");var W=a,V=l.prog.insts.get_za3lpa$(U/4|0);H.invoke_6r4k1d$(V,U,W)}for(s=f.iterator();s.hasNext();){var G=s.next(),Z=G.component1(),Y=G.component2();if(null==(u=c.get_11rb$(Y)))throw nt("label "+Y+" used but not defined");var X=u;l.prog.overwriteData_6t1wet$(Z,Q.toByte(X)),l.prog.overwriteData_6t1wet$(Z+1|0,Q.toByte(X>>8)),l.prog.overwriteData_6t1wet$(Z+2|0,Q.toByte(X>>16)),l.prog.overwriteData_6t1wet$(Z+3|0,Q.toByte(X>>24))}return l},Jr.$metadata$={kind:Q.Kind.OBJECT,simpleName:"Linker",interfaces:[]};var Wr,Vr,Gr,Zr,Yr,Xr,Qr,ti,ei,ni,ri,ii,oi,ai,si,ui,li,ci,pi,fi,hi=null;function di(){return null===hi&&new Jr,hi}function _i(t,e,n,r){i.call(this),this.lo=n,this.hi=r,this.name$=t,this.ordinal$=e}function mi(){mi=function(){},Wr=new _i("ENTIRE",0,0,32),Vr=new _i("OPCODE",1,0,7),Gr=new _i("RD",2,7,12),Zr=new _i("FUNCT3",3,12,15),Yr=new _i("RS1",4,15,20),Xr=new _i("RS2",5,20,25),Qr=new _i("FUNCT7",6,25,32),ti=new _i("IMM_11_0",7,20,32),ei=new _i("IMM_4_0",8,7,12),ni=new _i("IMM_11_5",9,25,32),ri=new _i("IMM_11_B",10,7,8),ii=new _i("IMM_4_1",11,8,12),oi=new _i("IMM_10_5",12,25,31),ai=new _i("IMM_12",13,31,32),si=new _i("IMM_31_12",14,12,32),ui=new _i("IMM_19_12",15,12,20),li=new _i("IMM_11_J",16,20,21),ci=new _i("IMM_10_1",17,21,31),pi=new _i("IMM_20",18,31,32),fi=new _i("SHAMT",19,20,25)}function $i(){return mi(),Wr}function yi(){return mi(),Vr}function gi(){return mi(),Gr}function vi(){return mi(),Zr}function bi(){return mi(),Yr}function xi(){return mi(),Xr}function wi(){return mi(),Qr}function Ci(){return mi(),ti}function Si(){return mi(),ei}function ki(){return mi(),ni}function Ni(){return mi(),ri}function Ii(){return mi(),ii}function Ei(){return mi(),oi}function Oi(){return mi(),ai}function zi(){return mi(),si}function Li(){return mi(),ui}function Ti(){return mi(),li}function Ai(){return mi(),ci}function ji(){return mi(),pi}function Pi(){return mi(),fi}function qi(t){this.encoding_0=t,this.length=4}function Mi(){(Ri=this).STACK_BEGIN=2147483632,this.HEAP_BEGIN=268468224,this.STATIC_BEGIN=268435456,this.TEXT_BEGIN=0}_i.$metadata$={kind:Q.Kind.CLASS,simpleName:"InstructionField",interfaces:[i]},_i.values=function(){return[$i(),yi(),gi(),vi(),bi(),xi(),wi(),Ci(),Si(),ki(),Ni(),Ii(),Ei(),Oi(),zi(),Li(),Ti(),Ai(),ji(),Pi()]},_i.valueOf_61zpoe$=function(t){switch(t){case"ENTIRE":return $i();case"OPCODE":return yi();case"RD":return gi();case"FUNCT3":return vi();case"RS1":return bi();case"RS2":return xi();case"FUNCT7":return wi();case"IMM_11_0":return Ci();case"IMM_4_0":return Si();case"IMM_11_5":return ki();case"IMM_11_B":return Ni();case"IMM_4_1":return Ii();case"IMM_10_5":return Ei();case"IMM_12":return Oi();case"IMM_31_12":return zi();case"IMM_19_12":return Li();case"IMM_11_J":return Ti();case"IMM_10_1":return Ai();case"IMM_20":return ji();case"SHAMT":return Pi();default:Q.throwISE("No enum constant venus.riscv.InstructionField."+t)}},qi.prototype.get_12yce4$=function(t){var e=Q.Long.ONE.shiftLeft(t.hi).subtract(Q.Long.ONE.shiftLeft(t.lo)).toInt();return(this.encoding_0&e)>>>t.lo},qi.prototype.set_olc5hu$=function(t,e){var n=Q.Long.ONE.shiftLeft(t.hi).subtract(Q.Long.ONE.shiftLeft(t.lo)).toInt();this.encoding_0=this.encoding_0&~n,this.encoding_0=this.encoding_0|e<>32-e}function ia(t,e,n,r){return Q.Long.ONE.shiftLeft(r).subtract(Q.Long.ONE.shiftLeft(n)).inv().toInt()&t|e<>11),e.set_olc5hu$(Ii(),o>>1),e.set_olc5hu$(Oi(),o>>12),e.set_olc5hu$(Ei(),o>>5)},oa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"BTypeParser",interfaces:[da]};var aa=null;function sa(){return null===aa&&new oa,aa}function ua(){(la=this).B_TYPE_MIN=-2048,this.B_TYPE_MAX=2047}ua.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,0)},ua.$metadata$={kind:Q.Kind.OBJECT,simpleName:"DoNothingParser",interfaces:[da]};var la=null;function ca(){return null===la&&new ua,la}function pa(){(fa=this).I_TYPE_MIN=-2048,this.I_TYPE_MAX=2047}pa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),ss(n.get_za3lpa$(2))?e.set_olc5hu$(Ci(),t.getImmediate_nc2td$(n.get_za3lpa$(2),this.I_TYPE_MIN,this.I_TYPE_MAX)):t.addRelocation_f5izfr$(Aa,t.symbolPart_61zpoe$(n.get_za3lpa$(2)),t.labelOffsetPart_61zpoe$(n.get_za3lpa$(2)))},pa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ITypeParser",interfaces:[da]};var fa=null;function ha(){return null===fa&&new pa,fa}function da(){}function _a(){(ma=this).I_TYPE_MIN=-2048,this.I_TYPE_MAX=2047}da.$metadata$={kind:Q.Kind.INTERFACE,simpleName:"InstructionParser",interfaces:[]},_a.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(2))),e.set_olc5hu$(Ci(),t.getImmediate_nc2td$(n.get_za3lpa$(1),this.I_TYPE_MIN,this.I_TYPE_MAX))},_a.$metadata$={kind:Q.Kind.OBJECT,simpleName:"LoadParser",interfaces:[da]};var ma=null;function $a(){return null===ma&&new _a,ma}function ya(){ga=this}ya.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),e.set_olc5hu$(xi(),La(n.get_za3lpa$(2)))},ya.$metadata$={kind:Q.Kind.OBJECT,simpleName:"RTypeParser",interfaces:[da]};var ga=null;function va(){return null===ga&&new ya,ga}function ba(t){this.eval_0=t}function xa(){(wa=this).S_TYPE_MIN=-2048,this.S_TYPE_MAX=2047}ba.prototype.invoke_5czv3h$=function(t,e,n){this.eval_0(t,e,n)},ba.$metadata$={kind:Q.Kind.CLASS,simpleName:"RawParser",interfaces:[da]},xa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3);var r=t.getImmediate_nc2td$(n.get_za3lpa$(1),this.S_TYPE_MIN,this.S_TYPE_MAX);e.set_olc5hu$(bi(),La(n.get_za3lpa$(2))),e.set_olc5hu$(xi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(Si(),r),e.set_olc5hu$(ki(),r>>5)},xa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"STypeParser",interfaces:[da]};var wa=null;function Ca(){return null===wa&&new xa,wa}function Sa(){(ka=this).SHIFT_MIN=0,this.SHIFT_MAX=31}Sa.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,3),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(bi(),La(n.get_za3lpa$(1))),e.set_olc5hu$(Pi(),t.getImmediate_nc2td$(n.get_za3lpa$(2),this.SHIFT_MIN,this.SHIFT_MAX))},Sa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ShiftImmediateParser",interfaces:[da]};var ka=null;function Na(){return null===ka&&new Sa,ka}function Ia(){(Ea=this).U_TYPE_MIN=0,this.U_TYPE_MAX=1048575}Ia.prototype.invoke_5czv3h$=function(t,e,n){za(n.size,2),e.set_olc5hu$(gi(),La(n.get_za3lpa$(0))),e.set_olc5hu$(zi(),t.getImmediate_nc2td$(n.get_za3lpa$(1),this.U_TYPE_MIN,this.U_TYPE_MAX))},Ia.$metadata$={kind:Q.Kind.OBJECT,simpleName:"UTypeParser",interfaces:[da]};var Ea=null;function Oa(){return null===Ea&&new Ia,Ea}function za(t,e){if(t!==e)throw nt("got "+t+" arguments but expected "+e)}function La(t){var e;if(s(t,"x")){var n=S(k(t,1));if(new y(0,31).contains_mef7kx$(n))return n;throw nt("register "+t+" not recognized")}if(Q.equals(t,"zero"))e=0;else if(Q.equals(t,"ra"))e=1;else if(Q.equals(t,"sp"))e=2;else if(Q.equals(t,"gp"))e=3;else if(Q.equals(t,"tp"))e=4;else if(Q.equals(t,"t0"))e=5;else if(Q.equals(t,"t1"))e=6;else if(Q.equals(t,"t2"))e=7;else if(Q.equals(t,"s0")||Q.equals(t,"fp"))e=8;else if(Q.equals(t,"s1"))e=9;else if(Q.equals(t,"a0"))e=10;else if(Q.equals(t,"a1"))e=11;else if(Q.equals(t,"a2"))e=12;else if(Q.equals(t,"a3"))e=13;else if(Q.equals(t,"a4"))e=14;else if(Q.equals(t,"a5"))e=15;else if(Q.equals(t,"a6"))e=16;else if(Q.equals(t,"a7"))e=17;else if(Q.equals(t,"s2"))e=18;else if(Q.equals(t,"s3"))e=19;else if(Q.equals(t,"s4"))e=20;else if(Q.equals(t,"s5"))e=21;else if(Q.equals(t,"s6"))e=22;else if(Q.equals(t,"s7"))e=23;else if(Q.equals(t,"s8"))e=24;else if(Q.equals(t,"s9"))e=25;else if(Q.equals(t,"s10"))e=26;else if(Q.equals(t,"s11"))e=27;else if(Q.equals(t,"t3"))e=28;else if(Q.equals(t,"t4"))e=29;else if(Q.equals(t,"t5"))e=30;else{if(!Q.equals(t,"t6"))throw nt("register "+t+" not recognized");e=31}return e}function Ta(){ja=this}Ta.prototype.invoke_tubppg$=function(t,e,n){if(!new y(-2048,2047).contains_mef7kx$(n))throw nt("immediate value out of range: "+n);t.set_olc5hu$(Ci(),n)},Ta.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ImmAbsRelocator32",interfaces:[ts]};var Aa,ja=null;function Pa(){Ma=this}Pa.prototype.invoke_tubppg$=function(t,e,n){if(!new y(-2048,2047).contains_mef7kx$(n))throw nt("immediate value out of range: "+n);t.set_olc5hu$(Si(),n),t.set_olc5hu$(ki(),n>>5)},Pa.$metadata$={kind:Q.Kind.OBJECT,simpleName:"ImmAbsStoreRelocator32",interfaces:[ts]};var qa,Ma=null;function Ra(){Ba=this}Ra.prototype.invoke_tubppg$=function(t,e,n){var r=n-e|0;t.set_olc5hu$(ji(),r>>20),t.set_olc5hu$(Ai(),r>>1),t.set_olc5hu$(Li(),r>>12),t.set_olc5hu$(Ti(),r>>11)},Ra.$metadata$={kind:Q.Kind.OBJECT,simpleName:"JALRelocator32",interfaces:[ts]};var Ka,Ba=null;function Da(){Fa=this}Da.prototype.invoke_nuphlu$=function(t,e,n){throw new r("no relocator64 for "+t)},Da.$metadata$={kind:Q.Kind.OBJECT,simpleName:"NoRelocator64",interfaces:[es]};var Fa=null;function Ha(){return null===Fa&&new Da,Fa}function Ua(){Wa=this}Ua.prototype.invoke_tubppg$=function(t,e,n){t.set_olc5hu$(zi(),n-e+2048>>12)},Ua.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelHiRelocator32",interfaces:[ts]};var Ja,Wa=null;function Va(){Za=this}Va.prototype.invoke_tubppg$=function(t,e,n){t.set_olc5hu$(Ci(),n-(e-4)|0)},Va.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelLoRelocator32",interfaces:[ts]};var Ga,Za=null;function Ya(){Qa=this}Ya.prototype.invoke_tubppg$=function(t,e,n){var r=n-(e-4)|0;t.set_olc5hu$(Si(),r),t.set_olc5hu$(ki(),r>>5)},Ya.$metadata$={kind:Q.Kind.OBJECT,simpleName:"PCRelLoStoreRelocator32",interfaces:[ts]};var Xa,Qa=null;function ts(){}function es(){}function ns(t,e){this.relocator32_0=t,this.relocator64_0=e}function rs(t,e){return Q.primitiveCompareTo(t^n.MIN_VALUE,e^n.MIN_VALUE)}function is(t,e){return t.xor(new Q.Long(0,-2147483648)).compareTo_11rb$(e.xor(new Q.Long(0,-2147483648)))}function os(t){var e=t.get_12yce4$(ji()),n=t.get_12yce4$(Ai()),r=t.get_12yce4$(Ti()),i=t.get_12yce4$(Li()),o=0;return ra(o=ia(o=ia(o=ia(o=ia(o,e,20,21),n,1,11),r,11,12),i,12,20),21)}function as(t){var e,n,r;if(r=t,39===Q.unboxChar(I(r))&&39===Q.unboxChar(z(r)))return function(e){var t=L(k(e,1),1);if(Q.equals(t,"\\'"))return 39;if(Q.equals(t,'"'))return 34;var n='"'+t+'"';try{var r=JSON.parse(n);if(0===r.length)throw new v("character literal "+e+" is empty");if(1>8)},cs.prototype.storeWord_vux9f0$=function(t,e){this.storeHalfWord_vux9f0$(t,e),this.storeHalfWord_vux9f0$(t+2|0,e>>16)},cs.$metadata$={kind:Q.Kind.CLASS,simpleName:"Memory",interfaces:[]},ps.prototype.isDone=function(){return this.getPC()>=this.maxpc_0},ps.prototype.run=function(){for(;!this.isDone();)this.step(),this.cycles_0=this.cycles_0+1|0},ps.prototype.step=function(){this.preInstruction_0.clear(),this.postInstruction_0.clear();var t=this.getNextInstruction_0();return Xi().get_4vgyas$(t).impl32.invoke_23eu0x$(t,this),this.history_0.add_mwsh3f$(this.preInstruction_0),T(this.postInstruction_0)},ps.prototype.undo=function(){var t;if(!this.canUndo())return A();var e=this.history_0.pop();for(t=e.iterator();t.hasNext();){t.next().invoke_gdqidk$(this.state_0)}return e},ps.prototype.canUndo=function(){return!this.history_0.isEmpty()},ps.prototype.getReg_za3lpa$=function(t){return this.state_0.getReg_za3lpa$(t)},ps.prototype.setReg_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ys(t,this.state_0.getReg_za3lpa$(t))),this.state_0.setReg_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ys(t,this.state_0.getReg_za3lpa$(t)))},ps.prototype.setRegNoUndo_vux9f0$=function(t,e){this.state_0.setReg_vux9f0$(t,e)},ps.prototype.toggleBreakpointAt_za3lpa$=function(t){return this.breakpoints_0[t]=!this.breakpoints_0[t],this.breakpoints_0[t]},ps.prototype.atBreakpoint=function(){return this.breakpoints_0[this.state_0.pc/4|0]},ps.prototype.getPC=function(){return this.state_0.pc},ps.prototype.setPC_za3lpa$=function(t){this.preInstruction_0.add_11rb$(new $s(this.state_0.pc)),this.state_0.pc=t,this.postInstruction_0.add_11rb$(new $s(this.state_0.pc))},ps.prototype.incrementPC_za3lpa$=function(t){var e;this.preInstruction_0.add_11rb$(new $s(this.state_0.pc)),(e=this.state_0).pc=e.pc+t|0,this.postInstruction_0.add_11rb$(new $s(this.state_0.pc))},ps.prototype.loadByte_za3lpa$=function(t){return this.state_0.mem.loadByte_za3lpa$(t)},ps.prototype.loadHalfWord_za3lpa$=function(t){return this.state_0.mem.loadHalfWord_za3lpa$(t)},ps.prototype.loadWord_za3lpa$=function(t){return this.state_0.mem.loadWord_za3lpa$(t)},ps.prototype.storeByte_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeByte_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.storeHalfWord_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeHalfWord_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.storeWord_vux9f0$=function(t,e){this.preInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t))),this.state_0.mem.storeWord_vux9f0$(t,e),this.postInstruction_0.add_11rb$(new ms(t,this.loadWord_za3lpa$(t)))},ps.prototype.getHeapEnd=function(){return this.state_0.heapEnd},ps.prototype.addHeapSpace_za3lpa$=function(t){var e;this.preInstruction_0.add_11rb$(new _s(this.state_0.heapEnd)),(e=this.state_0).heapEnd=e.heapEnd+t|0,this.postInstruction_0.add_11rb$(new _s(this.state_0.heapEnd))},ps.prototype.getInstructionLength_0=function(t){if(3!=(3&t))return 2;if(31!=(31&t))return 4;if(31==(63&t))return 6;if(63==(127&t))return 8;throw hs("instruction lengths > 8 not supported")},ps.prototype.getNextInstruction_0=function(){var t=this.loadHalfWord_za3lpa$(this.getPC());if(4!==this.getInstructionLength_0(t))throw hs("instruction length != 4 not supported");return new qi(this.loadHalfWord_za3lpa$(this.getPC()+2|0)<<16|t)},ps.$metadata$={kind:Q.Kind.CLASS,simpleName:"Simulator",interfaces:[]},Object.defineProperty(fs.prototype,"message",{get:function(){return this.message_3ylwkb$_0}}),Object.defineProperty(fs.prototype,"cause",{get:function(){return this.cause_3ylwkb$_0}}),fs.$metadata$={kind:Q.Kind.CLASS,simpleName:"SimulatorError",interfaces:[$]},ds.prototype.getReg_za3lpa$=function(t){return this.regs_0[t]},ds.prototype.setReg_vux9f0$=function(t,e){0!==t&&(this.regs_0[t]=e)},ds.$metadata$={kind:Q.Kind.CLASS,simpleName:"SimulatorState",interfaces:[]},_s.prototype.invoke_gdqidk$=function(t){t.heapEnd=this.heapEnd},_s.$metadata$={kind:Q.Kind.CLASS,simpleName:"HeapSpaceDiff",interfaces:[us]},ms.prototype.invoke_gdqidk$=function(t){t.mem.storeWord_vux9f0$(this.addr,this.value)},ms.$metadata$={kind:Q.Kind.CLASS,simpleName:"MemoryDiff",interfaces:[us]},$s.prototype.invoke_gdqidk$=function(t){t.pc=this.pc},$s.$metadata$={kind:Q.Kind.CLASS,simpleName:"PCDiff",interfaces:[us]},ys.prototype.invoke_gdqidk$=function(t){t.setReg_vux9f0$(this.id,this.v)},ys.$metadata$={kind:Q.Kind.CLASS,simpleName:"RegisterDiff",interfaces:[us]};var gs=t.venus||(t.venus={}),vs=gs.assembler||(gs.assembler={});Object.defineProperty(vs,"Assembler",{get:q}),vs.DebugInfo=M,vs.DebugInstruction=R,vs.PassOneOutput=K,vs.AssemblerOutput=B,vs.AssemblerPassOne=D,vs.AssemblerPassTwo=F,vs.AssemblerError_init_pdl1vj$=nt,vs.AssemblerError_init_h1fdkt$=J,vs.AssemblerError=U,Object.defineProperty(vs,"Lexer",{get:G}),vs.LintError=Z,Object.defineProperty(vs,"Linter",{get:function(){return null===Ut&&new Y,Ut}}),Object.defineProperty(Jt,"beqz",{get:Vt}),Object.defineProperty(Jt,"bgez",{get:Gt}),Object.defineProperty(Jt,"bgt",{get:Zt}),Object.defineProperty(Jt,"bgtu",{get:Yt}),Object.defineProperty(Jt,"bgtz",{get:Xt}),Object.defineProperty(Jt,"ble",{get:Qt}),Object.defineProperty(Jt,"bleu",{get:te}),Object.defineProperty(Jt,"blez",{get:ee}),Object.defineProperty(Jt,"bltz",{get:ne}),Object.defineProperty(Jt,"bnez",{get:re}),Object.defineProperty(Jt,"call",{get:ie}),Object.defineProperty(Jt,"jal",{get:oe}),Object.defineProperty(Jt,"jalr",{get:ae}),Object.defineProperty(Jt,"j",{get:se}),Object.defineProperty(Jt,"jr",{get:ue}),Object.defineProperty(Jt,"la",{get:le}),Object.defineProperty(Jt,"lb",{get:ce}),Object.defineProperty(Jt,"lbu",{get:pe}),Object.defineProperty(Jt,"lh",{get:fe}),Object.defineProperty(Jt,"lhu",{get:he}),Object.defineProperty(Jt,"li",{get:de}),Object.defineProperty(Jt,"lw",{get:_e}),Object.defineProperty(Jt,"mv",{get:me}),Object.defineProperty(Jt,"neg",{get:$e}),Object.defineProperty(Jt,"nop",{get:ye}),Object.defineProperty(Jt,"not",{get:ge}),Object.defineProperty(Jt,"ret",{get:ve}),Object.defineProperty(Jt,"sb",{get:be}),Object.defineProperty(Jt,"seqz",{get:xe}),Object.defineProperty(Jt,"sgtz",{get:we}),Object.defineProperty(Jt,"sh",{get:Ce}),Object.defineProperty(Jt,"sltz",{get:Se}),Object.defineProperty(Jt,"snez",{get:ke}),Object.defineProperty(Jt,"sw",{get:Ne}),Object.defineProperty(Jt,"tail",{get:Ie}),Object.defineProperty(Jt,"seq",{get:Ee}),Object.defineProperty(Jt,"sge",{get:Oe}),Object.defineProperty(Jt,"sgeu",{get:ze}),Object.defineProperty(Jt,"sgt",{get:Le}),Object.defineProperty(Jt,"sgtu",{get:Te}),Object.defineProperty(Jt,"sle",{get:Ae}),Object.defineProperty(Jt,"sleu",{get:je}),Object.defineProperty(Jt,"sne",{get:Pe}),vs.PseudoDispatcher=Jt,vs.PseudoWriter=Me;var bs=vs.pseudos||(vs.pseudos={});Object.defineProperty(bs,"BEQZ",{get:Be}),Object.defineProperty(bs,"BGEZ",{get:He}),Object.defineProperty(bs,"BGT",{get:We}),Object.defineProperty(bs,"BGTU",{get:Ze}),Object.defineProperty(bs,"BGTZ",{get:Qe}),Object.defineProperty(bs,"BLE",{get:nn}),Object.defineProperty(bs,"BLEU",{get:an}),Object.defineProperty(bs,"BLEZ",{get:ln}),Object.defineProperty(bs,"BLTZ",{get:fn}),Object.defineProperty(bs,"BNEZ",{get:_n}),Object.defineProperty(bs,"CALL",{get:yn}),Object.defineProperty(bs,"J",{get:bn}),Object.defineProperty(bs,"JAL",{get:Cn}),Object.defineProperty(bs,"JALR",{get:Nn}),Object.defineProperty(bs,"JR",{get:On}),Object.defineProperty(bs,"LA",{get:Tn}),Object.defineProperty(bs,"LI",{get:Pn}),Object.defineProperty(bs,"Load",{get:Rn}),Object.defineProperty(bs,"MV",{get:Dn}),Object.defineProperty(bs,"NEG",{get:Un}),Object.defineProperty(bs,"NOP",{get:Vn}),Object.defineProperty(bs,"NOT",{get:Yn}),Object.defineProperty(bs,"RET",{get:tr}),Object.defineProperty(bs,"SEQ",{get:rr}),Object.defineProperty(bs,"SEQZ",{get:ar}),Object.defineProperty(bs,"SGE",{get:lr}),Object.defineProperty(bs,"SGT",{get:fr}),Object.defineProperty(bs,"SGTZ",{get:_r}),Object.defineProperty(bs,"SLE",{get:yr}),Object.defineProperty(bs,"SLTZ",{get:br}),Object.defineProperty(bs,"SNE",{get:Cr}),Object.defineProperty(bs,"SNEZ",{get:Nr}),Object.defineProperty(bs,"Store",{get:Or}),Object.defineProperty(bs,"TAIL",{get:Tr}),bs.checkArgsLength_udy8vv$=Ar,bs.checkStrictMode=jr;var xs=gs.glue||(gs.glue={});Object.defineProperty(xs,"Driver",{get:Mr}),Object.defineProperty(xs,"Renderer",{get:Br});var ws=gs.linker||(gs.linker={});ws.ProgramDebugInfo=Dr,ws.LinkedProgram=Fr,ws.RelocationInfo=Hr,ws.DataRelocationInfo=Ur,Object.defineProperty(ws,"Linker",{get:di}),Object.defineProperty(_i,"ENTIRE",{get:$i}),Object.defineProperty(_i,"OPCODE",{get:yi}),Object.defineProperty(_i,"RD",{get:gi}),Object.defineProperty(_i,"FUNCT3",{get:vi}),Object.defineProperty(_i,"RS1",{get:bi}),Object.defineProperty(_i,"RS2",{get:xi}),Object.defineProperty(_i,"FUNCT7",{get:wi}),Object.defineProperty(_i,"IMM_11_0",{get:Ci}),Object.defineProperty(_i,"IMM_4_0",{get:Si}),Object.defineProperty(_i,"IMM_11_5",{get:ki}),Object.defineProperty(_i,"IMM_11_B",{get:Ni}),Object.defineProperty(_i,"IMM_4_1",{get:Ii}),Object.defineProperty(_i,"IMM_10_5",{get:Ei}),Object.defineProperty(_i,"IMM_12",{get:Oi}),Object.defineProperty(_i,"IMM_31_12",{get:zi}),Object.defineProperty(_i,"IMM_19_12",{get:Li}),Object.defineProperty(_i,"IMM_11_J",{get:Ti}),Object.defineProperty(_i,"IMM_10_1",{get:Ai}),Object.defineProperty(_i,"IMM_20",{get:ji}),Object.defineProperty(_i,"SHAMT",{get:Pi});var Cs=gs.riscv||(gs.riscv={});Cs.InstructionField=_i,Cs.MachineCode=qi,Object.defineProperty(Cs,"MemorySegments",{get:Ki}),Cs.Program=Bi,Object.defineProperty(Cs,"Settings",{get:Hi});var Ss=Cs.insts||(Cs.insts={}),ks=Ss.dsl||(Ss.dsl={});ks.BTypeInstruction=Ui,ks.ITypeInstruction=Wi,Object.defineProperty(Gi,"Companion",{get:Xi}),ks.Instruction=Gi,ks.LoadTypeInstruction=Qi,ks.RTypeInstruction=ro,ks.STypeInstruction=oo,ks.ShiftImmediateInstruction=so,ks.UTypeInstruction=lo;var Ns=ks.disasms||(ks.disasms={});Object.defineProperty(Ns,"BTypeDisassembler",{get:ho}),Object.defineProperty(Ns,"ITypeDisassembler",{get:$o}),Ns.InstructionDisassembler=yo,Object.defineProperty(Ns,"LoadDisassembler",{get:bo}),Object.defineProperty(Ns,"RTypeDisassembler",{get:Co}),Ns.RawDisassembler=So,Object.defineProperty(Ns,"STypeDisassembler",{get:Io}),Object.defineProperty(Ns,"ShiftImmediateDisassembler",{get:zo}),Object.defineProperty(Ns,"UTypeDisassembler",{get:Ao});var Is=ks.formats||(ks.formats={});Is.BTypeFormat=jo,Is.ITypeFormat=Po,Is.FieldEqual=qo,Is.InstructionFormat=Mo,Is.OpcodeFormat=Ro,Is.OpcodeFunct3Format=Ko,Is.RTypeFormat=Bo,Is.STypeFormat=Do,Is.UTypeFormat=Fo;var Es=ks.impls||(ks.impls={});Es.BTypeImplementation32=Ho,Es.constructBranchImmediate_4vgyas$=Uo,Es.ITypeImplementation32=Jo,Es.InstructionImplementation=Wo,Es.LoadImplementation32=Vo,Object.defineProperty(Es,"NoImplementation",{get:Yo}),Es.RTypeImplementation32=Xo,Es.RawImplementation=Qo,Es.STypeImplementation32=ta,Es.constructStoreImmediate_4vgyas$=ea,Es.ShiftImmediateImplementation32=na,Es.signExtend_6xvm5r$=ra,Es.setBitslice_r9yya9$=ia;var Os=ks.parsers||(ks.parsers={});Object.defineProperty(Os,"BTypeParser",{get:sa}),Object.defineProperty(Os,"DoNothingParser",{get:ca}),Object.defineProperty(Os,"ITypeParser",{get:ha}),Os.InstructionParser=da,Object.defineProperty(Os,"LoadParser",{get:$a}),Object.defineProperty(Os,"RTypeParser",{get:va}),Os.RawParser=ba,Object.defineProperty(Os,"STypeParser",{get:Ca}),Object.defineProperty(Os,"ShiftImmediateParser",{get:Na}),Object.defineProperty(Os,"UTypeParser",{get:Oa}),Os.checkArgsLength_6xvm5r$=za,Os.regNameToNumber_y4putb$=La;var zs=ks.relocators||(ks.relocators={});Object.defineProperty(zs,"NoRelocator64",{get:Ha}),zs.Relocator32=ts,zs.Relocator64=es,zs.Relocator=ns,ks.compareUnsigned_6xvm5r$=rs,ks.compareUnsignedLong_cfj5zr$=is,Cs.userStringToInt_61zpoe$=as,Cs.isNumeral_61zpoe$=ss;var Ls=gs.simulator||(gs.simulator={});Ls.Diff=us,Ls.History=ls,Ls.Memory=cs,Ls.Simulator=ps,Ls.SimulatorError_init_pdl1vj$=hs,Ls.SimulatorError=fs,Ls.SimulatorState=ds;var Ts=Ls.diffs||(Ls.diffs={});return Ts.HeapSpaceDiff=_s,Ts.MemoryDiff=ms,Ts.PCDiff=$s,Ts.RegisterDiff=ys,new ro("add",51,0,0,function(t,e){return t+e|0},function(t,e){return t.add(e)}),new Wi("addi",19,0,function(t,e){return t+e|0},function(t,e){return t.add(e)}),new ro("and",51,7,0,function(t,e){return t&e},function(t,e){return t.and(e)}),new Wi("andi",19,7,function(t,e){return t&e},function(t,e){return t.and(e)}),new lo("auipc",23,function(t,e){var n=t.get_12yce4$(zi())<<12;e.setReg_vux9f0$(t.get_12yce4$(gi()),e.getPC()+n|0),e.incrementPC_za3lpa$(t.length)},Q.getCallableRef("invoke",function(t,e,n){return t.invoke_23eu0x$(e,n)}.bind(null,Yo()))),new Ui("beq",99,0,function(t,e){return t===e},function(t,e){return Q.equals(t,e)}),new Ui("bge",99,5,function(t,e){return e<=t},function(t,e){return 0<=t.compareTo_11rb$(e)}),new Ui("bgeu",99,7,function(t,e){return 0<=rs(t,e)},function(t,e){return 0<=is(t,e)}),new Ui("blt",99,4,function(t,e){return t>1<<1)}),Yo(),new So(function(t){return"jalr x"+t.get_12yce4$(gi())+" x"+t.get_12yce4$(bi())+" "+ra(t.get_12yce4$(Ci()),12)})),new Qi("lb",3,0,Q.getCallableRef("loadByte",function(t,e){return t.loadByte_za3lpa$(e)}),function(t){return ra(t,8)}),new Qi("lbu",3,4,Q.getCallableRef("loadByte",function(t,e){return t.loadByte_za3lpa$(e)})),new Qi("lh",3,1,Q.getCallableRef("loadHalfWord",function(t,e){return t.loadHalfWord_za3lpa$(e)}),function(t){return ra(t,16)}),new Qi("lhu",3,5,Q.getCallableRef("loadHalfWord",function(t,e){return t.loadHalfWord_za3lpa$(e)})),new lo("lui",55,function(t,e){var n=t.get_12yce4$(zi())<<12;e.setReg_vux9f0$(t.get_12yce4$(gi()),n),e.incrementPC_za3lpa$(t.length)}),new Qi("lw",3,2,Q.getCallableRef("loadWord",function(t,e){return t.loadWord_za3lpa$(e)})),new ro("mul",51,0,1,function(t,e){return Q.imul(t,e)},function(t,e){return t.multiply(e)}),new ro("mulh",51,1,1,function(t,e){var n=Q.Long.fromInt(t),r=Q.Long.fromInt(e);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("mulhsu",51,2,1,function(t,e){var n=Q.Long.fromInt(t),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("mulhu",51,3,1,function(t,e){var n=Q.Long.fromInt(t).shiftLeft(32).shiftRightUnsigned(32),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return n.multiply(r).shiftRightUnsigned(32).toInt()}),new ro("or",51,6,0,function(t,e){return t|e},function(t,e){return t.or(e)}),new Wi("ori",19,6,function(t,e){return t|e},function(t,e){return t.or(e)}),new ro("rem",51,6,1,function(t,e){return 0===e?t:t===n.MIN_VALUE&&-1===e?0:t%e}),new ro("remu",51,7,1,function(t,e){var n=Q.Long.fromInt(t).shiftLeft(32).shiftRightUnsigned(32),r=Q.Long.fromInt(e).shiftLeft(32).shiftRightUnsigned(32);return 0===e?t:n.modulo(r).toInt()}),new oo("sb",35,0,Q.getCallableRef("storeByte",function(t,e,n){return t.storeByte_vux9f0$(e,n)})),new oo("sh",35,1,Q.getCallableRef("storeHalfWord",function(t,e,n){return t.storeHalfWord_vux9f0$(e,n)})),new ro("sll",51,1,0,function(t,e){var n=31&e;return 0===n?t:t<>n},function(t,e){var n=63&e.toInt();return 0===n?t:t.shiftRight(n)}),new so("srai",5,32,function(t,e){return 0===e?t:t>>e}),new ro("srl",51,5,0,function(t,e){var n=31&e;return 0===n?t:t>>>n},function(t,e){var n=63&e.toInt();return 0===n?t:t.shiftRightUnsigned(n)}),new so("srli",5,0,function(t,e){return 0===e?t:t>>>e}),new ro("sub",51,0,32,function(t,e){return t-e|0},function(t,e){return t.subtract(e)}),new oo("sw",35,2,Q.getCallableRef("storeWord",function(t,e,n){return t.storeWord_vux9f0$(e,n)})),new ro("xor",51,4,0,function(t,e){return t^e},function(t,e){return t.xor(e)}),new Wi("xori",19,4,function(t,e){return t^e},function(t,e){return t.xor(e)}),t}(void 0===venus_main?{}:venus_main,kotlin);