phantasmal-world/8d4bdde37152cbc7f47b.worker.js
Daan Vanden Bosch 1921b966bc Release 17.
2019-08-14 19:14:35 +02:00

12 lines
105 KiB
JavaScript

!function(e){var i={};function o(n){if(i[n])return i[n].exports;var d=i[n]={i:n,l:!1,exports:{}};return e[n].call(d.exports,d,d.exports,o),d.l=!0,d.exports}o.m=e,o.c=i,o.d=function(e,i,n){o.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,i){if(1&i&&(e=o(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var d in e)o.d(n,d,function(i){return e[i]}.bind(null,d));return n},o.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(i,"a",i),i},o.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},o.p="",o(o.s="yL6M")}({GGSb:function(e,i,o){var n,d;
/*!
* js-logger - http://github.com/jonnyreeves/js-logger
* Jonny Reeves, http://jonnyreeves.co.uk/
* js-logger may be freely distributed under the MIT license.
*/
/*!
* js-logger - http://github.com/jonnyreeves/js-logger
* Jonny Reeves, http://jonnyreeves.co.uk/
* js-logger may be freely distributed under the MIT license.
*/
!function(v){"use strict";var t,_={};_.VERSION="1.6.0";var w={},s=function(e,i){return function(){return i.apply(e,arguments)}},r=function(){var e,i,o=arguments,n=o[0];for(i=1;i<o.length;i++)for(e in o[i])e in n||!o[i].hasOwnProperty(e)||(n[e]=o[i][e]);return n},a=function(e,i){return{value:e,name:i}};_.TRACE=a(1,"TRACE"),_.DEBUG=a(2,"DEBUG"),_.INFO=a(3,"INFO"),_.TIME=a(4,"TIME"),_.WARN=a(5,"WARN"),_.ERROR=a(8,"ERROR"),_.OFF=a(99,"OFF");var u=function(e){this.context=e,this.setLevel(e.filterLevel),this.log=this.info};u.prototype={setLevel:function(e){e&&"value"in e&&(this.context.filterLevel=e)},getLevel:function(){return this.context.filterLevel},enabledFor:function(e){var i=this.context.filterLevel;return e.value>=i.value},trace:function(){this.invoke(_.TRACE,arguments)},debug:function(){this.invoke(_.DEBUG,arguments)},info:function(){this.invoke(_.INFO,arguments)},warn:function(){this.invoke(_.WARN,arguments)},error:function(){this.invoke(_.ERROR,arguments)},time:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"start"])},timeEnd:function(e){"string"==typeof e&&e.length>0&&this.invoke(_.TIME,[e,"end"])},invoke:function(e,i){t&&this.enabledFor(e)&&t(i,r({level:e},this.context))}};var l,N=new u({filterLevel:_.OFF});(l=_).enabledFor=s(N,N.enabledFor),l.trace=s(N,N.trace),l.debug=s(N,N.debug),l.time=s(N,N.time),l.timeEnd=s(N,N.timeEnd),l.info=s(N,N.info),l.warn=s(N,N.warn),l.error=s(N,N.error),l.log=l.info,_.setHandler=function(e){t=e},_.setLevel=function(e){for(var i in N.setLevel(e),w)w.hasOwnProperty(i)&&w[i].setLevel(e)},_.getLevel=function(){return N.getLevel()},_.get=function(e){return w[e]||(w[e]=new u(r({name:e},N.context)))},_.createDefaultHandler=function(e){(e=e||{}).formatter=e.formatter||function(e,i){i.name&&e.unshift("["+i.name+"]")};var i={},o=function(e,i){Function.prototype.apply.call(e,console,i)};return"undefined"==typeof console?function(){}:function(n,d){n=Array.prototype.slice.call(n);var v,t=console.log;d.level===_.TIME?(v=(d.name?"["+d.name+"] ":"")+n[0],"start"===n[1]?console.time?console.time(v):i[v]=(new Date).getTime():console.timeEnd?console.timeEnd(v):o(t,[v+": "+((new Date).getTime()-i[v])+"ms"])):(d.level===_.WARN&&console.warn?t=console.warn:d.level===_.ERROR&&console.error?t=console.error:d.level===_.INFO&&console.info?t=console.info:d.level===_.DEBUG&&console.debug?t=console.debug:d.level===_.TRACE&&console.trace&&(t=console.trace),e.formatter(n,d),o(t,n))}},_.useDefaults=function(e){_.setLevel(e&&e.defaultLevel||_.DEBUG),_.setHandler(_.createDefaultHandler(e))},void 0===(d="function"==typeof(n=_)?n.call(i,o,i,e):n)||(e.exports=d)}()},yL6M:function(e,i,o){"use strict";o.r(i);var n=o("GGSb"),d=o.n(n);const v=new DataView(new ArrayBuffer(4));var t,_;!function(e){e[e.Int=0]="Int",e[e.Float=1]="Float",e[e.InvalidNumber=2]="InvalidNumber",e[e.Register=3]="Register",e[e.Label=4]="Label",e[e.CodeSection=5]="CodeSection",e[e.DataSection=6]="DataSection",e[e.StringSection=7]="StringSection",e[e.InvalidSection=8]="InvalidSection",e[e.String=9]="String",e[e.UnterminatedString=10]="UnterminatedString",e[e.Ident=11]="Ident",e[e.InvalidIdent=12]="InvalidIdent",e[e.ArgSeparator=13]="ArgSeparator"}(t||(t={}));class w{constructor(){this.index=0,this._mark=0}get col(){return this.index+1}tokenize_line(e){this.line=e,this.index=0,this._mark=0;const i=[];for(;this.has_next();){const e=this.peek();let o;if("/"===e){if(this.skip(),"/"===this.peek())break;this.back()}/\s/.test(e)?this.skip():(/[-\d]/.test(e)?o=this.tokenize_number_or_label():","===e?(o={type:t.ArgSeparator,col:this.col,len:1},this.skip()):o="."===e?this.tokenize_section():'"'===e?this.tokenize_string():"r"===e?this.tokenize_register_or_ident():this.tokenize_ident(),i.push(o))}return i}has_next(){return this.index<this.line.length}next(){return this.line.charAt(this.index++)}peek(){return this.line.charAt(this.index)}skip(){this.index++}back(){this.index--}mark(){this._mark=this.index}marked_len(){return this.index-this._mark}slice(){return this.line.slice(this._mark,this.index)}eat_rest_of_token(){for(;this.has_next();){const e=this.next();if(/[\s,]/.test(e)){this.back();break}}}tokenize_number_or_label(){this.mark();const e=this.col;this.skip();let i=!1;for(;this.has_next();){const o=this.peek();if("."===o||"e"===o)return this.tokenize_float(e);if("x"===o)return this.tokenize_hex_number(e);if(":"===o){i=!0,this.skip();break}if(/[\s,]/.test(o))break;this.skip()}const o=parseInt(this.slice(),10);return{type:Number.isInteger(o)?i?t.Label:t.Int:t.InvalidNumber,col:e,len:this.marked_len(),value:o}}tokenize_hex_number(e){this.eat_rest_of_token();const i=this.slice();if(/^0x[\da-fA-F]+$/.test(i)){const o=parseInt(i,16);if(Number.isInteger(o))return{type:t.Int,col:e,len:this.marked_len(),value:o}}return{type:t.InvalidNumber,col:e,len:this.marked_len()}}tokenize_float(e){this.eat_rest_of_token();const i=this.slice();if(/^-?\d+(\.\d+)?(e-?\d+)?$/.test(i)){const o=parseFloat(i);if(Number.isFinite(o))return{type:t.Float,col:e,len:this.marked_len(),value:o}}return{type:t.InvalidNumber,col:e,len:this.marked_len()}}tokenize_register_or_ident(){const e=this.col;this.skip(),this.mark();let i=!1;for(;this.has_next();){const e=this.peek();if(!/\d/.test(e))break;i=!0,this.skip()}if(i){const i=parseInt(this.slice(),10);return{type:t.Register,col:e,len:this.marked_len()+1,value:i}}return this.back(),this.tokenize_ident()}tokenize_section(){const e=this.col;for(this.mark();this.has_next()&&!/\s/.test(this.peek());)this.skip();switch(this.slice()){case".code":return{type:t.CodeSection,col:e,len:5};case".data":return{type:t.DataSection,col:e,len:5};case".string":return{type:t.StringSection,col:e,len:7};default:return{type:t.InvalidSection,col:e,len:this.marked_len()}}}tokenize_string(){const e=this.col;this.mark(),this.skip();let i,o=!1,n=!1;e:for(;this.has_next();)switch(this.next()){case"\\":o=!0;break;case'"':if(!o){n=!0;break e}o=!1;break;default:o=!1}return i=n?JSON.parse(this.slice()):JSON.parse(this.slice()+'"'),{type:n?t.String:t.UnterminatedString,col:e,len:this.marked_len(),value:i}}tokenize_ident(){const e=this.col;for(this.mark();this.has_next();){const e=this.peek();if(/[\s,]/.test(e))break;if("/"===e){if(this.skip(),"/"===this.peek()){this.back();break}}else this.skip()}const i=this.slice(),o=/^[a-z][a-z0-9_=<>!]*$/.test(i)?t.Ident:t.InvalidIdent;return o===t.Ident?{type:o,col:e,len:this.marked_len(),value:i}:{type:o,col:e,len:this.marked_len()}}}!function(e){e[e.Any=0]="Any",e[e.Byte=1]="Byte",e[e.Word=2]="Word",e[e.DWord=3]="DWord",e[e.Float=4]="Float",e[e.Label=5]="Label",e[e.ILabel=6]="ILabel",e[e.DLabel=7]="DLabel",e[e.SLabel=8]="SLabel",e[e.String=9]="String",e[e.ILabelVar=10]="ILabelVar",e[e.RegRef=11]="RegRef",e[e.RegTupRef=12]="RegTupRef",e[e.RegRefVar=13]="RegRefVar",e[e.Pointer=14]="Pointer"}(_||(_={}));const s={kind:_.Any},r={kind:_.Byte},a={kind:_.Word},u={kind:_.DWord},l={kind:_.Float},N={kind:_.Label},p={kind:_.ILabel},R={kind:_.DLabel},g={kind:_.SLabel},f={kind:_.String},k={kind:_.ILabelVar},c={kind:_.RegRef},T={kind:_.RegRefVar},E={kind:_.Pointer};Math.pow(2,31),Math.pow(2,31),Math.pow(2,32);var W,O;!function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(W||(W={}));class h{constructor(e,i,o){this.type=e,this.doc=i,this.access=o}}!function(e){e[e.Push=0]="Push",e[e.Pop=1]="Pop"}(O||(O={}));const F=[],U=new Map;class A{constructor(e,i,o,n,d){this.code=e,this.mnemonic=i,this.doc=o,this.size=this.code<256?1:2,this.params=n,this.stack=d}}A.NOP=F[0]=new A(0,"nop","No operation, does nothing.",[],void 0),A.RET=F[1]=new A(1,"ret","Returns control to caller.",[],void 0),A.SYNC=F[2]=new A(2,"sync","Yields control for the rest of the current frame. Execution will continue the following frame.",[],void 0),A.EXIT=F[3]=new A(3,"exit",void 0,[new h(u,void 0,void 0)],O.Pop),A.THREAD=F[4]=new A(4,"thread","Starts a new thread. Thread execution will start at the given label.\nOften used to check a register every frame. Make sure to yield control with sync when looping.",[new h(p,void 0,void 0)],void 0),A.VA_START=F[5]=new A(5,"va_start","Initializes a variable argument list.\nMake sure to call va_end after va_start and va_call.",[],void 0),A.VA_END=F[6]=new A(6,"va_end","Restores the registers overwritten by arg_push* instructions.\nCalled after va_call.",[],void 0),A.VA_CALL=F[7]=new A(7,"va_call","Calls the variable argument function at the given label.\nCalled after initializing the argument list with va_start and pushing arguments onto the stack with arg_push* instructions. Make sure to call va_end afterwards.",[new h(p,void 0,void 0)],void 0),A.LET=F[8]=new A(8,"let","Sets the first register's value to second one's value.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.LETI=F[9]=new A(9,"leti","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.LETB=F[10]=new A(10,"letb","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(r,void 0,W.Write)]},void 0,void 0),new h(r,void 0,void 0)],void 0),A.LETW=F[11]=new A(11,"letw","Sets a register to the given value.",[new h({kind:_.RegTupRef,register_tuples:[new h(a,void 0,W.Write)]},void 0,void 0),new h(a,void 0,void 0)],void 0),A.LETA=F[12]=new A(12,"leta","Sets the first register to the memory address of the second register. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(E,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.LETO=F[13]=new A(13,"leto","Sets a register to the memory address of the given label. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(E,void 0,W.Write)]},void 0,void 0),new h(N,void 0,void 0)],void 0),A.UNKNOWN_0E=F[14]=new A(14,"unknown_0e",void 0,[],void 0),A.UNKNOWN_0F=F[15]=new A(15,"unknown_0f",void 0,[],void 0),A.SET=F[16]=new A(16,"set","Sets a register to 1.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.CLEAR=F[17]=new A(17,"clear","Sets a register to 0.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.REV=F[18]=new A(18,"rev","Sets a register to 1 if its current value is 0, otherwise sets it to 0.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.ReadWrite)]},void 0,void 0)],void 0),A.GSET=F[19]=new A(19,"gset",void 0,[new h(a,void 0,void 0)],void 0),A.GCLEAR=F[20]=new A(20,"gclear",void 0,[new h(a,void 0,void 0)],void 0),A.GREV=F[21]=new A(21,"grev",void 0,[new h(a,void 0,void 0)],void 0),A.GLET=F[22]=new A(22,"glet",void 0,[new h(a,void 0,void 0)],void 0),A.GGET=F[23]=new A(23,"gget","Sets a register to value of the given flag.",[new h(a,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(a,void 0,W.Write)]},void 0,void 0)],void 0),A.ADD=F[24]=new A(24,"add",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ADDI=F[25]=new A(25,"addi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.SUB=F[26]=new A(26,"sub",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.SUBI=F[27]=new A(27,"subi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.MUL=F[28]=new A(28,"mul",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.MULI=F[29]=new A(29,"muli",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.DIV=F[30]=new A(30,"div",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.DIVI=F[31]=new A(31,"divi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.AND=F[32]=new A(32,"and",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ANDI=F[33]=new A(33,"andi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.OR=F[34]=new A(34,"or",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.ORI=F[35]=new A(35,"ori",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.XOR=F[36]=new A(36,"xor",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.XORI=F[37]=new A(37,"xori",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.MOD=F[38]=new A(38,"mod",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.MODI=F[39]=new A(39,"modi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.JMP=F[40]=new A(40,"jmp",void 0,[new h(p,void 0,void 0)],void 0),A.CALL=F[41]=new A(41,"call",void 0,[new h(p,void 0,void 0)],void 0),A.JMP_ON=F[42]=new A(42,"jmp_on",void 0,[new h(p,void 0,void 0),new h(T,void 0,W.Read)],void 0),A.JMP_OFF=F[43]=new A(43,"jmp_off",void 0,[new h(p,void 0,void 0),new h(T,void 0,W.Read)],void 0),A.JMP_E=F[44]=new A(44,"jmp_=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_E=F[45]=new A(45,"jmpi_=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_NE=F[46]=new A(46,"jmp_!=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_NE=F[47]=new A(47,"jmpi_!=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_G=F[48]=new A(48,"ujmp_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_G=F[49]=new A(49,"ujmpi_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_G=F[50]=new A(50,"jmp_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_G=F[51]=new A(51,"jmpi_>",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_L=F[52]=new A(52,"ujmp_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_L=F[53]=new A(53,"ujmpi_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_L=F[54]=new A(54,"jmp_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_L=F[55]=new A(55,"jmpi_<",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_GE=F[56]=new A(56,"ujmp_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_GE=F[57]=new A(57,"ujmpi_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_GE=F[58]=new A(58,"jmp_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_GE=F[59]=new A(59,"jmpi_>=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMP_LE=F[60]=new A(60,"ujmp_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.UJMPI_LE=F[61]=new A(61,"ujmpi_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMP_LE=F[62]=new A(62,"jmp_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(p,void 0,void 0)],void 0),A.JMPI_LE=F[63]=new A(63,"jmpi_<=",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0)],void 0),A.SWITCH_JMP=F[64]=new A(64,"switch_jmp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(k,void 0,void 0)],void 0),A.SWITCH_CALL=F[65]=new A(65,"switch_call",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(k,void 0,void 0)],void 0),A.STACK_PUSH=F[66]=new A(66,"stack_push",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.STACK_POP=F[67]=new A(67,"stack_pop",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.STACK_PUSHM=F[68]=new A(68,"stack_pushm","Pushes the values of an arbitrary amount of registers onto the stack.",[new h(c,void 0,W.Read),new h(u,void 0,void 0)],void 0),A.STACK_POPM=F[69]=new A(69,"stack_popm","Pops an arbitrary amount of values from the stack and writes them to registers.",[new h(c,void 0,W.Write),new h(u,void 0,void 0)],void 0),A.UNKNOWN_46=F[70]=new A(70,"unknown_46",void 0,[],void 0),A.UNKNOWN_47=F[71]=new A(71,"unknown_47",void 0,[],void 0),A.ARG_PUSHR=F[72]=new A(72,"arg_pushr","Pushes the value of the given register onto the stack.",[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Push),A.ARG_PUSHL=F[73]=new A(73,"arg_pushl","Pushes the given value onto the stack.",[new h(u,void 0,void 0)],O.Push),A.ARG_PUSHB=F[74]=new A(74,"arg_pushb","Pushes the given value onto the stack.",[new h(r,void 0,void 0)],O.Push),A.ARG_PUSHW=F[75]=new A(75,"arg_pushw","Pushes the given value onto the stack.",[new h(a,void 0,void 0)],O.Push),A.ARG_PUSHA=F[76]=new A(76,"arg_pusha","Pushes the memory address of the given register onto the stack. Not used by Sega.",[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Push),A.ARG_PUSHO=F[77]=new A(77,"arg_pusho","Pushes the memory address of the given label onto the stack. Not used by Sega.",[new h(N,void 0,void 0)],O.Push),A.ARG_PUSHS=F[78]=new A(78,"arg_pushs","Pushes the given value onto the stack.",[new h(f,void 0,void 0)],O.Push),A.UNKNOWN_4F=F[79]=new A(79,"unknown_4f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MESSAGE=F[80]=new A(80,"message",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.LIST=F[81]=new A(81,"list","Used to display a list of items and retrieve the item selected by the player.\nList items should be seperated by newlines. The selected item's index will be written to the given register.",[new h({kind:_.RegTupRef,register_tuples:[new h(r,void 0,W.Write)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.FADEIN=F[82]=new A(82,"fadein",void 0,[],void 0),A.FADEOUT=F[83]=new A(83,"fadeout",void 0,[],void 0),A.SE=F[84]=new A(84,"se",void 0,[new h(u,void 0,void 0)],O.Pop),A.BGM=F[85]=new A(85,"bgm",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_56=F[86]=new A(86,"unknown_56",void 0,[],void 0),A.UNKNOWN_57=F[87]=new A(87,"unknown_57",void 0,[],void 0),A.ENABLE=F[88]=new A(88,"enable",void 0,[new h(u,void 0,void 0)],O.Pop),A.DISABLE=F[89]=new A(89,"disable",void 0,[new h(u,void 0,void 0)],O.Pop),A.WINDOW_MSG=F[90]=new A(90,"window_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.ADD_MSG=F[91]=new A(91,"add_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.MESEND=F[92]=new A(92,"mesend",void 0,[],void 0),A.GETTIME=F[93]=new A(93,"gettime",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.WINEND=F[94]=new A(94,"winend",void 0,[],void 0),A.UNKNOWN_5F=F[95]=new A(95,"unknown_5f",void 0,[],void 0),A.NPC_CRT_V3=F[96]=new A(96,"npc_crt_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_STOP=F[97]=new A(97,"npc_stop",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_PLAY=F[98]=new A(98,"npc_play",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_KILL=F[99]=new A(99,"npc_kill",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_NONT=F[100]=new A(100,"npc_nont",void 0,[],void 0),A.NPC_TALK=F[101]=new A(101,"npc_talk",void 0,[],void 0),A.NPC_CRP_V3=F[102]=new A(102,"npc_crp_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read),new h(s,void 0,W.Read),new h(s,void 0,W.Read),new h(p,void 0,W.Read),new h(s,void 0,W.Read),new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_67=F[103]=new A(103,"unknown_67",void 0,[],void 0),A.CREATE_PIPE=F[104]=new A(104,"create_pipe",void 0,[new h(u,void 0,void 0)],O.Pop),A.P_HPSTAT_V3=F[105]=new A(105,"p_hpstat_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.P_DEAD_V3=F[106]=new A(106,"p_dead_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,"Player slot.",void 0)],O.Pop),A.P_DISABLEWARP=F[107]=new A(107,"p_disablewarp",void 0,[],void 0),A.P_ENABLEWARP=F[108]=new A(108,"p_enablewarp",void 0,[],void 0),A.P_MOVE_V3=F[109]=new A(109,"p_move_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.P_LOOK=F[110]=new A(110,"p_look",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_6F=F[111]=new A(111,"unknown_6f",void 0,[],void 0),A.P_ACTION_DISABLE=F[112]=new A(112,"p_action_disable",void 0,[],void 0),A.P_ACTION_ENABLE=F[113]=new A(113,"p_action_enable",void 0,[],void 0),A.DISABLE_MOVEMENT1=F[114]=new A(114,"disable_movement1",void 0,[new h(u,void 0,void 0)],O.Pop),A.ENABLE_MOVEMENT1=F[115]=new A(115,"enable_movement1",void 0,[new h(u,void 0,void 0)],O.Pop),A.P_NONCOL=F[116]=new A(116,"p_noncol",void 0,[],void 0),A.P_COL=F[117]=new A(117,"p_col",void 0,[],void 0),A.P_SETPOS=F[118]=new A(118,"p_setpos","Sets a player's position.",[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Y-axis rotation.",W.Read)]},void 0,void 0)],O.Pop),A.P_RETURN_GUILD=F[119]=new A(119,"p_return_guild",void 0,[],void 0),A.P_TALK_GUILD=F[120]=new A(120,"p_talk_guild",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_TALK_PL_V3=F[121]=new A(121,"npc_talk_pl_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_TALK_KILL=F[122]=new A(122,"npc_talk_kill",void 0,[new h(u,void 0,void 0)],O.Pop),A.NPC_CRTPK_V3=F[123]=new A(123,"npc_crtpk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPPK_V3=F[124]=new A(124,"npc_crppk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPTALK_V3=F[125]=new A(125,"npc_crptalk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.P_LOOK_AT_V1=F[126]=new A(126,"p_look_at_v1",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.NPC_CRP_ID_V3=F[127]=new A(127,"npc_crp_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CAM_QUAKE=F[128]=new A(128,"cam_quake",void 0,[],void 0),A.CAM_ADJ=F[129]=new A(129,"cam_adj",void 0,[],void 0),A.CAM_ZMIN=F[130]=new A(130,"cam_zmin",void 0,[],void 0),A.CAM_ZMOUT=F[131]=new A(131,"cam_zmout",void 0,[],void 0),A.CAM_PAN_V3=F[132]=new A(132,"cam_pan_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.GAME_LEV_SUPER=F[133]=new A(133,"game_lev_super",void 0,[],void 0),A.GAME_LEV_RESET=F[134]=new A(134,"game_lev_reset",void 0,[],void 0),A.POS_PIPE_V3=F[135]=new A(135,"pos_pipe_v3","Create a telepipe at a specific position for the given player slot that takes players back to Pioneer 2 or the Lab.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.IF_ZONE_CLEAR=F[136]=new A(136,"if_zone_clear",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.CHK_ENE_NUM=F[137]=new A(137,"chk_ene_num","Retrieves the amount of enemies killed during the quest.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNHIDE_OBJ=F[138]=new A(138,"unhide_obj",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNHIDE_ENE=F[139]=new A(139,"unhide_ene",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_CALL=F[140]=new A(140,"at_coords_call",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_TALK=F[141]=new A(141,"at_coords_talk",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.COL_NPCIN=F[142]=new A(142,"col_npcin",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(p,void 0,W.Read)]},void 0,void 0)],void 0),A.COL_NPCINR=F[143]=new A(143,"col_npcinr",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SWITCH_ON=F[144]=new A(144,"switch_on",void 0,[new h(u,void 0,void 0)],O.Pop),A.SWITCH_OFF=F[145]=new A(145,"switch_off",void 0,[new h(u,void 0,void 0)],O.Pop),A.PLAYBGM_EPI=F[146]=new A(146,"playbgm_epi",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_MAINWARP=F[147]=new A(147,"set_mainwarp",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_OBJ_PARAM=F[148]=new A(148,"set_obj_param","Creates a targetable object.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Read),new h(u,"Y coordinate.",W.Read),new h(u,"Z coordinate.",W.Read),new h(u,"Collision radius.",W.Read),new h(p,"Function label.",W.Read),new h(u,"Vertical position of the cursor.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},"Object handle.",void 0)],void 0),A.SET_FLOOR_HANDLER=F[149]=new A(149,"set_floor_handler",void 0,[new h(u,"Floor number.",void 0),new h(p,"Handler function label.",void 0)],O.Pop),A.CLR_FLOOR_HANDLER=F[150]=new A(150,"clr_floor_handler",void 0,[new h(u,"Floor number.",void 0)],O.Pop),A.COL_PLINAW=F[151]=new A(151,"col_plinaw",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.HUD_HIDE=F[152]=new A(152,"hud_hide",void 0,[],void 0),A.HUD_SHOW=F[153]=new A(153,"hud_show",void 0,[],void 0),A.CINE_ENABLE=F[154]=new A(154,"cine_enable",void 0,[],void 0),A.CINE_DISABLE=F[155]=new A(155,"cine_disable",void 0,[],void 0),A.UNKNOWN_9C=F[156]=new A(156,"unknown_9c",void 0,[],void 0),A.UNKNOWN_9D=F[157]=new A(157,"unknown_9d",void 0,[],void 0),A.UNKNOWN_9E=F[158]=new A(158,"unknown_9e",void 0,[],void 0),A.UNKNOWN_9F=F[159]=new A(159,"unknown_9f",void 0,[],void 0),A.UNKNOWN_A0=F[160]=new A(160,"unknown_a0",void 0,[],void 0),A.SET_QT_FAILURE=F[161]=new A(161,"set_qt_failure",void 0,[new h(p,void 0,void 0)],void 0),A.SET_QT_SUCCESS=F[162]=new A(162,"set_qt_success",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_FAILURE=F[163]=new A(163,"clr_qt_failure",void 0,[],void 0),A.CLR_QT_SUCCESS=F[164]=new A(164,"clr_qt_success",void 0,[],void 0),A.SET_QT_CANCEL=F[165]=new A(165,"set_qt_cancel",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_CANCEL=F[166]=new A(166,"clr_qt_cancel",void 0,[],void 0),A.UNKNOWN_A7=F[167]=new A(167,"unknown_a7",void 0,[],void 0),A.PL_WALK_V3=F[168]=new A(168,"pl_walk_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_A9=F[169]=new A(169,"unknown_a9",void 0,[],void 0),A.UNKNOWN_AA=F[170]=new A(170,"unknown_aa",void 0,[],void 0),A.UNKNOWN_AB=F[171]=new A(171,"unknown_ab",void 0,[],void 0),A.UNKNOWN_AC=F[172]=new A(172,"unknown_ac",void 0,[],void 0),A.UNKNOWN_AD=F[173]=new A(173,"unknown_ad",void 0,[],void 0),A.UNKNOWN_AE=F[174]=new A(174,"unknown_ae",void 0,[],void 0),A.UNKNOWN_AF=F[175]=new A(175,"unknown_af",void 0,[],void 0),A.PL_ADD_MESETA=F[176]=new A(176,"pl_add_meseta",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.THREAD_STG=F[177]=new A(177,"thread_stg",void 0,[new h(p,void 0,void 0)],void 0),A.DEL_OBJ_PARAM=F[178]=new A(178,"del_obj_param",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},"Object handle.",void 0)],void 0),A.ITEM_CREATE=F[179]=new A(179,"item_create",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_CREATE2=F[180]=new A(180,"item_create2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_DELETE=F[181]=new A(181,"item_delete",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ITEM_DELETE2=F[182]=new A(182,"item_delete2","Deletes an item from the player's inventory.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.ITEM_CHECK=F[183]=new A(183,"item_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SETEVT=F[184]=new A(184,"setevt",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_DIFFLVL=F[185]=new A(185,"get_difflvl","Sets the given register to the current difficulty. 0 For normal, 1 for hard and 2 for both very hard and ultimate.\nUse get_difficulty_level2 if you want to differentiate between very hard and ultimate.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_QT_EXIT=F[186]=new A(186,"set_qt_exit",void 0,[new h(p,void 0,void 0)],void 0),A.CLR_QT_EXIT=F[187]=new A(187,"clr_qt_exit",void 0,[],void 0),A.UNKNOWN_BC=F[188]=new A(188,"unknown_bc",void 0,[],void 0),A.UNKNOWN_BD=F[189]=new A(189,"unknown_bd",void 0,[],void 0),A.UNKNOWN_BE=F[190]=new A(190,"unknown_be",void 0,[],void 0),A.UNKNOWN_BF=F[191]=new A(191,"unknown_bf",void 0,[],void 0),A.PARTICLE_V3=F[192]=new A(192,"particle_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_TEXT=F[193]=new A(193,"npc_text",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.NPC_CHKWARP=F[194]=new A(194,"npc_chkwarp",void 0,[],void 0),A.PL_PKOFF=F[195]=new A(195,"pl_pkoff",void 0,[],void 0),A.MAP_DESIGNATE=F[196]=new A(196,"map_designate",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MASTERKEY_ON=F[197]=new A(197,"masterkey_on",void 0,[],void 0),A.MASTERKEY_OFF=F[198]=new A(198,"masterkey_off",void 0,[],void 0),A.WINDOW_TIME=F[199]=new A(199,"window_time",void 0,[],void 0),A.WINEND_TIME=F[200]=new A(200,"winend_time",void 0,[],void 0),A.WINSET_TIME=F[201]=new A(201,"winset_time",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GETMTIME=F[202]=new A(202,"getmtime",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_QUEST_BOARD_HANDLER=F[203]=new A(203,"set_quest_board_handler",void 0,[new h(u,void 0,void 0),new h(p,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.CLEAR_QUEST_BOARD_HANDLER=F[204]=new A(204,"clear_quest_board_handler",void 0,[new h(u,void 0,void 0)],O.Pop),A.PARTICLE_ID_V3=F[205]=new A(205,"particle_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_CRPTALK_ID_V3=F[206]=new A(206,"npc_crptalk_id_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.NPC_LANG_CLEAN=F[207]=new A(207,"npc_lang_clean",void 0,[],void 0),A.PL_PKON=F[208]=new A(208,"pl_pkon",void 0,[],void 0),A.PL_CHK_ITEM2=F[209]=new A(209,"pl_chk_item2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ENABLE_MAINMENU=F[210]=new A(210,"enable_mainmenu",void 0,[],void 0),A.DISABLE_MAINMENU=F[211]=new A(211,"disable_mainmenu",void 0,[],void 0),A.START_BATTLEBGM=F[212]=new A(212,"start_battlebgm",void 0,[],void 0),A.END_BATTLEBGM=F[213]=new A(213,"end_battlebgm",void 0,[],void 0),A.DISP_MSG_QB=F[214]=new A(214,"disp_msg_qb",void 0,[new h(f,void 0,void 0)],O.Pop),A.CLOSE_MSG_QB=F[215]=new A(215,"close_msg_qb",void 0,[],void 0),A.SET_EVENTFLAG_V3=F[216]=new A(216,"set_eventflag_v3",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SYNC_LETI=F[217]=new A(217,"sync_leti",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.SET_RETURNHUNTER=F[218]=new A(218,"set_returnhunter",void 0,[],void 0),A.SET_RETURNCITY=F[219]=new A(219,"set_returncity",void 0,[],void 0),A.LOAD_PVR=F[220]=new A(220,"load_pvr",void 0,[],void 0),A.LOAD_MIDI=F[221]=new A(221,"load_midi",void 0,[],void 0),A.UNKNOWN_DE=F[222]=new A(222,"unknown_de",void 0,[],void 0),A.NPC_PARAM_V3=F[223]=new A(223,"npc_param_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.PAD_DRAGON=F[224]=new A(224,"pad_dragon",void 0,[],void 0),A.CLEAR_MAINWARP=F[225]=new A(225,"clear_mainwarp",void 0,[new h(u,void 0,void 0)],O.Pop),A.PCAM_PARAM_V3=F[226]=new A(226,"pcam_param_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.START_SETEVT_V3=F[227]=new A(227,"start_setevt_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.WARP_ON=F[228]=new A(228,"warp_on",void 0,[],void 0),A.WARP_OFF=F[229]=new A(229,"warp_off",void 0,[],void 0),A.GET_SLOTNUMBER=F[230]=new A(230,"get_slotnumber",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_SERVERNUMBER=F[231]=new A(231,"get_servernumber",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.SET_EVENTFLAG2=F[232]=new A(232,"set_eventflag2",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.RES=F[233]=new A(233,"res",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_EA=F[234]=new A(234,"unknown_ea",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0)],void 0),A.ENABLE_BGMCTRL=F[235]=new A(235,"enable_bgmctrl",void 0,[new h(u,void 0,void 0)],O.Pop),A.SW_SEND=F[236]=new A(236,"sw_send",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CREATE_BGMCTRL=F[237]=new A(237,"create_bgmctrl",void 0,[],void 0),A.PL_ADD_MESETA2=F[238]=new A(238,"pl_add_meseta2",void 0,[new h(u,void 0,void 0)],O.Pop),A.SYNC_REGISTER=F[239]=new A(239,"sync_register",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SEND_REGWORK=F[240]=new A(240,"send_regwork",void 0,[],void 0),A.LETI_FIXED_CAMERA_V3=F[241]=new A(241,"leti_fixed_camera_v3",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.DEFAULT_CAMERA_POS1=F[242]=new A(242,"default_camera_pos1",void 0,[],void 0),A.UNKNOWN_F3=F[243]=new A(243,"unknown_f3",void 0,[],void 0),A.UNKNOWN_F4=F[244]=new A(244,"unknown_f4",void 0,[],void 0),A.UNKNOWN_F5=F[245]=new A(245,"unknown_f5",void 0,[],void 0),A.UNKNOWN_F6=F[246]=new A(246,"unknown_f6",void 0,[],void 0),A.UNKNOWN_F7=F[247]=new A(247,"unknown_f7",void 0,[],void 0),A.UNKNOWN_F8=F[248]=new A(248,"unknown_f8",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F9=F[249]=new A(249,"unknown_f9",void 0,[],void 0),A.GET_GC_NUMBER=F[250]=new A(250,"get_gc_number",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_FB=F[251]=new A(251,"unknown_fb",void 0,[new h(a,void 0,void 0)],void 0),A.UNKNOWN_FC=F[252]=new A(252,"unknown_fc",void 0,[],void 0),A.UNKNOWN_FD=F[253]=new A(253,"unknown_fd",void 0,[],void 0),A.UNKNOWN_FE=F[254]=new A(254,"unknown_fe",void 0,[],void 0),A.UNKNOWN_FF=F[255]=new A(255,"unknown_ff",void 0,[],void 0),A.UNKNOWN_F800=F[63488]=new A(63488,"unknown_f800",void 0,[],void 0),A.SET_CHAT_CALLBACK=F[63489]=new A(63489,"set_chat_callback",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F802=F[63490]=new A(63490,"unknown_f802",void 0,[],void 0),A.UNKNOWN_F803=F[63491]=new A(63491,"unknown_f803",void 0,[],void 0),A.UNKNOWN_F804=F[63492]=new A(63492,"unknown_f804",void 0,[],void 0),A.UNKNOWN_F805=F[63493]=new A(63493,"unknown_f805",void 0,[],void 0),A.UNKNOWN_F806=F[63494]=new A(63494,"unknown_f806",void 0,[],void 0),A.UNKNOWN_F807=F[63495]=new A(63495,"unknown_f807",void 0,[],void 0),A.GET_DIFFICULTY_LEVEL2=F[63496]=new A(63496,"get_difficulty_level2","Sets the given register to the current difficulty. 0 For normal, 1 for hard, 2 for very hard and 3 for ultimate.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_NUMBER_OF_PLAYER1=F[63497]=new A(63497,"get_number_of_player1","Set the given register to the current number of players. Either 1, 2, 3 or 4.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_COORD_OF_PLAYER=F[63498]=new A(63498,"get_coord_of_player","Retrieves a player's position.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"X coordinate.",W.Write),new h(u,"Y coordinate.",W.Write),new h(u,"Z coordinate.",W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.ENABLE_MAP=F[63499]=new A(63499,"enable_map",void 0,[],void 0),A.DISABLE_MAP=F[63500]=new A(63500,"disable_map",void 0,[],void 0),A.MAP_DESIGNATE_EX=F[63501]=new A(63501,"map_designate_ex",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F80E=F[63502]=new A(63502,"unknown_f80e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F80F=F[63503]=new A(63503,"unknown_f80f",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_INITIAL_FLOOR=F[63504]=new A(63504,"ba_initial_floor",void 0,[new h(u,void 0,void 0)],O.Pop),A.SET_BA_RULES=F[63505]=new A(63505,"set_ba_rules",void 0,[],void 0),A.UNKNOWN_F812=F[63506]=new A(63506,"unknown_f812",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F813=F[63507]=new A(63507,"unknown_f813",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F814=F[63508]=new A(63508,"unknown_f814",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F815=F[63509]=new A(63509,"unknown_f815",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F816=F[63510]=new A(63510,"unknown_f816",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F817=F[63511]=new A(63511,"unknown_f817",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F818=F[63512]=new A(63512,"unknown_f818",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F819=F[63513]=new A(63513,"unknown_f819",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81A=F[63514]=new A(63514,"unknown_f81a",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81B=F[63515]=new A(63515,"unknown_f81b",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_DISP_MSG=F[63516]=new A(63516,"ba_disp_msg",void 0,[new h(f,void 0,void 0)],O.Pop),A.DEATH_LVL_UP=F[63517]=new A(63517,"death_lvl_up",void 0,[new h(u,void 0,void 0)],O.Pop),A.DEATH_TECH_LVL_UP=F[63518]=new A(63518,"death_tech_lvl_up",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F81F=F[63519]=new A(63519,"unknown_f81f",void 0,[],void 0),A.CMODE_STAGE=F[63520]=new A(63520,"cmode_stage",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F821=F[63521]=new A(63521,"unknown_f821",void 0,[],void 0),A.UNKNOWN_F822=F[63522]=new A(63522,"unknown_f822",void 0,[],void 0),A.UNKNOWN_F823=F[63523]=new A(63523,"unknown_f823",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F824=F[63524]=new A(63524,"unknown_f824",void 0,[new h(u,void 0,void 0)],O.Pop),A.EXP_MULTIPLICATION=F[63525]=new A(63525,"exp_multiplication",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.EXP_DIVISION=F[63526]=new A(63526,"exp_division",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_USER_IS_DEAD=F[63527]=new A(63527,"get_user_is_dead",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GO_FLOOR=F[63528]=new A(63528,"go_floor","Sends a player to the given floor.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Floor ID.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F829=F[63529]=new A(63529,"unknown_f829",void 0,[],void 0),A.UNKNOWN_F82A=F[63530]=new A(63530,"unknown_f82a",void 0,[],void 0),A.UNLOCK_DOOR2=F[63531]=new A(63531,"unlock_door2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.LOCK_DOOR2=F[63532]=new A(63532,"lock_door2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.IF_SWITCH_NOT_PRESSED=F[63533]=new A(63533,"if_switch_not_pressed",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.IF_SWITCH_PRESSED=F[63534]=new A(63534,"if_switch_pressed",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Floor ID.",W.Read),new h(u,"Switch ID.",W.Read),new h(u,"Will be set to 1 if the switch is pressed, 0 otherwise.",W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F82F=F[63535]=new A(63535,"unknown_f82f",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.CONTROL_DRAGON=F[63536]=new A(63536,"control_dragon",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.RELEASE_DRAGON=F[63537]=new A(63537,"release_dragon",void 0,[],void 0),A.UNKNOWN_F832=F[63538]=new A(63538,"unknown_f832",void 0,[],void 0),A.UNKNOWN_F833=F[63539]=new A(63539,"unknown_f833",void 0,[],void 0),A.UNKNOWN_F834=F[63540]=new A(63540,"unknown_f834",void 0,[],void 0),A.UNKNOWN_F835=F[63541]=new A(63541,"unknown_f835",void 0,[],void 0),A.UNKNOWN_F836=F[63542]=new A(63542,"unknown_f836",void 0,[],void 0),A.UNKNOWN_F837=F[63543]=new A(63543,"unknown_f837",void 0,[],void 0),A.SHRINK=F[63544]=new A(63544,"shrink",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNSHRINK=F[63545]=new A(63545,"unshrink",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F83A=F[63546]=new A(63546,"unknown_f83a",void 0,[],void 0),A.UNKNOWN_F83B=F[63547]=new A(63547,"unknown_f83b",void 0,[],void 0),A.DISPLAY_CLOCK2=F[63548]=new A(63548,"display_clock2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F83D=F[63549]=new A(63549,"unknown_f83d",void 0,[new h(u,void 0,void 0)],O.Pop),A.DELETE_AREA_TITLE=F[63550]=new A(63550,"delete_area_title",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F83F=F[63551]=new A(63551,"unknown_f83f",void 0,[],void 0),A.LOAD_NPC_DATA=F[63552]=new A(63552,"load_npc_data",void 0,[],void 0),A.GET_NPC_DATA=F[63553]=new A(63553,"get_npc_data",void 0,[new h(R,void 0,void 0)],void 0),A.UNKNOWN_F842=F[63554]=new A(63554,"unknown_f842",void 0,[],void 0),A.UNKNOWN_F843=F[63555]=new A(63555,"unknown_f843",void 0,[],void 0),A.UNKNOWN_F844=F[63556]=new A(63556,"unknown_f844",void 0,[],void 0),A.UNKNOWN_F845=F[63557]=new A(63557,"unknown_f845",void 0,[],void 0),A.UNKNOWN_F846=F[63558]=new A(63558,"unknown_f846",void 0,[],void 0),A.UNKNOWN_F847=F[63559]=new A(63559,"unknown_f847",void 0,[],void 0),A.GIVE_DAMAGE_SCORE=F[63560]=new A(63560,"give_damage_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.TAKE_DAMAGE_SCORE=F[63561]=new A(63561,"take_damage_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84A=F[63562]=new A(63562,"unk_score_f84a",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84B=F[63563]=new A(63563,"unk_score_f84b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.KILL_SCORE=F[63564]=new A(63564,"kill_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.DEATH_SCORE=F[63565]=new A(63565,"death_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNK_SCORE_F84E=F[63566]=new A(63566,"unk_score_f84e",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.ENEMY_DEATH_SCORE=F[63567]=new A(63567,"enemy_death_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.MESETA_SCORE=F[63568]=new A(63568,"meseta_score",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F851=F[63569]=new A(63569,"unknown_f851",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F852=F[63570]=new A(63570,"unknown_f852",void 0,[new h(u,void 0,void 0)],O.Pop),A.REVERSE_WARPS=F[63571]=new A(63571,"reverse_warps",void 0,[],void 0),A.UNREVERSE_WARPS=F[63572]=new A(63572,"unreverse_warps",void 0,[],void 0),A.SET_ULT_MAP=F[63573]=new A(63573,"set_ult_map",void 0,[],void 0),A.UNSET_ULT_MAP=F[63574]=new A(63574,"unset_ult_map",void 0,[],void 0),A.SET_AREA_TITLE=F[63575]=new A(63575,"set_area_title",void 0,[new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F858=F[63576]=new A(63576,"unknown_f858",void 0,[],void 0),A.UNKNOWN_F859=F[63577]=new A(63577,"unknown_f859",void 0,[],void 0),A.EQUIP_ITEM=F[63578]=new A(63578,"equip_item",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNEQUIP_ITEM=F[63579]=new A(63579,"unequip_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F85C=F[63580]=new A(63580,"unknown_f85c",void 0,[],void 0),A.UNKNOWN_F85D=F[63581]=new A(63581,"unknown_f85d",void 0,[],void 0),A.UNKNOWN_F85E=F[63582]=new A(63582,"unknown_f85e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F85F=F[63583]=new A(63583,"unknown_f85f",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F860=F[63584]=new A(63584,"unknown_f860",void 0,[],void 0),A.UNKNOWN_F861=F[63585]=new A(63585,"unknown_f861",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F862=F[63586]=new A(63586,"unknown_f862",void 0,[],void 0),A.UNKNOWN_F863=F[63587]=new A(63587,"unknown_f863",void 0,[],void 0),A.CMODE_RANK=F[63588]=new A(63588,"cmode_rank",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.AWARD_ITEM_NAME=F[63589]=new A(63589,"award_item_name",void 0,[],void 0),A.AWARD_ITEM_SELECT=F[63590]=new A(63590,"award_item_select",void 0,[],void 0),A.AWARD_ITEM_GIVE_TO=F[63591]=new A(63591,"award_item_give_to",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F868=F[63592]=new A(63592,"unknown_f868",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F869=F[63593]=new A(63593,"unknown_f869",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.ITEM_CREATE_CMODE=F[63594]=new A(63594,"item_create_cmode",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F86B=F[63595]=new A(63595,"unknown_f86b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.AWARD_ITEM_OK=F[63596]=new A(63596,"award_item_ok",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F86D=F[63597]=new A(63597,"unknown_f86d",void 0,[],void 0),A.UNKNOWN_F86E=F[63598]=new A(63598,"unknown_f86e",void 0,[],void 0),A.BA_SET_LIVES=F[63599]=new A(63599,"ba_set_lives",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_TECH_LVL=F[63600]=new A(63600,"ba_set_tech_lvl",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_LVL=F[63601]=new A(63601,"ba_set_lvl",void 0,[new h(u,void 0,void 0)],O.Pop),A.BA_SET_TIME_LIMIT=F[63602]=new A(63602,"ba_set_time_limit",void 0,[new h(u,void 0,void 0)],O.Pop),A.BOSS_IS_DEAD=F[63603]=new A(63603,"boss_is_dead",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F874=F[63604]=new A(63604,"unknown_f874",void 0,[],void 0),A.UNKNOWN_F875=F[63605]=new A(63605,"unknown_f875",void 0,[],void 0),A.UNKNOWN_F876=F[63606]=new A(63606,"unknown_f876",void 0,[],void 0),A.ENABLE_TECHS=F[63607]=new A(63607,"enable_techs","Enables technique use for the given player.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.DISABLE_TECHS=F[63608]=new A(63608,"disable_techs","Disables technique use for the given player.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.GET_GENDER=F[63609]=new A(63609,"get_gender","Retrieves the player's gender. 0 If male, 1 if female.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player gender.",W.Write)]},void 0,void 0)],void 0),A.GET_CHARA_CLASS=F[63610]=new A(63610,"get_chara_class","Retrieves the player's race and character class.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player race. 0 If human, 1 if newman, 2 if cast.",W.Write),new h(u,"Player class. 0 If hunter, 1 if ranger, 2 if force.",W.Write)]},void 0,void 0)],void 0),A.TAKE_SLOT_MESETA=F[63611]=new A(63611,"take_slot_meseta","Takes an amount of meseta from a player's inventory.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read),new h(u,"Amount of meseta to take.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Will be set to 1 if the meseta was taken, 0 otherwise.",W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F87C=F[63612]=new A(63612,"unknown_f87c",void 0,[],void 0),A.UNKNOWN_F87D=F[63613]=new A(63613,"unknown_f87d",void 0,[],void 0),A.UNKNOWN_F87E=F[63614]=new A(63614,"unknown_f87e",void 0,[],void 0),A.READ_GUILDCARD_FLAG=F[63615]=new A(63615,"read_guildcard_flag",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F880=F[63616]=new A(63616,"unknown_f880",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_PL_NAME=F[63617]=new A(63617,"get_pl_name","Sets the value of <pl_name> to the given player's name.",[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F882=F[63618]=new A(63618,"unknown_f882",void 0,[],void 0),A.UNKNOWN_F883=F[63619]=new A(63619,"unknown_f883",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F884=F[63620]=new A(63620,"unknown_f884",void 0,[],void 0),A.UNKNOWN_F885=F[63621]=new A(63621,"unknown_f885",void 0,[],void 0),A.UNKNOWN_F886=F[63622]=new A(63622,"unknown_f886",void 0,[],void 0),A.UNKNOWN_F887=F[63623]=new A(63623,"unknown_f887",void 0,[],void 0),A.UNKNOWN_F888=F[63624]=new A(63624,"unknown_f888",void 0,[],void 0),A.UNKNOWN_F889=F[63625]=new A(63625,"unknown_f889",void 0,[],void 0),A.GET_PLAYER_STATUS=F[63626]=new A(63626,"get_player_status",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SEND_MAIL=F[63627]=new A(63627,"send_mail",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.ONLINE_CHECK=F[63628]=new A(63628,"online_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.CHL_SET_TIMERECORD=F[63629]=new A(63629,"chl_set_timerecord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CHL_GET_TIMERECORD=F[63630]=new A(63630,"chl_get_timerecord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F88F=F[63631]=new A(63631,"unknown_f88f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F890=F[63632]=new A(63632,"unknown_f890",void 0,[],void 0),A.LOAD_ENEMY_DATA=F[63633]=new A(63633,"load_enemy_data",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_PHYSICAL_DATA=F[63634]=new A(63634,"get_physical_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_ATTACK_DATA=F[63635]=new A(63635,"get_attack_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_RESIST_DATA=F[63636]=new A(63636,"get_resist_data",void 0,[new h(a,void 0,void 0)],void 0),A.GET_MOVEMENT_DATA=F[63637]=new A(63637,"get_movement_data",void 0,[new h(a,void 0,void 0)],void 0),A.UNKNOWN_F896=F[63638]=new A(63638,"unknown_f896",void 0,[],void 0),A.UNKNOWN_F897=F[63639]=new A(63639,"unknown_f897",void 0,[],void 0),A.SHIFT_LEFT=F[63640]=new A(63640,"shift_left",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.SHIFT_RIGHT=F[63641]=new A(63641,"shift_right",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.GET_RANDOM=F[63642]=new A(63642,"get_random",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.RESET_MAP=F[63643]=new A(63643,"reset_map","Sets all registers to 0 and resets the quest.",[],void 0),A.DISP_CHL_RETRY_MENU=F[63644]=new A(63644,"disp_chl_retry_menu",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.CHL_REVERSER=F[63645]=new A(63645,"chl_reverser",void 0,[],void 0),A.UNKNOWN_F89E=F[63646]=new A(63646,"unknown_f89e",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F89F=F[63647]=new A(63647,"unknown_f89f",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8A0=F[63648]=new A(63648,"unknown_f8a0",void 0,[],void 0),A.UNKNOWN_F8A1=F[63649]=new A(63649,"unknown_f8a1",void 0,[],void 0),A.UNKNOWN_F8A2=F[63650]=new A(63650,"unknown_f8a2",void 0,[],void 0),A.UNKNOWN_F8A3=F[63651]=new A(63651,"unknown_f8a3",void 0,[],void 0),A.UNKNOWN_F8A4=F[63652]=new A(63652,"unknown_f8a4",void 0,[],void 0),A.UNKNOWN_F8A5=F[63653]=new A(63653,"unknown_f8a5",void 0,[],void 0),A.UNKNOWN_F8A6=F[63654]=new A(63654,"unknown_f8a6",void 0,[],void 0),A.UNKNOWN_F8A7=F[63655]=new A(63655,"unknown_f8a7",void 0,[],void 0),A.UNKNOWN_F8A8=F[63656]=new A(63656,"unknown_f8a8",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F8A9=F[63657]=new A(63657,"unknown_f8a9",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8AA=F[63658]=new A(63658,"unknown_f8aa",void 0,[],void 0),A.UNKNOWN_F8AB=F[63659]=new A(63659,"unknown_f8ab",void 0,[],void 0),A.UNKNOWN_F8AC=F[63660]=new A(63660,"unknown_f8ac",void 0,[],void 0),A.GET_NUMBER_OF_PLAYER2=F[63661]=new A(63661,"get_number_of_player2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8AE=F[63662]=new A(63662,"unknown_f8ae",void 0,[],void 0),A.UNKNOWN_F8AF=F[63663]=new A(63663,"unknown_f8af",void 0,[],void 0),A.UNKNOWN_F8B0=F[63664]=new A(63664,"unknown_f8b0",void 0,[],void 0),A.UNKNOWN_F8B1=F[63665]=new A(63665,"unknown_f8b1",void 0,[],void 0),A.UNKNOWN_F8B2=F[63666]=new A(63666,"unknown_f8b2",void 0,[],void 0),A.UNKNOWN_F8B3=F[63667]=new A(63667,"unknown_f8b3",void 0,[],void 0),A.UNKNOWN_F8B4=F[63668]=new A(63668,"unknown_f8b4",void 0,[],void 0),A.UNKNOWN_F8B5=F[63669]=new A(63669,"unknown_f8b5",void 0,[],void 0),A.UNKNOWN_F8B6=F[63670]=new A(63670,"unknown_f8b6",void 0,[],void 0),A.UNKNOWN_F8B7=F[63671]=new A(63671,"unknown_f8b7",void 0,[],void 0),A.UNKNOWN_F8B8=F[63672]=new A(63672,"unknown_f8b8",void 0,[],void 0),A.CHL_RECOVERY=F[63673]=new A(63673,"chl_recovery",void 0,[],void 0),A.UNKNOWN_F8BA=F[63674]=new A(63674,"unknown_f8ba",void 0,[],void 0),A.UNKNOWN_F8BB=F[63675]=new A(63675,"unknown_f8bb",void 0,[],void 0),A.SET_EPISODE=F[63676]=new A(63676,"set_episode",void 0,[new h(u,void 0,void 0)],void 0),A.UNKNOWN_F8BD=F[63677]=new A(63677,"unknown_f8bd",void 0,[],void 0),A.UNKNOWN_F8BE=F[63678]=new A(63678,"unknown_f8be",void 0,[],void 0),A.UNKNOWN_F8BF=F[63679]=new A(63679,"unknown_f8bf",void 0,[],void 0),A.FILE_DL_REQ=F[63680]=new A(63680,"file_dl_req",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.GET_DL_STATUS=F[63681]=new A(63681,"get_dl_status",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GBA_UNKNOWN4=F[63682]=new A(63682,"gba_unknown4",void 0,[],void 0),A.GET_GBA_STATE=F[63683]=new A(63683,"get_gba_state",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8C4=F[63684]=new A(63684,"unknown_f8c4",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F8C5=F[63685]=new A(63685,"unknown_f8c5",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.QEXIT=F[63686]=new A(63686,"qexit",void 0,[],void 0),A.USE_ANIMATION=F[63687]=new A(63687,"use_animation",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Animation ID.",W.Read),new h(u,"Animation duration in number of frames.",W.Read)]},void 0,void 0)],void 0),A.STOP_ANIMATION=F[63688]=new A(63688,"stop_animation",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.RUN_TO_COORD=F[63689]=new A(63689,"run_to_coord",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_INVINCIBLE=F[63690]=new A(63690,"set_slot_invincible",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8CB=F[63691]=new A(63691,"unknown_f8cb",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_POISON=F[63692]=new A(63692,"set_slot_poison",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_PARALYZE=F[63693]=new A(63693,"set_slot_paralyze",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SHOCK=F[63694]=new A(63694,"set_slot_shock",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_FREEZE=F[63695]=new A(63695,"set_slot_freeze",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SLOW=F[63696]=new A(63696,"set_slot_slow",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_CONFUSE=F[63697]=new A(63697,"set_slot_confuse",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_SHIFTA=F[63698]=new A(63698,"set_slot_shifta",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_DEBAND=F[63699]=new A(63699,"set_slot_deband",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_JELLEN=F[63700]=new A(63700,"set_slot_jellen",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.SET_SLOT_ZALURE=F[63701]=new A(63701,"set_slot_zalure",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read)]},void 0,void 0)],void 0),A.FLETI_FIXED_CAMERA=F[63702]=new A(63702,"fleti_fixed_camera",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.FLETI_LOCKED_CAMERA=F[63703]=new A(63703,"fleti_locked_camera",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],O.Pop),A.DEFAULT_CAMERA_POS2=F[63704]=new A(63704,"default_camera_pos2",void 0,[],void 0),A.SET_MOTION_BLUR=F[63705]=new A(63705,"set_motion_blur",void 0,[],void 0),A.SET_SCREEN_BW=F[63706]=new A(63706,"set_screen_bw",void 0,[],void 0),A.UNKNOWN_F8DB=F[63707]=new A(63707,"unknown_f8db",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(a,void 0,void 0)],O.Pop),A.NPC_ACTION_STRING=F[63708]=new A(63708,"npc_action_string",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0),new h(g,void 0,void 0)],void 0),A.GET_PAD_COND=F[63709]=new A(63709,"get_pad_cond",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_BUTTON_COND=F[63710]=new A(63710,"get_button_cond",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.FREEZE_ENEMIES=F[63711]=new A(63711,"freeze_enemies",void 0,[],void 0),A.UNFREEZE_ENEMIES=F[63712]=new A(63712,"unfreeze_enemies",void 0,[],void 0),A.FREEZE_EVERYTHING=F[63713]=new A(63713,"freeze_everything",void 0,[],void 0),A.UNFREEZE_EVERYTHING=F[63714]=new A(63714,"unfreeze_everything",void 0,[],void 0),A.RESTORE_HP=F[63715]=new A(63715,"restore_hp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.RESTORE_TP=F[63716]=new A(63716,"restore_tp",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CLOSE_CHAT_BUBBLE=F[63717]=new A(63717,"close_chat_bubble",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.MOVE_COORDS_OBJECT=F[63718]=new A(63718,"move_coords_object",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.AT_COORDS_CALL_EX=F[63719]=new A(63719,"at_coords_call_ex",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8E8=F[63720]=new A(63720,"unknown_f8e8",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8E9=F[63721]=new A(63721,"unknown_f8e9",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EA=F[63722]=new A(63722,"unknown_f8ea",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EB=F[63723]=new A(63723,"unknown_f8eb",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.UNKNOWN_F8EC=F[63724]=new A(63724,"unknown_f8ec",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.ANIMATION_CHECK=F[63725]=new A(63725,"animation_check",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.CALL_IMAGE_DATA=F[63726]=new A(63726,"call_image_data",void 0,[new h(u,void 0,void 0),new h(a,void 0,void 0)],O.Pop),A.UNKNOWN_F8EF=F[63727]=new A(63727,"unknown_f8ef",void 0,[],void 0),A.TURN_OFF_BGM_P2=F[63728]=new A(63728,"turn_off_bgm_p2",void 0,[],void 0),A.TURN_ON_BGM_P2=F[63729]=new A(63729,"turn_on_bgm_p2",void 0,[],void 0),A.LOAD_UNK_DATA=F[63730]=new A(63730,"load_unk_data",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(R,void 0,void 0)],O.Pop),A.PARTICLE2=F[63731]=new A(63731,"particle2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0),new h(u,void 0,void 0),new h(l,void 0,void 0)],O.Pop),A.UNKNOWN_F8F4=F[63732]=new A(63732,"unknown_f8f4",void 0,[],void 0),A.UNKNOWN_F8F5=F[63733]=new A(63733,"unknown_f8f5",void 0,[],void 0),A.UNKNOWN_F8F6=F[63734]=new A(63734,"unknown_f8f6",void 0,[],void 0),A.UNKNOWN_F8F7=F[63735]=new A(63735,"unknown_f8f7",void 0,[],void 0),A.UNKNOWN_F8F8=F[63736]=new A(63736,"unknown_f8f8",void 0,[],void 0),A.UNKNOWN_F8F9=F[63737]=new A(63737,"unknown_f8f9",void 0,[],void 0),A.UNKNOWN_F8FA=F[63738]=new A(63738,"unknown_f8fa",void 0,[],void 0),A.UNKNOWN_F8FB=F[63739]=new A(63739,"unknown_f8fb",void 0,[],void 0),A.UNKNOWN_F8FC=F[63740]=new A(63740,"unknown_f8fc",void 0,[],void 0),A.UNKNOWN_F8FD=F[63741]=new A(63741,"unknown_f8fd",void 0,[],void 0),A.UNKNOWN_F8FE=F[63742]=new A(63742,"unknown_f8fe",void 0,[],void 0),A.UNKNOWN_F8FF=F[63743]=new A(63743,"unknown_f8ff",void 0,[],void 0),A.UNKNOWN_F900=F[63744]=new A(63744,"unknown_f900",void 0,[],void 0),A.DEC2FLOAT=F[63745]=new A(63745,"dec2float",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Read)]},void 0,void 0)],void 0),A.FLOAT2DEC=F[63746]=new A(63746,"float2dec",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FLET=F[63747]=new A(63747,"flet",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FLETI=F[63748]=new A(63748,"fleti",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.UNKNOWN_F905=F[63749]=new A(63749,"unknown_f905",void 0,[],void 0),A.UNKNOWN_F906=F[63750]=new A(63750,"unknown_f906",void 0,[],void 0),A.UNKNOWN_F907=F[63751]=new A(63751,"unknown_f907",void 0,[],void 0),A.FADD=F[63752]=new A(63752,"fadd",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FADDI=F[63753]=new A(63753,"faddi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.FSUB=F[63754]=new A(63754,"fsub",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FSUBI=F[63755]=new A(63755,"fsubi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.FMUL=F[63756]=new A(63756,"fmul",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FMULI=F[63757]=new A(63757,"fmuli",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.FDIV=F[63758]=new A(63758,"fdiv",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Read)]},void 0,void 0)],void 0),A.FDIVI=F[63759]=new A(63759,"fdivi",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(l,void 0,W.Write)]},void 0,void 0),new h(l,void 0,void 0)],void 0),A.GET_UNKNOWN_COUNT=F[63760]=new A(63760,"get_unknown_count",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_STACKABLE_ITEM_COUNT=F[63761]=new A(63761,"get_stackable_item_count",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,"Player slot.",W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read),new h(u,void 0,W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.FREEZE_AND_HIDE_EQUIP=F[63762]=new A(63762,"freeze_and_hide_equip",void 0,[],void 0),A.THAW_AND_SHOW_EQUIP=F[63763]=new A(63763,"thaw_and_show_equip",void 0,[],void 0),A.SET_PALETTEX_CALLBACK=F[63764]=new A(63764,"set_palettex_callback",void 0,[new h(u,"Player slot.",void 0),new h(p,void 0,void 0)],O.Pop),A.ACTIVATE_PALETTEX=F[63765]=new A(63765,"activate_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.ENABLE_PALETTEX=F[63766]=new A(63766,"enable_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.RESTORE_PALETTEX=F[63767]=new A(63767,"restore_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.DISABLE_PALETTEX=F[63768]=new A(63768,"disable_palettex",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.GET_PALETTEX_ACTIVATED=F[63769]=new A(63769,"get_palettex_activated",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_UNKNOWN_PALETTEX_STATUS=F[63770]=new A(63770,"get_unknown_palettex_status",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.DISABLE_MOVEMENT2=F[63771]=new A(63771,"disable_movement2",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.ENABLE_MOVEMENT2=F[63772]=new A(63772,"enable_movement2",void 0,[new h(u,"Player slot.",void 0)],O.Pop),A.GET_TIME_PLAYED=F[63773]=new A(63773,"get_time_played",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_GUILDCARD_TOTAL=F[63774]=new A(63774,"get_guildcard_total",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_SLOT_MESETA=F[63775]=new A(63775,"get_slot_meseta",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_PLAYER_LEVEL=F[63776]=new A(63776,"get_player_level",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_SECTION_ID=F[63777]=new A(63777,"get_section_id",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_PLAYER_HP=F[63778]=new A(63778,"get_player_hp",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,"Maximum HP.",W.Write),new h(u,"Current HP.",W.Write),new h(u,"Maximum TP.",W.Write),new h(u,"Current TP.",W.Write)]},void 0,void 0)],O.Pop),A.GET_FLOOR_NUMBER=F[63779]=new A(63779,"get_floor_number",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.GET_COORD_PLAYER_DETECT=F[63780]=new A(63780,"get_coord_player_detect",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,"Player slot.",W.Read)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Read)]},void 0,void 0)],void 0),A.READ_GLOBAL_FLAG=F[63781]=new A(63781,"read_global_flag",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.WRITE_GLOBAL_FLAG=F[63782]=new A(63782,"write_global_flag",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F927=F[63783]=new A(63783,"unknown_f927",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.FLOOR_PLAYER_DETECT=F[63784]=new A(63784,"floor_player_detect",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write),new h(u,void 0,W.Write),new h(u,void 0,W.Write),new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.READ_DISK_FILE=F[63785]=new A(63785,"read_disk_file",void 0,[new h(f,void 0,void 0)],O.Pop),A.OPEN_PACK_SELECT=F[63786]=new A(63786,"open_pack_select",void 0,[],void 0),A.ITEM_SELECT=F[63787]=new A(63787,"item_select",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.GET_ITEM_ID=F[63788]=new A(63788,"get_item_id",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.COLOR_CHANGE=F[63789]=new A(63789,"color_change",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.SEND_STATISTIC=F[63790]=new A(63790,"send_statistic",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F92F=F[63791]=new A(63791,"unknown_f92f",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.CHAT_BOX=F[63792]=new A(63792,"chat_box",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.CHAT_BUBBLE=F[63793]=new A(63793,"chat_bubble",void 0,[new h(u,void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.UNKNOWN_F932=F[63794]=new A(63794,"unknown_f932",void 0,[],void 0),A.UNKNOWN_F933=F[63795]=new A(63795,"unknown_f933",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],void 0),A.SCROLL_TEXT=F[63796]=new A(63796,"scroll_text",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(l,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(f,void 0,void 0)],O.Pop),A.GBA_UNKNOWN1=F[63797]=new A(63797,"gba_unknown1",void 0,[],void 0),A.GBA_UNKNOWN2=F[63798]=new A(63798,"gba_unknown2",void 0,[],void 0),A.GBA_UNKNOWN3=F[63799]=new A(63799,"gba_unknown3",void 0,[],void 0),A.ADD_DAMAGE_TO=F[63800]=new A(63800,"add_damage_to",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.ITEM_DELETE3=F[63801]=new A(63801,"item_delete3",void 0,[new h(u,void 0,void 0)],O.Pop),A.GET_ITEM_INFO=F[63802]=new A(63802,"get_item_info",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],O.Pop),A.ITEM_PACKING1=F[63803]=new A(63803,"item_packing1",void 0,[new h(u,void 0,void 0)],O.Pop),A.ITEM_PACKING2=F[63804]=new A(63804,"item_packing2",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.GET_LANG_SETTING=F[63805]=new A(63805,"get_lang_setting",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(s,void 0,W.Write)]},void 0,void 0)],O.Pop),A.PREPARE_STATISTIC=F[63806]=new A(63806,"prepare_statistic",void 0,[new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.KEYWORD_DETECT=F[63807]=new A(63807,"keyword_detect",void 0,[],void 0),A.KEYWORD=F[63808]=new A(63808,"keyword",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,"Player slot.",void 0),new h(f,void 0,void 0)],O.Pop),A.GET_GUILDCARD_NUM=F[63809]=new A(63809,"get_guildcard_num",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.UNKNOWN_F942=F[63810]=new A(63810,"unknown_f942",void 0,[],void 0),A.UNKNOWN_F943=F[63811]=new A(63811,"unknown_f943",void 0,[],void 0),A.GET_WRAP_STATUS=F[63812]=new A(63812,"get_wrap_status",void 0,[new h(u,"Player slot.",void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.INITIAL_FLOOR=F[63813]=new A(63813,"initial_floor",void 0,[new h(u,void 0,void 0)],O.Pop),A.SIN=F[63814]=new A(63814,"sin",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.COS=F[63815]=new A(63815,"cos",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F948=F[63816]=new A(63816,"unknown_f948",void 0,[],void 0),A.UNKNOWN_F949=F[63817]=new A(63817,"unknown_f949",void 0,[],void 0),A.BOSS_IS_DEAD2=F[63818]=new A(63818,"boss_is_dead2",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94B=F[63819]=new A(63819,"unknown_f94b",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94C=F[63820]=new A(63820,"unknown_f94c",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.IS_THERE_CARDBATTLE=F[63821]=new A(63821,"is_there_cardbattle",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.UNKNOWN_F94E=F[63822]=new A(63822,"unknown_f94e",void 0,[],void 0),A.UNKNOWN_F94F=F[63823]=new A(63823,"unknown_f94f",void 0,[],void 0),A.BB_P2_MENU=F[63824]=new A(63824,"bb_p2_menu",void 0,[new h(u,void 0,void 0)],O.Pop),A.BB_MAP_DESIGNATE=F[63825]=new A(63825,"bb_map_designate",void 0,[new h(r,void 0,void 0),new h(a,void 0,void 0),new h(r,void 0,void 0),new h(r,void 0,void 0)],void 0),A.BB_GET_NUMBER_IN_PACK=F[63826]=new A(63826,"bb_get_number_in_pack",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],void 0),A.BB_SWAP_ITEM=F[63827]=new A(63827,"bb_swap_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_CHECK_WRAP=F[63828]=new A(63828,"bb_check_wrap",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_ITEM=F[63829]=new A(63829,"bb_exchange_pd_item",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_SRANK=F[63830]=new A(63830,"bb_exchange_pd_srank",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_SPECIAL=F[63831]=new A(63831,"bb_exchange_pd_special",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PD_PERCENT=F[63832]=new A(63832,"bb_exchange_pd_percent",void 0,[new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.UNKNOWN_F959=F[63833]=new A(63833,"unknown_f959",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F95A=F[63834]=new A(63834,"unknown_f95a",void 0,[],void 0),A.UNKNOWN_F95B=F[63835]=new A(63835,"unknown_f95b",void 0,[],void 0),A.BB_EXCHANGE_SLT=F[63836]=new A(63836,"bb_exchange_slt",void 0,[new h(u,void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PC=F[63837]=new A(63837,"bb_exchange_pc",void 0,[],void 0),A.BB_BOX_CREATE_BP=F[63838]=new A(63838,"bb_box_create_bp",void 0,[new h(u,void 0,void 0),new h(l,void 0,void 0),new h(l,void 0,void 0)],O.Pop),A.BB_EXCHANGE_PT=F[63839]=new A(63839,"bb_exchange_pt",void 0,[new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h({kind:_.RegTupRef,register_tuples:[new h(u,void 0,W.Write)]},void 0,void 0),new h(u,void 0,void 0),new h(p,void 0,void 0),new h(p,void 0,void 0)],O.Pop),A.UNKNOWN_F960=F[63840]=new A(63840,"unknown_f960",void 0,[new h(u,void 0,void 0)],O.Pop),A.UNKNOWN_F961=F[63841]=new A(63841,"unknown_f961",void 0,[],void 0),A.UNKNOWN_F962=F[63842]=new A(63842,"unknown_f962",void 0,[],void 0),A.UNKNOWN_F963=F[63843]=new A(63843,"unknown_f963",void 0,[],void 0),A.UNKNOWN_F964=F[63844]=new A(63844,"unknown_f964",void 0,[],void 0),A.UNKNOWN_F965=F[63845]=new A(63845,"unknown_f965",void 0,[],void 0),A.UNKNOWN_F966=F[63846]=new A(63846,"unknown_f966",void 0,[],void 0),A.UNKNOWN_F967=F[63847]=new A(63847,"unknown_f967",void 0,[],void 0),A.UNKNOWN_F968=F[63848]=new A(63848,"unknown_f968",void 0,[],void 0),A.UNKNOWN_F969=F[63849]=new A(63849,"unknown_f969",void 0,[],void 0),A.UNKNOWN_F96A=F[63850]=new A(63850,"unknown_f96a",void 0,[],void 0),A.UNKNOWN_F96B=F[63851]=new A(63851,"unknown_f96b",void 0,[],void 0),A.UNKNOWN_F96C=F[63852]=new A(63852,"unknown_f96c",void 0,[],void 0),A.UNKNOWN_F96D=F[63853]=new A(63853,"unknown_f96d",void 0,[],void 0),A.UNKNOWN_F96E=F[63854]=new A(63854,"unknown_f96e",void 0,[],void 0),A.UNKNOWN_F96F=F[63855]=new A(63855,"unknown_f96f",void 0,[],void 0),A.UNKNOWN_F970=F[63856]=new A(63856,"unknown_f970",void 0,[],void 0),A.UNKNOWN_F971=F[63857]=new A(63857,"unknown_f971",void 0,[],void 0),A.UNKNOWN_F972=F[63858]=new A(63858,"unknown_f972",void 0,[],void 0),A.UNKNOWN_F973=F[63859]=new A(63859,"unknown_f973",void 0,[],void 0),A.UNKNOWN_F974=F[63860]=new A(63860,"unknown_f974",void 0,[],void 0),A.UNKNOWN_F975=F[63861]=new A(63861,"unknown_f975",void 0,[],void 0),A.UNKNOWN_F976=F[63862]=new A(63862,"unknown_f976",void 0,[],void 0),A.UNKNOWN_F977=F[63863]=new A(63863,"unknown_f977",void 0,[],void 0),A.UNKNOWN_F978=F[63864]=new A(63864,"unknown_f978",void 0,[],void 0),A.UNKNOWN_F979=F[63865]=new A(63865,"unknown_f979",void 0,[],void 0),A.UNKNOWN_F97A=F[63866]=new A(63866,"unknown_f97a",void 0,[],void 0),A.UNKNOWN_F97B=F[63867]=new A(63867,"unknown_f97b",void 0,[],void 0),A.UNKNOWN_F97C=F[63868]=new A(63868,"unknown_f97c",void 0,[],void 0),A.UNKNOWN_F97D=F[63869]=new A(63869,"unknown_f97d",void 0,[],void 0),A.UNKNOWN_F97E=F[63870]=new A(63870,"unknown_f97e",void 0,[],void 0),A.UNKNOWN_F97F=F[63871]=new A(63871,"unknown_f97f",void 0,[],void 0),A.UNKNOWN_F980=F[63872]=new A(63872,"unknown_f980",void 0,[],void 0),A.UNKNOWN_F981=F[63873]=new A(63873,"unknown_f981",void 0,[],void 0),A.UNKNOWN_F982=F[63874]=new A(63874,"unknown_f982",void 0,[],void 0),A.UNKNOWN_F983=F[63875]=new A(63875,"unknown_f983",void 0,[],void 0),A.UNKNOWN_F984=F[63876]=new A(63876,"unknown_f984",void 0,[],void 0),A.UNKNOWN_F985=F[63877]=new A(63877,"unknown_f985",void 0,[],void 0),A.UNKNOWN_F986=F[63878]=new A(63878,"unknown_f986",void 0,[],void 0),A.UNKNOWN_F987=F[63879]=new A(63879,"unknown_f987",void 0,[],void 0),A.UNKNOWN_F988=F[63880]=new A(63880,"unknown_f988",void 0,[],void 0),A.UNKNOWN_F989=F[63881]=new A(63881,"unknown_f989",void 0,[],void 0),A.UNKNOWN_F98A=F[63882]=new A(63882,"unknown_f98a",void 0,[],void 0),A.UNKNOWN_F98B=F[63883]=new A(63883,"unknown_f98b",void 0,[],void 0),A.UNKNOWN_F98C=F[63884]=new A(63884,"unknown_f98c",void 0,[],void 0),A.UNKNOWN_F98D=F[63885]=new A(63885,"unknown_f98d",void 0,[],void 0),A.UNKNOWN_F98E=F[63886]=new A(63886,"unknown_f98e",void 0,[],void 0),A.UNKNOWN_F98F=F[63887]=new A(63887,"unknown_f98f",void 0,[],void 0),A.UNKNOWN_F990=F[63888]=new A(63888,"unknown_f990",void 0,[],void 0),A.UNKNOWN_F991=F[63889]=new A(63889,"unknown_f991",void 0,[],void 0),A.UNKNOWN_F992=F[63890]=new A(63890,"unknown_f992",void 0,[],void 0),A.UNKNOWN_F993=F[63891]=new A(63891,"unknown_f993",void 0,[],void 0),A.UNKNOWN_F994=F[63892]=new A(63892,"unknown_f994",void 0,[],void 0),A.UNKNOWN_F995=F[63893]=new A(63893,"unknown_f995",void 0,[],void 0),A.UNKNOWN_F996=F[63894]=new A(63894,"unknown_f996",void 0,[],void 0),A.UNKNOWN_F997=F[63895]=new A(63895,"unknown_f997",void 0,[],void 0),A.UNKNOWN_F998=F[63896]=new A(63896,"unknown_f998",void 0,[],void 0),A.UNKNOWN_F999=F[63897]=new A(63897,"unknown_f999",void 0,[],void 0),A.UNKNOWN_F99A=F[63898]=new A(63898,"unknown_f99a",void 0,[],void 0),A.UNKNOWN_F99B=F[63899]=new A(63899,"unknown_f99b",void 0,[],void 0),A.UNKNOWN_F99C=F[63900]=new A(63900,"unknown_f99c",void 0,[],void 0),A.UNKNOWN_F99D=F[63901]=new A(63901,"unknown_f99d",void 0,[],void 0),A.UNKNOWN_F99E=F[63902]=new A(63902,"unknown_f99e",void 0,[],void 0),A.UNKNOWN_F99F=F[63903]=new A(63903,"unknown_f99f",void 0,[],void 0),A.UNKNOWN_F9A0=F[63904]=new A(63904,"unknown_f9a0",void 0,[],void 0),A.UNKNOWN_F9A1=F[63905]=new A(63905,"unknown_f9a1",void 0,[],void 0),A.UNKNOWN_F9A2=F[63906]=new A(63906,"unknown_f9a2",void 0,[],void 0),A.UNKNOWN_F9A3=F[63907]=new A(63907,"unknown_f9a3",void 0,[],void 0),A.UNKNOWN_F9A4=F[63908]=new A(63908,"unknown_f9a4",void 0,[],void 0),A.UNKNOWN_F9A5=F[63909]=new A(63909,"unknown_f9a5",void 0,[],void 0),A.UNKNOWN_F9A6=F[63910]=new A(63910,"unknown_f9a6",void 0,[],void 0),A.UNKNOWN_F9A7=F[63911]=new A(63911,"unknown_f9a7",void 0,[],void 0),A.UNKNOWN_F9A8=F[63912]=new A(63912,"unknown_f9a8",void 0,[],void 0),A.UNKNOWN_F9A9=F[63913]=new A(63913,"unknown_f9a9",void 0,[],void 0),A.UNKNOWN_F9AA=F[63914]=new A(63914,"unknown_f9aa",void 0,[],void 0),A.UNKNOWN_F9AB=F[63915]=new A(63915,"unknown_f9ab",void 0,[],void 0),A.UNKNOWN_F9AC=F[63916]=new A(63916,"unknown_f9ac",void 0,[],void 0),A.UNKNOWN_F9AD=F[63917]=new A(63917,"unknown_f9ad",void 0,[],void 0),A.UNKNOWN_F9AE=F[63918]=new A(63918,"unknown_f9ae",void 0,[],void 0),A.UNKNOWN_F9AF=F[63919]=new A(63919,"unknown_f9af",void 0,[],void 0),A.UNKNOWN_F9B0=F[63920]=new A(63920,"unknown_f9b0",void 0,[],void 0),A.UNKNOWN_F9B1=F[63921]=new A(63921,"unknown_f9b1",void 0,[],void 0),A.UNKNOWN_F9B2=F[63922]=new A(63922,"unknown_f9b2",void 0,[],void 0),A.UNKNOWN_F9B3=F[63923]=new A(63923,"unknown_f9b3",void 0,[],void 0),A.UNKNOWN_F9B4=F[63924]=new A(63924,"unknown_f9b4",void 0,[],void 0),A.UNKNOWN_F9B5=F[63925]=new A(63925,"unknown_f9b5",void 0,[],void 0),A.UNKNOWN_F9B6=F[63926]=new A(63926,"unknown_f9b6",void 0,[],void 0),A.UNKNOWN_F9B7=F[63927]=new A(63927,"unknown_f9b7",void 0,[],void 0),A.UNKNOWN_F9B8=F[63928]=new A(63928,"unknown_f9b8",void 0,[],void 0),A.UNKNOWN_F9B9=F[63929]=new A(63929,"unknown_f9b9",void 0,[],void 0),A.UNKNOWN_F9BA=F[63930]=new A(63930,"unknown_f9ba",void 0,[],void 0),A.UNKNOWN_F9BB=F[63931]=new A(63931,"unknown_f9bb",void 0,[],void 0),A.UNKNOWN_F9BC=F[63932]=new A(63932,"unknown_f9bc",void 0,[],void 0),A.UNKNOWN_F9BD=F[63933]=new A(63933,"unknown_f9bd",void 0,[],void 0),A.UNKNOWN_F9BE=F[63934]=new A(63934,"unknown_f9be",void 0,[],void 0),A.UNKNOWN_F9BF=F[63935]=new A(63935,"unknown_f9bf",void 0,[],void 0),A.UNKNOWN_F9C0=F[63936]=new A(63936,"unknown_f9c0",void 0,[],void 0),A.UNKNOWN_F9C1=F[63937]=new A(63937,"unknown_f9c1",void 0,[],void 0),A.UNKNOWN_F9C2=F[63938]=new A(63938,"unknown_f9c2",void 0,[],void 0),A.UNKNOWN_F9C3=F[63939]=new A(63939,"unknown_f9c3",void 0,[],void 0),A.UNKNOWN_F9C4=F[63940]=new A(63940,"unknown_f9c4",void 0,[],void 0),A.UNKNOWN_F9C5=F[63941]=new A(63941,"unknown_f9c5",void 0,[],void 0),A.UNKNOWN_F9C6=F[63942]=new A(63942,"unknown_f9c6",void 0,[],void 0),A.UNKNOWN_F9C7=F[63943]=new A(63943,"unknown_f9c7",void 0,[],void 0),A.UNKNOWN_F9C8=F[63944]=new A(63944,"unknown_f9c8",void 0,[],void 0),A.UNKNOWN_F9C9=F[63945]=new A(63945,"unknown_f9c9",void 0,[],void 0),A.UNKNOWN_F9CA=F[63946]=new A(63946,"unknown_f9ca",void 0,[],void 0),A.UNKNOWN_F9CB=F[63947]=new A(63947,"unknown_f9cb",void 0,[],void 0),A.UNKNOWN_F9CC=F[63948]=new A(63948,"unknown_f9cc",void 0,[],void 0),A.UNKNOWN_F9CD=F[63949]=new A(63949,"unknown_f9cd",void 0,[],void 0),A.UNKNOWN_F9CE=F[63950]=new A(63950,"unknown_f9ce",void 0,[],void 0),A.UNKNOWN_F9CF=F[63951]=new A(63951,"unknown_f9cf",void 0,[],void 0),A.UNKNOWN_F9D0=F[63952]=new A(63952,"unknown_f9d0",void 0,[],void 0),A.UNKNOWN_F9D1=F[63953]=new A(63953,"unknown_f9d1",void 0,[],void 0),A.UNKNOWN_F9D2=F[63954]=new A(63954,"unknown_f9d2",void 0,[],void 0),A.UNKNOWN_F9D3=F[63955]=new A(63955,"unknown_f9d3",void 0,[],void 0),A.UNKNOWN_F9D4=F[63956]=new A(63956,"unknown_f9d4",void 0,[],void 0),A.UNKNOWN_F9D5=F[63957]=new A(63957,"unknown_f9d5",void 0,[],void 0),A.UNKNOWN_F9D6=F[63958]=new A(63958,"unknown_f9d6",void 0,[],void 0),A.UNKNOWN_F9D7=F[63959]=new A(63959,"unknown_f9d7",void 0,[],void 0),A.UNKNOWN_F9D8=F[63960]=new A(63960,"unknown_f9d8",void 0,[],void 0),A.UNKNOWN_F9D9=F[63961]=new A(63961,"unknown_f9d9",void 0,[],void 0),A.UNKNOWN_F9DA=F[63962]=new A(63962,"unknown_f9da",void 0,[],void 0),A.UNKNOWN_F9DB=F[63963]=new A(63963,"unknown_f9db",void 0,[],void 0),A.UNKNOWN_F9DC=F[63964]=new A(63964,"unknown_f9dc",void 0,[],void 0),A.UNKNOWN_F9DD=F[63965]=new A(63965,"unknown_f9dd",void 0,[],void 0),A.UNKNOWN_F9DE=F[63966]=new A(63966,"unknown_f9de",void 0,[],void 0),A.UNKNOWN_F9DF=F[63967]=new A(63967,"unknown_f9df",void 0,[],void 0),A.UNKNOWN_F9E0=F[63968]=new A(63968,"unknown_f9e0",void 0,[],void 0),A.UNKNOWN_F9E1=F[63969]=new A(63969,"unknown_f9e1",void 0,[],void 0),A.UNKNOWN_F9E2=F[63970]=new A(63970,"unknown_f9e2",void 0,[],void 0),A.UNKNOWN_F9E3=F[63971]=new A(63971,"unknown_f9e3",void 0,[],void 0),A.UNKNOWN_F9E4=F[63972]=new A(63972,"unknown_f9e4",void 0,[],void 0),A.UNKNOWN_F9E5=F[63973]=new A(63973,"unknown_f9e5",void 0,[],void 0),A.UNKNOWN_F9E6=F[63974]=new A(63974,"unknown_f9e6",void 0,[],void 0),A.UNKNOWN_F9E7=F[63975]=new A(63975,"unknown_f9e7",void 0,[],void 0),A.UNKNOWN_F9E8=F[63976]=new A(63976,"unknown_f9e8",void 0,[],void 0),A.UNKNOWN_F9E9=F[63977]=new A(63977,"unknown_f9e9",void 0,[],void 0),A.UNKNOWN_F9EA=F[63978]=new A(63978,"unknown_f9ea",void 0,[],void 0),A.UNKNOWN_F9EB=F[63979]=new A(63979,"unknown_f9eb",void 0,[],void 0),A.UNKNOWN_F9EC=F[63980]=new A(63980,"unknown_f9ec",void 0,[],void 0),A.UNKNOWN_F9ED=F[63981]=new A(63981,"unknown_f9ed",void 0,[],void 0),A.UNKNOWN_F9EE=F[63982]=new A(63982,"unknown_f9ee",void 0,[],void 0),A.UNKNOWN_F9EF=F[63983]=new A(63983,"unknown_f9ef",void 0,[],void 0),A.UNKNOWN_F9F0=F[63984]=new A(63984,"unknown_f9f0",void 0,[],void 0),A.UNKNOWN_F9F1=F[63985]=new A(63985,"unknown_f9f1",void 0,[],void 0),A.UNKNOWN_F9F2=F[63986]=new A(63986,"unknown_f9f2",void 0,[],void 0),A.UNKNOWN_F9F3=F[63987]=new A(63987,"unknown_f9f3",void 0,[],void 0),A.UNKNOWN_F9F4=F[63988]=new A(63988,"unknown_f9f4",void 0,[],void 0),A.UNKNOWN_F9F5=F[63989]=new A(63989,"unknown_f9f5",void 0,[],void 0),A.UNKNOWN_F9F6=F[63990]=new A(63990,"unknown_f9f6",void 0,[],void 0),A.UNKNOWN_F9F7=F[63991]=new A(63991,"unknown_f9f7",void 0,[],void 0),A.UNKNOWN_F9F8=F[63992]=new A(63992,"unknown_f9f8",void 0,[],void 0),A.UNKNOWN_F9F9=F[63993]=new A(63993,"unknown_f9f9",void 0,[],void 0),A.UNKNOWN_F9FA=F[63994]=new A(63994,"unknown_f9fa",void 0,[],void 0),A.UNKNOWN_F9FB=F[63995]=new A(63995,"unknown_f9fb",void 0,[],void 0),A.UNKNOWN_F9FC=F[63996]=new A(63996,"unknown_f9fc",void 0,[],void 0),A.UNKNOWN_F9FD=F[63997]=new A(63997,"unknown_f9fd",void 0,[],void 0),A.UNKNOWN_F9FE=F[63998]=new A(63998,"unknown_f9fe",void 0,[],void 0),A.UNKNOWN_F9FF=F[63999]=new A(63999,"unknown_f9ff",void 0,[],void 0),F.forEach(e=>{U.set(e.mnemonic,e)});class P{constructor(e,i){this.opcode=e,this.args=i,this.arg_size=0,this.param_to_args=[];const o=Math.min(e.params.length,i.length);for(let n=0;n<o;n++){const o=e.params[n].type,d=i[n];switch(this.param_to_args[n]=[],o.kind){case _.ILabelVar:case _.RegRefVar:this.arg_size++;for(let e=n;e<i.length;e++)this.param_to_args[n].push(i[e]),this.arg_size+=i[e].size;break;default:this.arg_size+=d.size,this.param_to_args[n].push(d)}}this.size=e.size+this.arg_size}}var K;!function(e){e[e.Instructions=0]="Instructions",e[e.Data=1]="Data",e[e.String=2]="String"}(K||(K={}));const m=d.a.get("scripting/assembly");class b{constructor(e,i){this.assembly=e,this.manual_stack=i,this.lexer=new w,this.first_section_marker=!0}assemble(){this.line_no=1,this.object_code=[],this.warnings=[],this.errors=[],this.labels=new Set,this.section=K.Instructions,this.first_section_marker=!0;for(const e of this.assembly){if(this.tokens=this.lexer.tokenize_line(e),this.tokens.length>0){const e=this.tokens.shift();switch(e.type){case t.Label:this.parse_label(e);break;case t.CodeSection:case t.DataSection:case t.StringSection:this.parse_section(e);break;case t.Int:this.section===K.Data?this.parse_bytes(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.String:this.section===K.String?this.parse_string(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.Ident:this.section===K.Instructions?this.parse_instruction(e):this.add_error({col:e.col,length:e.len,message:"Unexpected token."});break;case t.InvalidSection:this.add_error({col:e.col,length:e.len,message:"Invalid section type."});break;case t.InvalidIdent:this.add_error({col:e.col,length:e.len,message:"Invalid identifier."});break;default:this.add_error({col:e.col,length:e.len,message:"Unexpected token."})}}this.line_no++}return{object_code:this.object_code,warnings:this.warnings,errors:this.errors}}add_instruction(e,i){if(this.segment)this.segment.type===K.Instructions?this.segment.instructions.push(new P(e,i)):m.error(`Line ${this.line_no}: Expected instructions segment.`);else{const e={labels:[],type:K.Instructions,instructions:[]};this.segment=e,this.object_code.push(e)}}add_bytes(e){if(this.segment)if(this.segment.type===K.Data){const i=new ArrayBuffer(this.segment.data.byteLength+e.length),o=new Uint8Array(i);o.set(new Uint8Array(this.segment.data)),o.set(new Uint8Array(e),this.segment.data.byteLength),this.segment.data=i}else m.error(`Line ${this.line_no}: Expected data segment.`);else{const i={labels:[],type:K.Data,data:new Uint8Array(e).buffer};this.segment=i,this.object_code.push(i)}}add_string(e){if(this.segment)this.segment.type===K.String?this.segment.value+=e:m.error(`Line ${this.line_no}: Expected string segment.`);else{const i={labels:[],type:K.String,value:e};this.segment=i,this.object_code.push(i)}}add_error({col:e,length:i,message:o}){this.errors.push({line_no:this.line_no,col:e,length:i,message:o})}add_warning({col:e,length:i,message:o}){this.warnings.push({line_no:this.line_no,col:e,length:i,message:o})}parse_label({col:e,len:i,value:o}){this.labels.has(o)&&this.add_error({col:e,length:i,message:"Duplicate label."}),this.labels.add(o);const n=this.tokens.shift();switch(this.section){case K.Instructions:this.segment={type:K.Instructions,labels:[o],instructions:[]},this.object_code.push(this.segment),n&&(n.type===t.Ident?this.parse_instruction(n):this.add_error({col:n.col,length:n.len,message:"Expected opcode mnemonic."}));break;case K.Data:this.segment={type:K.Data,labels:[o],data:new ArrayBuffer(0)},this.object_code.push(this.segment),n&&(n.type===t.Int?this.parse_bytes(n):this.add_error({col:n.col,length:n.len,message:"Expected bytes."}));break;case K.String:this.segment={type:K.String,labels:[o],value:""},this.object_code.push(this.segment),n&&(n.type===t.String?this.parse_string(n):this.add_error({col:n.col,length:n.len,message:"Expected a string."}))}}parse_section({type:e,col:i,len:o}){let n;switch(e){case t.CodeSection:n=K.Instructions;break;case t.DataSection:n=K.Data;break;case t.StringSection:n=K.String}this.section!==n||this.first_section_marker||this.add_warning({col:i,length:o,message:"Unnecessary section marker."}),this.section=n,this.first_section_marker=!1;const d=this.tokens.shift();d&&this.add_error({col:d.col,length:d.len,message:"Unexpected token."})}parse_instruction({col:e,len:i,value:o}){const n=U.get(o);if(n){const i=-1!==n.params.findIndex(e=>e.type.kind===_.ILabelVar||e.type.kind===_.RegRefVar),o=this.manual_stack&&n.stack===O.Pop?0:n.params.length;let w=0;for(const e of this.tokens)e.type!==t.ArgSeparator&&w++;const s=this.tokens[this.tokens.length-1];let r=s?s.col+s.len-e:0;const a=[];if(!i&&w!==o)return void this.add_error({col:e,length:r,message:`Expected ${o} argument${1===o?"":"s"}, got ${w}.`});if(i&&w<o)return void this.add_error({col:e,length:r,message:`Expected at least ${o} argument${1===o?"":"s"}, got ${w}.`});if(n.stack!==O.Pop){if(!this.parse_args(n.params,a,!1))return}else{const e=[];if(!this.parse_args(n.params,e,!0))return;for(let i=0;i<n.params.length;i++){const o=n.params[i],w=e[i];if(null==w)continue;const[s,r]=w;if(r.type===t.Register)o.type.kind===_.RegTupRef?this.add_instruction(A.ARG_PUSHB,[s]):this.add_instruction(A.ARG_PUSHR,[s]);else switch(o.type.kind){case _.Byte:case _.RegRef:case _.RegTupRef:this.add_instruction(A.ARG_PUSHB,[s]);break;case _.Word:case _.Label:case _.ILabel:case _.DLabel:case _.SLabel:this.add_instruction(A.ARG_PUSHW,[s]);break;case _.DWord:this.add_instruction(A.ARG_PUSHL,[s]);break;case _.Float:this.add_instruction(A.ARG_PUSHL,[{value:(d=s.value,v.setFloat32(0,d),v.getInt32(0)),size:4}]);break;case _.String:this.add_instruction(A.ARG_PUSHS,[s]);break;default:m.error(`Line ${this.line_no}: Type ${_[o.type.kind]} not implemented.`)}}}this.add_instruction(n,a.map(([e])=>e))}else this.add_error({col:e,length:i,message:"Unknown instruction."});var d}parse_args(e,i,o){let n=!0,d=!0,v=0;for(let w=0;w<this.tokens.length;w++){const s=this.tokens[w],r=e[v];if(s.type===t.ArgSeparator)d?this.add_error({col:s.col,length:s.len,message:"Expected an argument."}):r.type.kind!==_.ILabelVar&&r.type.kind!==_.RegRefVar&&v++,d=!0;else{if(!d){const e=this.tokens[w-1],i=e.col+e.len;this.add_error({col:i,length:s.col-i,message:"Expected a comma."})}let e;switch(d=!1,s.type){case t.Int:switch(r.type.kind){case _.Byte:e=!0,this.parse_int(1,s,i);break;case _.Word:case _.Label:case _.ILabel:case _.DLabel:case _.SLabel:case _.ILabelVar:e=!0,this.parse_int(2,s,i);break;case _.DWord:e=!0,this.parse_int(4,s,i);break;case _.Float:e=!0,i.push([{value:s.value,size:4},s]);break;default:e=!1}break;case t.Float:(e=r.type.kind===_.Float)&&i.push([{value:s.value,size:4},s]);break;case t.Register:e=o||r.type.kind===_.RegRef||r.type.kind===_.RegRefVar||r.type.kind===_.RegTupRef,this.parse_register(s,i);break;case t.String:(e=r.type.kind===_.String)&&i.push([{value:s.value,size:2*s.value.length+2},s]);break;default:e=!1}if(!e){let e;switch(n=!1,r.type.kind){case _.Byte:e="a 8-bit integer";break;case _.Word:e="a 16-bit integer";break;case _.DWord:e="a 32-bit integer";break;case _.Float:e="a float";break;case _.Label:e="a label";break;case _.ILabel:case _.ILabelVar:e="an instruction label";break;case _.DLabel:e="a data label";break;case _.SLabel:e="a string label";break;case _.String:e="a string";break;case _.RegRef:case _.RegRefVar:case _.RegTupRef:e="a register reference"}e?this.add_error({col:s.col,length:s.len,message:`Expected ${e}.`}):this.add_error({col:s.col,length:s.len,message:"Unexpected token."})}}}return this.tokens=[],n}parse_int(e,i,o){const{value:n,col:d,len:v}=i,t=8*e,_=-Math.pow(2,t-1),w=Math.pow(2,t)-1;n<_?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be less than ${_}.`}):n>w?this.add_error({col:d,length:v,message:`${t}-Bit integer can't be greater than ${w}.`}):o.push([{value:n,size:e},i])}parse_register(e,i){const{col:o,len:n,value:d}=e;d>255?this.add_error({col:o,length:n,message:"Invalid register reference, expected r0-r255."}):i.push([{value:d,size:1},e])}parse_bytes(e){const i=[];let o=e,n=0;for(;o.type===t.Int&&(o.value<0?this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be less than 0."}):o.value>255&&this.add_error({col:o.col,length:o.len,message:"Unsigned 8-bit integer can't be greater than 255."}),i.push(o.value),n<this.tokens.length);)o=this.tokens[n++];n<this.tokens.length&&this.add_error({col:o.col,length:o.len,message:"Expected an unsigned 8-bit integer."}),this.add_bytes(i)}parse_string(e){const i=this.tokens.shift();i&&this.add_error({col:i.col,length:i.len,message:"Unexpected token."}),this.add_string(e.value)}}d.a.useDefaults({defaultLevel:d.a.WARN});const S=self;let L=[];const I=[];let C;function D(){if(0===I.length)return;for(const n of I.splice(0,I.length))if("new_assembly_input"===n.type)L=n.assembly;else if("assembly_change_input"===n.type)for(const d of n.changes){const{startLineNumber:n,endLineNumber:v,startColumn:t,endColumn:_}=d.range,w=v-n+1,s=d.text.split("\n");1===w?y(n,t,_,s):1===s.length?G(n,v,t,_,s[0]):(e=n,i=t,o=s[0],L.splice(e-1,1,L[e-1].slice(0,i-1)+o),B(v,_,s[s.length-1]),M(n+1,v-1,s.slice(1,s.length-1)))}var e,i,o;const n=function(e,i=!1){return new b(e,i).assemble()}(L),d=new Map;for(const e of n.object_code)if(e.labels.includes(0)){if(e.type===K.Instructions)for(const i of e.instructions)i.opcode===A.BB_MAP_DESIGNATE&&d.set(i.args[0].value,i.args[2].value);break}const v=Object.assign({type:"new_object_code_output",map_designations:d},n);S.postMessage(v)}function y(e,i,o,n){const d=L[e-1],v=d.slice(0,i-1),t=d.slice(o-1);1===n.length?L.splice(e-1,1,v+n[0]+t):L.splice(e-1,1,v+n[0],...n.slice(1,n.length-1),n[n.length-1]+t)}function B(e,i,o){L.splice(e-1,1,o+L[e-1].slice(i-1))}function M(e,i,o){L.splice(e-1,i-e+1,...o)}function G(e,i,o,n,d){const v=L[e-1],t=L[i-1],_=v.slice(0,o-1),w=t.slice(n-1);L.splice(e-1,i-e+1,_+d+w)}S.onmessage=e=>{I.push(e.data),C||(D(),C=setTimeout(()=>{C=void 0,D()},100))}}});